import styled from 'styled-components'; import React from 'react' import { Link,useLocation} from "react-router-dom"; import { media } from "../Utils/helper.js"; // 👈 adjust path as needed function Nav() { const location = useLocation(); return ( Home Submit Model {/* Leaderboard */} Metrics Dataset Contact Us ) } const NavBar = styled.div` display: flex; justify-content: center; gap: 3rem; margin-inline: auto; padding: 0.8rem; /* background: rgba(22, 52, 250, 0.2); */ background-color: rgb(243, 245, 250); border: 1.5px solid rgb(209, 209, 209); backdrop-filter: blur(10px); border-radius: 15px; @media ${media.tablet} { gap: 2rem; padding: 0.5rem; } @media ${media.mobile} { gap: 1rem; padding: 0.4rem; } @media (max-width: 370px) { flex-wrap: wrap ; gap: 1.5rem; } `; // Styled Link with Active Highlighting const NavLink = styled(Link)` text-decoration: none; font-size: 1.3rem; font-weight: bold; color: ${({ $active }) => ($active ? "#3b82f6" : "#000000")}; border-bottom: ${({ $active }) => ($active ? "3px solid #3b82f6" : "none")}; /* transition: color 0.3s, border-bottom 0.3s; */ display: flex; align-items: center; justify-content: center; text-align: center; &:hover { color: #3b82f6; } @media ${media.tablet} { font-size: 1.1rem; } @media ${media.mobile} { font-size: 0.9rem; } `; export default Nav