32 lines
951 B
TypeScript
32 lines
951 B
TypeScript
import type { Metadata } from "next";
|
|
import { Inter } from "next/font/google";
|
|
import "./globals.css";
|
|
import Navigation from "@/components/Navigation";
|
|
|
|
const inter = Inter({ subsets: ["latin"] });
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Kabel-Dokumentation",
|
|
description: "Dokumentation aller Netzwerk-, Strom- und Signalkabel im Haus",
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<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>
|
|
);
|
|
} |