feat: add skeleton for loading game carousel

This commit is contained in:
Huskydog9988
2025-04-07 21:28:58 -04:00
parent d2760a1c68
commit 871fcce3e2
3 changed files with 24 additions and 20 deletions
+8 -12
View File
@@ -15,18 +15,14 @@
</template>
</VueCarousel>
<template #fallback>
<!-- this will be rendered on server side -->
<div class="min-h-55">
<div class="flex items-center justify-center p-4">
<div
class="flex items-center space-x-2 animate-pulse rounded-xl shadow-lg p-6"
>
<div class="w-4 h-4 bg-gray-400 rounded-full"></div>
<div class="w-4 h-4 bg-gray-400 rounded-full"></div>
<div class="w-4 h-4 bg-gray-400 rounded-full"></div>
<span class="ml-4 text-gray-200 font-medium">Loading...</span>
</div>
</div>
<div
class="flex flex-nowrap flex-row overflow-hidden whitespace-nowrap"
>
<SkeletonCard
v-for="index in 10"
:key="index"
class="mr-3 flex-none"
/>
</div>
</template>
</ClientOnly>