added darkmode classs to ¢[type] and /book

This commit is contained in:
Peer Richelsen committed 2021-07-07 21:58:18 +02:00
1 parent 2f73997e72
commit 01fc00b92f
9 files changed
+120 -34

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
import Document, { Html, Head, Main, NextScript } from "next/document";
class MyDocument extends Document {
static async getInitialProps(ctx) {
const initialProps = await Document.getInitialProps(ctx);
return { ...initialProps };
}
render() {
return (
<Html>
<Head />
<body className="dark:bg-gray-900 bg-white">
<Main />
<NextScript />
</body>
</Html>
);
}
}
export default MyDocument;