feat: reworked page and components

This commit is contained in:
Bart van der Braak 2023-06-14 16:33:08 +02:00
parent 23bdd5aa94
commit 62656fa963
8 changed files with 175 additions and 113 deletions

33
app/(index)/layout.tsx Normal file
View file

@ -0,0 +1,33 @@
import Link from "next/link";
import { cn } from "@/lib/utils";
import { buttonVariants } from "@/components/ui/button";
interface MarketingLayoutProps {
children: React.ReactNode;
}
export default async function MarketingLayout({
children,
}: MarketingLayoutProps) {
return (
<div className="flex min-h-screen flex-col">
<header className="container z-40 bg-background">
<div className="flex h-20 items-center justify-between py-6">
<nav>
<Link
href="https://github.com/bartvdbraak"
className={cn(
buttonVariants({ variant: "secondary", size: "sm" }),
"px-4"
)}
>
My GitHub
</Link>
</nav>
</div>
</header>
<main className="flex-1">{children}</main>
</div>
);
}