From 50ddab2fa9d971963f347c7bc567e39ae3a708e2 Mon Sep 17 00:00:00 2001 From: Saksham Agrawal <153260291+sksmagr23@users.noreply.github.com> Date: Sun, 30 Jun 2024 23:06:34 +0530 Subject: [PATCH] navbar: Implemented fading in & out effect (#176) Added tailwind transition and transform properties with state change of sidebar and modal ,giving fading effect on opening and closing. fixes #131 --- frontend/src/Navbar.tsx | 156 ++++++++++---------- frontend/src/index.css | 22 +++ frontend/src/library/modal/Modal.tsx | 10 +- frontend/src/library/modal/ModalContext.tsx | 7 +- 4 files changed, 113 insertions(+), 82 deletions(-) diff --git a/frontend/src/Navbar.tsx b/frontend/src/Navbar.tsx index 9b75351a..0550fb5e 100644 --- a/frontend/src/Navbar.tsx +++ b/frontend/src/Navbar.tsx @@ -129,7 +129,6 @@ const rules = ( ); const Navbar: React.FC = () => { const [sidebarOpen, setSidebarOpen] = useState(false); - const auth = useAuth(); const modal = useModal(); const navigate = useNavigate(); @@ -194,96 +193,99 @@ const Navbar: React.FC = () => { > )} - {sidebarOpen && ( -