2024-06-15 21:49:29 +02:00
|
|
|
import type { Metadata } from 'next';
|
|
|
|
import { Poppins } from 'next/font/google';
|
|
|
|
import './globals.css';
|
|
|
|
import { ThemeProvider } from '@/components/shared/providers/themeprovider';
|
|
|
|
import Navbar from '@/components/shared/Navbar';
|
2024-06-18 01:27:28 +02:00
|
|
|
import Footer from '@/components/shared/Footer';
|
2024-06-15 14:55:33 +02:00
|
|
|
|
|
|
|
const poppins = Poppins({
|
2024-06-15 21:49:29 +02:00
|
|
|
weight: ['400', '600', '700', '900'],
|
|
|
|
subsets: ['latin'],
|
2024-06-15 14:55:33 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
export const metadata: Metadata = {
|
2024-06-15 21:49:29 +02:00
|
|
|
title: 'SVRJS - A Web Server running on Nodejs',
|
|
|
|
description: 'Open Source Software Library',
|
2024-06-15 14:55:33 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
export default function RootLayout({
|
|
|
|
children,
|
|
|
|
}: Readonly<{
|
|
|
|
children: React.ReactNode;
|
|
|
|
}>) {
|
|
|
|
return (
|
|
|
|
<html lang="en" suppressHydrationWarning>
|
2024-06-16 15:37:26 +02:00
|
|
|
<body className={`font-sans antialiased ${poppins.className}`}>
|
2024-06-15 14:55:33 +02:00
|
|
|
<ThemeProvider
|
|
|
|
attribute="class"
|
|
|
|
defaultTheme="dark"
|
|
|
|
enableSystem
|
|
|
|
disableTransitionOnChange
|
|
|
|
>
|
2024-06-16 15:37:26 +02:00
|
|
|
<main className="flex flex-col min-h-screen">
|
|
|
|
<Navbar />
|
|
|
|
<div className="flex-grow flex-1">{children}</div>
|
|
|
|
<Footer />
|
|
|
|
</main>
|
2024-06-15 14:55:33 +02:00
|
|
|
</ThemeProvider>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
);
|
|
|
|
}
|