From bebb27e600e92db2ddf8f81e0cb422f5940c989b Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Sun, 31 Mar 2024 05:01:26 +0100 Subject: [PATCH] header and footer components --- app/page.module.css | 26 ----------------------- app/page.tsx | 14 ++++++------ components/Footer/Footer.module.css | 22 +++++++++++++++++++ components/Footer/Footer.tsx | 18 ++++++++++++++++ components/Footer/index.tsx | 1 + components/Header/Header.module.css | 15 +++++++++++++ components/Header/Header.tsx | 11 ++++++++++ components/Header/index.tsx | 1 + components/ResultRow/ResultRow.module.css | 9 +++++++- 9 files changed, 82 insertions(+), 35 deletions(-) create mode 100644 components/Footer/Footer.module.css create mode 100644 components/Footer/Footer.tsx create mode 100644 components/Footer/index.tsx create mode 100644 components/Header/Header.module.css create mode 100644 components/Header/Header.tsx create mode 100644 components/Header/index.tsx diff --git a/app/page.module.css b/app/page.module.css index 1e781db..8c8dcaa 100644 --- a/app/page.module.css +++ b/app/page.module.css @@ -2,22 +2,6 @@ flex: 1 0 auto; } -.title, -.description { - color: rgb(var(--foreground-rgb-highlight)); - max-width: var(--max-width); - margin: auto; -} - -.title { - font-size: clamp(1.3rem, 10vw, 2.5rem); - margin-top: 5vh; -} - -.description { - font-size: clamp(1.1rem, 10vw, 1.5rem); -} - .grid { display: grid; gap: 1.5rem; @@ -33,13 +17,3 @@ max-width: calc(var(--max-width) * 1.5); margin: 3rem auto; } - -.footer { - flex-shrink: 0; - font-size: 0.8rem; - width: 100%; - max-width: var(--max-width); - margin: 3rem auto 0 auto; - padding-top: 2rem; - border-top: 1px solid rgba(var(--foreground-rgb), 0.2); -} diff --git a/app/page.tsx b/app/page.tsx index 0f9ace6..1f40f8c 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,16 +1,15 @@ import styles from './page.module.css' -import { metadata } from './layout' import { Swap, Buy } from '@/components/Strategies' import { Content } from '@/components/Content' import { CalculationBase } from '@/components/CalculationBaseOutput' +import { Header } from '@/components/Header' +import { Footer } from '@/components/Footer' export default function Home() { return ( <> -
-

{`${metadata.title}`}

-

{`${metadata.description}`}

-
+
+
@@ -22,9 +21,8 @@ export default function Home() {
-
- Send ❤️ and memecoins to krema.eth -
+ +