Skip to content

Instantly share code, notes, and snippets.

@emmabostian
Created December 27, 2019 19:57
Show Gist options
  • Save emmabostian/2da804a1fab4ff96ad15844e381f3f40 to your computer and use it in GitHub Desktop.
Save emmabostian/2da804a1fab4ff96ad15844e381f3f40 to your computer and use it in GitHub Desktop.
import React from "react"
import { animated } from "react-spring"
import { Link } from "gatsby"
import "./nav.css"
const Nav = ({ style }) => (
<animated.nav style={style} className="nav">
<ul>
<li>
<Link to="/" activeClassName="nav-active">
home
</Link>
</li>
<li>
<Link to="/about" activeClassName="nav-active">
about me
</Link>
</li>
<li>
work
<ul className="nav-sub-list">
<li>
<Link to="/writing" activeClassName="nav-active">
writing
</Link>
</li>
<li>
<Link to="/speaking" activeClassName="nav-active">
speaking
</Link>
</li>
<li>
<Link to="/teaching" activeClassName="nav-active">
teaching
</Link>
</li>
<li>
<Link to="/podcasting" activeClassName="nav-active">
podcasting
</Link>
</li>
</ul>
</li>
<li>
<Link to="/contact" activeClassName="nav-active">
get in touch
</Link>
</li>
</ul>
</animated.nav>
)
export default Nav
@simanga-dev
Copy link

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment