2022-03-17 14:37:00 +01:00
|
|
|
import { ColorModeScript } from '@chakra-ui/react'
|
|
|
|
import { theme } from 'lib/chakraTheme'
|
2022-02-09 18:40:40 +01:00
|
|
|
import Document, { Html, Head, Main, NextScript } from 'next/document'
|
|
|
|
|
|
|
|
class MyDocument extends Document {
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<Html dir="ltr">
|
|
|
|
<Head>
|
|
|
|
<link rel="icon" type="image/png" href="/favicon.png" />
|
|
|
|
<link
|
2022-03-17 14:37:00 +01:00
|
|
|
href="https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Open+Sans:wght@400;500;600;700&family=Indie+Flower:wght@400&display=swap"
|
2022-02-09 18:40:40 +01:00
|
|
|
rel="stylesheet"
|
|
|
|
/>
|
2022-03-17 14:37:00 +01:00
|
|
|
<noscript>
|
|
|
|
{/*
|
|
|
|
Here we ignore the following recommendation to solve possible SSR problems with noscript browsers/visitors
|
|
|
|
https://nextjs.org/docs/messages/no-css-tags
|
|
|
|
*/}
|
|
|
|
{/* eslint-disable-next-line @next/next/no-css-tags */}
|
|
|
|
<link href="./styles/aos-noscript.css" rel="stylesheet" />
|
|
|
|
</noscript>
|
2023-08-28 09:38:52 +02:00
|
|
|
{/* eslint-disable-next-line @next/next/no-sync-scripts */}
|
|
|
|
<script src="/__ENV.js" />
|
2022-02-09 18:40:40 +01:00
|
|
|
</Head>
|
2022-03-17 14:37:00 +01:00
|
|
|
<body style={{ backgroundColor: '#171923' }}>
|
2022-03-17 14:37:00 +01:00
|
|
|
<ColorModeScript initialColorMode={theme.config.initialColorMode} />
|
2022-02-09 18:40:40 +01:00
|
|
|
<Main />
|
|
|
|
<NextScript />
|
|
|
|
</body>
|
|
|
|
</Html>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default MyDocument
|