diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 637a13f..078d83b 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,9 +1,10 @@ import { PropsWithChildren } from "react"; -import LandingLayout from "@/components/LandingLayout"; import type { Metadata } from "next"; import { twMerge } from "tailwind-merge"; import localFont from "next/font/local"; import "./globals.css"; +import { Header } from "@/components/Header"; +import Footer from "@/components/Footer"; const geistSans = localFont({ src: "./fonts/GeistVF.woff", @@ -17,7 +18,7 @@ const geistMono = localFont({ }); export const metadata: Metadata = { - title: "Next.js Polar starter kit", + title: "Polar | Next.js starter kit", description: "An easy to use setup for polar.sh with Next.js", }; @@ -33,7 +34,11 @@ export default function Layout({ children }: PropsWithChildren) { `${geistSans.variable} ${geistMono.variable} antialiased` )} > - {children} +
+
+ {children} +
); diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index e59c2e8..d7e95cb 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -3,17 +3,16 @@ import Link, { LinkProps } from "next/link"; import { PropsWithChildren } from "react"; import { twMerge } from "tailwind-merge"; -const Footer = ({ wide }: { wide?: boolean }) => { +const Footer = () => { return (
@@ -27,7 +26,7 @@ const Footer = ({ wide }: { wide?: boolean }) => {
diff --git a/src/components/Header.tsx b/src/components/Header.tsx new file mode 100644 index 0000000..fe58352 --- /dev/null +++ b/src/components/Header.tsx @@ -0,0 +1,27 @@ +import { TopbarNavigation } from "@/components/TopbarNavigation"; +import { BrandingMenu } from "@/components/BrandingMenu"; +import Link from "next/link"; +import Button from "@/components/ui/atoms/button"; + +export const Header = () => { + return ( +
+ + + +
+ + + +
+
+ ); +}; diff --git a/src/components/LandingLayout.tsx b/src/components/LandingLayout.tsx deleted file mode 100644 index 2c42d29..0000000 --- a/src/components/LandingLayout.tsx +++ /dev/null @@ -1,51 +0,0 @@ -"use client"; - -import { Section } from "@/components/Section"; -import { TopbarNavigation } from "@/components/TopbarNavigation"; -import { BrandingMenu } from "@/components/BrandingMenu"; -import Footer from "@/components/Footer"; -import Link from "next/link"; -import Button from "@/components/ui/atoms/button"; -import { PropsWithChildren } from "react"; - -export default function Layout({ children }: PropsWithChildren) { - return ( -
-
- -
- {children} - -
- ); -} - -const LandingPageTopbar = () => { - return ( -
- - - -
- - - -
-
- ); -}; - -const LandingPageFooter = () => { - return