2024-06-15 14:55:33 +02:00
|
|
|
import type { Metadata } from "next";
|
|
|
|
import { Poppins } from "next/font/google";
|
|
|
|
import "./globals.css";
|
|
|
|
import { ThemeProvider } from "@/components/shared/providers/themeprovider";
|
2024-07-03 19:47:51 +02:00
|
|
|
import { Toaster } from "@/components/ui/toaster";
|
2024-09-08 14:34:54 +02:00
|
|
|
import Analytics from "@/components/shared/providers/Analytics";
|
2024-06-15 14:55:33 +02:00
|
|
|
|
|
|
|
const poppins = Poppins({
|
2024-09-07 09:12:48 +02:00
|
|
|
weight: ["400", "600", "700", "900"],
|
|
|
|
subsets: ["latin"]
|
2024-06-15 14:55:33 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
export const metadata: Metadata = {
|
2024-11-25 08:42:23 +01:00
|
|
|
title: "SVR.JS - a web server running on Node.JS"
|
2024-06-15 14:55:33 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
export default function RootLayout({
|
2024-09-07 09:12:48 +02:00
|
|
|
children
|
2024-06-15 14:55:33 +02:00
|
|
|
}: Readonly<{
|
2024-09-07 09:12:48 +02:00
|
|
|
children: React.ReactNode;
|
2024-06-15 14:55:33 +02:00
|
|
|
}>) {
|
2024-09-07 09:12:48 +02:00
|
|
|
return (
|
2024-09-10 19:52:24 +02:00
|
|
|
<html lang="en-US" suppressHydrationWarning>
|
2024-09-07 09:12:48 +02:00
|
|
|
<body className={`antialiased ${poppins.className}`}>
|
|
|
|
<ThemeProvider
|
|
|
|
attribute="class"
|
2024-09-18 10:32:14 +02:00
|
|
|
enableSystem={true}
|
2024-09-07 09:12:48 +02:00
|
|
|
disableTransitionOnChange
|
|
|
|
>
|
|
|
|
{children}
|
|
|
|
<Toaster />
|
2024-09-08 15:17:26 +02:00
|
|
|
<Analytics pagesRouter={false} />
|
2024-09-07 09:12:48 +02:00
|
|
|
</ThemeProvider>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
);
|
2024-06-15 14:55:33 +02:00
|
|
|
}
|