Skip to content

refactor: Extract Navbar component and update Dashboard/AboutUs screens#255

Open
KanhaiyaBagul wants to merge 1 commit intosantanu-atta03:mainfrom
KanhaiyaBagul:refactor/navbar-implementation
Open

refactor: Extract Navbar component and update Dashboard/AboutUs screens#255
KanhaiyaBagul wants to merge 1 commit intosantanu-atta03:mainfrom
KanhaiyaBagul:refactor/navbar-implementation

Conversation

@KanhaiyaBagul
Copy link
Contributor

Refactor: Extract Navbar Component and Update Dashboard/AboutUs

This PR refactors the navigation bar implementation by creating a reusable Navbar component and integrating it into Dashboard.jsx and AboutUs.jsx. This change eliminates significant code duplication and centralizes the navigation logic, making future updates easier and ensuring a consistent user experience.

Changes Made

  • Created Frontend/src/components/shared/Navbar.jsx: A new component that supports two variants:
    • dashboard: Sticky navbar with Notifications, User Profile, and Dashboard-specific links.
    • public: Floating pill navbar with public navigation links (Features, About, etc.) and Auth buttons.
  • Refactored Dashboard.jsx: Removed the inline navigation implementation (~250 lines) and replaced it with <Navbar variant="dashboard" />.
  • Refactored AboutUs.jsx: Removed the manual navigation implementation and replaced it with <Navbar variant="public" />.
  • Cleanup: Removed unused imports (lucide-react icons, hooks) and local state related to the old navigation logic from the page components.

@vercel
Copy link

vercel bot commented Feb 7, 2026

@KanhaiyaBagul is attempting to deploy a commit to the santanu-atta03's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link

github-actions bot commented Feb 7, 2026

Thanks for creating a PR for your Issue! ☺️

We'll review it as soon as possible.
In the meantime, please double-check the file changes and ensure that all commits are accurate.

If there are any unresolved review comments, feel free to resolve them. 🙌🏼

@lokeshjakhar7781 lokeshjakhar7781 added the ECWoC26 Required for ECWoC26 scoring label Feb 7, 2026
@santanu-atta03
Copy link
Owner

@KanhaiyaBagul please resolve the conflicts, and also attach the screenshots of the work

@santanu-atta03 santanu-atta03 added enhancement New feature or request ECWoC26-L3 labels Feb 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ECWoC26-L3 ECWoC26 Required for ECWoC26 scoring enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments