Files
nocturne/app/layout.tsx
T
2024-03-15 21:46:36 +08:00

44 lines
1022 B
TypeScript

import type { Metadata } from 'next';
import './globals.css';
import { Inter as FontSans } from 'next/font/google';
import { cn } from '@/lib/utils';
import React from 'react';
import { ThemeProvider } from '@/components/theme-provider';
import Navbar from '@/app/navbar';
const fontSans = FontSans({
subsets: [ 'latin' ],
variable: '--font-sans'
});
export const metadata: Metadata = {
title: 'Lumither\'s blog',
description: 'a little blog site...'
};
export default function RootLayout({
children
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en">
<body className={ cn(
'min-h-screen bg-background font-sans antialiased',
fontSans.variable
) }>
<ThemeProvider
attribute="class"
defaultTheme="dark"
enableSystem
disableTransitionOnChange
>
<Navbar />
{ children }
</ThemeProvider>
</body>
</html>
);
}