first working release
This commit is contained in:
@@ -1,33 +1,32 @@
|
||||
import type { Metadata } from "next";
|
||||
import { Geist, Geist_Mono } from "next/font/google";
|
||||
import { Inter } from "next/font/google";
|
||||
import "./globals.css";
|
||||
import Navigation from "@/components/Navigation";
|
||||
|
||||
const geistSans = Geist({
|
||||
variable: "--font-geist-sans",
|
||||
subsets: ["latin"],
|
||||
});
|
||||
|
||||
const geistMono = Geist_Mono({
|
||||
variable: "--font-geist-mono",
|
||||
subsets: ["latin"],
|
||||
});
|
||||
const inter = Inter({ subsets: ["latin"] });
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Create Next App",
|
||||
description: "Generated by create next app",
|
||||
title: "Kabel-Dokumentation",
|
||||
description: "Dokumentation aller Netzwerk-, Strom- und Signalkabel im Haus",
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: Readonly<{
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}>) {
|
||||
}) {
|
||||
return (
|
||||
<html
|
||||
lang="en"
|
||||
className={`${geistSans.variable} ${geistMono.variable} h-full antialiased`}
|
||||
>
|
||||
<body className="min-h-full flex flex-col">{children}</body>
|
||||
<html lang="de">
|
||||
<body className={`${inter.className} bg-slate-50 text-slate-900`}>
|
||||
<div className="flex min-h-screen">
|
||||
{/* Sidebar — fixed on desktop, slide-in overlay on mobile */}
|
||||
<Navigation />
|
||||
{/* Main content — offset by sidebar width on large screens */}
|
||||
<main className="flex-1 lg:ml-64 p-6 md:p-8">
|
||||
<div className="max-w-5xl mx-auto">{children}</div>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user