32 lines
1.3 KiB
TypeScript
32 lines
1.3 KiB
TypeScript
import React from "react";
|
|
import { Skeleton } from "../../components/Skeleton";
|
|
|
|
export default function BlogLoading() {
|
|
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">
|
|
<div className="text-center space-y-3 max-w-xl mx-auto">
|
|
<Skeleton className="w-48 h-8 rounded-full mx-auto" />
|
|
<Skeleton className="w-72 h-10 rounded-2xl mx-auto" />
|
|
<Skeleton className="w-96 h-5 rounded-xl mx-auto" />
|
|
</div>
|
|
|
|
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
|
|
{Array.from({ length: 6 }).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 h-48 rounded-2xl" />
|
|
<div className="flex gap-2">
|
|
<Skeleton className="w-16 h-6 rounded-full" />
|
|
<Skeleton className="w-20 h-6 rounded-full" />
|
|
</div>
|
|
<Skeleton className="w-3/4 h-6 rounded-lg" />
|
|
<Skeleton className="w-full h-4 rounded-lg" />
|
|
<Skeleton className="w-2/3 h-4 rounded-lg" />
|
|
</div>
|
|
))}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|