2017-06-27 19:10:26 +00:00
|
|
|
import React from 'react'
|
|
|
|
import PropTypes from 'prop-types'
|
|
|
|
import Document, { Head, Main, NextScript } from 'next/document'
|
|
|
|
|
|
|
|
export default class MyDocument extends Document {
|
2017-07-08 12:12:01 +00:00
|
|
|
static getInitialProps ({ renderPage }) {
|
2018-12-17 16:34:32 +00:00
|
|
|
const { html, head, errorHtml, chunks } = renderPage()
|
2017-07-08 12:12:01 +00:00
|
|
|
return { html, head, errorHtml, chunks }
|
2017-06-27 19:10:26 +00:00
|
|
|
}
|
2017-07-08 12:12:01 +00:00
|
|
|
|
2018-12-17 16:34:32 +00:00
|
|
|
static contextTypes = { theme: PropTypes.object }
|
2017-06-27 19:10:26 +00:00
|
|
|
|
|
|
|
render () {
|
|
|
|
return (
|
|
|
|
<html lang='en'>
|
|
|
|
<Head>
|
|
|
|
<meta charSet='utf-8' />
|
2018-12-17 16:34:32 +00:00
|
|
|
<meta
|
|
|
|
name='viewport'
|
|
|
|
content='user-scalable=0, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height'
|
|
|
|
/>
|
2017-06-27 19:10:26 +00:00
|
|
|
<meta name='theme-color' content='yellowgreen' />
|
2018-12-17 16:34:32 +00:00
|
|
|
<link
|
|
|
|
rel='stylesheet'
|
|
|
|
href='https://fonts.googleapis.com/css?family=Roboto:300,400,500'
|
|
|
|
/>
|
2017-06-27 19:10:26 +00:00
|
|
|
</Head>
|
|
|
|
<body>
|
|
|
|
<Main />
|
|
|
|
<NextScript />
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|