started "real work"

This commit is contained in:
z1glr
2025-01-10 14:06:53 +00:00
parent e2aa65b416
commit 45f600268f
30 changed files with 9811 additions and 8584 deletions

View File

@@ -11,12 +11,48 @@ export const metadata: Metadata = {
description: "Generated by create next app",
};
export interface SiteLink {
text: string;
href: string;
admin?: boolean;
}
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
const footerSites = [
const headerSites: SiteLink[] = [
{
text: "Overview",
href: "/",
},
{
text: "Events",
href: "/events",
},
{
text: "Assignments",
href: "/assignments",
},
{
text: "Assign Tasks",
href: "/admin/assign",
admin: true,
},
{
text: "Users",
href: "/admin/users",
admin: true,
},
{
text: "Configuration",
href: "/admin/config",
admin: true,
},
];
const footerSites: SiteLink[] = [
{
text: "Impressum",
href: "/impressum",
@@ -33,9 +69,9 @@ export default function RootLayout({
<NextUIProvider>
<div className="flex min-h-screen flex-col p-4">
<header>
<Header />
<Header sites={headerSites} />
</header>
<main className="flex min-h-full flex-1 flex-col">
<main className="flex min-h-full flex-1 flex-col p-4">
<Main>{children}</Main>
</main>
<footer className="flex h-4 justify-center gap-4">