From c4d769c58260c7d254ab253739887f945b71f910 Mon Sep 17 00:00:00 2001 From: Kelechi Date: Thu, 20 Aug 2026 11:34:26 +0100 Subject: [PATCH] refactor: delete unreferenced components and the unused hiIQ ABI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Nothing imports any of these — verified by path and by exported identifier across src, i18n and messages, then confirmed by a clean tsc pass. - src/abis/hiIQABI.abi.ts (1.5k lines): getLockOverview talks to Alchemy with a hardcoded `0x18160ddd` totalSupply selector and never loads an ABI, so this has been dead since it landed - icons/1inch.tsx: a duplicate of one-inch.tsx exporting the same OneInchIcon name; exchanges.ts imports the latter - icons for QuickSwap, Bitget, Bithumb, Crypto.com, Fraxswap, IQ.wiki and SushiSwap: venues the current design dropped - svgs/: all four logo and hero-background variants, superseded by layouts/brand-logo and hero-orbits - transitions/InViewAnimateBottom.tsx: also broken — it never attached useInView's ref to a node, so `inView` was permanently false and the useAnimation controls were never bound to a component. The visible animation came from `whileInView` on the motion.div all along - ui/card.tsx, ui/container-scroll-animation.tsx, ui/popover.tsx: unused shadcn scaffolding Drops @radix-ui/react-popover (only popover.tsx) and react-intersection-observer (only InViewAnimateBottom.tsx). --- package.json | 4 +- pnpm-lock.yaml | 57 -- src/abis/hiIQABI.abi.ts | 786 ------------------ src/components/icons/1inch.tsx | 74 -- src/components/icons/QuickSwapIcon.tsx | 207 ----- src/components/icons/bitget-icon.tsx | 40 - src/components/icons/bithumb-icon.tsx | 54 -- src/components/icons/cryptocom-icon.tsx | 17 - src/components/icons/fraxswap.tsx | 27 - src/components/icons/iq-wiki.tsx | 81 -- src/components/icons/sushiswap.tsx | 82 -- src/components/svgs/BrainLogoWhite.tsx | 47 -- src/components/svgs/BraindaoLogo.tsx | 98 --- src/components/svgs/BraindaoLogoDark.tsx | 38 - src/components/svgs/HeroBackground.tsx | 7 - .../transitions/InViewAnimateBottom.tsx | 52 -- src/components/ui/card.tsx | 83 -- .../ui/container-scroll-animation.tsx | 159 ---- src/components/ui/popover.tsx | 31 - 19 files changed, 1 insertion(+), 1943 deletions(-) delete mode 100644 src/abis/hiIQABI.abi.ts delete mode 100644 src/components/icons/1inch.tsx delete mode 100644 src/components/icons/QuickSwapIcon.tsx delete mode 100644 src/components/icons/bitget-icon.tsx delete mode 100644 src/components/icons/bithumb-icon.tsx delete mode 100644 src/components/icons/cryptocom-icon.tsx delete mode 100644 src/components/icons/fraxswap.tsx delete mode 100644 src/components/icons/iq-wiki.tsx delete mode 100644 src/components/icons/sushiswap.tsx delete mode 100644 src/components/svgs/BrainLogoWhite.tsx delete mode 100644 src/components/svgs/BraindaoLogo.tsx delete mode 100644 src/components/svgs/BraindaoLogoDark.tsx delete mode 100644 src/components/svgs/HeroBackground.tsx delete mode 100644 src/components/transitions/InViewAnimateBottom.tsx delete mode 100644 src/components/ui/card.tsx delete mode 100644 src/components/ui/container-scroll-animation.tsx delete mode 100644 src/components/ui/popover.tsx diff --git a/package.json b/package.json index e8196d4f..1f9634ef 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,6 @@ }, "dependencies": { "@radix-ui/react-dropdown-menu": "^2.1.24", - "@radix-ui/react-popover": "^1.1.23", "@radix-ui/react-slot": "^1.3.3", "@t3-oss/env-nextjs": "^0.13.11", "axios": "^1.19.0", @@ -31,7 +30,6 @@ "react": "19.2.8", "react-dom": "19.2.8", "react-icons": "^5.7.0", - "react-intersection-observer": "^9.5.2", "tailwind-merge": "^3.6.0", "tailwindcss-animate": "^1.0.7", "zod": "^4.4.3" @@ -57,8 +55,8 @@ "node": ">=20.9.0", "pnpm": ">=9" }, + "//pnpm": "Build-time transitives pulled in by tailwindcss 3 (sucrase, chokidar, postcss-load-config). Tailwind 4 drops these deps outright, so remove this block with that upgrade.", "pnpm": { - "comment": "Build-time transitives pulled in by tailwindcss 3 (sucrase, chokidar, postcss-load-config). Tailwind 4 drops these deps outright, so remove this block with that upgrade.", "overrides": { "glob": "^10.5.0", "minimatch": "^9.0.7", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 65b23314..d115c6ae 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -18,9 +18,6 @@ importers: '@radix-ui/react-dropdown-menu': specifier: ^2.1.24 version: 2.1.24(@types/react-dom@19.2.4(@types/react@19.2.18))(@types/react@19.2.18)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@radix-ui/react-popover': - specifier: ^1.1.23 - version: 1.1.23(@types/react-dom@19.2.4(@types/react@19.2.18))(@types/react@19.2.18)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) '@radix-ui/react-slot': specifier: ^1.3.3 version: 1.3.3(@types/react@19.2.18)(react@19.2.8) @@ -63,9 +60,6 @@ importers: react-icons: specifier: ^5.7.0 version: 5.7.0(react@19.2.8) - react-intersection-observer: - specifier: ^9.5.2 - version: 9.16.0(react-dom@19.2.8(react@19.2.8))(react@19.2.8) tailwind-merge: specifier: ^3.6.0 version: 3.6.0 @@ -641,19 +635,6 @@ packages: '@types/react-dom': optional: true - '@radix-ui/react-popover@1.1.23': - resolution: {integrity: sha512-mw58MrBlyHWFisTOYignD0vf/3gdcgAR+9of1s9G/38CbFiUwH1nCDkc0AUM9IrXFgN5Ue8n45j9WCgyM1sbiQ==} - peerDependencies: - '@types/react': '*' - '@types/react-dom': '*' - react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc - peerDependenciesMeta: - '@types/react': - optional: true - '@types/react-dom': - optional: true - '@radix-ui/react-popper@1.3.7': resolution: {integrity: sha512-UsJrrd7w4wuKKTdvd/DNERVlwSlUcyXzjhyDwBk+3aPOsCjOY6ZSbxuw8E6lZTjjfP8Cpd0J8VVkrYUWyGYXyg==} peerDependencies: @@ -1517,15 +1498,6 @@ packages: peerDependencies: react: '*' - react-intersection-observer@9.16.0: - resolution: {integrity: sha512-w9nJSEp+DrW9KmQmeWHQyfaP6b03v+TdXynaoA964Wxt7mdR3An11z4NNCQgL4gKSK7y1ver2Fq+JKH6CWEzUA==} - peerDependencies: - react: ^17.0.0 || ^18.0.0 || ^19.0.0 - react-dom: ^17.0.0 || ^18.0.0 || ^19.0.0 - peerDependenciesMeta: - react-dom: - optional: true - react-remove-scroll-bar@2.3.8: resolution: {integrity: sha512-9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q==} engines: {node: '>=10'} @@ -2190,29 +2162,6 @@ snapshots: '@types/react': 19.2.18 '@types/react-dom': 19.2.4(@types/react@19.2.18) - '@radix-ui/react-popover@1.1.23(@types/react-dom@19.2.4(@types/react@19.2.18))(@types/react@19.2.18)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': - dependencies: - '@radix-ui/primitive': 1.1.7 - '@radix-ui/react-compose-refs': 1.1.5(@types/react@19.2.18)(react@19.2.8) - '@radix-ui/react-context': 1.2.2(@types/react@19.2.18)(react@19.2.8) - '@radix-ui/react-dismissable-layer': 1.1.19(@types/react-dom@19.2.4(@types/react@19.2.18))(@types/react@19.2.18)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@radix-ui/react-focus-guards': 1.1.6(@types/react@19.2.18)(react@19.2.8) - '@radix-ui/react-focus-scope': 1.1.16(@types/react-dom@19.2.4(@types/react@19.2.18))(@types/react@19.2.18)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@radix-ui/react-id': 1.1.4(@types/react@19.2.18)(react@19.2.8) - '@radix-ui/react-popper': 1.3.7(@types/react-dom@19.2.4(@types/react@19.2.18))(@types/react@19.2.18)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@radix-ui/react-portal': 1.1.17(@types/react-dom@19.2.4(@types/react@19.2.18))(@types/react@19.2.18)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@radix-ui/react-presence': 1.1.10(@types/react-dom@19.2.4(@types/react@19.2.18))(@types/react@19.2.18)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@radix-ui/react-primitive': 2.1.10(@types/react-dom@19.2.4(@types/react@19.2.18))(@types/react@19.2.18)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@radix-ui/react-slot': 1.3.3(@types/react@19.2.18)(react@19.2.8) - '@radix-ui/react-use-controllable-state': 1.2.6(@types/react@19.2.18)(react@19.2.8) - aria-hidden: 1.2.6 - react: 19.2.8 - react-dom: 19.2.8(react@19.2.8) - react-remove-scroll: 2.7.2(@types/react@19.2.18)(react@19.2.8) - optionalDependencies: - '@types/react': 19.2.18 - '@types/react-dom': 19.2.4(@types/react@19.2.18) - '@radix-ui/react-popper@1.3.7(@types/react-dom@19.2.4(@types/react@19.2.18))(@types/react@19.2.18)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': dependencies: '@floating-ui/react-dom': 2.1.6(react-dom@19.2.8(react@19.2.8))(react@19.2.8) @@ -2969,12 +2918,6 @@ snapshots: dependencies: react: 19.2.8 - react-intersection-observer@9.16.0(react-dom@19.2.8(react@19.2.8))(react@19.2.8): - dependencies: - react: 19.2.8 - optionalDependencies: - react-dom: 19.2.8(react@19.2.8) - react-remove-scroll-bar@2.3.8(@types/react@19.2.18)(react@19.2.8): dependencies: react: 19.2.8 diff --git a/src/abis/hiIQABI.abi.ts b/src/abis/hiIQABI.abi.ts deleted file mode 100644 index 5b1ead1a..00000000 --- a/src/abis/hiIQABI.abi.ts +++ /dev/null @@ -1,786 +0,0 @@ -const hiIQABI = [ - { - name: "CommitOwnership", - inputs: [ - { - type: "address", - name: "admin", - indexed: false, - }, - ], - anonymous: false, - type: "event", - }, - { - name: "ApplyOwnership", - inputs: [ - { - type: "address", - name: "admin", - indexed: false, - }, - ], - anonymous: false, - type: "event", - }, - { - name: "Deposit", - inputs: [ - { - type: "address", - name: "provider", - indexed: true, - }, - { - type: "uint256", - name: "value", - indexed: false, - }, - { - type: "uint256", - name: "locktime", - indexed: true, - }, - { - type: "int128", - name: "type", - indexed: false, - }, - { - type: "uint256", - name: "ts", - indexed: false, - }, - ], - anonymous: false, - type: "event", - }, - { - name: "Withdraw", - inputs: [ - { - type: "address", - name: "provider", - indexed: true, - }, - { - type: "uint256", - name: "value", - indexed: false, - }, - { - type: "uint256", - name: "ts", - indexed: false, - }, - ], - anonymous: false, - type: "event", - }, - { - name: "Supply", - inputs: [ - { - type: "uint256", - name: "prevSupply", - indexed: false, - }, - { - type: "uint256", - name: "supply", - indexed: false, - }, - ], - anonymous: false, - type: "event", - }, - { - outputs: [], - inputs: [ - { - type: "address", - name: "token_addr", - }, - { - type: "string", - name: "_name", - }, - { - type: "string", - name: "_symbol", - }, - { - type: "string", - name: "_version", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - name: "commit_transfer_ownership", - outputs: [], - inputs: [ - { - type: "address", - name: "addr", - }, - ], - stateMutability: "nonpayable", - type: "function", - gas: 37568, - }, - { - name: "apply_transfer_ownership", - outputs: [], - inputs: [], - stateMutability: "nonpayable", - type: "function", - gas: 38407, - }, - { - name: "commit_smart_wallet_checker", - outputs: [], - inputs: [ - { - type: "address", - name: "addr", - }, - ], - stateMutability: "nonpayable", - type: "function", - gas: 36278, - }, - { - name: "apply_smart_wallet_checker", - outputs: [], - inputs: [], - stateMutability: "nonpayable", - type: "function", - gas: 37005, - }, - { - name: "toggleEmergencyUnlock", - outputs: [], - inputs: [], - stateMutability: "nonpayable", - type: "function", - gas: 37038, - }, - { - name: "recoverERC20", - outputs: [], - inputs: [ - { - type: "address", - name: "token_addr", - }, - { - type: "uint256", - name: "amount", - }, - ], - stateMutability: "nonpayable", - type: "function", - gas: 4045, - }, - { - name: "get_last_user_slope", - outputs: [ - { - type: "int128", - name: "", - }, - ], - inputs: [ - { - type: "address", - name: "addr", - }, - ], - stateMutability: "view", - type: "function", - gas: 2600, - }, - { - name: "user_point_history__ts", - outputs: [ - { - type: "uint256", - name: "", - }, - ], - inputs: [ - { - type: "address", - name: "_addr", - }, - { - type: "uint256", - name: "_idx", - }, - ], - stateMutability: "view", - type: "function", - gas: 1703, - }, - { - name: "locked__end", - outputs: [ - { - type: "uint256", - name: "", - }, - ], - inputs: [ - { - type: "address", - name: "_addr", - }, - ], - stateMutability: "view", - type: "function", - gas: 1624, - }, - { - name: "checkpoint", - outputs: [], - inputs: [], - stateMutability: "nonpayable", - type: "function", - gas: 46119699, - }, - { - name: "deposit_for", - outputs: [], - inputs: [ - { - type: "address", - name: "_addr", - }, - { - type: "uint256", - name: "_value", - }, - ], - stateMutability: "nonpayable", - type: "function", - gas: 92414024, - }, - { - name: "create_lock", - outputs: [], - inputs: [ - { - type: "uint256", - name: "_value", - }, - { - type: "uint256", - name: "_unlock_time", - }, - ], - stateMutability: "nonpayable", - type: "function", - gas: 92415425, - }, - { - name: "increase_amount", - outputs: [], - inputs: [ - { - type: "uint256", - name: "_value", - }, - ], - stateMutability: "nonpayable", - type: "function", - gas: 92414846, - }, - { - name: "increase_unlock_time", - outputs: [], - inputs: [ - { - type: "uint256", - name: "_unlock_time", - }, - ], - stateMutability: "nonpayable", - type: "function", - gas: 92415493, - }, - { - name: "withdraw", - outputs: [], - inputs: [], - stateMutability: "nonpayable", - type: "function", - gas: 46291332, - }, - { - name: "balanceOf", - outputs: [ - { - type: "uint256", - name: "", - }, - ], - inputs: [ - { - type: "address", - name: "addr", - }, - ], - stateMutability: "view", - type: "function", - }, - { - name: "balanceOf", - outputs: [ - { - type: "uint256", - name: "", - }, - ], - inputs: [ - { - type: "address", - name: "addr", - }, - { - type: "uint256", - name: "_t", - }, - ], - stateMutability: "view", - type: "function", - }, - { - name: "balanceOfAt", - outputs: [ - { - type: "uint256", - name: "", - }, - ], - inputs: [ - { - type: "address", - name: "addr", - }, - { - type: "uint256", - name: "_block", - }, - ], - stateMutability: "view", - type: "function", - gas: 512868, - }, - { - name: "totalSupply", - outputs: [ - { - type: "uint256", - name: "", - }, - ], - inputs: [], - stateMutability: "view", - type: "function", - }, - { - name: "totalSupply", - outputs: [ - { - type: "uint256", - name: "", - }, - ], - inputs: [ - { - type: "uint256", - name: "t", - }, - ], - stateMutability: "view", - type: "function", - }, - { - name: "totalSupplyAt", - outputs: [ - { - type: "uint256", - name: "", - }, - ], - inputs: [ - { - type: "uint256", - name: "_block", - }, - ], - stateMutability: "view", - type: "function", - gas: 882020, - }, - { - name: "totalIQSupply", - outputs: [ - { - type: "uint256", - name: "", - }, - ], - inputs: [], - stateMutability: "view", - type: "function", - gas: 2116, - }, - { - name: "totalIQSupplyAt", - outputs: [ - { - type: "uint256", - name: "", - }, - ], - inputs: [ - { - type: "uint256", - name: "_block", - }, - ], - stateMutability: "view", - type: "function", - gas: 252170, - }, - { - name: "changeController", - outputs: [], - inputs: [ - { - type: "address", - name: "_newController", - }, - ], - stateMutability: "nonpayable", - type: "function", - gas: 36998, - }, - { - name: "token", - outputs: [ - { - type: "address", - name: "", - }, - ], - inputs: [], - stateMutability: "view", - type: "function", - gas: 1871, - }, - { - name: "supply", - outputs: [ - { - type: "uint256", - name: "", - }, - ], - inputs: [], - stateMutability: "view", - type: "function", - gas: 1901, - }, - { - name: "locked", - outputs: [ - { - type: "int128", - name: "amount", - }, - { - type: "uint256", - name: "end", - }, - ], - inputs: [ - { - type: "address", - name: "arg0", - }, - ], - stateMutability: "view", - type: "function", - gas: 3380, - }, - { - name: "epoch", - outputs: [ - { - type: "uint256", - name: "", - }, - ], - inputs: [], - stateMutability: "view", - type: "function", - gas: 1961, - }, - { - name: "point_history", - outputs: [ - { - type: "int128", - name: "bias", - }, - { - type: "int128", - name: "slope", - }, - { - type: "uint256", - name: "ts", - }, - { - type: "uint256", - name: "blk", - }, - { - type: "uint256", - name: "iq_amt", - }, - ], - inputs: [ - { - type: "uint256", - name: "arg0", - }, - ], - stateMutability: "view", - type: "function", - gas: 6280, - }, - { - name: "user_point_history", - outputs: [ - { - type: "int128", - name: "bias", - }, - { - type: "int128", - name: "slope", - }, - { - type: "uint256", - name: "ts", - }, - { - type: "uint256", - name: "blk", - }, - { - type: "uint256", - name: "iq_amt", - }, - ], - inputs: [ - { - type: "address", - name: "arg0", - }, - { - type: "uint256", - name: "arg1", - }, - ], - stateMutability: "view", - type: "function", - gas: 6525, - }, - { - name: "user_point_epoch", - outputs: [ - { - type: "uint256", - name: "", - }, - ], - inputs: [ - { - type: "address", - name: "arg0", - }, - ], - stateMutability: "view", - type: "function", - gas: 2266, - }, - { - name: "slope_changes", - outputs: [ - { - type: "int128", - name: "", - }, - ], - inputs: [ - { - type: "uint256", - name: "arg0", - }, - ], - stateMutability: "view", - type: "function", - gas: 2196, - }, - { - name: "controller", - outputs: [ - { - type: "address", - name: "", - }, - ], - inputs: [], - stateMutability: "view", - type: "function", - gas: 2111, - }, - { - name: "transfersEnabled", - outputs: [ - { - type: "bool", - name: "", - }, - ], - inputs: [], - stateMutability: "view", - type: "function", - gas: 2141, - }, - { - name: "emergencyUnlockActive", - outputs: [ - { - type: "bool", - name: "", - }, - ], - inputs: [], - stateMutability: "view", - type: "function", - gas: 2171, - }, - { - name: "name", - outputs: [ - { - type: "string", - name: "", - }, - ], - inputs: [], - stateMutability: "view", - type: "function", - gas: 8603, - }, - { - name: "symbol", - outputs: [ - { - type: "string", - name: "", - }, - ], - inputs: [], - stateMutability: "view", - type: "function", - gas: 7656, - }, - { - name: "version", - outputs: [ - { - type: "string", - name: "", - }, - ], - inputs: [], - stateMutability: "view", - type: "function", - gas: 7686, - }, - { - name: "decimals", - outputs: [ - { - type: "uint256", - name: "", - }, - ], - inputs: [], - stateMutability: "view", - type: "function", - gas: 2291, - }, - { - name: "future_smart_wallet_checker", - outputs: [ - { - type: "address", - name: "", - }, - ], - inputs: [], - stateMutability: "view", - type: "function", - gas: 2321, - }, - { - name: "smart_wallet_checker", - outputs: [ - { - type: "address", - name: "", - }, - ], - inputs: [], - stateMutability: "view", - type: "function", - gas: 2351, - }, - { - name: "admin", - outputs: [ - { - type: "address", - name: "", - }, - ], - inputs: [], - stateMutability: "view", - type: "function", - gas: 2381, - }, - { - name: "future_admin", - outputs: [ - { - type: "address", - name: "", - }, - ], - inputs: [], - stateMutability: "view", - type: "function", - gas: 2411, - }, -] as const; - -export default hiIQABI; diff --git a/src/components/icons/1inch.tsx b/src/components/icons/1inch.tsx deleted file mode 100644 index 9ca99d10..00000000 --- a/src/components/icons/1inch.tsx +++ /dev/null @@ -1,74 +0,0 @@ -import { Icon, type IconProps } from "."; - -export const OneInchIcon = (props: IconProps) => ( - - - - - - - - - - - - - - - - - - - - - - - -); diff --git a/src/components/icons/QuickSwapIcon.tsx b/src/components/icons/QuickSwapIcon.tsx deleted file mode 100644 index d8d60ff1..00000000 --- a/src/components/icons/QuickSwapIcon.tsx +++ /dev/null @@ -1,207 +0,0 @@ -const QuickSwapIcon = (props: React.SVGProps) => { - return ( - - QuickSwap - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ); -}; - -export default QuickSwapIcon; diff --git a/src/components/icons/bitget-icon.tsx b/src/components/icons/bitget-icon.tsx deleted file mode 100644 index d6348e3d..00000000 --- a/src/components/icons/bitget-icon.tsx +++ /dev/null @@ -1,40 +0,0 @@ -import type { IconProps } from "."; - -export const Bitget = (props: IconProps) => { - return ( - - Bitget - - - - - - - - - - - - ); -}; diff --git a/src/components/icons/bithumb-icon.tsx b/src/components/icons/bithumb-icon.tsx deleted file mode 100644 index 7acc94f4..00000000 --- a/src/components/icons/bithumb-icon.tsx +++ /dev/null @@ -1,54 +0,0 @@ -import type { IconProps } from "."; - -export const Bithumb = (props: IconProps) => { - return ( - - Bithumb - - - - - - - - - - - - - - - - - - - ); -}; diff --git a/src/components/icons/cryptocom-icon.tsx b/src/components/icons/cryptocom-icon.tsx deleted file mode 100644 index 31c98c73..00000000 --- a/src/components/icons/cryptocom-icon.tsx +++ /dev/null @@ -1,17 +0,0 @@ -import type { IconProps } from "."; - -export const CryptoCom = (props: IconProps) => { - return ( - - Crypto.com - - - - - - ); -}; diff --git a/src/components/icons/fraxswap.tsx b/src/components/icons/fraxswap.tsx deleted file mode 100644 index 69734605..00000000 --- a/src/components/icons/fraxswap.tsx +++ /dev/null @@ -1,27 +0,0 @@ -import React from "react"; -import { Icon, type IconProps } from "."; - -export const Fraxswap = (props: IconProps) => { - return ( - - - - - - ); -}; diff --git a/src/components/icons/iq-wiki.tsx b/src/components/icons/iq-wiki.tsx deleted file mode 100644 index 1bd429fb..00000000 --- a/src/components/icons/iq-wiki.tsx +++ /dev/null @@ -1,81 +0,0 @@ -import { Icon, type IconProps } from "."; - -export const IqWikiIcon = (props: IconProps) => { - return ( - - - - - - - - - - - - - - ); -}; diff --git a/src/components/icons/sushiswap.tsx b/src/components/icons/sushiswap.tsx deleted file mode 100644 index 30106855..00000000 --- a/src/components/icons/sushiswap.tsx +++ /dev/null @@ -1,82 +0,0 @@ -import React from "react"; -import { Icon, type IconProps } from "."; - -export const SushiSwap = (props: IconProps) => { - return ( - - - - - - - - - - - - - - - - - - - - - - - - - - ); -}; diff --git a/src/components/svgs/BrainLogoWhite.tsx b/src/components/svgs/BrainLogoWhite.tsx deleted file mode 100644 index 3c750798..00000000 --- a/src/components/svgs/BrainLogoWhite.tsx +++ /dev/null @@ -1,47 +0,0 @@ -export const BraindaoLogoWhite = () => { - return ( - - braindao logo white - - - - - - - - ); -}; diff --git a/src/components/svgs/BraindaoLogo.tsx b/src/components/svgs/BraindaoLogo.tsx deleted file mode 100644 index 86e34e1f..00000000 --- a/src/components/svgs/BraindaoLogo.tsx +++ /dev/null @@ -1,98 +0,0 @@ -export const BraindaoLogo = () => { - return ( - - braindao logo - - - - - - - - - - - - - - - - - - - - ); -}; diff --git a/src/components/svgs/BraindaoLogoDark.tsx b/src/components/svgs/BraindaoLogoDark.tsx deleted file mode 100644 index a3f0f799..00000000 --- a/src/components/svgs/BraindaoLogoDark.tsx +++ /dev/null @@ -1,38 +0,0 @@ -export const BraindaoLogoDark = () => { - return ( - - braindao logo - - - - - - - ); -}; diff --git a/src/components/svgs/HeroBackground.tsx b/src/components/svgs/HeroBackground.tsx deleted file mode 100644 index b396b759..00000000 --- a/src/components/svgs/HeroBackground.tsx +++ /dev/null @@ -1,7 +0,0 @@ -import Image from "next/image"; - -export const HeroBackground = (p: { className: string }) => ( -
- hero bg -
-); diff --git a/src/components/transitions/InViewAnimateBottom.tsx b/src/components/transitions/InViewAnimateBottom.tsx deleted file mode 100644 index 1ca307ad..00000000 --- a/src/components/transitions/InViewAnimateBottom.tsx +++ /dev/null @@ -1,52 +0,0 @@ -"use client"; - -import { motion, useAnimation } from "framer-motion"; -import type React from "react"; -import { useEffect, useState } from "react"; -import { useInView } from "react-intersection-observer"; - -export type TInViewAnimate = { - children: React.ReactNode; - className?: string; - delay?: number; -}; -const InViewAnimateBottom: React.FC = ({ - children, - className, -}) => { - const { inView } = useInView(); - const animation = useAnimation(); - const [hasAnimated, setHasAnimated] = useState(false); - - useEffect(() => { - if (inView && !hasAnimated) { - setHasAnimated(true); - animation.start({ - opacity: 1, - transition: { - type: "tween", - duration: 1.5, - }, - }); - } - if (!inView && !hasAnimated) { - animation.start({ - opacity: 0, - }); - } - }, [animation, inView, hasAnimated]); - - return ( - - {children} - - ); -}; - -export default InViewAnimateBottom; diff --git a/src/components/ui/card.tsx b/src/components/ui/card.tsx deleted file mode 100644 index 6cee7eda..00000000 --- a/src/components/ui/card.tsx +++ /dev/null @@ -1,83 +0,0 @@ -import * as React from "react"; - -import { cn } from "@/lib/utils"; - -const Card = React.forwardRef< - HTMLDivElement, - React.HTMLAttributes ->(({ className, ...props }, ref) => ( -
-)); -Card.displayName = "Card"; - -const CardHeader = React.forwardRef< - HTMLDivElement, - React.HTMLAttributes ->(({ className, ...props }, ref) => ( -
-)); -CardHeader.displayName = "CardHeader"; - -const CardTitle = React.forwardRef< - HTMLDivElement, - React.HTMLAttributes ->(({ className, ...props }, ref) => ( -
-)); -CardTitle.displayName = "CardTitle"; - -const CardDescription = React.forwardRef< - HTMLDivElement, - React.HTMLAttributes ->(({ className, ...props }, ref) => ( -
-)); -CardDescription.displayName = "CardDescription"; - -const CardContent = React.forwardRef< - HTMLDivElement, - React.HTMLAttributes ->(({ className, ...props }, ref) => ( -
-)); -CardContent.displayName = "CardContent"; - -const CardFooter = React.forwardRef< - HTMLDivElement, - React.HTMLAttributes ->(({ className, ...props }, ref) => ( -
-)); -CardFooter.displayName = "CardFooter"; - -export { - Card, - CardHeader, - CardFooter, - CardTitle, - CardDescription, - CardContent, -}; diff --git a/src/components/ui/container-scroll-animation.tsx b/src/components/ui/container-scroll-animation.tsx deleted file mode 100644 index 09bc8d6b..00000000 --- a/src/components/ui/container-scroll-animation.tsx +++ /dev/null @@ -1,159 +0,0 @@ -"use client"; -import { - type MotionValue, - motion, - useScroll, - useTransform, -} from "framer-motion"; -import React, { useRef } from "react"; - -export const ContainerScroll = ({ - titleComponent, - children, -}: { - titleComponent: string | React.ReactNode; - children: React.ReactNode; -}) => { - const containerRef = useRef(null); - const { scrollYProgress } = useScroll({ - target: containerRef, - }); - const [isMobile, setIsMobile] = React.useState(false); - - React.useEffect(() => { - const checkMobile = () => { - setIsMobile(window.innerWidth <= 768); - }; - checkMobile(); - window.addEventListener("resize", checkMobile); - return () => { - window.removeEventListener("resize", checkMobile); - }; - }, []); - - const scaleDimensions = () => { - return isMobile ? [0.7, 0.9] : [1.05, 1]; - }; - - const rotate = useTransform(scrollYProgress, [0, 1], [20, 0]); - const scale = useTransform(scrollYProgress, [0, 1], scaleDimensions()); - const translate = useTransform(scrollYProgress, [0, 1], [0, -100]); - - return ( -
-
-
- - {children} - -
-
- ); -}; - -// New compact version with reduced height and padding -export const CompactContainerScroll = ({ - titleComponent, - children, -}: { - titleComponent: string | React.ReactNode; - children: React.ReactNode; -}) => { - const containerRef = useRef(null); - const { scrollYProgress } = useScroll({ - target: containerRef, - }); - const [isMobile, setIsMobile] = React.useState(false); - - React.useEffect(() => { - const checkMobile = () => { - setIsMobile(window.innerWidth <= 768); - }; - checkMobile(); - window.addEventListener("resize", checkMobile); - return () => { - window.removeEventListener("resize", checkMobile); - }; - }, []); - - const scaleDimensions = () => { - return isMobile ? [0.7, 0.9] : [1.05, 1]; - }; - - const rotate = useTransform(scrollYProgress, [0, 1], [20, 0]); - const scale = useTransform(scrollYProgress, [0, 1], scaleDimensions()); - const translate = useTransform(scrollYProgress, [0, 1], [0, -100]); - - return ( -
-
-
- - {children} - -
-
- ); -}; - -export const Header = ({ - translate, - titleComponent, -}: { - translate: MotionValue; - titleComponent: string | React.ReactNode; -}) => { - return ( - - {titleComponent} - - ); -}; - -export const Card = ({ - rotate, - scale, - children, -}: { - rotate: MotionValue; - scale: MotionValue; - translate: MotionValue; - children: React.ReactNode; -}) => { - return ( - -
- {children} -
-
- ); -}; diff --git a/src/components/ui/popover.tsx b/src/components/ui/popover.tsx deleted file mode 100644 index 410b87a6..00000000 --- a/src/components/ui/popover.tsx +++ /dev/null @@ -1,31 +0,0 @@ -"use client"; - -import * as PopoverPrimitive from "@radix-ui/react-popover"; -import * as React from "react"; - -import { cn } from "@/lib/utils"; - -const Popover = PopoverPrimitive.Root; - -const PopoverTrigger = PopoverPrimitive.Trigger; - -const PopoverContent = React.forwardRef< - React.ElementRef, - React.ComponentPropsWithoutRef ->(({ className, align = "center", sideOffset = 4, ...props }, ref) => ( - - - -)); -PopoverContent.displayName = PopoverPrimitive.Content.displayName; - -export { Popover, PopoverTrigger, PopoverContent };