10단계 다듬기: axe 접근성 검사(첫 화면·대기실·게임·정답 공개·결과·관리자, PC/휴대폰 × 밝은/어두운 화면) 위반 0으로 고침(배지·정답 글자 대비, 게임 화면 main·방 정보 영역, 제목 순서, 별 아이콘), 100명 부하 시험 + TJ는 최근 2년만, 멜론 곡 정보는 가사·연도 없는 곡부터

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-18 22:43:26 +09:00
parent 46240ac699
commit 674cd377b4
10 changed files with 313 additions and 19 deletions

View File

@@ -30,8 +30,11 @@ function Stars({ n }: { n: number | null }) {
if (!n) return null;
const color = n <= 3 ? 'var(--star-1)' : n <= 6 ? 'var(--star-2)' : n <= 8 ? 'var(--star-3)' : 'var(--star-4)';
return (
<span className="mini-stars" style={{ color }} aria-label={`난이도 ${n}단계`}>
★{n}
<span className="mini-stars" role="img" aria-label={`난이도 ${n}단계`}>
<svg viewBox="0 0 24 24" aria-hidden>
<path fill={color} d="M12 2l3 6.9 7.5.7-5.7 5 1.7 7.4L12 18.3 5.5 22l1.7-7.4-5.7-5 7.5-.7z" />
</svg>
{n}
</span>
);
}
@@ -104,8 +107,8 @@ export function GameScreen({ room, game }: { room: RoomView; game: GameView }) {
const late = isHost ? game.waiting.filter((w) => now - w.since >= LATE_MS) : [];
return (
<div className="game">
<div className="gbar">
<main className="game">
<div className="gbar" role="toolbar" aria-label="게임 조작">
<div className="q">
문제 {game.n} <span>/ {game.total}</span>
</div>
@@ -139,7 +142,7 @@ export function GameScreen({ room, game }: { room: RoomView; game: GameView }) {
</div>
<div className="ggrid">
<aside className="side scoreboard" aria-label="점수판">
<h3>점수판 · {game.scores.length}명</h3>
<h2>점수판 · {game.scores.length}명</h2>
<ol>
{game.scores.map((s, i) => {
// ties share a rank (same score and same average time)
@@ -248,7 +251,7 @@ export function GameScreen({ room, game }: { room: RoomView; game: GameView }) {
/>
</div>
<aside className="side hist" aria-label="지난 문제">
<h3>지난 문제</h3>
<h2>지난 문제</h2>
{game.history.length === 0 && <p className="small muted">아직 없어요</p>}
{[...game.history].reverse().map((h) => (
<div key={h.n} className="h">
@@ -271,7 +274,7 @@ export function GameScreen({ room, game }: { room: RoomView; game: GameView }) {
</div>
)}
{confirmEnd && <ConfirmSheet title="게임을 끝낼까요?" body="지금까지 점수로 결과를 보여 줘요." confirm="끝내기" danger onConfirm={() => send({ t: 'game', action: 'end' })} onClose={() => setConfirmEnd(false)} />}
</div>
</main>
);
}

View File

@@ -105,7 +105,7 @@ export default function RoomPage() {
return (
<>
<div className="roombar">
<section className="roombar" aria-label="방 정보">
<Link to="/" className="btn btn-sm btn-ghost">
← 방 목록
</Link>
@@ -131,7 +131,7 @@ export default function RoomPage() {
<button type="button" className="btn btn-sm" onClick={() => setConfirmLeave(true)}>
🚪 나가기
</button>
</div>
</section>
{playing ? (
<GameScreen room={room} game={game} />
) : (