diff --git a/frontend/src/b/SajuPage.tsx b/frontend/src/b/SajuPage.tsx index 6e11e78..54caaef 100644 --- a/frontend/src/b/SajuPage.tsx +++ b/frontend/src/b/SajuPage.tsx @@ -225,30 +225,40 @@ function Reading({ birth, onEdit }: { birth: Birth; onEdit: () => void }) { return (
-
-

+

+

{Number(t.day.slice(5, 7))}월 {Number(t.day.slice(8, 10))}일 {t.pillar}일 · 오늘의 점수

-

{t.score}

-

{t.title}

-
- 사주 {t.saju_score}점 - {t.weather_points != null && ( - = 0 ? 'bg-[#e3f6ea] text-[#1f7a4f]' : 'bg-[#ffe8dc] text-[#c2471b]')}> - 날씨 영향 {t.weather_points >= 0 ? '+' : '−'} - {Math.abs(t.weather_points)}점 - - )} +
+ +
+

{t.title}

+ + {t.weather_points != null && ( + = 0 ? '#1f7a4f' : '#e8663a'} + signed + /> + )} +
{(t.why?.length ?? 0) > 0 && ( -
- 왜 이 점수인가요? (↑ 올린 것 · ↓ 내린 것) -
    - {t.why!.map((w) => ( -
  • {w}
  • - ))} -
-
+
    + {t.why!.map((w) => ( +
  • + {w} +
  • + ))} +
)}
@@ -304,6 +314,42 @@ function DecisionCard({ c }: { c: SajuCard }) { ) } +function ScoreRing({ score }: { score: number }) { + const r = 46 + const len = 2 * Math.PI * r + return ( +
+ + + + + + + {score} + 오늘의 점수 + + +
+ ) +} + +function ScoreBar({ label, value, width, color, signed }: { label: string; value: number; width: number; color: string; signed?: boolean }) { + return ( +
+

+ {label} + + {signed ? (value >= 0 ? '+' : '−') : ''} + {Math.abs(value)}점 + +

+ + + +
+ ) +} + function MeCard({ r, onEdit }: { r: ResSaju; onEdit: () => void }) { const me = r.me! const cols = [...me.pillars].reverse()