Add skeleton color validasi and katalog

This commit is contained in:
2024-12-27 12:06:47 +08:00
parent d8f56309b0
commit b467aedece
17 changed files with 274 additions and 144 deletions

View File

@@ -1,24 +1,24 @@
import { Stack, Skeleton, Group } from "@mantine/core";
import CustomSkeleton from "@/app_modules/components/CustomSkeleton";
import { Group, Skeleton, Stack } from "@mantine/core";
export default function Validasi_SkeletonView() {
return (
<Stack align="center" justify="center" h={"100vh"} spacing={50}>
<Skeleton h={30} w={250} radius={"xl"} />
<CustomSkeleton h={30} w={250} radius={"xl"} />
<Stack spacing={"md"} align="center">
<Stack mb={15}>
<Skeleton h={20} w={250} radius={"xl"} />
<Skeleton h={20} w={250} radius={"xl"} />
</Stack>
<Group mb={10}>
{Array.from({ length: 4 }).map((_, i) => (
<Skeleton key={i} h={50} w={50} radius={"sm"} />
))}
</Group>
<Skeleton h={20} w={250} radius={"xl"} />
<Stack mb={15}>
<CustomSkeleton h={20} w={250} radius={"xl"} />
<CustomSkeleton h={20} w={250} radius={"xl"} />
</Stack>
<Skeleton h={50} w={250} radius={"sm"} />
<Group mb={10}>
{Array.from({ length: 4 }).map((_, i) => (
<CustomSkeleton key={i} h={50} w={50} radius={"sm"} />
))}
</Group>
<CustomSkeleton h={20} w={250} radius={"xl"} />
</Stack>
<CustomSkeleton h={50} w={250} radius={"sm"} />
</Stack>
);
}
@@ -39,3 +39,28 @@ export default function Validasi_SkeletonView() {
<Skeleton h={50} w={250} radius={"sm"} />
</Stack> */}
// import { Stack, Skeleton, Group } from "@mantine/core";
// export default function Validasi_SkeletonView() {
// return (
// <Stack align="center" justify="center" h={"100vh"} spacing={50}>
// <Skeleton h={30} w={250} radius={"xl"} />
// <Stack spacing={"md"} align="center">
// <Stack mb={15}>
// <Skeleton h={20} w={250} radius={"xl"} />
// <Skeleton h={20} w={250} radius={"xl"} />
// </Stack>
// <Group mb={10}>
// {Array.from({ length: 4 }).map((_, i) => (
// <Skeleton key={i} h={50} w={50} radius={"sm"} />
// ))}
// </Group>
// <Skeleton h={20} w={250} radius={"xl"} />
// </Stack>
// <Skeleton h={50} w={250} radius={"sm"} />
// </Stack>
// );
// }