Files
oki-podcast-reader/src/routes/examples/+page.svelte
T

34 lines
926 B
Svelte
Raw Normal View History

2023-07-11 22:13:18 +01:00
<script>
2023-07-28 22:27:47 +01:00
import PlayerWidget from '$src/components/player/player-widget.svelte';
2023-07-11 22:13:18 +01:00
import { episodes } from '$src/content/episodes';
import { DocsPage } from '$src/layout/page';
2023-07-28 22:27:47 +01:00
import { HighlightSvelte } from 'svelte-highlight';
import { player_css } from './code';
2023-07-11 22:13:18 +01:00
/** @type { string | undefined} */
let audio_src = episodes.knomii.src;
</script>
2023-07-13 00:27:14 +01:00
<DocsPage title="Examples" let:Section>
2023-07-28 22:27:47 +01:00
<Section title="Coming Soon...">
<p class="text-xl font-semibold text-red-500">
This page is a work in progress.
</p>
</Section>
2023-07-11 22:13:18 +01:00
<Section title="PlayerWidget">
2023-07-28 22:27:47 +01:00
<div class="not-prose py-4">
<PlayerWidget
src={audio_src}
skip_back={30}
skip_forward={10}
metadata={{}}
playback_rate_values={[1.0, 1.2, 1.4, 1.6, 1.8, 2.0, 2.2, 2.4]}
/>
</div>
2023-07-11 22:13:18 +01:00
2023-07-28 22:27:47 +01:00
<div class="codeblock not-prose flex flex-col items-stretch gap-2 py-1">
<HighlightSvelte code={player_css} />
</div>
2023-07-11 22:13:18 +01:00
</Section>
</DocsPage>