XeNote/pages/_document.tsx

22 lines
613 B
TypeScript

import { Html, Head, Main, NextScript, type DocumentProps } from 'next/document'
interface DocProps extends DocumentProps { }
export default function Document(props: DocProps) {
const pageProps = props?.__NEXT_DATA__?.props?.['pageProps']
return (
<Html>
<Head>
<link rel="stylesheet" href="https://rsms.me/inter/inter.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/kimeiga/bahunya/dist/bahunya.min.css" />
</Head>
<body className={`bg-gradient ${pageProps.body_class_name}`}>
<Main />
<NextScript />
</body>
</Html>
)
}