2017-10-31 07:58:00 +00:00
|
|
|
import Link from './Link'
|
2017-10-30 14:24:31 +00:00
|
|
|
|
|
|
|
export default () => (
|
|
|
|
<nav>
|
|
|
|
<style jsx>{`
|
|
|
|
.active:after {
|
|
|
|
content: ' (current page)';
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-link {
|
|
|
|
text-decoration: none;
|
|
|
|
padding: 10px;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
`}</style>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<li>
|
2017-10-31 07:58:00 +00:00
|
|
|
<Link activeClassName='active' href='/'>
|
|
|
|
<a className='nav-link home-link'>Home</a>
|
2017-10-30 14:24:31 +00:00
|
|
|
</Link>
|
|
|
|
</li>
|
|
|
|
<li>
|
2017-10-31 07:58:00 +00:00
|
|
|
<Link activeClassName='active' href='/about'>
|
|
|
|
<a className='nav-link'>About</a>
|
2017-10-30 14:24:31 +00:00
|
|
|
</Link>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
2017-10-31 07:58:00 +00:00
|
|
|
)
|