33 lines
1.3 KiB
TypeScript
33 lines
1.3 KiB
TypeScript
import React from "react";
|
|
import { Skeleton } from "../components/Skeleton";
|
|
|
|
export default function GlobalLoading() {
|
|
return (
|
|
<div className="min-h-screen bg-medical-gray-50 py-16 px-4 font-vazir" dir="rtl">
|
|
<div className="max-w-7xl mx-auto space-y-12">
|
|
{/* Header Skeleton */}
|
|
<div className="flex flex-col items-center text-center space-y-4">
|
|
<Skeleton className="w-48 h-8 rounded-full" />
|
|
<Skeleton className="w-96 h-12 rounded-2xl" />
|
|
<Skeleton className="w-80 h-6 rounded-xl" />
|
|
</div>
|
|
|
|
{/* Product Cards Grid Skeleton */}
|
|
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
|
|
{Array.from({ length: 8 }).map((_, i) => (
|
|
<div key={i} className="bg-white rounded-3xl p-6 border border-medical-gray-100 space-y-4 shadow-sm">
|
|
<Skeleton className="w-full aspect-square rounded-2xl" />
|
|
<Skeleton className="w-3/4 h-6 rounded-lg" />
|
|
<Skeleton className="w-1/2 h-4 rounded-lg" />
|
|
<div className="flex items-center justify-between pt-4 border-t border-medical-gray-50">
|
|
<Skeleton className="w-24 h-6 rounded-lg" />
|
|
<Skeleton className="w-10 h-10 rounded-full" />
|
|
</div>
|
|
</div>
|
|
))}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|