IamVicky111 commited on
Commit
84ee872
·
verified ·
1 Parent(s): b97e844

Upload components/Header.jsx with huggingface_hub

Browse files
Files changed (1) hide show
  1. components/Header.jsx +83 -0
components/Header.jsx ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import Link from 'next/link';
2
+ import { Menu, X } from 'lucide-react';
3
+ import { useState } from 'react';
4
+
5
+ export default function Header() {
6
+ const [isMenuOpen, setIsMenuOpen] = useState(false);
7
+
8
+ const navigation = [
9
+ { name: 'Features', href: '#features' },
10
+ { name: 'Specifications', href: '#specs' },
11
+ { name: 'Applications', href: '#applications' },
12
+ { name: 'Documentation', href: '#docs' },
13
+ ];
14
+
15
+ return (
16
+ <header className="fixed top-0 left-0 right-0 z-50 bg-gray-900/80 backdrop-blur-lg border-b border-gray-800">
17
+ <nav className="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
18
+ <div className="flex items-center justify-between h-16">
19
+ {/* Logo */}
20
+ <div className="flex items-center space-x-2">
21
+ <div className="w-10 h-10 bg-gradient-to-br from-primary-500 to-accent-500 rounded-lg flex items-center justify-center">
22
+ <span className="text-white font-bold text-xl">R</span>
23
+ </div>
24
+ <span className="text-xl font-bold">Reachy Mini</span>
25
+ </div>
26
+
27
+ {/* Desktop Navigation */}
28
+ <div className="hidden md:flex items-center space-x-8">
29
+ {navigation.map((item) => (
30
+ <Link
31
+ key={item.name}
32
+ href={item.href}
33
+ className="text-gray-300 hover:text-white transition-colors duration-200"
34
+ >
35
+ {item.name}
36
+ </Link>
37
+ ))}
38
+ <a
39
+ href="https://huggingface.co/spaces/akhaliq/anycoder"
40
+ target="_blank"
41
+ rel="noopener noreferrer"
42
+ className="text-sm text-primary-400 hover:text-primary-300 transition-colors"
43
+ >
44
+ Built with anycoder
45
+ </a>
46
+ </div>
47
+
48
+ {/* Mobile menu button */}
49
+ <button
50
+ onClick={() => setIsMenuOpen(!isMenuOpen)}
51
+ className="md:hidden p-2 rounded-lg text-gray-400 hover:text-white hover:bg-gray-800"
52
+ >
53
+ {isMenuOpen ? <X size={24} /> : <Menu size={24} />}
54
+ </button>
55
+ </div>
56
+
57
+ {/* Mobile Navigation */}
58
+ {isMenuOpen && (
59
+ <div className="md:hidden py-4 border-t border-gray-800">
60
+ {navigation.map((item) => (
61
+ <Link
62
+ key={item.name}
63
+ href={item.href}
64
+ className="block py-2 text-gray-300 hover:text-white transition-colors"
65
+ onClick={() => setIsMenuOpen(false)}
66
+ >
67
+ {item.name}
68
+ </Link>
69
+ ))}
70
+ <a
71
+ href="https://huggingface.co/spaces/akhaliq/anycoder"
72
+ target="_blank"
73
+ rel="noopener noreferrer"
74
+ className="block py-2 text-primary-400 hover:text-primary-300 transition-colors"
75
+ >
76
+ Built with anycoder
77
+ </a>
78
+ </div>
79
+ )}
80
+ </nav>
81
+ </header>
82
+ );
83
+ }