feat: complete admin panel major functionalities including responsive layout, recharts, custom modals, inline editing, and loading states
This commit is contained in:
1 parent
ee041d4e52
commit
a7ebb8d792
33 files changed
+1311
-173
No files matched your search
@@ -1,10 +1,20 @@
|
||||
import { Bell, Search, UserCircle } from 'lucide-react';
|
||||
import { Bell, Search, UserCircle, Menu } from 'lucide-react';
|
||||
|
||||
export default function Topbar() {
|
||||
interface TopbarProps {
|
||||
toggleMenu: () => void;
|
||||
}
|
||||
|
||||
export default function Topbar({ toggleMenu }: TopbarProps) {
|
||||
return (
|
||||
<header className="h-16 bg-white border-b border-gray-200 flex items-center justify-between px-6 sticky top-0 z-10 shadow-sm font-vazir">
|
||||
<div className="flex-1 flex items-center max-w-xl">
|
||||
<div className="relative w-full">
|
||||
<header className="h-16 bg-white border-b border-gray-200 flex items-center justify-between px-4 sm:px-6 sticky top-0 z-10 shadow-sm font-vazir">
|
||||
<div className="flex-1 flex items-center gap-3 max-w-xl">
|
||||
<button
|
||||
onClick={toggleMenu}
|
||||
className="lg:hidden p-2 text-gray-500 hover:bg-gray-100 rounded-lg transition-colors"
|
||||
>
|
||||
<Menu className="w-6 h-6" />
|
||||
</button>
|
||||
<div className="relative w-full hidden sm:block">
|
||||
<div className="absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none">
|
||||
<Search className="w-5 h-5 text-gray-400" />
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user