54 lines
969 B
JavaScript
54 lines
969 B
JavaScript
|
import React from 'react'
|
||
|
import Link from 'next/link'
|
||
|
|
||
|
const Nav = () => (
|
||
|
<nav>
|
||
|
<ul>
|
||
|
<li>
|
||
|
<Link prefetch href='/'>
|
||
|
<a>Home</a>
|
||
|
</Link>
|
||
|
</li>
|
||
|
<li>
|
||
|
<Link prefetch href='/other'>
|
||
|
<a>Other</a>
|
||
|
</Link>
|
||
|
</li>
|
||
|
<li>
|
||
|
<Link prefetch href='/about'>
|
||
|
<a>About</a>
|
||
|
</Link>
|
||
|
</li>
|
||
|
</ul>
|
||
|
|
||
|
<style jsx>{`
|
||
|
:global(body) {
|
||
|
margin: 0;
|
||
|
font-family: -apple-system, BlinkMacSystemFont, Avenir Next, Avenir,
|
||
|
Helvetica, sans-serif;
|
||
|
}
|
||
|
nav {
|
||
|
text-align: center;
|
||
|
}
|
||
|
ul {
|
||
|
display: flex;
|
||
|
justify-content: space-between;
|
||
|
}
|
||
|
nav > ul {
|
||
|
padding: 4px 16px;
|
||
|
}
|
||
|
li {
|
||
|
display: flex;
|
||
|
padding: 6px 8px;
|
||
|
}
|
||
|
a {
|
||
|
color: #067df7;
|
||
|
text-decoration: none;
|
||
|
font-size: 13px;
|
||
|
}
|
||
|
`}</style>
|
||
|
</nav>
|
||
|
)
|
||
|
|
||
|
export default Nav
|