refactor(design): 요청문과 설명문을 텍스트 역할 토큰으로 가른다

"한 장씩 봐 주세요" 같은 요청문이 읽고 넘어가는 설명문과 같은 무게로 놓여 있어
지나치기 쉬웠다. 역할별 토큰과 클래스를 두고 화면에 적용한다.

  .ui-ask   요청문. 사람이 무엇을 해야 하는지 말하는 문장 (17px·600·인디고)
  .ui-ask-block  문단으로 서는 요청문. 왼쪽 규칙선으로 설명과 구분한다
  .ui-body  설명 본문 (16px·slate-600)
  .ui-note  보조·출처 (14px·slate-400)

크기는 기존 화면을 세어 맞췄다. text-base 167회·text-sm 58회가 지배적이라
body 를 16px, note 를 14px 로 두면 치환해도 크기가 변하지 않고 역할과 색만 정리된다.

한글 줄바꿈: word-break keep-all 로 어절을 지키고, 긴 URL·영문 토큰만
overflow-wrap anywhere 로 자른다. text-wrap 으로 마지막 줄에 한 어절만 남는 것을
줄이고, 62ch 로 줄 길이를 묶는다. 제목에도 keep-all 과 balance 를 건다.

다크 섹션은 .on-dark 로 값을 뒤집고, 그 안의 흰 카드는 .on-light 로 되돌린다.
이걸 두지 않으면 흰 글씨가 흰 배경에 얹혀 보이지 않는다(디자인 시스템 기록된 실수).

사진 확인 화면의 썸네일 줄이 누를 수 있는 것으로 안 읽혀 같이 고친다. 72px 카드,
호버 반응, 순번 배지, 현재 위치 표시, 안 정한 것 아래 띠, 범례, 이전·다음 이동을 둔다.
상태가 안 보이는 것이 크기보다 큰 문제였다.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Haewon KamandClaude Opus 5 committed 2026-09-18 16:56:52 +09:00
1 parent be1ea72fcc
commit 14c4b82155
18 files changed
+264 -106

No files matched your search

+10 -10
View File
@@ -16,14 +16,14 @@ function ItemRow({ it }: { it: ItemScoreV2; key?: string }) {
return (
<div className="py-4 grid md:grid-cols-[200px_1fr_120px] gap-3 items-start">
<div>
<span className="text-sm font-semibold text-slate-400">{it.item.id}</span>
<span className="ui-note font-semibold">{it.item.id}</span>
<p className="text-base font-bold text-[#0A1128]">{it.item.name}</p>
<p className="text-sm text-slate-400 mt-0.5">{it.item.weight}점 · {METHOD_LABEL[it.item.method]}</p>
<p className="ui-note mt-0.5">{it.item.weight}점 · {METHOD_LABEL[it.item.method]}</p>
</div>
<div>
<p className="text-base text-slate-700">{it.item.question}</p>
{it.evidence && <p className="text-sm text-slate-500 mt-1">{it.evidence}</p>}
<p className="text-sm text-slate-400 mt-1">
<p className="ui-body">{it.item.question}</p>
{it.evidence && <p className="ui-note mt-1">{it.evidence}</p>}
<p className="ui-note mt-1">
{BASIS_LABEL[it.basis]}
{it.signals.length > 0 && ` · ${it.signals.map((s) => `${s.criterionId}=${s.level === 'unverified' ? '미검증' : s.level}`).join(' · ')}`}
</p>
@@ -51,7 +51,7 @@ function AxisCard({ ax }: { ax: AxisScoreV2 }) {
</div>
<div className="flex items-center gap-4">
<div className="text-right">
<p className="text-sm text-slate-400">검증 {ax.verifiedCount}/{ax.items.length} · {ax.earned} / {ax.possible}점</p>
<p className="ui-note">검증 {ax.verifiedCount}/{ax.items.length} · {ax.earned} / {ax.possible}점</p>
{ax.cappedBy.length > 0 && (
<p className="text-sm font-semibold text-[#C084CF]">게이트 상한 {Math.min(...ax.cappedBy.map((g) => g.gate.cap))} (원점수 {ax.rawScore})</p>
)}
@@ -60,7 +60,7 @@ function AxisCard({ ax }: { ax: AxisScoreV2 }) {
<ScoreRing score={ax.score} size={96} />
</div>
</div>
<p className="text-base text-slate-600 mb-3">{ax.axis.description}</p>
<p className="ui-body mb-3">{ax.axis.description}</p>
<div className="divide-y divide-slate-100">
{ax.items.map((it) => <ItemRow key={it.item.id} it={it} />)}
</div>
@@ -81,8 +81,8 @@ export function AeoGeoV2Panel({ rubric, score }: { rubric: RubricV2; score: Over
<ScoreRing score={ax.score} size={120} label={ax.axis.nameEn} />
<div>
<p className="font-serif text-2xl font-bold text-[#1D0024]">{ax.axis.code} · {ax.axis.name}</p>
<p className="text-base text-slate-600 mt-1">{ax.axis.question}</p>
<p className="text-sm text-slate-400 mt-2">
<p className="ui-body mt-1">{ax.axis.question}</p>
<p className="ui-note mt-2">
등급 <span className="font-bold text-[#0A1128]">{ax.grade}</span> · 검증 {ax.verifiedCount}/{ax.items.length}
{ax.cappedBy.length > 0 && ` · 게이트 상한 적용 (원점수 ${ax.rawScore})`}
</p>
@@ -95,7 +95,7 @@ export function AeoGeoV2Panel({ rubric, score }: { rubric: RubricV2; score: Over
<p className="text-base font-bold text-[#0A1128] mb-2">게이트 (점수가 아니라 상한)</p>
<ul className="grid md:grid-cols-2 gap-2">
{score.gates.map((g) => (
<li key={g.gate.id} className="text-base text-slate-700">
<li key={g.gate.id} className="ui-body">
<span className={`font-bold ${g.passed ? 'text-[#6C5CE7]' : 'text-[#C084CF]'}`}>{g.gate.id} {g.gate.name} · {g.passed ? '통과' : `실패 (${g.failedBy.join(', ')}) → 상한 ${g.gate.cap}`}</span>
<span className="text-slate-500"> {g.gate.reason}</span>
</li>