diff --git a/components/navbar.tsx b/components/navbar.tsx index 1ac7fd4..67234f1 100644 --- a/components/navbar.tsx +++ b/components/navbar.tsx @@ -94,6 +94,7 @@ function MagneticNavItem({ export default function Navbar() { const [isOpen, setIsOpen] = useState(false); + const [isMobileSearchOpen, setIsMobileSearchOpen] = useState(false); const [searchQuery, setSearchQuery] = useState(""); const [scrolled, setScrolled] = useState(false); const { theme, resolvedTheme, setTheme } = useTheme(); @@ -411,69 +412,86 @@ export default function Navbar() { - {/* Mobile Menu Button */} - + {/* Mobile Actions (Search & Menu) */} +
+ {/* Mobile Search Icon */} + + + {/* Mobile Menu Button */} + +
- {/* Mobile Navigation */} + {/* Mobile Search Drawer */} - {isOpen && ( + {isMobileSearchOpen && ( -
- {/* Mobile Search Bar */} -
-
- - -
+
+
+ + {/* Mobile Search Dropdown */} {searchQuery && ( {filteredUniversities.length > 0 ? ( -
+
{filteredUniversities.map((uni) => ( ))} @@ -513,7 +531,25 @@ export default function Navbar() { )}
+
+
+ )} +
+ {/* Mobile Navigation */} + + {isOpen && ( + +
{navLinks.map((link) => { const isActive = (pathname === "/" &&