rsnext/test/integration/flying-shuttle/pages/about/index.js

44 lines
886 B
JavaScript
Raw Normal View History

import React from 'react'
import Head from '../../components/head'
import Nav from '../../components/nav'
import dynamic from 'next/dynamic'
const DynamicComponent = dynamic(() => import('../../components/something'))
const About = () => (
<div>
<Head title='About' />
<Nav />
<div className='hero'>
<h1 className='title'>All About Next.js!</h1>
<p className='description'>
To get started, edit <code>pages/about/index.js</code> and save to
reload.
</p>
</div>
<DynamicComponent />
<style jsx>{`
.hero {
width: 100%;
color: #333;
}
.title {
margin: 0;
width: 100%;
padding-top: 80px;
line-height: 1.15;
font-size: 48px;
}
.title,
.description {
text-align: center;
}
`}</style>
</div>
)
export default About