From 910ff962c9acd2b696e1f2bf724ace1c3e2f114f Mon Sep 17 00:00:00 2001 From: arpit2006 Date: Thu, 28 May 2026 17:06:04 +0530 Subject: [PATCH 1/2] added feature profile page on navbar --- src/Routes/Router.tsx | 2 + src/components/Navbar.tsx | 57 ++-------- src/pages/Profile/Profile.tsx | 203 ++++++++++++++++++++++++++++++++++ 3 files changed, 217 insertions(+), 45 deletions(-) create mode 100644 src/pages/Profile/Profile.tsx diff --git a/src/Routes/Router.tsx b/src/Routes/Router.tsx index 874ef7e7..c8ca2fc3 100644 --- a/src/Routes/Router.tsx +++ b/src/Routes/Router.tsx @@ -9,6 +9,7 @@ import ContributorProfile from "../pages/ContributorProfile/ContributorProfile.t import Home from "../pages/Home/Home.tsx"; import Activity from "../pages/Activity.tsx"; import PrivacyPolicy from "../pages/Privacy/PrivacyPolicy.tsx"; // ✅ Updated import path to match your new folder structure +import Profile from "../pages/Profile/Profile.tsx"; const Router = () => { return ( @@ -21,6 +22,7 @@ const Router = () => { } /> } /> } /> + } /> } /> {/* Privacy Policy page route */} diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index fd5eac86..526ff561 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, Github } from "lucide-react"; +import { Moon, Sun, Menu, X, User } from "lucide-react"; const Navbar: React.FC = () => { const [isOpen, setIsOpen] = useState(false); @@ -24,40 +24,30 @@ const Navbar: React.FC = () => { return (