From 886ae38c2584ab29e23b58fc1f1943360b932789 Mon Sep 17 00:00:00 2001 From: Adrian Timpau Date: Wed, 20 Mar 2024 22:56:53 +0200 Subject: [PATCH] Reskin (#19) * v1 * add buttons * remove BreakdownModal * remove middleware * fix btn-square * remove pyth tag manager * temp disable useLayoutEffect for nav to work * moday style * fix modal * fix disclaimer * run prettier * minor adjustments to make pre-commit work --------- Co-authored-by: Sebastian Scatularo --- frontend/components/Box.tsx | 2 +- frontend/components/BoxTitle.tsx | 9 + frontend/components/DiscordButton.tsx | 4 +- frontend/components/Layout.tsx | 86 ++--- frontend/components/Modal.tsx | 2 +- frontend/components/Tooltip.tsx | 2 +- frontend/components/buttons/Button.tsx | 6 +- frontend/components/modal/Disclaimer.tsx | 4 +- .../components/modal/ModalCloseButton.tsx | 2 +- frontend/components/modal/ModalWrapper.tsx | 2 +- .../components/table/TotalAllocationRow.tsx | 2 +- frontend/components/wallets/WalletButton.tsx | 10 +- frontend/images/bg-svg.svg | 360 ++++++++++++++++++ frontend/images/bg.webp | Bin 0 -> 332216 bytes frontend/images/close.inline.svg | 2 +- frontend/images/telegram.inline.svg | 4 +- frontend/images/twitter.inline.svg | 4 +- frontend/middleware.js | 57 --- frontend/next-seo.config.js | 22 ++ frontend/pages/_app.tsx | 47 +-- frontend/pages/_document.tsx | 6 +- frontend/pages/verify-eligibility/index.tsx | 5 +- frontend/public/airdrop.jpg | Bin 0 -> 1038205 bytes frontend/public/android-chrome-192x192.png | Bin 3420 -> 9970 bytes frontend/public/android-chrome-512x512.png | Bin 8471 -> 16213 bytes frontend/public/apple-touch-icon.png | Bin 3293 -> 9193 bytes frontend/public/browserconfig.xml | 2 +- frontend/public/favicon-16x16.png | Bin 965 -> 707 bytes frontend/public/favicon-32x32.png | Bin 1453 -> 1316 bytes frontend/public/favicon-dark.png | Bin 22292 -> 4678 bytes frontend/public/favicon.ico | Bin 0 -> 15086 bytes frontend/public/favicon.png | Bin 21227 -> 5145 bytes frontend/public/mstile-144x144.png | Bin 0 -> 6564 bytes frontend/public/mstile-150x150.png | Bin 3678 -> 6738 bytes frontend/public/mstile-310x150.png | Bin 0 -> 6781 bytes frontend/public/mstile-310x310.png | Bin 0 -> 14349 bytes frontend/public/mstile-70x70.png | Bin 0 -> 4325 bytes frontend/public/orb.png | Bin 596998 -> 0 bytes frontend/public/pyth-logo-white.svg | 4 - frontend/public/pyth.svg | 23 -- frontend/public/safari-pinned-tab.svg | 123 +++--- frontend/public/site.webmanifest | 8 +- frontend/public/wormhole-white.svg | 14 + frontend/sections/ClaimStatus.tsx | 26 +- frontend/sections/LogInWithSolana.tsx | 13 +- frontend/sections/LoggedInSolana.tsx | 13 +- frontend/sections/PastActivity.tsx | 5 +- frontend/sections/SignAndClaim.tsx | 13 +- frontend/sections/SignForEligibleWallets.tsx | 29 +- frontend/sections/TokensReceived.tsx | 29 +- frontend/sections/WalletsEligibility.tsx | 27 +- frontend/sections/Welcome.tsx | 26 +- frontend/styles/globals.css | 90 ++++- frontend/tailwind.config.js | 61 +-- 54 files changed, 738 insertions(+), 406 deletions(-) create mode 100644 frontend/components/BoxTitle.tsx create mode 100644 frontend/images/bg-svg.svg create mode 100644 frontend/images/bg.webp delete mode 100644 frontend/middleware.js create mode 100644 frontend/next-seo.config.js create mode 100644 frontend/public/airdrop.jpg create mode 100644 frontend/public/favicon.ico create mode 100644 frontend/public/mstile-144x144.png create mode 100644 frontend/public/mstile-310x150.png create mode 100644 frontend/public/mstile-310x310.png create mode 100644 frontend/public/mstile-70x70.png delete mode 100644 frontend/public/orb.png delete mode 100644 frontend/public/pyth-logo-white.svg delete mode 100644 frontend/public/pyth.svg create mode 100644 frontend/public/wormhole-white.svg diff --git a/frontend/components/Box.tsx b/frontend/components/Box.tsx index ca05642c..6f774c2e 100644 --- a/frontend/components/Box.tsx +++ b/frontend/components/Box.tsx @@ -2,7 +2,7 @@ import { ReactNode } from 'react' export function Box({ children }: { children: ReactNode }) { return ( -
+
{children}
) diff --git a/frontend/components/BoxTitle.tsx b/frontend/components/BoxTitle.tsx new file mode 100644 index 00000000..6a524642 --- /dev/null +++ b/frontend/components/BoxTitle.tsx @@ -0,0 +1,9 @@ +import { ReactNode } from 'react' + +export function BoxTitle({ children }: { children: ReactNode }) { + return ( +

+ {children} +

+ ) +} diff --git a/frontend/components/DiscordButton.tsx b/frontend/components/DiscordButton.tsx index 79146d6b..bf4485bb 100644 --- a/frontend/components/DiscordButton.tsx +++ b/frontend/components/DiscordButton.tsx @@ -45,9 +45,7 @@ export function DiscordButton({ disableOnAuth }: DiscordButtonProps) { return ( {modal && } @@ -136,7 +136,7 @@ export type SingleWalletViewProps = { export function SingleWalletView({ wallet, onSelect }: SingleWalletViewProps) { return (