diff --git a/src/Components/Navbar.jsx b/src/Components/Navbar.jsx index a763a4d..52237c1 100644 --- a/src/Components/Navbar.jsx +++ b/src/Components/Navbar.jsx @@ -1,21 +1,20 @@ -import { useState, useEffect } from "react"; -import { FaHome, FaHashtag } from "react-icons/fa"; +import { FaHome } from "react-icons/fa"; import { GrGallery } from "react-icons/gr"; import { BsFillPeopleFill } from "react-icons/bs"; +import { FaHashtag } from "react-icons/fa"; import Hamburger from "/hamburger.png"; - +import { useState, useEffect } from "react"; +import { BiImages } from "react-icons/bi"; export default function Navbar() { const [menuOpen, setMenuOpen] = useState(false); const [navbarColor, setNavbarColor] = useState("transparent"); - const toggleMenu = () => { - setMenuOpen((prevMenuOpen) => !prevMenuOpen); + setMenuOpen(!menuOpen); }; const closeMenu = () => { setMenuOpen(false); }; - const handleScroll = () => { setNavbarColor(window.scrollY > 1300 ? "black" : "transparent"); }; @@ -29,7 +28,7 @@ export default function Navbar() { return ( <> -
+
@@ -42,8 +41,10 @@ export default function Navbar() { BEAT{" "}

Bridge @@ -53,16 +54,23 @@ export default function Navbar() { hamburger menu

+ {/*
*/}
+ {menuOpen && ( +
+ )}
-