Files
lederle-text-analyzer/src/app/layout.tsx
2025-03-28 09:19:47 +01:00

47 lines
1.2 KiB
TypeScript

import React from "react";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";
import Header from "@/components/Header";
import { ThemeProvider } from "@/components/theme-provider"
const geistSans = Geist({
variable: "--font-geist-sans",
subsets: ["latin"],
});
const geistMono = Geist_Mono({
variable: "--font-geist-mono",
subsets: ["latin"],
});
export const metadata = {
description: "Diplomarbeiten - HTL Dornbirn",
title: "Diplomarbeiten - HTL Dornbirn",
};
export default async function RootLayout(props: { children: React.ReactNode }) {
const { children } = props;
return (
<html lang="de-AT" suppressHydrationWarning>
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
>
<ThemeProvider
attribute="class"
defaultTheme="system"
enableSystem
disableTransitionOnChange
>
<Header></Header>
<div className="flex flex-col min-h-screen">
<main className="grow">{children}</main>
</div>
</ThemeProvider>
</body>
</html>
);
}