Skip to content

Commit 78480e6

Browse files
committed
feat: add header component with search input and upload button
1 parent 05181fe commit 78480e6

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<!-- Header Component -->
2+
<header class="h-20 border-b border-slate-100 flex items-center justify-between px-8 sticky top-0 bg-white z-10">
3+
<div class="relative w-96">
4+
<span class="absolute inset-y-0 left-0 flex items-center pl-3">
5+
<svg class="w-5 h-5 text-slate-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
6+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path>
7+
</svg>
8+
</span>
9+
<input type="text" placeholder="Search files, folders..." class="w-full pl-10 pr-4 py-2 bg-slate-50 border border-transparent rounded-lg focus:outline-none focus:bg-white focus:border-blue-500 transition-all text-sm">
10+
</div>
11+
<div class="flex items-center gap-4">
12+
<button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg flex items-center gap-2 text-sm font-semibold transition-all shadow-blue-200">
13+
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
14+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"></path>
15+
</svg>
16+
Upload New
17+
</button>
18+
<button class="p-2 text-slate-400 hover:bg-slate-50 rounded-full relative transition-colors">
19+
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
20+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"></path>
21+
</svg>
22+
<span class="absolute top-2 right-2 w-2 h-2 bg-red-500 rounded-full border-2 border-white"></span>
23+
</button>
24+
<img src="https://ui-avatars.com/api/?name=User&background=6366f1&color=fff" alt="Avatar" class="w-10 h-10 rounded-full">
25+
</div>
26+
</header>

0 commit comments

Comments
 (0)