add movies carousel to dashboard and fixing movies routes in the backend, making the components more generic and reusable

This commit is contained in:
maxDorninger
2025-06-26 18:22:05 +02:00
parent dbc20a2c47
commit 2d33ea122e
7 changed files with 101 additions and 91 deletions

View File

@@ -0,0 +1,16 @@
<script lang="ts">
import Autoplay from 'embla-carousel-autoplay';
import * as Carousel from '$lib/components/ui/carousel/index.js';
import type {MetaDataProviderShowSearchResult} from '$lib/types';
import AddMediaCard from '$lib/components/add-media-card.svelte';
let {media, isShow}: { media: MetaDataProviderShowSearchResult[], isShow: boolean } = $props();
</script>
<div class="grid w-full gap-4 sm:grid-cols-1
md:grid-cols-2 lg:grid-cols-3">
{#each media.slice(0, 3) as mediaItem}
<AddMediaCard isShow={isShow} result={mediaItem}/>
{/each}
</div>