|
| 1 | +export default function StoreLoading() { |
| 2 | + return ( |
| 3 | + <div className="container mx-auto py-8 px-4"> |
| 4 | + <div className="max-w-7xl mx-auto"> |
| 5 | + {/* Header skeleton */} |
| 6 | + <div className="mb-12"> |
| 7 | + <div className="flex items-center justify-between mb-4"> |
| 8 | + <div> |
| 9 | + <div className="h-10 w-64 bg-muted animate-pulse rounded mb-2" /> |
| 10 | + <div className="h-6 w-96 bg-muted animate-pulse rounded" /> |
| 11 | + </div> |
| 12 | + </div> |
| 13 | + </div> |
| 14 | + |
| 15 | + {/* Search and filters skeleton */} |
| 16 | + <div className="mb-8"> |
| 17 | + <div className="flex flex-col md:flex-row gap-4 items-stretch md:items-center md:justify-end"> |
| 18 | + <div className="w-full md:flex-1 md:max-w-[200px]"> |
| 19 | + <div className="h-10 bg-muted animate-pulse rounded" /> |
| 20 | + </div> |
| 21 | + <div className="flex gap-3 w-full md:w-auto"> |
| 22 | + <div className="h-10 w-40 bg-muted animate-pulse rounded" /> |
| 23 | + <div className="h-10 w-32 bg-muted animate-pulse rounded" /> |
| 24 | + </div> |
| 25 | + </div> |
| 26 | + </div> |
| 27 | + |
| 28 | + {/* Editor's choice skeleton */} |
| 29 | + <div className="mb-12"> |
| 30 | + <div className="mb-6"> |
| 31 | + <div className="h-8 w-48 bg-muted animate-pulse rounded mb-2" /> |
| 32 | + <div className="h-4 w-full max-w-2xl bg-muted animate-pulse rounded" /> |
| 33 | + </div> |
| 34 | + <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"> |
| 35 | + {Array.from({ length: 3 }).map((_, i) => ( |
| 36 | + <div key={i} className="h-56 bg-muted animate-pulse rounded-lg" /> |
| 37 | + ))} |
| 38 | + </div> |
| 39 | + </div> |
| 40 | + |
| 41 | + {/* All agents skeleton */} |
| 42 | + <div className="mt-12"> |
| 43 | + <div className="mb-6"> |
| 44 | + <div className="h-8 w-32 bg-muted animate-pulse rounded mb-2" /> |
| 45 | + <div className="h-4 w-80 bg-muted animate-pulse rounded" /> |
| 46 | + </div> |
| 47 | + <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"> |
| 48 | + {Array.from({ length: 12 }).map((_, i) => ( |
| 49 | + <div key={i} className="h-56 bg-muted animate-pulse rounded-lg" /> |
| 50 | + ))} |
| 51 | + </div> |
| 52 | + </div> |
| 53 | + </div> |
| 54 | + </div> |
| 55 | + ) |
| 56 | +} |
0 commit comments