-
-
Save amandeepmittal/f86d8ca715de55b491fa03f652324ce6 to your computer and use it in GitHub Desktop.
This file contains 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 Link from 'next/link'; | |
const Layout = ({ children }) => ( | |
<div> | |
<div className="container"> | |
<nav> | |
<Link> | |
<a> | |
<span className="title">Hacker News Clone</span> | |
</a> | |
</Link> | |
</nav> | |
{children} | |
</div> | |
<style jsx>{` | |
.container { | |
max-width: 960px; | |
margin: 0 auto; | |
background: #f6f6ee; | |
} | |
nav { | |
background: #ffa600; | |
padding: 1em; | |
} | |
nav > * { | |
display: inline-block; | |
color: #000000; | |
} | |
nav a { | |
text-decoration: none; | |
} | |
nav .main-title { | |
font-weight: bold; | |
} | |
`}</style> | |
<style global jsx> | |
{` | |
body { | |
background: white; | |
} | |
`} | |
</style> | |
</div> | |
); | |
export default Layout; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment