mirror of
https://github.com/Lumither/nocturne.git
synced 2026-10-17 10:26:21 +00:00
35 lines
1019 B
TypeScript
35 lines
1019 B
TypeScript
import type { Metadata } from 'next';
|
|
import './globals.css';
|
|
import React from 'react';
|
|
import { ThemeProvider as NextThemesProvider } from 'next-themes';
|
|
import Navbar from '@/components/Navbar';
|
|
import Footer from '@/components/Footer';
|
|
|
|
|
|
export const metadata: Metadata = {
|
|
title: 'Lumither\'s site',
|
|
description: 'a small corner on internet'
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html lang="en" suppressHydrationWarning>
|
|
<body className={ `dark:bg-[#282830] min-h-screen` }>
|
|
<NextThemesProvider attribute="class" defaultTheme="dark">
|
|
<div className={ `justify-center flex flex-row w-full max-w-full` }>
|
|
<Navbar />
|
|
<div className={ `flex flex-col flex-1 max-w-[1024px] min-w-0` }>
|
|
{ children }
|
|
<Footer />
|
|
</div>
|
|
</div>
|
|
</NextThemesProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|