committing summative
This commit is contained in:
1 parent
73ac8e85be
commit
95b138f29e
44 files changed
+5319
-755
No files matched your search
+18
-3
@@ -1,6 +1,10 @@
|
||||
import type { Metadata } from "next";
|
||||
import { Geist, Geist_Mono } from "next/font/google";
|
||||
import "./globals.css";
|
||||
import Home from "./page";
|
||||
import NavBar from "./components/NavBar";
|
||||
import { Providers } from "./components/Providers";
|
||||
import { Suspense } from "react";
|
||||
|
||||
const geistSans = Geist({
|
||||
variable: "--font-geist-sans",
|
||||
@@ -13,8 +17,8 @@ const geistMono = Geist_Mono({
|
||||
});
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Create Next App",
|
||||
description: "Generated by create next app",
|
||||
title: "Secure CMS",
|
||||
description: "A Secure Content Management System",
|
||||
};
|
||||
|
||||
export default function RootLayout({ children }: LayoutProps<"/">) {
|
||||
@@ -23,7 +27,18 @@ export default function RootLayout({ children }: LayoutProps<"/">) {
|
||||
lang="en"
|
||||
className={`${geistSans.variable} ${geistMono.variable} h-full antialiased`}
|
||||
>
|
||||
<body className="min-h-full flex flex-col">{children}</body>
|
||||
<body className="min-h-dvh flex flex-col">
|
||||
<Providers>
|
||||
<header className="font-sans">
|
||||
<Suspense fallback={<div className="h-16" />}><NavBar enforceAdmin={process.env.ENFORCEADMIN === "true"} /></Suspense>
|
||||
{/* reserve space while navbar loads ^^ */}
|
||||
</header>
|
||||
{children}
|
||||
</Providers>
|
||||
<footer className="mt-auto text-base-content/70 border-t border-base-content/10 text-sm text-right">
|
||||
<p> 2026 Secure CMS created by Archie McCulloch </p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user