-
-
Save amandeepmittal/25da0c0609a27bf585c1eb2f39fc3f34 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'; | |
import Head from 'next/head'; | |
const Layout = ({ children, title }) => ( | |
<div> | |
<Head> | |
<title>{title}</title> | |
</Head> | |
<div className="container"> | |
<nav> | |
<Link> | |
<a> | |
<span className="title">{title}</span> | |
</a> | |
</Link> | |
</nav> | |
{children} | |
</div> | |
<style jsx>{/* STYLE REMAINS SAME*/}</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