1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
next.js/examples/with-next-page-transitions/pages/_document.js

38 lines
968 B
JavaScript
Raw Permalink Normal View History

import React from 'react'
import Document, { Head, Main, NextScript } from 'next/document'
export default class MyDocument extends Document {
static async getInitialProps (ctx) {
const initialProps = await Document.getInitialProps(ctx)
return { ...initialProps }
}
render () {
return (
<html lang='en'>
<Head>
<meta
name='viewport'
content='initial-scale=1.0, width=device-width'
/>
<link
rel='stylesheet'
href='https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/css/bootstrap.min.css'
integrity='sha384-Zug+QiDoJOrZ5t4lssLdxGhVrurbmBWopoEl+M6BdEfwnCJZtKxi1KgxUyJq13dy'
crossOrigin='anonymous'
/>
<style>{`
.page {
height: 100vh;
}
`}</style>
</Head>
<body>
<Main />
<NextScript />
</body>
</html>
)
}
}