Movie search done

This commit is contained in:
Aleksi Lassila
2023-06-15 14:39:21 +03:00
parent e41b030d45
commit fe422a72b6
14 changed files with 178 additions and 19 deletions

View File

@@ -4,6 +4,7 @@
import { onMount } from 'svelte';
import classNames from 'classnames';
import { fade } from 'svelte/transition';
import { TMDB_IMAGES } from '$lib/constants';
export let resource: MovieResource;
export let trailer = true;
@@ -62,9 +63,7 @@
<div
class="h-screen w-screen bg-center bg-cover relative overflow-hidden"
style={"background-image: url('https://www.themoviedb.org/t/p/original" +
remoteResource.backdrop_path +
"')"}
style={"background-image: url('" + TMDB_IMAGES + remoteResource.backdrop_path + "')"}
>
<div class="youtube-container absolute h-full scale-[150%] hidden sm:block">
{#if video.key}