Skip to content

Instantly share code, notes, and snippets.

@amandeepmittal
Created December 6, 2018 13:28
Show Gist options
  • Save amandeepmittal/25da0c0609a27bf585c1eb2f39fc3f34 to your computer and use it in GitHub Desktop.
Save amandeepmittal/25da0c0609a27bf585c1eb2f39fc3f34 to your computer and use it in GitHub Desktop.
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