svrjs-nextjs-website/app/layout.tsx

40 lines
982 B
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-15 19:24:54 +02:00
import Navbar from "@/components/shared/Navbar";
2024-06-15 20:04:12 +02:00
import Footer from "@/components/shared/Footer";
2024-06-15 14:55:33 +02:00
const poppins = Poppins({
weight: ["400", "600", "700", "900"],
subsets: ["latin"],
});
export const metadata: Metadata = {
title: "SVRJS - A Web Server running on Nodejs",
description: "Open Source Software Library",
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en" suppressHydrationWarning>
<body className={poppins.className}>
<ThemeProvider
attribute="class"
defaultTheme="dark"
enableSystem
disableTransitionOnChange
>
2024-06-15 19:24:54 +02:00
<Navbar />
2024-06-15 14:55:33 +02:00
{children}
2024-06-15 20:04:12 +02:00
<Footer />
2024-06-15 14:55:33 +02:00
</ThemeProvider>
</body>
</html>
);
}