From ada6d38e059dcb4962aaebc0679c05342506d216 Mon Sep 17 00:00:00 2001 From: meet Date: Sat, 10 Aug 2024 14:17:40 +0530 Subject: [PATCH 1/3] Added Icons in the navbar and fix some navbar bugs --- frontend/src/components/Navbar.tsx | 444 +++++++++++++++-------------- 1 file changed, 224 insertions(+), 220 deletions(-) diff --git a/frontend/src/components/Navbar.tsx b/frontend/src/components/Navbar.tsx index a096710..e9a5c8e 100644 --- a/frontend/src/components/Navbar.tsx +++ b/frontend/src/components/Navbar.tsx @@ -5,6 +5,16 @@ import { Link, useLocation } from "react-router-dom"; import toast from "react-hot-toast"; import logo from "../assets/favicon.png"; import { FaSun, FaMoon } from "react-icons/fa"; +import { FaHome } from "react-icons/fa"; +import { MdPostAdd } from "react-icons/md"; +import { MdLeaderboard } from "react-icons/md"; +import { MdLogin } from "react-icons/md"; +import { FaUserPlus } from "react-icons/fa"; +import { FaRegNewspaper } from "react-icons/fa6"; +import { FaLaptopCode } from "react-icons/fa"; +import { CgProfile } from "react-icons/cg"; +import { MdFavoriteBorder } from "react-icons/md"; +import { MdOutlineLogout } from "react-icons/md"; interface NavbarProps { theme: "light" | "dark"; @@ -47,248 +57,242 @@ const Navbar: React.FC = ({ theme, toggleTheme }) => { return (
- +
+ ); }; From 1ee6f1af840c4e09b8fdb82998c016ec02f993f2 Mon Sep 17 00:00:00 2001 From: meet Date: Sat, 10 Aug 2024 14:25:05 +0530 Subject: [PATCH 2/3] Fixed icons to the center --- frontend/src/components/Navbar.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/Navbar.tsx b/frontend/src/components/Navbar.tsx index e9a5c8e..a556066 100644 --- a/frontend/src/components/Navbar.tsx +++ b/frontend/src/components/Navbar.tsx @@ -274,14 +274,14 @@ const Navbar: React.FC = ({ theme, toggleTheme }) => {
SignIn SignUp From 7b927419ad22100dfeb687301e3f6ffad5e60239 Mon Sep 17 00:00:00 2001 From: meet Date: Sat, 10 Aug 2024 15:09:15 +0530 Subject: [PATCH 3/3] Removed extra gap from navbar --- frontend/src/components/Navbar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/Navbar.tsx b/frontend/src/components/Navbar.tsx index 28a6bbd..a556066 100644 --- a/frontend/src/components/Navbar.tsx +++ b/frontend/src/components/Navbar.tsx @@ -73,7 +73,7 @@ const Navbar: React.FC = ({ theme, toggleTheme }) => {
-
+