From 51cd50dcc3d51b327ae3cf148d75dafe0febefd3 Mon Sep 17 00:00:00 2001 From: desmukh Date: Thu, 5 Jan 2023 15:35:42 +0500 Subject: [PATCH] update layout --- src/components/layout.js | 71 +++++++++++++++++++++++++--------------- 1 file changed, 45 insertions(+), 26 deletions(-) diff --git a/src/components/layout.js b/src/components/layout.js index 9d5ce00..41fd635 100644 --- a/src/components/layout.js +++ b/src/components/layout.js @@ -1,35 +1,54 @@ import * as React from "react" -import { Link } from "gatsby" +import { Link as GatsbyLink } from "gatsby" +import { AppBar, Button, Container, Link, Toolbar } from "@mui/material" const Layout = ({ location, title, children }) => { - const rootPath = `${__PATH_PREFIX__}/` - const isRootPath = location.pathname === rootPath - let header + // const rootPath = `${__PATH_PREFIX__}/` + // const isRootPath = location.pathname === rootPath + // let header - if (isRootPath) { - header = ( -

- {title} -

- ) - } else { - header = ( - - {title} - - ) - } + // if (isRootPath) { + // header = ( + //

+ // {title} + //

+ // ) + // } else { + // header = ( + // + // {title} + // + // ) + // } return ( -
-
{header}
-
{children}
-
- © {new Date().getFullYear()}, Built with - {` `} - Gatsby -
-
+ <> + + + + {title} + + + + +
{children}
+ +
+ ) }