From 3f53ff6ee552b288f056a4643ceeaf75a98f4a33 Mon Sep 17 00:00:00 2001 From: Jay Date: Fri, 5 Apr 2024 15:06:04 +0800 Subject: [PATCH] refactor: update width of header and footer (#685) --- src/app/globals.css | 4 +- src/components/footer.tsx | 93 ++++++++++++++--------------- src/components/header.tsx | 120 ++++++++++++++++++-------------------- 3 files changed, 104 insertions(+), 113 deletions(-) diff --git a/src/app/globals.css b/src/app/globals.css index aa7b9b82..9a42eca7 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -41,10 +41,10 @@ body { @apply h-[64px]; } .app-footer { - @apply h-[58px]; + @apply h-[48px]; } .app-main { - min-height: calc(100vh - 64px - 58px); + min-height: calc(100vh - 64px - 48px); @apply mt-[64px]; } diff --git a/src/components/footer.tsx b/src/components/footer.tsx index 7c8dc44c..902927dd 100644 --- a/src/components/footer.tsx +++ b/src/components/footer.tsx @@ -24,69 +24,64 @@ export default function Footer() { }, []); return ( -
-
- {/* Copyright */} - {`© ${new Date().getFullYear()} Helix Bridge`} +
+ {`© ${new Date().getFullYear()} Helix Bridge`} -
+
+ + Explorer + + + xToken + + + Docs + -
- - Explorer - + {mainnetOrTestnet && ( - xToken + {mainnetOrTestnet.label} - - Docs - - - {mainnetOrTestnet && ( - - {mainnetOrTestnet.label} - - )} + )} -
+
- - Github - - - Twitter - - - Discord - - - Email - -
+ + Github + + + Twitter + + + Discord + + + Email +
); } -function SocialLink({ children, href }: PropsWithChildren<{ href: string }>) { +function Social({ children, href }: PropsWithChildren<{ href: string }>) { return ( -
-
- {/* Left */} -
- {/* Logo */} -
- - Logo - - {!isProduction() && ( -
- testnet -
- )} -
- - {/* Navigations */} -
- {navigationsConfig.map(({ href, label, external, soon, disabled }) => - external ? ( - - {label} - - ) : soon || disabled ? ( - - - {label} - - - ) : ( - - {label} - - ), - )} -
+
+ {/* Left */} +
+ {/* Logo */} +
+ + Logo + + {!isProduction() && ( +
+ testnet +
+ )}
- {/* Right */} + {/* Navigations */}
- - - + {navigationsConfig.map(({ href, label, external, soon, disabled }) => + external ? ( + + {label} + + ) : soon || disabled ? ( + + {label} + + ) : ( + + {label} + + ), + )}
- Menu
+ + {/* Right */} +
+ + + +
+ Menu