전체 폰트 한 단계 확대 + 시나리오 4색 부여 (A 파랑·B 초록·C 보라·D 주황)

- 보조 텍스트 10→11px·12→13px, 본문 14→15px, 가격 헤드라인 24→28px, 차트 라벨 확대
- 사분면 카드와 좌측 요약 뱃지에 시나리오별 저채도 색 연결 (테마에 보라 보조색 추가)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UFZ7JWdwCaQAwNYJErL8pP
This commit is contained in:
민헌andClaude Fable 5 committed 2026-08-31 14:38:09 +09:00
1 parent edca1250a3
commit fdfb235774
6 files changed
+51 -46

No files matched your search

+11 -9
View File
@@ -11,8 +11,8 @@ export function CasePanel({
return (
<aside className="flex flex-col gap-4 min-[960px]:min-h-0 min-[960px]:overflow-y-auto">
<section className="rounded-box bg-base-100 p-5">
<h2 className="text-xs font-semibold text-base-content/55">협상 케이스</h2>
<p className="mt-3 text-xs leading-relaxed text-base-content/50">
<h2 className="text-[13px] font-semibold text-base-content/55">협상 케이스</h2>
<p className="mt-3 text-[13px] leading-relaxed text-base-content/50">
가운데 화면에서 시나리오를 선택하면 진행 중인 케이스와 상품 정보가
여기에 표시됩니다.
</p>
@@ -27,7 +27,7 @@ export function CasePanel({
<aside className="flex flex-col gap-4 min-[960px]:min-h-0 min-[960px]:overflow-y-auto">
<section className="rounded-box bg-base-100 p-5">
<div className="flex items-center justify-between gap-2">
<h2 className="text-xs font-semibold text-base-content/55">협상 케이스</h2>
<h2 className="text-[13px] font-semibold text-base-content/55">협상 케이스</h2>
<button
type="button"
onClick={onChange}
@@ -38,20 +38,22 @@ export function CasePanel({
</button>
</div>
<div className="mt-2 flex items-center gap-2.5">
<span className="flex size-9 shrink-0 items-center justify-center rounded-field bg-primary/10 text-lg font-extrabold text-primary">
<span
className={`flex size-10 shrink-0 items-center justify-center rounded-field text-xl font-extrabold ${q?.badgeCls ?? 'bg-base-200'}`}
>
{q?.letter ?? '?'}
</span>
<div className="min-w-0">
<p className="text-sm font-bold">시나리오 {q?.letter}</p>
<p className="truncate text-[11px] text-base-content/50">{q?.axis}</p>
<p className="text-[15px] font-bold">시나리오 {q?.letter}</p>
<p className="truncate text-xs text-base-content/50">{q?.axis}</p>
</div>
</div>
</section>
<section className="rounded-box bg-base-100 p-5">
<h2 className="text-xs font-semibold text-base-content/55">상품 정보</h2>
<p className="mt-2 text-sm font-bold">{selected.item_name}</p>
<dl className="mt-3 flex flex-col gap-2 text-xs">
<h2 className="text-[13px] font-semibold text-base-content/55">상품 정보</h2>
<p className="mt-2 text-[15px] font-bold">{selected.item_name}</p>
<dl className="mt-3 flex flex-col gap-2 text-[13px]">
<div className="flex items-center justify-between gap-2">
<dt className="text-base-content/50">기존 공급가</dt>
<dd className="num font-semibold">{selected.item_price.toLocaleString()}원</dd>
+12 -12
View File
@@ -57,7 +57,7 @@ export function ChatPanel({
<section className="flex min-h-[70vh] flex-col rounded-box bg-base-100 min-[960px]:h-full min-[960px]:min-h-0">
{started && demoCase && (
<div className="flex items-center justify-between gap-3 border-b border-base-300/60 px-5 py-3">
<span className="truncate text-sm font-bold">{demoCase.item_name}</span>
<span className="truncate text-[15px] font-bold">{demoCase.item_name}</span>
{!nego.done && (
<button
type="button"
@@ -75,15 +75,15 @@ export function ChatPanel({
{!started && (
<div className="flex h-full flex-col items-center justify-center gap-6 py-8 text-center">
<div>
<p className="text-lg font-bold">어떤 시나리오로 협상해 볼까요?</p>
<p className="mx-auto mt-2 max-w-md text-sm leading-relaxed text-base-content/55">
<p className="text-xl font-bold">어떤 시나리오로 협상해 볼까요?</p>
<p className="mx-auto mt-2 max-w-md text-[15px] leading-relaxed text-base-content/55">
구매 엔진은 상품의 매출 규모와 경쟁 강도에 따라 가격 전략을 다르게 씁니다.
시나리오를 선택하면 해당 조건의 품목으로 협상이 시작됩니다.
</p>
</div>
{/* 사분면 다이어그램 — Y축: 매출 규모(위=높음), X축: 경쟁 강도(오른쪽=높음) */}
<div className="flex w-full max-w-sm items-stretch gap-2">
<div className="mb-7 flex flex-col text-[10px] font-medium text-base-content/45" aria-hidden>
<div className="mb-7 flex flex-col text-[11px] font-medium text-base-content/45" aria-hidden>
<span className="flex flex-1 items-center justify-center [writing-mode:vertical-rl]">
매출 높음
</span>
@@ -104,21 +104,21 @@ export function ChatPanel({
disabled={busy}
onClick={() => onSelect(c)}
aria-label={`시나리오 ${q.letter} — ${q.axis}`}
className="cursor-pointer rounded-field bg-base-200/60 px-4 py-5 transition-colors hover:bg-primary/10 focus-visible:ring-2 focus-visible:ring-primary focus-visible:outline-none"
className={`cursor-pointer rounded-field px-4 py-5 transition-colors focus-visible:ring-2 focus-visible:ring-primary focus-visible:outline-none ${q.tileCls}`}
>
<span className="text-2xl font-extrabold">{q.letter}</span>
<span className="mt-0.5 block text-[10px] font-medium text-base-content/45">시나리오</span>
<span className={`text-3xl font-extrabold ${q.textCls}`}>{q.letter}</span>
<span className="mt-0.5 block text-[11px] font-medium text-base-content/45">시나리오</span>
</button>
)
})}
</div>
<div className="mt-1.5 grid grid-cols-2 pl-3 text-[10px] font-medium text-base-content/45" aria-hidden>
<div className="mt-1.5 grid grid-cols-2 pl-3 text-[11px] font-medium text-base-content/45" aria-hidden>
<span className="text-center">경쟁 낮음</span>
<span className="text-center">경쟁 높음</span>
</div>
</div>
</div>
<p className="text-xs text-base-content/45">
<p className="text-[13px] text-base-content/45">
챗봇은 구매 담당자(MD) 역할이고, 당신은 공급사로서 가격 제안에 응답합니다.
</p>
</div>
@@ -127,7 +127,7 @@ export function ChatPanel({
{messages.map((m, i) => (
<li key={i} className={`msg-in chat ${m.role === 'user' ? 'chat-end' : 'chat-start'}`}>
{m.role === 'bot' && m.step && (
<div className="chat-header mb-1 flex items-center gap-1.5 text-[11px] font-semibold text-base-content/45">
<div className="chat-header mb-1 flex items-center gap-1.5 text-xs font-semibold text-base-content/45">
<span>{stepLabel(m.step)}</span>
{m.meta?.card_id && (
<span className="num rounded-full bg-primary/10 px-1.5 py-px font-mono text-primary">
@@ -169,8 +169,8 @@ export function ChatPanel({
<div className="flex flex-wrap items-center justify-between gap-3">
{finalPrice != null ? (
<div>
<p className="text-xs font-semibold text-success">협상 완료</p>
<p className="num mt-0.5 text-lg font-bold">
<p className="text-[13px] font-semibold text-success">협상 완료</p>
<p className="num mt-0.5 text-xl font-bold">
{finalPrice.toLocaleString()}원
<span className="num ml-2 align-[2px] rounded-full bg-primary/10 px-2 py-0.5 text-xs font-semibold text-primary">
기존가 대비 −{savedPct}%
+16 -16
View File
@@ -23,7 +23,7 @@ function flowIndex(step: string): number {
function Panel({ title, children }: { title: string; children: React.ReactNode }) {
return (
<section className="rounded-box bg-base-100 p-5">
<h2 className="text-xs font-semibold text-base-content/55">{title}</h2>
<h2 className="text-[13px] font-semibold text-base-content/55">{title}</h2>
<div className="mt-3">{children}</div>
</section>
)
@@ -81,12 +81,12 @@ export function Dashboard({
{demoCase ? (
<>
<div className="flex items-baseline gap-2">
<p className="num text-2xl font-bold tracking-tight">
<p className="num text-[28px] font-bold tracking-tight">
{priceValue.toLocaleString()}
<span className="ml-0.5 text-base font-semibold text-base-content/55">원</span>
<span className="ml-0.5 text-lg font-semibold text-base-content/55">원</span>
</p>
{savedPct != null && (
<span className="num rounded-full bg-primary/10 px-2 py-0.5 text-xs font-semibold text-primary">
<span className="num rounded-full bg-primary/10 px-2 py-0.5 text-[13px] font-semibold text-primary">
기존가 대비 −{savedPct}%
</span>
)}
@@ -96,7 +96,7 @@ export function Dashboard({
</div>
</>
) : (
<p className="text-xs leading-relaxed text-base-content/55">
<p className="text-[13px] leading-relaxed text-base-content/55">
시나리오를 선택하면 기존 공급가와 제안가 추이가 표시됩니다.
</p>
)}
@@ -115,7 +115,7 @@ export function Dashboard({
)}
</div>
<span
className={`pb-4 text-xs leading-5 ${
className={`pb-4 text-[13px] leading-5 ${
state === 'current'
? 'font-bold text-primary'
: state === 'done'
@@ -129,7 +129,7 @@ export function Dashboard({
)
})}
</ol>
<div className="mt-1 flex items-center justify-between border-t border-base-300/60 pt-3 text-sm">
<div className="mt-1 flex items-center justify-between border-t border-base-300/60 pt-3 text-[15px]">
<span className="text-base-content/55">가격 라운드</span>
<span className="num font-semibold">{Math.min(nego.iteration + (nego.initial ? 1 : 0), 5)} / 5</span>
</div>
@@ -137,11 +137,11 @@ export function Dashboard({
<Panel title="엔진 판단">
{meta ? (
<dl className="flex flex-col gap-4 text-sm">
<dl className="flex flex-col gap-4 text-[15px]">
<div className="flex items-center justify-between gap-2">
<dt className="text-base-content/55">협상 카드</dt>
<dd>
<span className="badge badge-soft badge-primary num font-mono text-[12px] font-semibold">
<span className="badge badge-soft badge-primary num font-mono text-[13px] font-semibold">
{meta.card_id ?? '—'}
</span>
</dd>
@@ -150,7 +150,7 @@ export function Dashboard({
<div>
<div className="flex items-center justify-between">
<dt className="text-base-content/55">가격 지표</dt>
<dd className="num text-[13px] font-medium">
<dd className="num text-sm font-medium">
{indicator != null ? (
<>
{indicator} <span className="text-base-content/45">/ 99 · {meta.indicator_range}</span>
@@ -169,7 +169,7 @@ export function Dashboard({
<div>
<div className="flex items-center justify-between">
<dt className="text-base-content/55">협상 긴장도</dt>
<dd className="num text-[13px] font-medium">{tension != null ? tension.toFixed(2) : '—'}</dd>
<dd className="num text-sm font-medium">{tension != null ? tension.toFixed(2) : '—'}</dd>
</div>
<div className="mt-2 flex gap-1" aria-hidden>
{ZONE_LABELS.map((_, i) => (
@@ -181,7 +181,7 @@ export function Dashboard({
/>
))}
</div>
<div className="mt-1.5 flex text-[10px]" aria-hidden>
<div className="mt-1.5 flex text-[11px]" aria-hidden>
{ZONE_LABELS.map((l, i) => (
<span
key={l}
@@ -192,20 +192,20 @@ export function Dashboard({
))}
</div>
<div className="mt-2.5 flex items-center justify-between gap-2">
<span className="text-xs text-base-content/55">적용 페르소나</span>
<span className="text-[13px] text-base-content/55">적용 페르소나</span>
{meta.persona ? (
<span className="badge badge-soft badge-warning text-[12px] font-semibold">{meta.persona}</span>
<span className="badge badge-soft badge-warning text-[13px] font-semibold">{meta.persona}</span>
) : (
<span className="text-base-content/45">—</span>
)}
</div>
<p className="mt-2 text-[11px] leading-relaxed text-base-content/45">
<p className="mt-2 text-xs leading-relaxed text-base-content/45">
긴장도 구간에 따라 협상 말투(페르소나)가 정해집니다.
</p>
</div>
</dl>
) : (
<p className="text-xs leading-relaxed text-base-content/55">
<p className="text-[13px] leading-relaxed text-base-content/55">
{nego.done
? '카드 라운드 없이 조기 합의됐어요 — 첫 제안가가 앵커가 이하면 협상 카드 없이 종료됩니다.'
: '가격 협상이 시작되면 선택된 협상 카드와 가격 지표·긴장도·페르소나가 여기에 표시됩니다.'}
+5 -5
View File
@@ -10,7 +10,7 @@ export function PriceChart({ demoCase, priceTrail }: { demoCase: DemoCase; price
const W = 300
const H = 150
const PAD = { top: 14, right: 72, bottom: 12, left: 10 }
const PAD = { top: 14, right: 78, bottom: 12, left: 10 }
const plotW = W - PAD.left - PAD.right
const plotH = H - PAD.top - PAD.bottom
@@ -31,7 +31,7 @@ export function PriceChart({ demoCase, priceTrail }: { demoCase: DemoCase; price
]
.map((r) => ({ ...r, y: yOf(r.v), ly: yOf(r.v) }))
.sort((a, b) => a.y - b.y)
const MIN_GAP = 13
const MIN_GAP = 14
for (let i = 1; i < refs.length; i++) {
if (refs[i].ly - refs[i - 1].ly < MIN_GAP) refs[i].ly = refs[i - 1].ly + MIN_GAP
}
@@ -79,7 +79,7 @@ export function PriceChart({ demoCase, priceTrail }: { demoCase: DemoCase; price
x={W - 2}
y={r.ly + 3}
textAnchor="end"
fontSize="9.5"
fontSize="11.5"
fill={r.color}
fillOpacity={Math.min(r.op + 0.2, 1)}
className="num"
@@ -119,7 +119,7 @@ export function PriceChart({ demoCase, priceTrail }: { demoCase: DemoCase; price
x={last.x}
y={last.y < 26 ? last.y + 18 : last.y - 10}
textAnchor={last.x > W - PAD.right - 30 ? 'end' : last.x < 36 ? 'start' : 'middle'}
fontSize="10.5"
fontSize="11.5"
fontWeight="700"
fill="var(--color-base-content)"
stroke="var(--color-base-100)"
@@ -137,7 +137,7 @@ export function PriceChart({ demoCase, priceTrail }: { demoCase: DemoCase; price
x={PAD.left + plotW / 2}
y={PAD.top + plotH / 2 + 3}
textAnchor="middle"
fontSize="10.5"
fontSize="11.5"
fill="var(--color-base-content)"
fillOpacity="0.45"
>
+5 -4
View File
@@ -76,9 +76,10 @@ export const DIST_LABEL: Record<string, string> = { R: '유통', W: '총판', M:
export const PARTNER_LABEL: Record<string, string> = { 없음: 'X', 단독: '단독', 다수: '다수' }
// 시나리오 4분면 — 행: 매출 규모(높음/낮음), 열: 경쟁 강도(높음/낮음)
// 시나리오별 고유 색(저채도)은 선택 카드와 좌측 요약 뱃지에 함께 쓰인다
export const SCENARIO_QUADRANTS = [
{ scenario: 'Scenario_A', letter: 'A', axis: '매출 높음 · 경쟁 높음' },
{ scenario: 'Scenario_B', letter: 'B', axis: '매출 높음 · 경쟁 낮음' },
{ scenario: 'Scenario_D', letter: 'D', axis: '매출 낮음 · 경쟁 높음' },
{ scenario: 'Scenario_C', letter: 'C', axis: '매출 낮음 · 경쟁 낮음' },
{ scenario: 'Scenario_A', letter: 'A', axis: '매출 높음 · 경쟁 높음', textCls: 'text-primary', tileCls: 'bg-primary/8 hover:bg-primary/15', badgeCls: 'bg-primary/10 text-primary' },
{ scenario: 'Scenario_B', letter: 'B', axis: '매출 높음 · 경쟁 낮음', textCls: 'text-success', tileCls: 'bg-success/8 hover:bg-success/15', badgeCls: 'bg-success/10 text-success' },
{ scenario: 'Scenario_D', letter: 'D', axis: '매출 낮음 · 경쟁 높음', textCls: 'text-warning', tileCls: 'bg-warning/8 hover:bg-warning/15', badgeCls: 'bg-warning/10 text-warning' },
{ scenario: 'Scenario_C', letter: 'C', axis: '매출 낮음 · 경쟁 낮음', textCls: 'text-violet', tileCls: 'bg-violet/8 hover:bg-violet/15', badgeCls: 'bg-violet/10 text-violet' },
] as const
+2
View File
@@ -45,6 +45,8 @@
@theme {
--font-body: "Pretendard Variable", Pretendard, ui-sans-serif, system-ui, sans-serif;
/* 시나리오 C 전용 보조색 (A=primary·B=success·D=warning 과 짝) */
--color-violet: #7a5af8;
}
html, body, #root {