diff --git a/layouts/nav/editor-nav.tsx b/layouts/nav/editor-nav.tsx index 922370e7..f6201d24 100644 --- a/layouts/nav/editor-nav.tsx +++ b/layouts/nav/editor-nav.tsx @@ -47,8 +47,8 @@ function HeaderContent(props: Props) { return ( <> - - + + @@ -61,7 +61,7 @@ function HeaderContent(props: Props) { - + - + */} - + {/* */} ) } diff --git a/layouts/nav/post-nav.tsx b/layouts/nav/post-nav.tsx index 53d352f4..a651e092 100644 --- a/layouts/nav/post-nav.tsx +++ b/layouts/nav/post-nav.tsx @@ -40,7 +40,7 @@ function HeaderContent() { - - {navLinks.map(link => {link.title})} + + {navLinks.map(link => + + + {link.icon}{link.title} + + + )} diff --git a/layouts/page-container1.tsx b/layouts/page-container1.tsx index bb597966..fe47742e 100644 --- a/layouts/page-container1.tsx +++ b/layouts/page-container1.tsx @@ -1,4 +1,4 @@ -import { Badge, Box, chakra,Flex,PropsOf } from "@chakra-ui/react" +import { Badge, Box, chakra,Flex,PropsOf, useMediaQuery } from "@chakra-ui/react" import { SkipNavContent, SkipNavLink } from "@chakra-ui/skip-nav" import Container from "components/container" import Footer from "./footer" @@ -34,7 +34,8 @@ type PageContainerProps = PropsOf & { function PageContainer1(props: PageContainerProps) { const { children ,nav, ...rest} = props useHeadingFocusOnRouteChange() - + const [isSmallScreen] = useMediaQuery("(max-width: 768px)") + const header = isSmallScreen ?