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