Files
immich-redaktions-plugin/src/app/layout.tsx
T

40 lines
1.3 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.",
};
// Legal destinations are runtime configuration. Keep the shared layout
// dynamic so Docker build-time placeholders can never be baked into pages.
export const dynamic = "force-dynamic";
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>
);
}