Spaces:
Running
Running
Download src/components/Navbar.jsx from gaurangu/data-alchemy-pro: direct link, hf CLI and curl.
- Browser
- Download file 1.17 kB
-
https://huggingface.co/spaces/gaurangu/data-alchemy-pro/resolve/main/src/components/Navbar.jsx
- Command line
-
hf download hf://spaces/gaurangu/data-alchemy-pro/src/components/Navbar.jsx
-
curl -L -o Navbar.jsx https://huggingface.co/spaces/gaurangu/data-alchemy-pro/resolve/main/src/components/Navbar.jsx
1.17 kB
| import { Link } from 'react-router-dom'; | |
| import { useEffect } from 'react'; | |
| const Navbar = () => { | |
| useEffect(() => { | |
| const feather = require('feather-icons'); | |
| feather.replace(); | |
| }, []); | |
| return ( | |
| <nav className="bg-white py-4 px-8 shadow-sm sticky top-0 z-50"> | |
| <div className="max-w-7xl mx-auto flex justify-between items-center"> | |
| <Link to="/" className="flex items-center text-2xl font-bold text-gray-900"> | |
| <i data-feather="zap" className="text-indigo-600 mr-2"></i> | |
| Data Alchemy Pro | |
| </Link> | |
| <div className="hidden md:flex items-center space-x-8"> | |
| <Link to="/" className="text-gray-600 hover:text-indigo-600 font-medium">Home</Link> | |
| <Link to="/documentation" className="text-gray-600 hover:text-indigo-600 font-medium">Documentation</Link> | |
| <Link to="/" className="bg-indigo-600 hover:bg-indigo-700 text-white px-4 py-2 rounded-md font-medium"> | |
| Sign In | |
| </Link> | |
| </div> | |
| <button className="md:hidden"> | |
| <i data-feather="menu"></i> | |
| </button> | |
| </div> | |
| </nav> | |
| ); | |
| }; | |
| export default Navbar; |