55 lines
1.4 KiB
TypeScript
55 lines
1.4 KiB
TypeScript
import type { Metadata } from "next";
|
|
import { Geist, Geist_Mono, Inter } from "next/font/google";
|
|
import "../globals.css";
|
|
import { cn } from "@/lib/utils";
|
|
import { ThemeProvider } from "../../components/theme-provider";
|
|
import BackgroundEffects from "./background-effects";
|
|
import Navbar from "./navbar";
|
|
import { NextIntlClientProvider } from "next-intl";
|
|
|
|
const inter = Inter({subsets:['latin'],variable:'--font-sans'});
|
|
|
|
const geistSans = Geist({
|
|
variable: "--font-geist-sans",
|
|
subsets: ["latin"],
|
|
});
|
|
|
|
const geistMono = Geist_Mono({
|
|
variable: "--font-geist-mono",
|
|
subsets: ["latin"],
|
|
});
|
|
|
|
export const metadata: Metadata = {
|
|
title: "byHaider.dev",
|
|
description: "Softwareentwickler deines Vertrauens.",
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html
|
|
lang="en" suppressHydrationWarning
|
|
className={cn("h-full", "antialiased", geistSans.variable, geistMono.variable, "font-sans", inter.variable)}
|
|
>
|
|
<body className="min-h-screen relative isolate flex flex-col">
|
|
<NextIntlClientProvider>
|
|
<ThemeProvider
|
|
attribute="class"
|
|
defaultTheme="system"
|
|
enableSystem
|
|
>
|
|
<BackgroundEffects />
|
|
<Navbar/>
|
|
<div className="relative z-10 flex-1">
|
|
{children}
|
|
</div>
|
|
</ThemeProvider>
|
|
</NextIntlClientProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|