svrjs-nextjs-website/app/layout.tsx
Dorian Niemiec 7866a5c68f
Some checks failed
Deploy Next.js application / deploy (push) Has been cancelled
fix: optimize the metadata
2024-11-25 08:42:23 +01:00

37 lines
973 B
TypeScript

import type { Metadata } from "next";
import { Poppins } from "next/font/google";
import "./globals.css";
import { ThemeProvider } from "@/components/shared/providers/themeprovider";
import { Toaster } from "@/components/ui/toaster";
import Analytics from "@/components/shared/providers/Analytics";
const poppins = Poppins({
weight: ["400", "600", "700", "900"],
subsets: ["latin"]
});
export const metadata: Metadata = {
title: "SVR.JS - a web server running on Node.JS"
};
export default function RootLayout({
children
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en-US" suppressHydrationWarning>
<body className={`antialiased ${poppins.className}`}>
<ThemeProvider
attribute="class"
enableSystem={true}
disableTransitionOnChange
>
{children}
<Toaster />
<Analytics pagesRouter={false} />
</ThemeProvider>
</body>
</html>
);
}