From 5dd356f4dbbd3db9cccd94d73586d3ea0156b399 Mon Sep 17 00:00:00 2001 From: desmukh Date: Mon, 9 Jan 2023 00:34:10 +0500 Subject: [PATCH] layout: hide nav menu and display hamburger --- src/components/layout.js | 37 ++++++++++++++++++++++++------------- 1 file changed, 24 insertions(+), 13 deletions(-) diff --git a/src/components/layout.js b/src/components/layout.js index 0939fc5..85a0b95 100644 --- a/src/components/layout.js +++ b/src/components/layout.js @@ -1,10 +1,11 @@ import * as React from "react" import { Link as GatsbyLink } from "gatsby" -import { AppBar, Box, Container, CssBaseline, Grid, Link, ThemeProvider, Toolbar } from "@mui/material" +import { AppBar, Box, Container, CssBaseline, Grid, IconButton, Link, ThemeProvider, Toolbar } from "@mui/material" import NavMenu from "./nav-menu" import theme from "./theme" import Footer from "./footer" import flower from "../images/flower.png" +import MenuIcon from "@mui/icons-material/Menu" const Layout = ({ location, title, children, noHeader }) => { // const rootPath = `${__PATH_PREFIX__}/` @@ -29,14 +30,16 @@ const Layout = ({ location, title, children, noHeader }) => { <> - {!noHeader && ( - + - + {!noHeader && ( { > {title} - - - )} + )} + + + + + - - + + + +
{children}