OpenCRE icon indicating copy to clipboard operation
OpenCRE copied to clipboard

feat(navbar): add active link underline + highlight (#647)

Open sanket-rajput opened this issue 11 months ago • 0 comments

Summary

This PR resolves issue #647 by adding a clear active-state indicator to the main navbar.
It improves usability and navigation clarity across the application.

Changes included

✔ Implemented active route detection using useLocation()
✔ Added isActive() helper for route comparison
✔ Applied active class to corresponding nav links
✔ Styled active link with:

  • White text color
  • Bold font weight
  • Underline indicator
  • Smooth transitions for improved UX

Why this is needed

Users currently cannot see which page is active in the navbar.
This update provides a consistent visual cue and improves overall navigation experience.

Files modified

  • Header.tsx
  • header.scss

Issue reference

Fixes #647


Please let me know if you'd like any adjustments! Screenshot 2025-12-05 012025 Screenshot 2025-12-05 011546

sanket-rajput avatar Dec 04 '25 20:12 sanket-rajput