Spaces:
Sleeping
Sleeping
Download components/Header.jsx from ryeisi/anycoder-7491f760: direct link, hf CLI and curl.
- Browser
- Download file 1.01 kB
-
https://huggingface.co/spaces/ryeisi/anycoder-7491f760/resolve/main/components/Header.jsx
- Command line
-
hf download hf://spaces/ryeisi/anycoder-7491f760/components/Header.jsx
-
curl -L -o Header.jsx https://huggingface.co/spaces/ryeisi/anycoder-7491f760/resolve/main/components/Header.jsx
1.01 kB
| import Link from 'next/link'; | |
| import { FiShoppingBag, FiMapPin, FiSearch } from 'react-icons/fi'; | |
| export default function Header() { | |
| return ( | |
| <header className="bg-white shadow-sm sticky top-0 z-10"> | |
| <div className="container py-4 flex items-center justify-between"> | |
| <Link href="/" className="flex items-center space-x-2"> | |
| <FiShoppingBag className="text-primary text-2xl" /> | |
| <span className="text-xl font-bold text-primary">MyTownStore</span> | |
| </Link> | |
| <div className="flex items-center space-x-4"> | |
| <Link href="/about" className="text-gray-600 hover:text-primary"> | |
| About | |
| </Link> | |
| <Link href="/contact" className="text-gray-600 hover:text-primary"> | |
| Contact | |
| </Link> | |
| <Link href="/list-your-store" className="bg-primary text-white px-4 py-2 rounded-md hover:bg-primary-dark transition"> | |
| List Your Store | |
| </Link> | |
| </div> | |
| </div> | |
| </header> | |
| ); | |
| } |