diff --git a/packages/microcosm-www-next/src/layouts/index.js b/packages/microcosm-www-next/src/layouts/index.js index 061ecd5f..aabfbd13 100644 --- a/packages/microcosm-www-next/src/layouts/index.js +++ b/packages/microcosm-www-next/src/layouts/index.js @@ -1,4 +1,4 @@ -import React from 'react' +import React, { Component } from 'react' import PropTypes from 'prop-types' import Link from 'gatsby-link' import Helmet from 'react-helmet' @@ -12,21 +12,85 @@ if (isBrowser) { require('lazysizes') //lazy loading images } -const Navigation = () => ( - -) +class Navigation extends Component { + constructor(props) { + super(props) + + this.state = { + hidden: true + } + } + + handleHamburger = () => { + const { hidden } = this.state + + this.setState({ + hidden: !hidden + }) + } + + closeHamburger = () => { + this.setState({ + hidden: true + }) + } + + render() { + const { hidden } = this.state + + return ( + + ) + } +} const Footer = () => (