Skip to content

Instantly share code, notes, and snippets.

@kluu1
Last active March 20, 2020 16:18
Show Gist options
  • Select an option

  • Save kluu1/ae13d305ceecdca6d03ab9fabfd3b1c2 to your computer and use it in GitHub Desktop.

Select an option

Save kluu1/ae13d305ceecdca6d03ab9fabfd3b1c2 to your computer and use it in GitHub Desktop.
import Head from 'next/head'
import { Container } from 'semantic-ui-react'
import Header from './Header'
const styles = {
container: {
paddingTop: '1em',
paddingBottom: '1em',
minWidth: '100%'
}
}
const Layout = ({ children }) => {
return (
<>
<Head>
<link rel="stylesheet" type="text/css" href="/static/styles.css" />
<link
rel="stylesheet"
href="//cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.2/semantic.min.css"
/>
<title>Next Crypto Tracker</title>
</Head>
<Header />
<Container text style={styles.container}>
{children}
</Container>
</>
)
}
export default Layout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment