-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: format * chore: format * feat: add media info page * feat: add media info page * fix: line clamp messing with text alignment * ci: bump version * feat: add seasons section * chore: format * chore: remove border
- Loading branch information
1 parent
7a20c28
commit 1fa18b0
Showing
7 changed files
with
420 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<script lang="ts"> | ||
import * as Carousel from '$lib/components/ui/carousel/index.js'; | ||
export let name: string; | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
export let results: any; | ||
export let mediaType: string | null = null; | ||
</script> | ||
|
||
<Carousel.Root | ||
opts={{ | ||
dragFree: true, | ||
slidesToScroll: 'auto' | ||
}} | ||
class="mt-4 h-full overflow-hidden" | ||
> | ||
<div class="mb-2 flex items-center justify-between"> | ||
<h3 class="text-2xl text-zinc-100">{name}</h3> | ||
<div class="flex items-center gap-1"> | ||
<Carousel.Previous class="static mt-8 h-8 w-8 rounded-md" /> | ||
<Carousel.Next class="static mt-8 h-8 w-8 rounded-md" /> | ||
</div> | ||
</div> | ||
<Carousel.Content class="h-full w-full"> | ||
{#each results as result} | ||
<Carousel.Item class="basis-1/2 md:basis-1/4 lg:basis-1/6"> | ||
<a href="/{result.media_type || mediaType}/{result.id}"> | ||
<img | ||
alt={result.id} | ||
src="https://www.themoviedb.org/t/p/w780{result.poster_path}" | ||
class="h-full w-full rounded-lg object-cover object-center transition-all duration-300 ease-in-out hover:scale-95" | ||
loading="lazy" | ||
/> | ||
</a> | ||
</Carousel.Item> | ||
{/each} | ||
</Carousel.Content> | ||
</Carousel.Root> |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.