Navigation progress

This commit is contained in:
Aleksi Lassila
2023-12-30 11:26:25 +02:00
parent 3ede2f59cf
commit 8298b7111f
4 changed files with 146 additions and 76 deletions

View File

@@ -1,9 +1,15 @@
<script lang="ts">
import CardPlaceholder from '../Card/CardPlaceholder.svelte';
import { Container } from '../../actions/focusAction';
export let size: 'dynamic' | 'md' | 'lg' = 'md';
export let orientation: 'landscape' | 'portrait' = 'landscape';
export let container: Container;
let registerer = container.getRegisterer();
</script>
{#each Array(10) as _, i (i)}
<CardPlaceholder {size} index={i} {orientation} />
<div tabindex="0" use:registerer>
<CardPlaceholder {size} index={i} {orientation} />
</div>
{/each}