Files
TheGame/packages/web/pages/_document.tsx
dan13ram 6466104e55 Layouts for RegisterPlayer and SuccessPlayer (#63)
* registerPlayer & successPlayer layout done

* moved to chakra-ui@next

* added meta components and icons

* refactored code based on review comments

* using React.ComponentProps for getting correct props

* using jpeg for background images

* removed unwanted `declare module`

* changed font naming in design-system

* fixed fontFamily in packge web

* using Heading component for MetaHeading
2020-08-13 13:44:46 -06:00

38 lines
821 B
TypeScript

import Document, {
DocumentContext,
DocumentInitialProps,
Head,
Html,
Main,
NextScript,
} from 'next/document';
class MetaDocument extends Document {
static async getInitialProps(
ctx: DocumentContext,
): Promise<DocumentInitialProps> {
const initialProps = await Document.getInitialProps(ctx);
return { ...initialProps };
}
render(): JSX.Element {
return (
<Html>
<Head>
<link
href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;700&family=IBM+Plex+Sans:wght@400;700&family=Press+Start+2P&display=swap"
rel="stylesheet"
/>
<meta charSet="UTF-8" />
</Head>
<body>
<Main />
<NextScript />
</body>
</Html>
);
}
}
export default MetaDocument;