diff --git a/web/src/components/ManualDivinationPage.tsx b/web/src/components/ManualDivinationPage.tsx index 88282ea..8b0cb0f 100644 --- a/web/src/components/ManualDivinationPage.tsx +++ b/web/src/components/ManualDivinationPage.tsx @@ -47,9 +47,11 @@ function CoinImage({ face, selected }: { face: CoinFace; selected?: boolean }) { ); } -function YaoGlyph({ type, active }: { type?: YaoType; active?: boolean }) { - const color = active || type ? 'bg-violet-700' : 'bg-slate-200'; +function YaoGlyph({ type, confirmed }: { type?: YaoType; confirmed?: boolean }) { + // Gray for unconfirmed, violet for confirmed + const color = confirmed ? 'bg-violet-700' : 'bg-slate-200'; + // Yang: solid line, Yin: split line if (!type || type === 'youngYang' || type === 'oldYang') { return
; } @@ -62,6 +64,12 @@ function YaoGlyph({ type, active }: { type?: YaoType; active?: boolean }) { ); } +function YaoChangeMark({ type }: { type?: YaoType }) { + if (type === 'oldYang') return ○; + if (type === 'oldYin') return ×; + return null; +} + const copy = { zh: { title: '手动起卦', @@ -250,17 +258,18 @@ export default function ManualDivinationPage({ locale, divination: d }: Props) { {[5, 4, 3, 2, 1, 0].map((index) => { const result = yaoResults[index]; const active = index === progress && progress < TOTAL_YAO_COUNT; + const confirmed = !!result; return (