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 (