From 97973cedb96dd6dd108245e6e93fb9b00c87a8ca Mon Sep 17 00:00:00 2001 From: haseebzaki-07 Date: Sat, 3 Aug 2024 23:55:25 +0530 Subject: [PATCH 1/2] improve_navbar --- backend/.env.example | 2 +- frontend/src/components/Navbar.tsx | 21 ++++++++++++--------- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/backend/.env.example b/backend/.env.example index 34281045..aaf8e099 100644 --- a/backend/.env.example +++ b/backend/.env.example @@ -1,4 +1,4 @@ -DATABASE_URL="mongodb+srv://:@/syleshare" +DATABASE_URL="mongodb+srv://username:pass@cluster0.k7v9clo.mongodb.net/styleshare" JWT_SECRET="secret" PORT=3001 # EMAIL_USER=user_email_id diff --git a/frontend/src/components/Navbar.tsx b/frontend/src/components/Navbar.tsx index e183dfb9..eaf428a3 100644 --- a/frontend/src/components/Navbar.tsx +++ b/frontend/src/components/Navbar.tsx @@ -41,15 +41,15 @@ const Navbar: React.FC = ({ theme, toggleTheme }) => { const getNavLinkClass = (path: string) => { return location.pathname === path - ? "block rounded-md px-3 py-2 text-base font-medium text-gray-50 dark:text-gray-50 bg-[#2575fc]" - : "block rounded-md px-3 py-2 text-base font-medium text-gray-50 dark:text-gray-50 hover:bg-[#2575fc] "; + ? "block rounded-md px-3 py-2 text-base font-medium text-gray-50 dark:text-gray-50 bg-[#2575fc] " + : "block rounded-md px-3 py-2 text-base font-medium text-gray-50 dark:text-gray-50 hover:bg-[#2575fc] "; }; return (