feat(global) project init

This commit is contained in:
lumither committed 2024-03-14 00:38:24 +08:00
1 parent 595b2db8bc
commit 58aebf50a2
12 files changed
+447 -164

No files matched your search

+34 -13
View File
@@ -1,22 +1,43 @@
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import "./globals.css";
import type { Metadata } from 'next';
import './globals.css';
const inter = Inter({ subsets: ["latin"] });
import { Inter as FontSans } from 'next/font/google';
import { cn } from '@/lib/utils';
import React from 'react';
import { ThemeProvider } from '@/components/theme-provider';
import Header from '@/app/header';
const fontSans = FontSans({
subsets: [ 'latin' ],
variable: '--font-sans'
});
export const metadata: Metadata = {
title: "Create Next App",
description: "Generated by create next app",
title: 'Lumither\'s blog',
description: 'a little blog site...'
};
export default function RootLayout({
children,
children
}: Readonly<{
children: React.ReactNode;
children: React.ReactNode;
}>) {
return (
<html lang="en">
<body className={inter.className}>{children}</body>
</html>
);
return (
<html lang="en">
<body className={ cn(
'min-h-screen bg-background font-sans antialiased',
fontSans.variable
) }>
<ThemeProvider
attribute="class"
defaultTheme="system"
enableSystem
disableTransitionOnChange
>
<Header />
{ children }
</ThemeProvider>
</body>
</html>
);
}