26 lines
523 B
TypeScript
26 lines
523 B
TypeScript
import {ReactNode} from 'react'
|
|
import {Metadata} from 'next'
|
|
import './globals.css'
|
|
import localFont from 'next/font/local'
|
|
|
|
const font = localFont({src: './SourceHanSansSC-VF.otf.woff2'})
|
|
|
|
export const metadata: Metadata = {
|
|
title: 'Create Next App',
|
|
description: 'Generated by create next app',
|
|
}
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: ReactNode;
|
|
}>) {
|
|
return (
|
|
<html lang="zh-Cn">
|
|
<body className={font.className}>
|
|
{children}
|
|
</body>
|
|
</html>
|
|
)
|
|
}
|