Proof of concept tmdb data fetching running on tizen

This commit is contained in:
Aleksi Lassila
2024-03-01 17:49:32 +02:00
parent b14bf78292
commit 1c1fbbf043
32 changed files with 468 additions and 90 deletions

View File

@@ -1,30 +1,12 @@
<script lang="ts">
import CardPlaceholder from '../Card/CardPlaceholder.svelte';
import classNames from 'classnames';
import Container from '../../../Container.svelte';
import type { Readable, Writable } from 'svelte/store';
export let size: 'dynamic' | 'md' | 'lg' = 'md';
export let orientation: 'landscape' | 'portrait' = 'landscape';
export let focusIndex: Readable<number>;
let focusWithin: Writable<boolean>;
</script>
<p
class={classNames({
'bg-blue-500': $focusWithin
})}
>
Index: {$focusIndex}
</p>
{#each Array(10) as _, i (i)}
<Container
bind:focusWithin
class={classNames({
'bg-red-500': $focusIndex === i && $focusWithin
})}
>
<Container>
<CardPlaceholder {size} index={i} {orientation} />
</Container>
{/each}