From 0f8e42c426f0135b96e5398a554be415166f6766 Mon Sep 17 00:00:00 2001 From: Divyaranjan Sahoo Date: Thu, 2 Oct 2025 14:17:56 +0530 Subject: [PATCH 1/2] feat: Add enhanced navigation bar with page links and active states --- src/Components/Nav/Nav.jsx | 35 +++++++++++++++++++++++---- src/Components/Nav/Nav.module.css | 17 ++++++++++++- src/pages/Contributors.jsx | 2 ++ src/pages/LocationContributorsMap.jsx | 3 ++- 4 files changed, 50 insertions(+), 7 deletions(-) diff --git a/src/Components/Nav/Nav.jsx b/src/Components/Nav/Nav.jsx index 560f22d4..11a521cf 100644 --- a/src/Components/Nav/Nav.jsx +++ b/src/Components/Nav/Nav.jsx @@ -2,17 +2,41 @@ import styles from './Nav.module.css'; import Button from '../Elements/Button/Button'; +import { Link, useLocation } from 'react-router-dom'; const Nav = () => { + const location = useLocation(); + + const navItems = [ + { path: '/', label: 'Home' }, + { path: '/Contributors', label: 'Contributors' }, + { path: '/contributors-map', label: 'Map' } + ]; return (