mirror of
https://github.com/yusufipk/OpenFrame.git
synced 2026-09-11 09:36:08 +00:00
54 lines
1.7 KiB
TypeScript
54 lines
1.7 KiB
TypeScript
import { Skeleton } from '@/components/ui/skeleton';
|
|
import { Card, CardContent } from '@/components/ui/card';
|
|
|
|
function VideoCardSkeleton() {
|
|
return (
|
|
<Card className="overflow-hidden">
|
|
<Skeleton className="aspect-video w-full rounded-none" />
|
|
<CardContent className="p-4">
|
|
<Skeleton className="h-5 w-3/4 mb-2" />
|
|
<div className="flex items-center gap-3 mt-1">
|
|
<Skeleton className="h-4 w-10 rounded-full" />
|
|
<Skeleton className="h-4 w-20" />
|
|
<Skeleton className="h-4 w-12" />
|
|
</div>
|
|
</CardContent>
|
|
</Card>
|
|
);
|
|
}
|
|
|
|
export default function ProjectLoading() {
|
|
return (
|
|
<div className="px-6 lg:px-8 py-8 w-full">
|
|
<div className="mb-6">
|
|
<Skeleton className="h-4 w-32" />
|
|
</div>
|
|
|
|
<div className="flex flex-col sm:flex-row sm:items-center justify-between gap-4 mb-8">
|
|
<div>
|
|
<div className="flex items-center gap-2 mb-1">
|
|
<Skeleton className="h-9 w-48" />
|
|
<Skeleton className="h-5 w-16 rounded-full" />
|
|
</div>
|
|
<div className="flex items-center gap-2">
|
|
<Skeleton className="h-5 w-24 rounded-full" />
|
|
<Skeleton className="h-4 w-40" />
|
|
</div>
|
|
</div>
|
|
<div className="flex items-center gap-2">
|
|
<Skeleton className="h-8 w-20 rounded-md" />
|
|
<Skeleton className="h-8 w-24 rounded-md" />
|
|
<Skeleton className="h-8 w-24 rounded-md" />
|
|
<Skeleton className="h-8 w-28 rounded-md" />
|
|
</div>
|
|
</div>
|
|
|
|
<div className="grid gap-4 md:grid-cols-2 lg:grid-cols-3">
|
|
{Array.from({ length: 6 }).map((_, i) => (
|
|
<VideoCardSkeleton key={i} />
|
|
))}
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|