Skip to content

Commit

Permalink
feat: update landing style (#570)
Browse files Browse the repository at this point in the history
* feat: update landing style

* fix: return animation

* chore: bump lib

* chore: remove bunlock

* chore: return bunlock

* chore: fix build attempt

* chore: fix build attempt

* chore: remove bunlock

* chore: bump
  • Loading branch information
w84april authored Jul 24, 2024
1 parent 240271b commit 027eaf9
Show file tree
Hide file tree
Showing 9 changed files with 243 additions and 182 deletions.
20 changes: 19 additions & 1 deletion apps/common/components/Apps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ export enum AppName {
VEYFI = 'veYFI',
YETH = 'yETH',
YPRISMA = 'yPrisma',
JUICED = 'Juiced'
JUICED = 'Juiced',
GIMME = 'Gimme'
}

type TApp = {
Expand Down Expand Up @@ -60,6 +61,23 @@ export const APPS: {[key in AppName]: TApp} = {
/>
)
},
Gimme: {
name: `${AppName.GIMME} Vaults`,
href: 'https://gimme.mom',
menu: [],
manifest: {},
icon: (
<Image
className={'size-8'}
src={'/gimme.png'}
width={64}
height={64}
alt={'gimme'}
loading={'eager'}
priority
/>
)
},
Vaults: {
name: `${AppName.VAULTS} V2`,
href: '/vaults',
Expand Down
6 changes: 4 additions & 2 deletions apps/common/components/SearchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ type TSearchBar = {
onSearch: (searchValue: string) => void;
className?: string;
iconClassName?: string;
inputClassName?: string;
};

export function SearchBar(props: TSearchBar): ReactElement {
Expand All @@ -22,9 +23,10 @@ export function SearchBar(props: TSearchBar): ReactElement {
<input
id={'search'}
suppressHydrationWarning
className={
className={cl(
props.inputClassName,
'h-10 w-full overflow-x-scroll border-none bg-transparent px-0 py-2 text-base outline-none scrollbar-none placeholder:text-neutral-400'
}
)}
type={'text'}
placeholder={props.searchPlaceholder}
value={props.searchValue || ''}
Expand Down
5 changes: 2 additions & 3 deletions apps/common/contexts/useYearn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ const defaultToken: TYToken = {
chainID: 1,
value: 0,
stakingValue: 0,
balance: zeroNormalizedBN,
supportedZaps: []
balance: zeroNormalizedBN
};

const YearnContext = createContext<TYearnContext>({
Expand Down Expand Up @@ -102,7 +101,7 @@ export const YearnContextApp = memo(function YearnContextApp({children}: {childr
const {address: userAddress} = useWeb3();
const {value: maxLoss, set: set_maxLoss} = useLocalStorageValue<bigint>('yearn.fi/max-loss', {
defaultValue: DEFAULT_MAX_LOSS,
parse: (str, fallback): bigint => (str ? deserialize(str) : fallback ?? DEFAULT_MAX_LOSS),
parse: (str, fallback): bigint => (str ? deserialize(str) : (fallback ?? DEFAULT_MAX_LOSS)),
stringify: (data: bigint): string => serialize(data)
});
const {value: zapSlippage, set: set_zapSlippage} = useLocalStorageValue<number>('yearn.fi/zap-slippage', {
Expand Down
Binary file modified bun.lockb
Binary file not shown.
172 changes: 86 additions & 86 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,88 +1,88 @@
{
"name": "yearnfi",
"version": "0.3.7",
"scripts": {
"dev": "next",
"inspect": "NODE_OPTIONS='--inspect' next",
"dev:ts": "tsc --watch",
"start": "tsc && next build && next start",
"build": "tsc && next build",
"export": "tsc && next build && next export -o ipfs",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"prettier": "prettier --check \"./**/**/*.{json,js,ts,tsx,scss}\"",
"prettier-format": "prettier --config .prettierrc \"./**/**/*.{json,js,ts,tsx,scss,md}\" --write",
"tslint": "tsc -p tsconfig.json --noEmit",
"bump": "bump",
"prepare": "husky install",
"test": "vitest run"
},
"dependencies": {
"@builtbymom/web3": "0.0.141",
"@cowprotocol/cow-sdk": "2.1.0",
"@headlessui/react": "^2.0.4",
"@rainbow-me/rainbowkit": "^2.1.3",
"@tailwindcss/typography": "^0.5.13",
"@tanstack/react-query": "^5.50.1",
"@wagmi/core": "^2.11.7",
"@yearn-finance/web-lib": "4.0.6",
"axios": "^1.7.2",
"ethers": "5.7.2",
"framer-motion": "^11.2.10",
"graphql": "^16.8.2",
"graphql-request": "^7.0.1",
"next": "^14.2.4",
"next-plausible": "^3.12.0",
"next-pwa": "^5.6.0",
"nprogress": "^0.2.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-paginate": "^8.2.0",
"recharts": "^2.12.7",
"swr": "^2.2.5",
"viem": "^2.17.3",
"vite": "^5.2.13",
"wagmi": "^2.10.10",
"xxhashjs": "^0.2.2",
"zod": "^3.23.8"
},
"devDependencies": {
"@next/bundle-analyzer": "^14.2.4",
"@next/eslint-plugin-next": "^14.2.4",
"@testing-library/react": "^16.0.0",
"@types/node": "^20.14.2",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^7.13.0",
"@typescript-eslint/parser": "^7.13.0",
"@vitejs/plugin-react": "^4.3.1",
"autoprefixer": "^10.4.19",
"babel-loader": "^9.1.3",
"bump": "^0.2.5",
"eslint": "^8.57.0",
"eslint-config-next": "^14.2.4",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-brackets": "^0.1.3",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-react": "^7.34.2",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-simple-import-sort": "^12.1.0",
"eslint-plugin-tailwindcss": "^3.17.3",
"eslint-plugin-unused-imports": "^4.0.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.7",
"next-transpile-modules": "^10.0.1",
"postcss": "^8.4.38",
"postcss-import": "^16.1.0",
"postcss-nesting": "^12.1.5",
"prettier": "^3.3.2",
"sass": "^1.77.5",
"stylelint": "^16.6.1",
"stylelint-config-standard": "^36.0.0",
"tailwindcss": "^3.4.4",
"ts-loader": "^9.5.1",
"typescript": "^5.5.3",
"vitest": "^1.6.0",
"webpack": "^5.92.1"
}
"name": "yearnfi",
"version": "0.3.7",
"scripts": {
"dev": "next",
"inspect": "NODE_OPTIONS='--inspect' next",
"dev:ts": "tsc --watch",
"start": "tsc && next build && next start",
"build": "tsc && next build",
"export": "tsc && next build && next export -o ipfs",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"prettier": "prettier --check \"./**/**/*.{json,js,ts,tsx,scss}\"",
"prettier-format": "prettier --config .prettierrc \"./**/**/*.{json,js,ts,tsx,scss,md}\" --write",
"tslint": "tsc -p tsconfig.json --noEmit",
"bump": "bump",
"prepare": "husky install",
"test": "vitest run"
},
"dependencies": {
"@builtbymom/web3": "0.0.141",
"@cowprotocol/cow-sdk": "2.1.0",
"@headlessui/react": "^2.0.4",
"@rainbow-me/rainbowkit": "^2.1.3",
"@tailwindcss/typography": "^0.5.13",
"@tanstack/react-query": "^5.50.1",
"@wagmi/core": "^2.11.7",
"@yearn-finance/web-lib": "4.0.10",
"axios": "^1.7.2",
"ethers": "5.7.2",
"framer-motion": "^11.2.10",
"graphql": "^16.8.2",
"graphql-request": "^7.0.1",
"next": "^14.2.4",
"next-plausible": "^3.12.0",
"next-pwa": "^5.6.0",
"nprogress": "^0.2.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-paginate": "^8.2.0",
"recharts": "^2.12.7",
"swr": "^2.2.5",
"viem": "^2.17.3",
"vite": "^5.2.13",
"wagmi": "^2.10.10",
"xxhashjs": "^0.2.2",
"zod": "^3.23.8"
},
"devDependencies": {
"@next/bundle-analyzer": "^14.2.4",
"@next/eslint-plugin-next": "^14.2.4",
"@testing-library/react": "^16.0.0",
"@types/node": "^20.14.2",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^7.13.0",
"@typescript-eslint/parser": "^7.13.0",
"@vitejs/plugin-react": "^4.3.1",
"autoprefixer": "^10.4.19",
"babel-loader": "^9.1.3",
"bump": "^0.2.5",
"eslint": "^8.57.0",
"eslint-config-next": "^14.2.4",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-brackets": "^0.1.3",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-react": "^7.34.2",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-simple-import-sort": "^12.1.0",
"eslint-plugin-tailwindcss": "^3.17.3",
"eslint-plugin-unused-imports": "^4.0.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.7",
"next-transpile-modules": "^10.0.1",
"postcss": "^8.4.38",
"postcss-import": "^16.1.0",
"postcss-nesting": "^12.1.5",
"prettier": "^3.3.2",
"sass": "^1.77.5",
"stylelint": "^16.6.1",
"stylelint-config-standard": "^36.0.0",
"tailwindcss": "^3.4.4",
"ts-loader": "^9.5.1",
"typescript": "^5.5.3",
"vitest": "^1.6.0",
"webpack": "^5.92.1"
}
}
Loading

0 comments on commit 027eaf9

Please sign in to comment.