Last active
March 20, 2020 16:18
-
-
Save kluu1/ae13d305ceecdca6d03ab9fabfd3b1c2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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