README and refactoring

This commit is contained in:
Aleksi Lassila
2023-08-01 20:33:33 +03:00
parent 8e60c8fad2
commit 9cbee9ed52
17 changed files with 1107 additions and 4074 deletions

View File

@@ -1,7 +1,7 @@
<script lang="ts">
import { TMDB_BACKDROP_SMALL } from '$lib/constants';
import { formatMinutesToTime } from '$lib/utils';
import classNames from 'classnames';
import { TMDB_IMAGES } from '$lib/constants';
import { Clock, Star } from 'radix-icons-svelte';
export let tmdbId: number;
@@ -79,7 +79,7 @@
</div>
</div>
<div
style={"background-image: url('" + TMDB_IMAGES + backdropUri + "')"}
style={"background-image: url('" + TMDB_BACKDROP_SMALL + backdropUri + "')"}
class="absolute inset-0 bg-center bg-cover peer-hover:scale-105 transition-transform"
/>
<div