From e689afa75c91eb75150c60fab96ab1fd7ac2ff3c Mon Sep 17 00:00:00 2001 From: yuvraj-k-singh Date: Fri, 15 May 2026 00:19:13 +0530 Subject: [PATCH 1/3] Improve Navbar UI/UX of the Website --- src/components/Navbar.tsx | 252 ++++++++++++++++++++------------------ 1 file changed, 136 insertions(+), 116 deletions(-) diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index c6cc86d..18f1e2f 100644 --- a/src/components/Navbar.tsx +++ b/src/components/Navbar.tsx @@ -1,143 +1,163 @@ -import { Link } from "react-router-dom"; +import { NavLink, Link, useLocation, useNavigate } from "react-router-dom"; import { useState, useContext } from "react"; import { ThemeContext } from "../context/ThemeContext"; -import { Moon, Sun } from 'lucide-react'; - +import { Moon, Sun, Menu, X, UserPlus } from 'lucide-react'; const Navbar: React.FC = () => { - const [isOpen, setIsOpen] = useState(false); const themeContext = useContext(ThemeContext); + const location = useLocation(); + const navigate = useNavigate(); - if (!themeContext) - return null; - + if (!themeContext) return null; const { toggleTheme, mode } = themeContext; - return ( -