Spaces:
Sleeping
Sleeping
Download components/Header.jsx from ryeisi/anycoder-6b75aad4: direct link, hf CLI and curl.
- Browser
- Download file 2.84 kB
-
https://huggingface.co/spaces/ryeisi/anycoder-6b75aad4/resolve/main/components/Header.jsx
- Command line
-
hf download hf://spaces/ryeisi/anycoder-6b75aad4/components/Header.jsx
-
curl -L -o Header.jsx https://huggingface.co/spaces/ryeisi/anycoder-6b75aad4/resolve/main/components/Header.jsx
2.84 kB
| import { useState } from 'react'; | |
| import { Menu, X, Search, Phone, Mail } from 'lucide-react'; | |
| export default function Header() { | |
| const [isMenuOpen, setIsMenuOpen] = useState(false); | |
| return ( | |
| <header className="bg-white shadow-sm sticky top-0 z-50"> | |
| <div className="container mx-auto px-4"> | |
| <div className="flex items-center justify-between h-16"> | |
| <div className="flex items-center"> | |
| <h1 className="text-2xl font-bold text-primary-600">EstateHub</h1> | |
| </div> | |
| <nav className="hidden md:flex items-center space-x-8"> | |
| <a href="#home" className="text-gray-700 hover:text-primary-600 transition-colors">Home</a> | |
| <a href="#properties" className="text-gray-700 hover:text-primary-600 transition-colors">Properties</a> | |
| <a href="#about" className="text-gray-700 hover:text-primary-600 transition-colors">About</a> | |
| <a href="#contact" className="text-gray-700 hover:text-primary-600 transition-colors">Contact</a> | |
| <a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank" rel="noopener noreferrer" className="text-sm text-gray-500 hover:text-primary-600 transition-colors"> | |
| Built with anycoder | |
| </a> | |
| </nav> | |
| <div className="hidden md:flex items-center space-x-4"> | |
| <button className="p-2 text-gray-600 hover:text-primary-600 transition-colors"> | |
| <Phone className="w-5 h-5" /> | |
| </button> | |
| <button className="btn-primary"> | |
| List Property | |
| </button> | |
| </div> | |
| <button | |
| className="md:hidden p-2 text-gray-600" | |
| onClick={() => setIsMenuOpen(!isMenuOpen)} | |
| > | |
| {isMenuOpen ? <X className="w-6 h-6" /> : <Menu className="w-6 h-6" />} | |
| </button> | |
| </div> | |
| {isMenuOpen && ( | |
| <div className="md:hidden py-4 border-t"> | |
| <nav className="flex flex-col space-y-3"> | |
| <a href="#home" className="text-gray-700 hover:text-primary-600 transition-colors">Home</a> | |
| <a href="#properties" className="text-gray-700 hover:text-primary-600 transition-colors">Properties</a> | |
| <a href="#about" className="text-gray-700 hover:text-primary-600 transition-colors">About</a> | |
| <a href="#contact" className="text-gray-700 hover:text-primary-600 transition-colors">Contact</a> | |
| <a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank" rel="noopener noreferrer" className="text-sm text-gray-500 hover:text-primary-600 transition-colors"> | |
| Built with anycoder | |
| </a> | |
| <button className="btn-primary w-full">List Property</button> | |
| </nav> | |
| </div> | |
| )} | |
| </div> | |
| </header> | |
| ); | |
| } |