feat: add development database

This commit is contained in:
Aleksi Lassila
2025-02-11 19:16:25 +02:00
parent ad2bad9a27
commit b46a65a93c
10 changed files with 53 additions and 32 deletions

View File

@@ -76,7 +76,11 @@
<DetachedPage class="flex flex-col relative">
<div class="h-[calc(100vh-12rem)] flex px-32">
<TmdbMoviesHeroShowcase movies={recommendedMovies.then(({ top10 }) => top10)} />
<TmdbMoviesHeroShowcase
movies={recommendedMovies.then(({ top10 }) =>
top10.length ? top10 : upcomingMovies.then((m) => m.slice(0, 10))
)}
/>
</div>
<div class="my-16 space-y-8 relative z-10">
{#if $libraryContinueWatching.length}

View File

@@ -70,7 +70,11 @@
<DetachedPage class="flex flex-col relative">
<div class="h-[calc(100vh-12rem)] flex px-32">
<TmdbSeriesHeroShowcase series={recommendations.then(({ top10 }) => top10)} />
<TmdbSeriesHeroShowcase
series={recommendations.then(({ top10 }) =>
top10.length ? top10 : upcomingSeries.then((s) => s.slice(0, 10))
)}
/>
</div>
<div class="my-16 space-y-8 relative z-10">
{#if $libraryContinueWatching.length}