canina/frontend/application/app/shop/loading.tsx
parsa aghaei 7b89e141c5
All checks were successful
Deploy Canina / deploy (push) Successful in 1m43s
feat(core): polish codebase, enhance error handling, security hardening, rate limiting, and a11y compliance
2026-08-25 11:33:37 +03:30

39 lines
1.6 KiB
TypeScript

import React from "react";
import { Skeleton } from "../../components/Skeleton";
export default function ShopLoading() {
return (
<div className="min-h-screen bg-slate-50/50 py-10 px-4 font-vazir" dir="rtl">
<div className="max-w-7xl mx-auto space-y-8">
{/* Banner Skeleton */}
<div className="w-full h-44 rounded-3xl bg-slate-200 animate-pulse" />
{/* Filters & Search Row */}
<div className="flex flex-wrap gap-4 items-center justify-between">
<Skeleton className="w-48 h-12 rounded-2xl" />
<div className="flex gap-2">
<Skeleton className="w-24 h-10 rounded-xl" />
<Skeleton className="w-24 h-10 rounded-xl" />
<Skeleton className="w-24 h-10 rounded-xl" />
</div>
</div>
{/* Product Cards Grid */}
<div className="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6">
{Array.from({ length: 8 }).map((_, i) => (
<div key={i} className="bg-white rounded-3xl p-5 border border-slate-100 space-y-4 shadow-sm">
<Skeleton className="w-full aspect-square rounded-2xl" />
<Skeleton className="w-3/4 h-5 rounded-lg" />
<Skeleton className="w-1/2 h-4 rounded-lg" />
<div className="flex items-center justify-between pt-4 border-t border-slate-100">
<Skeleton className="w-24 h-6 rounded-lg" />
<Skeleton className="w-10 h-10 rounded-xl" />
</div>
</div>
))}
</div>
</div>
</div>
);
}