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

@@ -3,6 +3,7 @@
import IconButton from '../IconButton.svelte';
import { ChevronLeft, ChevronRight } from 'radix-icons-svelte';
import classNames from 'classnames';
import type { Registerer } from '../../actions/focusAction';
export let gradientFromColor = 'from-stone-950';
export let heading = '';

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}