diff --git a/frontend/public/b/holiday/christmas-bottom.webp b/frontend/public/b/holiday/christmas-bottom.webp new file mode 100644 index 0000000..119a6f4 Binary files /dev/null and b/frontend/public/b/holiday/christmas-bottom.webp differ diff --git a/frontend/public/b/holiday/christmas-top.webp b/frontend/public/b/holiday/christmas-top.webp new file mode 100644 index 0000000..8255112 Binary files /dev/null and b/frontend/public/b/holiday/christmas-top.webp differ diff --git a/frontend/public/b/holiday/christmas.webp b/frontend/public/b/holiday/christmas.webp deleted file mode 100644 index 5657884..0000000 Binary files a/frontend/public/b/holiday/christmas.webp and /dev/null differ diff --git a/frontend/public/b/holiday/chuseok-bottom.webp b/frontend/public/b/holiday/chuseok-bottom.webp new file mode 100644 index 0000000..c335fa4 Binary files /dev/null and b/frontend/public/b/holiday/chuseok-bottom.webp differ diff --git a/frontend/public/b/holiday/chuseok-top.webp b/frontend/public/b/holiday/chuseok-top.webp new file mode 100644 index 0000000..ff6506e Binary files /dev/null and b/frontend/public/b/holiday/chuseok-top.webp differ diff --git a/frontend/public/b/holiday/chuseok.webp b/frontend/public/b/holiday/chuseok.webp deleted file mode 100644 index a4ad7b8..0000000 Binary files a/frontend/public/b/holiday/chuseok.webp and /dev/null differ diff --git a/frontend/public/b/holiday/halloween-bottom.webp b/frontend/public/b/holiday/halloween-bottom.webp new file mode 100644 index 0000000..19c674e Binary files /dev/null and b/frontend/public/b/holiday/halloween-bottom.webp differ diff --git a/frontend/public/b/holiday/halloween-top.webp b/frontend/public/b/holiday/halloween-top.webp new file mode 100644 index 0000000..7acf590 Binary files /dev/null and b/frontend/public/b/holiday/halloween-top.webp differ diff --git a/frontend/public/b/holiday/halloween.webp b/frontend/public/b/holiday/halloween.webp deleted file mode 100644 index 363cf65..0000000 Binary files a/frontend/public/b/holiday/halloween.webp and /dev/null differ diff --git a/frontend/public/b/holiday/pepero-bottom.webp b/frontend/public/b/holiday/pepero-bottom.webp new file mode 100644 index 0000000..ff1247d Binary files /dev/null and b/frontend/public/b/holiday/pepero-bottom.webp differ diff --git a/frontend/public/b/holiday/pepero-top.webp b/frontend/public/b/holiday/pepero-top.webp new file mode 100644 index 0000000..0b27375 Binary files /dev/null and b/frontend/public/b/holiday/pepero-top.webp differ diff --git a/frontend/public/b/holiday/pepero.webp b/frontend/public/b/holiday/pepero.webp deleted file mode 100644 index 61c7d90..0000000 Binary files a/frontend/public/b/holiday/pepero.webp and /dev/null differ diff --git a/frontend/src/b/BLayout.tsx b/frontend/src/b/BLayout.tsx index e6ffab6..a9254ff 100644 --- a/frontend/src/b/BLayout.tsx +++ b/frontend/src/b/BLayout.tsx @@ -187,8 +187,6 @@ const NOTCH_BG: Record = { night: '#0e1433', } -const notchBg = (kind: TimeKind) => (kind === 'night' ? (HOLIDAY?.nightNotch ?? NOTCH_BG.night) : (HOLIDAY?.notch ?? NOTCH_BG[kind])) - /** 처음 들어올 때만: 첫 데이터를 다 받을 때까지 하늘 위에 캐릭터와 '날씨 불러오는 중…'. 한 번 사라지면 다시 안 뜬다 */ function FirstLoad() { const fetching = useIsFetching() @@ -213,7 +211,7 @@ function FirstLoad() { aria-live="polite" onTransitionEnd={() => done && setGone(true)} 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, ${notchBg(kind)} 72%, transparent)` }} + style={{ backgroundColor: `color-mix(in srgb, ${NOTCH_BG[kind]} 72%, transparent)` }} >

날씨 불러오는 중…

@@ -261,7 +259,7 @@ function Shell() { if (pathname === to) window.scrollTo({ top: 0, behavior: 'smooth' }) } useEffect(() => { - document.querySelector('meta[name="theme-color"]')?.setAttribute('content', notchBg(kind)) + document.querySelector('meta[name="theme-color"]')?.setAttribute('content', NOTCH_BG[kind]) }, [kind]) return ( @@ -270,7 +268,7 @@ function Shell() { {/* 위·아래 바: 띠는 화면 끝까지, 내용은 가운데 440px 안 */}