diff --git a/src/routes/song/[id]/+page.svelte b/src/routes/song/[id]/+page.svelte index e3026bb..9ad45f0 100644 --- a/src/routes/song/[id]/+page.svelte +++ b/src/routes/song/[id]/+page.svelte @@ -11,6 +11,12 @@ const t = getI18n().song.mode let { data } = $props() + let modes = $derived([ + { icon: "i-material-symbols:keyboard-rounded", label: t.typing, url: `/song/${data.song.id}/play` }, + { icon: "i-material-symbols:music-note-rounded", label: t.music, url: `/song/${data.song.id}/play?music=true` }, + { icon: "i-material-symbols:mic-rounded", label: t.karaoke, url: `/song/${data.song.id}/karaoke` }, + ]) + let loadStatus = $state<"idle" | "loading" | "done">("idle") let progressItems = $state([]) let progressPercentage = $state(0) @@ -55,8 +61,8 @@ {#if loadStatus === "done"}
- - - + {#each modes as mode} + + {/each}
{/if}