feat(admin ui): customisable image carousel and new layout

This commit is contained in:
DecDuck
2024-12-27 14:43:40 +11:00
parent 43e32b44a2
commit 937954fa02
15 changed files with 853 additions and 194 deletions

View File

@ -113,13 +113,13 @@
</p>
<div class="mt-6 py-4 rounded">
<VueCarousel :items-to-show="1">
<VueSlide v-for="image in game.mImageLibrary" :key="image">
<VueSlide v-for="image in game.mImageCarousel" :key="image">
<img
class="w-fit h-48 lg:h-96 rounded"
:src="useObject(image)"
/>
</VueSlide>
<VueSlide v-if="game.mImageLibrary.length == 0">
<VueSlide v-if="game.mImageCarousel.length == 0">
<div class="h-48 lg:h-96 aspect-[1/2] flex items-center justify-center text-zinc-700 font-bold font-display">
No images
</div>