Seed: saas template (34 files)
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
import { Input } from "@/components/ui/input";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { Avatar, AvatarFallback } from "@/components/ui/avatar";
|
||||
import { Badge } from "@/components/ui/badge";
|
||||
import {
|
||||
DropdownMenu, DropdownMenuTrigger, DropdownMenuContent,
|
||||
DropdownMenuItem, DropdownMenuSeparator
|
||||
} from "@/components/ui/dropdown-menu";
|
||||
import { Search, Bell, Menu, LogOut, User, Settings } from "lucide-react";
|
||||
|
||||
export default function DashboardHeader() {
|
||||
return (
|
||||
<header className="sticky top-0 z-30 bg-white/80 backdrop-blur-lg border-b border-slate-200">
|
||||
<div className="flex items-center justify-between px-6 py-3">
|
||||
{/* Left */}
|
||||
<div className="flex items-center gap-4">
|
||||
<Button variant="ghost" size="icon" className="lg:hidden text-slate-600">
|
||||
<Menu className="h-5 w-5" />
|
||||
</Button>
|
||||
<div className="relative hidden sm:block">
|
||||
<Search className="absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-slate-400" />
|
||||
<Input placeholder="Search..." className="pl-9 w-64 bg-slate-50 border-slate-200" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Right */}
|
||||
<div className="flex items-center gap-3">
|
||||
<Button variant="ghost" size="icon" className="relative text-slate-600">
|
||||
<Bell className="h-5 w-5" />
|
||||
<Badge className="absolute -top-1 -right-1 h-5 w-5 flex items-center justify-center p-0 text-[10px] bg-red-500 text-white border-2 border-white">3</Badge>
|
||||
</Button>
|
||||
|
||||
<DropdownMenu>
|
||||
<DropdownMenuTrigger asChild>
|
||||
<Button variant="ghost" className="relative h-9 w-9 rounded-full">
|
||||
<Avatar className="h-9 w-9">
|
||||
<AvatarFallback className="bg-indigo-100 text-indigo-600 font-semibold text-sm">JD</AvatarFallback>
|
||||
</Avatar>
|
||||
</Button>
|
||||
</DropdownMenuTrigger>
|
||||
<DropdownMenuContent align="end" className="w-48">
|
||||
<DropdownMenuItem><User className="mr-2 h-4 w-4" /> Profile</DropdownMenuItem>
|
||||
<DropdownMenuItem><Settings className="mr-2 h-4 w-4" /> Settings</DropdownMenuItem>
|
||||
<DropdownMenuSeparator />
|
||||
<DropdownMenuItem className="text-red-600"><LogOut className="mr-2 h-4 w-4" /> Logout</DropdownMenuItem>
|
||||
</DropdownMenuContent>
|
||||
</DropdownMenu>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user