SherlockRamos commited on
Commit
87460b7
·
verified ·
1 Parent(s): ab4a8ae

Upload components/Header.js with huggingface_hub

Browse files
Files changed (1) hide show
  1. components/Header.js +89 -0
components/Header.js ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { useState } from 'react'
2
+ import Link from 'next/link'
3
+ import { FiMenu, FiX } from 'react-icons/fi'
4
+ import { HiSparkles } from 'react-icons/hi'
5
+
6
+ export default function Header() {
7
+ const [isMenuOpen, setIsMenuOpen] = useState(false)
8
+
9
+ const navigation = [
10
+ { name: 'Início', href: '/' },
11
+ { name: 'Biblioteca de Prompts', href: '/prompts' },
12
+ { name: 'Sobre', href: '#sobre' },
13
+ { name: 'Contato', href: '#contato' },
14
+ ]
15
+
16
+ return (
17
+ <header className="bg-white shadow-lg sticky top-0 z-50">
18
+ <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
19
+ <div className="flex justify-between items-center py-4">
20
+ {/* Logo */}
21
+ <Link href="/" className="flex items-center space-x-2">
22
+ <div className="bg-primary-600 p-2 rounded-lg">
23
+ <HiSparkles className="h-6 w-6 text-white" />
24
+ </div>
25
+ <div>
26
+ <span className="text-xl font-bold text-primary-700">AI.Wiki.BR</span>
27
+ <p className="text-xs text-gray-600 -mt-1">Por Prof. Gabriel Ramos</p>
28
+ </div>
29
+ </Link>
30
+
31
+ {/* Desktop Navigation */}
32
+ <nav className="hidden md:flex space-x-8">
33
+ {navigation.map((item) => (
34
+ <Link
35
+ key={item.name}
36
+ href={item.href}
37
+ className="text-gray-700 hover:text-primary-600 font-medium transition-colors duration-200"
38
+ >
39
+ {item.name}
40
+ </Link>
41
+ ))}
42
+ </nav>
43
+
44
+ {/* Mobile menu button */}
45
+ <button
46
+ onClick={() => setIsMenuOpen(!isMenuOpen)}
47
+ className="md:hidden p-2 rounded-lg text-gray-600 hover:text-primary-600 hover:bg-gray-100"
48
+ >
49
+ {isMenuOpen ? <FiX className="h-6 w-6" /> : <FiMenu className="h-6 w-6" />}
50
+ </button>
51
+ </div>
52
+
53
+ {/* Mobile Navigation */}
54
+ {isMenuOpen && (
55
+ <div className="md:hidden border-t border-gray-200 py-4">
56
+ <nav className="flex flex-col space-y-3">
57
+ {navigation.map((item) => (
58
+ <Link
59
+ key={item.name}
60
+ href={item.href}
61
+ className="text-gray-700 hover:text-primary-600 font-medium py-2 px-4 rounded-lg hover:bg-gray-100 transition-colors duration-200"
62
+ onClick={() => setIsMenuOpen(false)}
63
+ >
64
+ {item.name}
65
+ </Link>
66
+ ))}
67
+ </nav>
68
+ </div>
69
+ )}
70
+ </div>
71
+
72
+ {/* Built with anycoder link */}
73
+ <div className="bg-primary-50 border-t border-primary-100">
74
+ <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-2">
75
+ <p className="text-center text-sm">
76
+ <a
77
+ href="https://huggingface.co/spaces/akhaliq/anycoder"
78
+ target="_blank"
79
+ rel="noopener noreferrer"
80
+ className="text-primary-600 hover:text-primary-700 font-medium transition-colors duration-200"
81
+ >
82
+ Built with anycoder
83
+ </a>
84
+ </p>
85
+ </div>
86
+ </div>
87
+ </header>
88
+ )
89
+ }