rsnext/examples/with-graphql-faunadb/pages/index.js
Luis Alvarez D 8e2097997e
Remove getInitialProps from the faunadb example (#9427)
* Remove the global fetch

* Update API methods

* Remove getInitialProps from the page

* Add client side fetching
2019-11-15 13:21:08 -05:00

41 lines
886 B
JavaScript

import Head from 'next/head'
import Footer from '../components/Footer'
import Hero from '../components/Hero'
const Guestbook = props => {
return (
<>
<Head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta charSet="utf-8" />
<link
rel="shortcut icon"
type="image/x-icon"
href="/static/favicon.png"
/>
</Head>
<style jsx global>{`
body {
margin: 0px;
padding: 0px;
}
`}</style>
<div>
<Hero />
<Footer />
</div>
<style jsx>{`
div {
display: flex;
margin-left: auto;
margin-right: auto;
font-family: sans-serif, sans;
flex-direction: column;
align-items: center;
}
`}</style>
</>
)
}
export default Guestbook