시나리오 선택을 사분면 다이어그램으로 — Y축(매출)·X축(경쟁) 라벨과 축선 추가
축 관례(위·오른쪽=높음)에 맞춰 B·A/C·D 배치, 카드 내 축 설명 텍스트는 축 라벨로 대체 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UFZ7JWdwCaQAwNYJErL8pP
This commit is contained in:
1 parent
e781583412
commit
edca1250a3
1 file changed
+36
-20
@@ -81,26 +81,42 @@ export function ChatPanel({
|
||||
시나리오를 선택하면 해당 조건의 품목으로 협상이 시작됩니다.
|
||||
</p>
|
||||
</div>
|
||||
<div className="grid w-full max-w-sm grid-cols-2 gap-3">
|
||||
{SCENARIO_QUADRANTS.map((q) => {
|
||||
const c = cases.find((x) => x.scenario === q.scenario)
|
||||
if (!c) return null
|
||||
return (
|
||||
<button
|
||||
key={q.scenario}
|
||||
type="button"
|
||||
disabled={busy}
|
||||
onClick={() => onSelect(c)}
|
||||
className="cursor-pointer rounded-field bg-base-200/60 p-4 text-left transition-colors hover:bg-primary/10 focus-visible:ring-2 focus-visible:ring-primary focus-visible:outline-none"
|
||||
>
|
||||
<div className="flex items-baseline gap-1.5">
|
||||
<span className="text-2xl font-extrabold">{q.letter}</span>
|
||||
<span className="text-[10px] font-medium text-base-content/45">시나리오</span>
|
||||
</div>
|
||||
<p className="mt-1 text-[11px] leading-tight text-base-content/55">{q.axis}</p>
|
||||
</button>
|
||||
)
|
||||
})}
|
||||
{/* 사분면 다이어그램 — 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>
|
||||
<span className="flex flex-1 items-center justify-center [writing-mode:vertical-rl]">
|
||||
매출 높음
|
||||
</span>
|
||||
<span className="flex flex-1 items-center justify-center [writing-mode:vertical-rl]">
|
||||
매출 낮음
|
||||
</span>
|
||||
</div>
|
||||
<div className="flex-1">
|
||||
<div className="grid grid-cols-2 gap-2 border-b border-l border-base-300 pb-3 pl-3">
|
||||
{[['B', 'A'], ['C', 'D']].flat().map((letter) => {
|
||||
const q = SCENARIO_QUADRANTS.find((x) => x.letter === letter)
|
||||
const c = q && cases.find((x) => x.scenario === q.scenario)
|
||||
if (!q || !c) return null
|
||||
return (
|
||||
<button
|
||||
key={q.scenario}
|
||||
type="button"
|
||||
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"
|
||||
>
|
||||
<span className="text-2xl font-extrabold">{q.letter}</span>
|
||||
<span className="mt-0.5 block text-[10px] 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>
|
||||
<span className="text-center">경쟁 낮음</span>
|
||||
<span className="text-center">경쟁 높음</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p className="text-xs text-base-content/45">
|
||||
챗봇은 구매 담당자(MD) 역할이고, 당신은 공급사로서 가격 제안에 응답합니다.
|
||||
|
||||
Reference in new issue
Block a user