Giter Club home page Giter Club logo

pickle-ui's Introduction

Pickle App Frontend

Written from scratch, this will allow people to interact with the Pickle Protocol.

https://app.pickle.finance

Development

This project uses next-js behind the scenes.

yarn
yarn dev

Images

Images must be square, in PNG format. Ideally, 350x350px. Rendered images are resized as necessary and returned in optimal format (typically webp) by Next.js.

Tokens

  1. Place the image under /public/tokens folder.
  2. Name it so that it matches farm component returned from pf-core. E.g., if the farm component is named usdc, the filename will be usdc.png.
  3. Add the dominant color of the image to colors.ts. E.g. usdc: "#2775ca".

Protocols

  1. Place the image under /public/protocols folder.
  2. Name it so that it matches protocol returned from pf-core, with spaces removed and lower-cased. E.g., if the protocol is named Uniswap v2, the filename will be uniswapv2.png.
  3. Add the dominant color of the image to colors.ts. E.g. uniswapv2: "#ff007a".

Localization

The only rule to keep in mind when translating locale files is not to change the content inside <> and {} signs. Parentheses () have no special meaning and their content is meant to be translated.

For example:

// English
"yearly": "{{ percent }}% (yearly) <br /> <2>more info</2>",
// Slovak
"yearly": "{{ percent }}% (ročne) <br /> <2>viac informácií</2>",

Sometimes the order of words changes in the target language. If you need to reorder a string, make sure you also move the wrapping tags:

// English
"apy": "<strong>{{ percent }}%</strong> <1>APY/1>",
// Slovak
"apy": "<1>Ročný výnos</1> <strong>{{ percent }}%</strong>",

pickle-ui's People

Contributors

0xpenguin avatar 0xyyy avatar amatureape avatar ameliabradley avatar bcstryker avatar bigbrainbriner avatar cipioo avatar cryptokage1996 avatar eip1599 avatar janklimo avatar jdraths avatar kernelwhisperer avatar larrythecucumber321 avatar manymoneymanny avatar midaseth avatar mistermard avatar okjintao avatar psq avatar rawbdor avatar robstryker avatar sasicodes avatar theryanmiller avatar uravgdeveloper avatar yabirgb avatar zayuschka avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.