diff --git a/src/components/header/index.scss b/src/components/header/index.scss index 2ef5e32..371f83d 100644 --- a/src/components/header/index.scss +++ b/src/components/header/index.scss @@ -54,3 +54,14 @@ header { } } } + +@media screen and (max-width: 800px) { + header { + margin-top: -8rem; + height: 102vh; + + .hero { + margin-top: 10rem; + } + } +} diff --git a/src/components/navbar/index.jsx b/src/components/navbar/index.jsx index cba2d32..cf13961 100644 --- a/src/components/navbar/index.jsx +++ b/src/components/navbar/index.jsx @@ -1,11 +1,13 @@ -import React, { useContext } from "react"; +import React, { useContext, useState, useEffect } from "react"; import { Link } from "gatsby"; import HeaderContext from "../../context/headerContext"; import "./index.scss"; +import MenuIcon from "../../images/menu.svg"; const Navbar = () => { const headerContext = useContext(HeaderContext); + const [toogleMenu, setToogleMenu] = useState(false); const handleShowNavbar = (context) => { if (context.isHeaderHidden === true) { @@ -15,20 +17,41 @@ const Navbar = () => { } }; + const handleMenu = () => { + setToogleMenu(!toogleMenu); + }; + + const menuStyle = { + background: "red"; + + } + return (