feat: mock header component

This commit is contained in:
TOHAACK
2024-04-22 08:26:51 +02:00
parent 710b769ee3
commit 424276b4e8
11 changed files with 1544 additions and 45 deletions

View File

@@ -1,26 +1,42 @@
import { Metadata } from "next";
import { cn } from "@/lib/utils";
import "@/styles/globals.css";
import { Inter as FontSans } from "next/font/google";
import Header from "@/components/Header";
import { Inter } from "next/font/google";
export const metadata: Metadata = {
title: {
template: "%s | MYP",
default: "MYP",
},
description:
"MYP (Manage your Printer) ist eine 3D-Drucker Reservierungsplattform entwickelt für die TBA Berlin (W040).",
icons: [{ rel: "icon", url: "/favicon.ico" }],
};
const inter = Inter({
const fontSans = FontSans({
subsets: ["latin"],
variable: "--font-sans",
});
export const metadata = {
title: "Create T3 App",
description: "Generated by create-t3-app",
icons: [{ rel: "icon", url: "/favicon.ico" }],
};
export default function RootLayout({
children,
}: {
interface RootLayoutProps {
children: React.ReactNode;
}) {
}
export default function RootLayout({ children }: RootLayoutProps) {
return (
<html lang="en">
<body className={`font-sans ${inter.variable}`}>{children}</body>
<html lang="en" suppressHydrationWarning>
<head />
<body
className={cn(
"min-h-screen bg-background font-sans antialiased",
fontSans.variable,
)}
>
<Header />
<main>{children}</main>
</body>
</html>
);
}

View File

@@ -1,37 +1,12 @@
import { Metadata } from 'next'
import Link from "next/link";
export const metadata: Metadata = {
title: "Startseite | MYP",
};
export default function HomePage() {
return (
<main className="flex min-h-screen flex-col items-center justify-center bg-gradient-to-b from-[#2e026d] to-[#15162c] text-white">
<div className="container flex flex-col items-center justify-center gap-12 px-4 py-16 ">
<h1 className="text-5xl font-extrabold tracking-tight text-white sm:text-[5rem]">
Create <span className="text-[hsl(280,100%,70%)]">T3</span> App
</h1>
<div className="grid grid-cols-1 gap-4 sm:grid-cols-2 md:gap-8">
<Link
className="flex max-w-xs flex-col gap-4 rounded-xl bg-white/10 p-4 text-white hover:bg-white/20"
href="https://create.t3.gg/en/usage/first-steps"
target="_blank"
>
<h3 className="text-2xl font-bold">First Steps </h3>
<div className="text-lg">
Just the basics - Everything you need to know to set up your
database and authentication.
</div>
</Link>
<Link
className="flex max-w-xs flex-col gap-4 rounded-xl bg-white/10 p-4 text-white hover:bg-white/20"
href="https://create.t3.gg/en/introduction"
target="_blank"
>
<h3 className="text-2xl font-bold">Documentation </h3>
<div className="text-lg">
Learn more about Create T3 App, the libraries it uses, and how to
deploy it.
</div>
</Link>
</div>
</div>
</main>
<main>Hello</main>
);
}