Spaces:
Build error
Build error
Upload components/Header.js with huggingface_hub
Browse files- components/Header.js +40 -17
components/Header.js
CHANGED
|
@@ -1,25 +1,48 @@
|
|
| 1 |
-
import {
|
| 2 |
|
| 3 |
-
export default function Header() {
|
| 4 |
return (
|
| 5 |
-
<header className="border-b border-slate-
|
| 6 |
-
<div className="
|
|
|
|
|
|
|
|
|
|
| 7 |
<div className="flex items-center gap-2">
|
| 8 |
-
<div className="bg-
|
| 9 |
-
<
|
| 10 |
</div>
|
| 11 |
-
<span className="text-xl font-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
</div>
|
| 13 |
-
|
| 14 |
-
<a
|
| 15 |
-
href="https://huggingface.co/spaces/akhaliq/anycoder"
|
| 16 |
-
target="_blank"
|
| 17 |
-
rel="noopener noreferrer"
|
| 18 |
-
className="text-sm text-slate-400 hover:text-white transition-colors flex items-center gap-1 bg-slate-800 px-3 py-1.5 rounded-full border border-slate-700 hover:border-slate-500"
|
| 19 |
-
>
|
| 20 |
-
Built with anycoder
|
| 21 |
-
<ExternalLink size={14} />
|
| 22 |
-
</a>
|
| 23 |
</div>
|
| 24 |
</header>
|
| 25 |
);
|
|
|
|
| 1 |
+
import { Search, Menu, Settings, HelpCircle, Grid, Plus } from 'lucide-react';
|
| 2 |
|
| 3 |
+
export default function Header({ searchQuery, setSearchQuery }) {
|
| 4 |
return (
|
| 5 |
+
<header className="h-16 bg-white border-b border-slate-200 flex items-center justify-between px-4 shrink-0">
|
| 6 |
+
<div className="flex items-center gap-4">
|
| 7 |
+
<button className="p-2 hover:bg-slate-100 rounded-full text-slate-600">
|
| 8 |
+
<Menu size={20} />
|
| 9 |
+
</button>
|
| 10 |
<div className="flex items-center gap-2">
|
| 11 |
+
<div className="bg-gmail-red p-1.5 rounded-lg">
|
| 12 |
+
<div className="w-4 h-4 bg-white rounded-sm rotate-45" />
|
| 13 |
</div>
|
| 14 |
+
<span className="text-xl font-semibold text-slate-700 tracking-tight">Gmail<span className="font-normal text-slate-400">Manager</span></span>
|
| 15 |
+
</div>
|
| 16 |
+
</div>
|
| 17 |
+
|
| 18 |
+
<div className="flex-1 max-w-2xl mx-8">
|
| 19 |
+
<div className="relative group">
|
| 20 |
+
<div className="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
|
| 21 |
+
<Search size={18} className="text-slate-400 group-focus-within:text-gmail-blue transition-colors" />
|
| 22 |
+
</div>
|
| 23 |
+
<input
|
| 24 |
+
type="text"
|
| 25 |
+
placeholder="Search mail..."
|
| 26 |
+
className="w-full pl-10 pr-4 py-2 bg-slate-100 border-transparent focus:bg-white focus:ring-2 focus:ring-gmail-blue focus:border-transparent rounded-lg transition-all outline-none text-slate-700"
|
| 27 |
+
value={searchQuery}
|
| 28 |
+
onChange={(e) => setSearchQuery(e.target.value)}
|
| 29 |
+
/>
|
| 30 |
+
</div>
|
| 31 |
+
</div>
|
| 32 |
+
|
| 33 |
+
<div className="flex items-center gap-2">
|
| 34 |
+
<button className="p-2 hover:bg-slate-100 rounded-full text-slate-600 hidden md:block">
|
| 35 |
+
<HelpCircle size={20} />
|
| 36 |
+
</button>
|
| 37 |
+
<button className="p-2 hover:bg-slate-100 rounded-full text-slate-600 hidden md:block">
|
| 38 |
+
<Settings size={20} />
|
| 39 |
+
</button>
|
| 40 |
+
<button className="p-2 hover:bg-slate-100 rounded-full text-slate-600 hidden md:block">
|
| 41 |
+
<Grid size={20} />
|
| 42 |
+
</button>
|
| 43 |
+
<div className="ml-2 w-8 h-8 bg-indigo-600 rounded-full flex items-center justify-center text-white text-xs font-bold border-2 border-white shadow-sm">
|
| 44 |
+
JD
|
| 45 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
</div>
|
| 47 |
</header>
|
| 48 |
);
|