From b9dd0f203d9343de026ab6611f4f3d6ac0b65ef5 Mon Sep 17 00:00:00 2001 From: Mina Choi Date: Thu, 29 Oct 2026 13:23:56 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=82=AC=EC=A3=BC=20=EC=98=A4=EB=8A=98?= =?UTF-8?q?=EC=9D=98=20=EC=A0=90=EC=88=98=20=EC=B9=B4=EB=93=9C=EB=A5=BC=20?= =?UTF-8?q?=EB=8C=80=EC=8B=9C=EB=B3=B4=EB=93=9C=ED=98=95=EC=9C=BC=EB=A1=9C?= =?UTF-8?q?=20=E2=80=94=20=EC=A0=90=EC=88=98=20=EB=A7=81,=20=EC=82=AC?= =?UTF-8?q?=EC=A3=BC=C2=B7=EB=82=A0=EC=94=A8=20=EC=98=81=ED=96=A5=20?= =?UTF-8?q?=EB=A7=89=EB=8C=80,=20=EC=98=AC=EB=A6=B0=C2=B7=EB=82=B4?= =?UTF-8?q?=EB=A6=B0=20=EC=9D=B4=EC=9C=A0=EB=A5=BC=20=EC=A0=91=EC=A7=80=20?= =?UTF-8?q?=EC=95=8A=EA=B3=A0=20=EC=B9=A9=EC=9C=BC=EB=A1=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/b/SajuPage.tsx | 86 ++++++++++++++++++++++++++++--------- 1 file changed, 66 insertions(+), 20 deletions(-) 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()