svrjs-nextjs-website/app/layout.tsx

66 lines
2.3 KiB
TypeScript
Raw Normal View History

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-06-27 11:32:03 +02:00
import AuthProvider from "@/components/shared/providers/AuthProvider";
2024-07-03 19:47:51 +02:00
import { Toaster } from "@/components/ui/toaster";
2024-06-15 14:55:33 +02:00
const poppins = Poppins({
2024-07-03 19:47:51 +02:00
weight: ["400", "600", "700", "900"],
subsets: ["latin"],
2024-06-15 14:55:33 +02:00
});
export const metadata: Metadata = {
2024-08-02 19:41:45 +02:00
title: "SVRJS - A Web Server running on Node.js",
description:
"Experience unparalleled flexibility with SVR.JS - the ultimate web server for Node.js. Host web pages, run server-side JavaScript, utilize mods for extended functionality, and more. Integrated log viewer and user management tools included. Also supports Bun (experimental).",
openGraph: {
title: "SVRJS - A Web Server running on Node.js",
description:
"Experience unparalleled flexibility with SVR.JS - the ultimate web server for Node.js. Host web pages, run server-side JavaScript, utilize mods for extended functionality, and more. Integrated log viewer and user management tools included. Also supports Bun (experimental).",
url: "https://svrjs.org",
type: "website",
images: [
{
url: "https://svrjs.vercel.app/metadata/svrjs-cover.png",
width: 800,
height: 600,
alt: "SVRJS - A Web Server running on Node.js",
},
],
},
twitter: {
card: "summary_large_image",
site: "@SVR_JS",
title: "SVRJS - A Web Server running on Node.js",
description:
"Experience unparalleled flexibility with SVR.JS - the ultimate web server for Node.js. Host web pages, run server-side JavaScript, utilize mods for extended functionality, and more. Integrated log viewer and user management tools included. Also supports Bun (experimental).",
images: ["https://svrjs.vercel.app/metadata/svrjs-cover.png"],
creator: "@SVR_JS",
},
2024-06-15 14:55:33 +02:00
};
export default function RootLayout({
2024-07-03 19:47:51 +02:00
children,
2024-06-15 14:55:33 +02:00
}: Readonly<{
2024-07-03 19:47:51 +02:00
children: React.ReactNode;
2024-06-15 14:55:33 +02:00
}>) {
2024-07-03 19:47:51 +02:00
return (
<html lang="en" suppressHydrationWarning>
<body className={`antialiased ${poppins.className}`}>
<ThemeProvider
attribute="class"
defaultTheme="dark"
enableSystem
disableTransitionOnChange
>
<AuthProvider>
{children}
2024-07-03 19:47:51 +02:00
<Toaster />
</AuthProvider>
</ThemeProvider>
</body>
</html>
);
2024-06-15 14:55:33 +02:00
}