From 7faa03893bfa57efb0a9ba95760f41437069606c Mon Sep 17 00:00:00 2001 From: Azalea <22280294+hykilpikonna@users.noreply.github.com> Date: Wed, 19 Nov 2025 11:27:11 +0800 Subject: [PATCH] [+] Lyrics display --- src/components/Button.svelte | 1 + src/routes/song/[slug]/+page.svelte | 81 +++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+) diff --git a/src/components/Button.svelte b/src/components/Button.svelte index 43cb598..edbef41 100644 --- a/src/components/Button.svelte +++ b/src/components/Button.svelte @@ -2,6 +2,7 @@ let { icon, children, ...rest }: { icon?: string children?: any + [key: string]: any } = $props(); diff --git a/src/routes/song/[slug]/+page.svelte b/src/routes/song/[slug]/+page.svelte index 9eac205..ed73774 100644 --- a/src/routes/song/[slug]/+page.svelte +++ b/src/routes/song/[slug]/+page.svelte @@ -1,8 +1,46 @@ a.name).join(", ") + " - " + data.brief.album} right={[ @@ -10,3 +48,46 @@ {icon: "i-material-symbols:more-vert", onclick: () => alert('More clicked')} ]} /> + + + + + + {#each processedLrc as line, l} + + {#each line.parts as seg} + {#if !seg.kanji} + {#each seg.kana as char, c} + {char} + {/each} + {:else} + + {seg.kanji} + {#each seg.kana as char, c} + {char} + {/each} + + + {/if} + {/each} + + {/each} + + + \ No newline at end of file