started "real work"
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user