제작된 퀴즈 1~3단계: 관리자 → 퀴즈(목록·추가·곡 목록: 서버 DB/유튜브 검색·주소로 추가, 끌어서·▲▼·번호로 순서, 복수정답은 연결된 DB 곡 별칭에도, 영상 바꾸기 / 설정: 설명·공개방식(비공개·일부공개·전체공개)·문제 순서·재생위치 기본·방 규칙). 저장은 버튼·Ctrl+S로만, 안 저장 시 탭 제목·표시·나가기 확인. 곡마다 처음·하이라이트 위치 편집기(영상+큰 재생바, 끌기·지금 위치로·여기서 듣기·±1초, 자동=0초+DB 하이라이트, 연령제한은 받아 둔 음원). 방 설정 '직접 선택 / 제작된 퀴즈'(검색·비공개/일부공개 먼저), 고르면 퀴즈 설정이 방 설정으로, 듣고맞추기·곡 전부, 곡별 위치로 재생, 플레이 수. 퀴즈당 곡 수·계정당 퀴즈 수 제한(사이트 설정, 기본 무제한). '퀴즈 저장·불러오기'는 '진행 저장·불러오기'로 이름 변경

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-22 08:36:40 +09:00
parent e3cb623773
commit b56d1a8d0e
29 changed files with 2366 additions and 111 deletions

View File

@@ -345,7 +345,45 @@ input.input.sm { width: 76px; }
.yt-recent li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.yt-log { max-height: 220px; overflow: auto; margin-top: 6px; }
.lyrics { white-space: pre-wrap; font: inherit; font-size: 0.85rem; background: var(--surface-2); padding: 10px; border-radius: 8px; max-height: 260px; overflow: auto; }
/* 방 설정 → 제작된 퀴즈 */
.quiz-pick { display: flex; flex-direction: column; border: 1.5px solid var(--line); border-radius: 10px; max-height: 320px; overflow-y: auto; background: var(--surface); }
.quiz-pick-item { display: flex; flex-direction: column; gap: 3px; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; color: var(--text); cursor: pointer; text-align: left; }
.quiz-pick-item[aria-selected='true'] { background: var(--primary-soft); }
.quiz-pick-item:hover { background: color-mix(in srgb, var(--primary-soft) 60%, transparent); }
/* admin quizzes (관리자 → 퀴즈) */
.quiz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.quiz-card { display: flex; flex-direction: column; gap: 6px; min-height: 120px; padding: 14px 16px; background: var(--surface); border: 2px solid var(--ink); border-radius: 14px; color: var(--text); text-decoration: none; box-shadow: 3px 3px 0 var(--ink); font: inherit; text-align: left; }
.quiz-card:hover { background: var(--primary-soft); }
.quiz-card .nm { font-size: 1.05rem; }
.quiz-card.add { border-style: dashed; box-shadow: none; }
.quiz-card.plus { align-items: center; justify-content: center; font-weight: 800; cursor: pointer; gap: 4px; }
.quiz-card.plus span { font-size: 1.6rem; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.quiz-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.quiz-head h1 { margin: 0; }
.songs-layout.with-panel.quiz { grid-template-columns: minmax(0, 1fr) 520px; }
.quiz-songs td.drag { cursor: grab; color: var(--text-sub); user-select: none; }
.quiz-songs tr.dragging td { opacity: 0.45; }
.quiz-songs tr.drop td { box-shadow: inset 0 3px 0 var(--primary); }
.video-add { display: grid; grid-template-columns: minmax(0, 320px) 1fr; gap: 14px; align-items: start; }
@media (max-width: 800px) { .video-add { grid-template-columns: 1fr; } }
.yt-preview.hidden-video { display: none; }
.pos-bar { position: relative; height: 54px; margin: 18px 4px 4px; border: 2px solid var(--ink); border-radius: 10px; background: var(--surface-2); cursor: pointer; touch-action: none; }
.pos-bar:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.pos-played { position: absolute; left: 0; top: 0; bottom: 0; background: color-mix(in srgb, var(--primary) 22%, transparent); border-radius: 8px 0 0 8px; pointer-events: none; }
.pos-head { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--ink); pointer-events: none; }
.pos-marker { position: absolute; top: -16px; bottom: -2px; width: 4px; margin-left: -2px; border-radius: 2px; cursor: ew-resize; }
.pos-marker span { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 0.72rem; font-weight: 800; padding: 1px 6px; border-radius: 6px; color: #fff; cursor: ew-resize; }
.pos-marker.start, .pos-marker.start span, .pos-dot.start { background: var(--correct); }
.pos-marker.hl, .pos-marker.hl span, .pos-dot.hl { background: var(--coral); }
.pos-marker.hl span { top: auto; bottom: -20px; }
.pos-bar.auto .pos-marker { opacity: 0.55; }
.pos-rows { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.pos-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pos-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
@media (max-width: 1100px) { .songs-layout.with-panel { grid-template-columns: 1fr; } .song-panel { position: static; max-height: none; } }
@media (max-width: 1300px) { .songs-layout.with-panel.quiz { grid-template-columns: 1fr; } }
/* ---------------------------------------------------------------- toasts */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 100; pointer-events: none; }