frontend/app/components/home/skeleton-card.tsx
2025-07-29 17:55:32 +02:00

55 lines
1.8 KiB
TypeScript

import {
Card,
CardContent,
CardHeader,
CardFooter,
} from "~/components/ui/card";
import { Skeleton } from "~/components/ui/skeleton";
export default function ColleCardSkeleton() {
return (
<Card className="h-full border-primary">
<CardHeader className="pb-2 pt-4 px-4 flex flex-row items-center justify-between">
<div className="space-y-2">
<Skeleton className="h-5 w-24" />
<Skeleton className="h-4 w-16" />
</div>
<div className="flex items-center gap-2">
<Skeleton className="h-8 w-8 rounded-full" />
<Skeleton className="h-6 w-14 rounded-md" />
</div>
</CardHeader>
<CardContent className="pb-2 pt-0 px-4">
<div className="space-y-3">
<div className="flex items-center gap-2">
<Skeleton className="h-4 w-4 rounded-full" />
<Skeleton className="h-4 w-32" />
</div>
<div className="flex items-center gap-2">
<Skeleton className="h-4 w-4 rounded-full" />
<Skeleton className="h-4 w-28" />
</div>
<div className="flex items-center gap-2">
<Skeleton className="h-4 w-4 rounded-full" />
<Skeleton className="h-4 w-20" />
</div>
</div>
</CardContent>
<CardFooter className="pt-0 pb-3 px-4 flex flex-col items-start">
<div className="w-full mb-2">
<div className="flex items-center gap-1 mb-1">
<Skeleton className="h-3 w-3 rounded-full" />
<Skeleton className="h-3 w-24" />
</div>
<div className="flex flex-wrap gap-1">
<Skeleton className="h-5 w-24 rounded-full" />
<Skeleton className="h-5 w-20 rounded-full" />
</div>
</div>
</CardFooter>
</Card>
);
}