2018-11-02 18:50:30 +00:00
|
|
|
import React from 'react'
|
|
|
|
import App, { Container } from 'next/app'
|
|
|
|
import Head from 'next/head'
|
|
|
|
|
|
|
|
export default class CustomApp extends App {
|
|
|
|
render () {
|
|
|
|
const { Component, pageProps } = this.props
|
|
|
|
return (
|
|
|
|
<Container>
|
|
|
|
<Head>
|
2018-12-17 16:34:32 +00:00
|
|
|
<meta
|
|
|
|
name='viewport'
|
|
|
|
content='width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no'
|
|
|
|
/>
|
2018-11-02 18:50:30 +00:00
|
|
|
<style global jsx>{`
|
|
|
|
html,
|
|
|
|
body {
|
2018-12-17 16:34:32 +00:00
|
|
|
font-family: 'Helvetica Neue', 'Hiragino Sans GB', Helvetica,
|
|
|
|
'Microsoft YaHei', Arial;
|
2018-11-02 18:50:30 +00:00
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
`}</style>
|
|
|
|
</Head>
|
|
|
|
<Component {...pageProps} />
|
|
|
|
</Container>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|