XeNote/pages/_document.tsx

31 lines
661 B
TypeScript
Raw Normal View History

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"];
2023-12-26 01:26:17 +00:00
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"
/>
2023-12-26 01:26:17 +00:00
</Head>
2024-01-07 19:53:32 +00:00
<body className={`bg-gradient ${pageProps.body_class_name ?? ""}`}>
2023-12-26 01:26:17 +00:00
<Main />
<NextScript />
</body>
</Html>
);
2023-12-26 01:26:17 +00:00
}