feat: add Skeleton for services page

This commit is contained in:
Pablo Lara committed 2024-08-15 09:09:43 +02:00
1 parent 40991c4b7e
commit 5af439d926
3 files changed
+21 -3

No files matched your search

@@ -0,0 +1,18 @@
import { Card, Skeleton } from "@nextui-org/react";
import React from "react";
export const ServiceSkeletonGrid = () => {
return (
<Card className="w-full h-fit p-4">
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 3xl:grid-cols-5 gap-4">
{[...Array(25)].map((_, index) => (
<div key={index} className="flex flex-col space-y-4">
<Skeleton className="h-16 rounded-lg">
<div className="h-full bg-default-300"></div>
</Skeleton>
</div>
))}
</div>
</Card>
);
};
+1
View File
@@ -1 +1,2 @@
export * from "./ServiceCard";
export * from "./ServiceSkeletonGrid";