From 3752cca6be7324a1d6bc7dd7a5d6f451bcdf3311 Mon Sep 17 00:00:00 2001 From: Abhii Date: Thu, 17 Oct 2024 18:58:11 +0530 Subject: [PATCH 1/2] Nav menu added for mobile --- components/molecules/NavBar.tsx | 88 ++++++++++++++++++++++++++++----- 1 file changed, 75 insertions(+), 13 deletions(-) diff --git a/components/molecules/NavBar.tsx b/components/molecules/NavBar.tsx index 74b9d5f..6e833d5 100644 --- a/components/molecules/NavBar.tsx +++ b/components/molecules/NavBar.tsx @@ -1,3 +1,5 @@ +"use client"; +import { useState } from "react"; import { navLinks } from "@/constants"; import ThemeToggle from "../atoms/themeToggle"; import Image from "next/image"; @@ -5,52 +7,112 @@ import dentLogoLite from "@/public/images/dentLogoLite.png"; import dentLogoDark from "@/public/images/dentLogoDark.png"; import Button from "@/components/atoms/Button"; import Link from "next/link"; +import { Close } from "@mui/icons-material"; export default function navBar() { + const [open, setOpen] = useState(false); return ( -