From 1324898a714f4ffda80e5a4f6d26d1a30ab5b021 Mon Sep 17 00:00:00 2001 From: Mina Choi Date: Mon, 12 Oct 2026 16:54:14 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=ED=9E=88=EC=96=B4=EB=A1=9C=20=EC=A7=80?= =?UTF-8?q?=EA=B8=88=20=ED=95=98=EB=8A=98=C2=B7=ED=95=98=EB=A3=A8=20?= =?UTF-8?q?=ED=9D=90=EB=A6=84=20=EC=A7=80=EA=B8=88=20=EC=B9=B8=EC=9D=84=20?= =?UTF-8?q?=EA=B0=80=EC=9E=A5=20=EA=B0=80=EA=B9=8C=EC=9A=B4=20=EC=98=88?= =?UTF-8?q?=EB=B3=B4=20=EC=B9=B8=20=ED=95=98=EB=82=98=EB=A1=9C=20=EB=A7=9E?= =?UTF-8?q?=EC=B6=A4(=EC=95=84=EC=9D=B4=EC=BD=98=EC=9D=80=20=EA=B5=AC?= =?UTF-8?q?=EB=A6=84=EC=9D=B8=EB=8D=B0=20=EA=B5=AC=EB=A6=84=EC=9D=B4=20?= =?UTF-8?q?=EC=95=88=20=EB=9C=A8=EB=8D=98=20=EA=B2=83),=20=EB=B6=88?= =?UTF-8?q?=EB=9F=AC=EC=98=A4=EB=8A=94=20=EC=A4=91=20=ED=99=94=EB=A9=B4?= =?UTF-8?q?=EC=9D=84=20=EB=B0=98=ED=88=AC=EB=AA=85=20=EB=8D=AE=EA=B0=9C?= =?UTF-8?q?=EB=A1=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/b/BLayout.tsx | 4 ++-- frontend/src/b/TodayPage.tsx | 12 +++++++++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/frontend/src/b/BLayout.tsx b/frontend/src/b/BLayout.tsx index 3c5427c..7693069 100644 --- a/frontend/src/b/BLayout.tsx +++ b/frontend/src/b/BLayout.tsx @@ -195,8 +195,8 @@ function FirstLoad() { role="status" aria-live="polite" onTransitionEnd={() => done && setGone(true)} - className={cx('fixed inset-0 z-50 flex flex-col items-center justify-center gap-3 transition-opacity duration-400', done && 'pointer-events-none opacity-0')} - style={{ backgroundColor: NOTCH_BG[kind] }} + className={cx('fixed inset-0 z-50 flex flex-col items-center justify-center gap-3 backdrop-blur-[6px] transition-opacity duration-400', done && 'pointer-events-none opacity-0')} + style={{ backgroundColor: `color-mix(in srgb, ${NOTCH_BG[kind]} 72%, transparent)` }} >

날씨 불러오는 중…

diff --git a/frontend/src/b/TodayPage.tsx b/frontend/src/b/TodayPage.tsx index 1e6db7f..3974188 100644 --- a/frontend/src/b/TodayPage.tsx +++ b/frontend/src/b/TodayPage.tsx @@ -112,8 +112,14 @@ function Hero({ hero, today, ranked, feedLoad, todayLoad }: HeroProps) { useEffect(() => setServerKind(hero?.sky_mode ?? null), [hero?.sky_mode, setServerKind]) const slots = today?.slots ?? [] // 그 시각 칸, 비어 있으면(지난 새벽 칸 등) 그 뒤 첫 예보 칸 + // 지금은 가장 가까운 3시간 칸(17시면 18시 칸). 시간대는 그 시각 칸, 비어 있으면(지난 새벽 칸 등) 그 뒤 첫 예보 칸 const slotOf = (k: TimeKind | 'now') => { - const h = k === 'now' ? t.h : PREVIEW[k].hour + if (k === 'now') { + const known = slots.filter((x) => x.temp_c != null) + const at = t.h + t.mi / 60 + return known.length ? known.reduce((a, b) => (Math.abs(kst(b.at).h - at) < Math.abs(kst(a.at).h - at) ? b : a)) : undefined + } + const h = PREVIEW[k].hour const s = slots.length ? slotAt(slots, h) : undefined return s?.temp_c != null ? s : (slots.find((x) => kst(x.at).h > h && x.temp_c != null) ?? s) } @@ -191,9 +197,9 @@ function Hero({ hero, today, ranked, feedLoad, todayLoad }: HeroProps) {
{KINDS.map((k) => { - const s = slotOf(k) - const on = k === kind const isNow = k === nowKind + const s = slotOf(isNow ? 'now' : k) + const on = k === kind return (