diff --git a/apps/connect/src/components/atoms/NavBar.tsx b/apps/connect/src/components/atoms/NavBar.tsx index d0b422c1c..b2f46153b 100644 --- a/apps/connect/src/components/atoms/NavBar.tsx +++ b/apps/connect/src/components/atoms/NavBar.tsx @@ -6,6 +6,9 @@ import Toolbar from "@mui/material/Toolbar"; import styled from "@mui/material/styles/styled"; import Box from "@mui/material/Box"; import portal from "../../assets/imgs/logo-white.svg"; +import MenuIcon from "@mui/icons-material/Menu"; +import { useState } from "react"; +import { List, ListItem, ListItemButton, ListItemText } from "@mui/material"; const AppBar = styled(MuiAppBar)(({ theme }) => ({ background: "transparent", @@ -22,18 +25,24 @@ const Link = styled(MuiLink)(({ theme }) => ({ ...theme.typography.body2, fontSize: "14px", fontWeight: 400, - fontFamily: "\"Poppins\", regular", + fontFamily: '"Poppins", regular', color: "#FFFFFFE6", marginLeft: theme.spacing(7), textUnderlineOffset: "6px", [theme.breakpoints.down("sm")]: { marginLeft: theme.spacing(2.5), + fontSize: "0.9rem", + paddingTop: 8, + paddingBottom: 8, + paddingRight: 16, + width: "100%", + lineHeight: "45px", }, [theme.breakpoints.down("xs")]: { marginLeft: theme.spacing(1), }, ":hover": { - textDecoration: "underline" + textDecoration: "underline", }, })); @@ -64,7 +73,17 @@ const Spacer = styled("div")(() => ({ width: "100vw", })); +const womrholescanButton = ( + + + Wormholescan + + + +); + export default function NavBar() { + const [openMenu, setOpenMenu] = useState(false); return ( @@ -72,33 +91,43 @@ export default function NavBar() { - +
- { - navBar.map(({ label, active, href }, idx) => - - {label} - - ) - } - + {navBar.map(({ label, active, href }, idx) => ( - Wormholescan + {label} - - + ))} + {womrholescanButton}
+ + { + setOpenMenu(!openMenu); + }} + /> +
+ {openMenu && ( + + + {navBar.map(({ label, href }, idx) => ( + + + + + + ))} + {womrholescanButton} + + + )}
); }