Mehdi commited on
Commit
d302672
·
verified ·
1 Parent(s): fb61707

Upload components/Header.jsx with huggingface_hub

Browse files
Files changed (1) hide show
  1. components/Header.jsx +64 -0
components/Header.jsx ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import Link from 'next/link'
2
+ import { FiGithub, FiTwitter, FiBook, FiCode, FiCpu } from 'react-icons/fi'
3
+
4
+ export default function Header() {
5
+ return (
6
+ <header className="bg-primary text-white shadow-lg sticky top-0 z-50">
7
+ <div className="container mx-auto px-4 py-3 flex justify-between items-center">
8
+ <div className="flex items-center space-x-2">
9
+ <FiCode className="text-2xl" />
10
+ <h1 className="text-xl font-bold">
11
+ <Link href="/" className="hover:text-gray-200 transition-colors">
12
+ FullStack Programming Hub
13
+ </Link>
14
+ </h1>
15
+ </div>
16
+ <div className="flex items-center space-x-6">
17
+ <nav className="hidden md:flex space-x-6">
18
+ <Link href="/editor" className="hover:text-gray-200 transition-colors flex items-center space-x-1">
19
+ <FiCpu className="text-sm" />
20
+ <span>Editor</span>
21
+ </Link>
22
+ <Link href="/models" className="hover:text-gray-200 transition-colors flex items-center space-x-1">
23
+ <FiBook className="text-sm" />
24
+ <span>Models</span>
25
+ </Link>
26
+ <Link href="/docs" className="hover:text-gray-200 transition-colors flex items-center space-x-1">
27
+ <FiCode className="text-sm" />
28
+ <span>Docs</span>
29
+ </Link>
30
+ </nav>
31
+ <div className="flex items-center space-x-4">
32
+ <Link
33
+ href="https://github.com"
34
+ className="hover:text-gray-200 transition-colors"
35
+ target="_blank"
36
+ rel="noopener noreferrer"
37
+ title="GitHub"
38
+ >
39
+ <FiGithub className="text-xl" />
40
+ </Link>
41
+ <Link
42
+ href="https://twitter.com"
43
+ className="hover:text-gray-200 transition-colors"
44
+ target="_blank"
45
+ rel="noopener noreferrer"
46
+ title="Twitter"
47
+ >
48
+ <FiTwitter className="text-xl" />
49
+ </Link>
50
+ <Link
51
+ href="https://huggingface.co/spaces/akhaliq/anycoder"
52
+ className="text-sm hover:text-gray-200 transition-colors flex items-center space-x-1"
53
+ target="_blank"
54
+ rel="noopener noreferrer"
55
+ >
56
+ <span>Built with</span>
57
+ <span className="font-bold">anycoder</span>
58
+ </Link>
59
+ </div>
60
+ </div>
61
+ </div>
62
+ </header>
63
+ )
64
+ }