36 lines
1.1 KiB
TypeScript
36 lines
1.1 KiB
TypeScript
import type { Metadata } from "next";
|
|
import type { ReactNode } from "react";
|
|
import "./globals.css";
|
|
|
|
import { LegalFooter } from "@/components/layout/legal-footer";
|
|
|
|
import { ThemeProvider } from "@/components/theme-provider";
|
|
import { Inter } from "next/font/google";
|
|
|
|
const inter = Inter({ subsets: ["latin"], variable: "--font-sans" });
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Redaktionsportal | Leon Tonhäuser",
|
|
description: "Ausgewählte Pressefotos sicher finden und nutzen.",
|
|
};
|
|
|
|
export default function RootLayout({ children }: Readonly<{ children: ReactNode }>) {
|
|
return (
|
|
<html lang="de" suppressHydrationWarning>
|
|
<body className={`${inter.variable} font-sans antialiased bg-background text-foreground transition-colors duration-300 min-h-screen flex flex-col`}>
|
|
<ThemeProvider
|
|
attribute="class"
|
|
defaultTheme="system"
|
|
enableSystem
|
|
disableTransitionOnChange
|
|
>
|
|
<div className="flex-1 flex flex-col">
|
|
{children}
|
|
</div>
|
|
<LegalFooter />
|
|
</ThemeProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|