From 79e21cccd6047abf3484f732e425389a5d9b3bda Mon Sep 17 00:00:00 2001 From: Kartikey Date: Tue, 19 May 2026 13:24:52 +0530 Subject: [PATCH] feat: add glassmorphism effect to navbar --- src/App.tsx | 2 +- src/components/Navbar.tsx | 164 ++++++++++++++++++++++---------------- 2 files changed, 95 insertions(+), 71 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 8eafb448..ccc6c670 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -12,7 +12,7 @@ function App() { const isFullscreen = FULLSCREEN_ROUTES.includes(location.pathname); return ( -
+
{!isFullscreen && } {!isFullscreen && } diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index 7718aa74..c3323886 100644 --- a/src/components/Navbar.tsx +++ b/src/components/Navbar.tsx @@ -1,7 +1,7 @@ import { NavLink, Link } from "react-router-dom"; import { useState, useContext } from "react"; import { ThemeContext } from "../context/ThemeContext"; -import { Moon, Sun, Menu, X, UserPlus } from 'lucide-react'; +import { Moon, Sun, Menu, X } from "lucide-react"; const Navbar: React.FC = () => { const [isOpen, setIsOpen] = useState(false); @@ -10,15 +10,8 @@ const Navbar: React.FC = () => { if (!themeContext) return null; const { toggleTheme, mode } = themeContext; - const navLinkStyles = ({ isActive }: { isActive: boolean }) => - `px-5 py-2 rounded-full text-lg font-semibold transition-all duration-300 - ${isActive - ? "text-blue-600 bg-blue-100/60 dark:bg-blue-900/40 shadow-sm ring-1 ring-blue-200/50" - : "text-slate-600 dark:text-gray-300 hover:text-blue-500 hover:bg-white/50" - }`; - return ( -