mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2024-12-27 23:38:07 +01:00
35 lines
946 B
JavaScript
35 lines
946 B
JavaScript
import React from 'react'
|
|
import { RouteHandler, Link } from 'react-router'
|
|
import { prefixLink } from 'gatsby-helpers'
|
|
import './style.css'
|
|
|
|
class SiteNav extends React.Component {
|
|
render() {
|
|
const {location} = this.props
|
|
return (
|
|
<nav className='blog-nav'>
|
|
<ul>
|
|
<li>
|
|
<Link to={ prefixLink('/')} activeClassName="current" onlyActiveOnIndex> Articles
|
|
</Link>
|
|
</li>
|
|
<li>
|
|
<Link to={ prefixLink('/about/')} activeClassName="current"> About me
|
|
</Link>
|
|
</li>
|
|
<li>
|
|
<Link to={ prefixLink('/contact/')} activeClassName="current"> Contact me
|
|
</Link>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
);
|
|
}
|
|
}
|
|
|
|
SiteNav.propTypes = {
|
|
location: React.PropTypes.object,
|
|
}
|
|
|
|
export default SiteNav
|