OpenCRE
OpenCRE copied to clipboard
feat(navbar): add active link underline + highlight (#647)
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.tsxheader.scss
Issue reference
Fixes #647
Please let me know if you'd like any adjustments!