profile / src /components /Footer.js
n0w0f's picture
Replace FastAPI with React portfolio
c990683
import React from 'react';
import { Link } from 'react-router-dom';
const Navigation = ({ currentPath }) => {
const navItems = [
{ path: '/', label: 'Home' },
{ path: '/publications', label: 'Publications' },
{ path: '/projects', label: 'Projects' },
{ path: '/blog', label: 'Blog' },
{ path: '/resume', label: 'Resume' }
];
return (
<nav className="bg-white shadow-md sticky top-0 z-10">
<div className="container mx-auto px-4">
<div className="flex overflow-x-auto py-2 space-x-6">
{navItems.map((item) => (
<Link
key={item.path}
to={item.path}
className={`px-3 py-2 font-medium whitespace-nowrap ${
currentPath === item.path
? 'text-primary border-b-2 border-primary'
: 'text-gray-600 hover:text-primary'
}`}
>
{item.label}
</Link>
))}
</div>
</div>
</nav>
);
};
export default Navigation;