ADO2 콘텐츠, 상세 페이지 및 검색, 좋아요, 댓글, 공유하기 기능 추가

This commit is contained in:
skkim committed 2026-05-27 15:27:03 +09:00
1 parent f3195628d2
commit 0ea14da748
23 files changed
+2630 -301

No files matched your search

+9 -4
View File
@@ -389,7 +389,14 @@ const SoundStudioContent: React.FC<SoundStudioContentProps> = ({
<>
<main className="sound-studio-page">
{audioUrl && (
<audio ref={audioRef} src={audioUrl} preload="metadata" />
<audio
ref={audioRef}
src={audioUrl}
preload="metadata"
onLoadedMetadata={() => {
if (audioRef.current) setDuration(audioRef.current.duration);
}}
/>
)}
{/* Header */}
@@ -606,12 +613,10 @@ const SoundStudioContent: React.FC<SoundStudioContentProps> = ({
<div className="lyrics-display">
{lyrics ? (() => {
const lines = lyrics.split('\n').filter(l => l.trim());
const intro = lines.slice(0, 1);
const outro = lines.slice(-1);
const body = lines.slice(1, -1);
const body = lines.slice(0, -1);
const half = Math.ceil(body.length / 2);
const sections = [
{ tag: '[Intro]', lines: intro },
{ tag: '[Verse]', lines: body.slice(0, half) },
{ tag: '[Chorus]', lines: body.slice(half) },
{ tag: '[Outro]', lines: outro },