From 9a82cfbedc49d7fe096f5b40abded34f09c242a4 Mon Sep 17 00:00:00 2001 From: Mina Choi Date: Mon, 12 Oct 2026 17:06:31 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=95=B1=EC=9D=B4=20=EB=9C=A8=EA=B8=B0?= =?UTF-8?q?=20=EC=A0=84=20=EC=A0=95=EC=A0=81=20=EC=86=8C=EA=B0=9C=20?= =?UTF-8?q?=EA=B8=80(Q&A)=EC=9D=B4=20=EC=9E=A0=EA=B9=90=20=EB=B3=B4?= =?UTF-8?q?=EC=9D=B4=EB=8D=98=20=EA=B2=83=20=E2=80=94=20index.html=20?= =?UTF-8?q?=EC=B2=AB=20=ED=99=94=EB=A9=B4=EC=97=90=20'=EB=82=A0=EC=94=A8?= =?UTF-8?q?=20=EB=B6=88=EB=9F=AC=EC=98=A4=EB=8A=94=20=EC=A4=91=E2=80=A6'?= =?UTF-8?q?=EC=9D=84=20=EB=8D=AE=EA=B3=A0=20=EC=95=B1=EC=9D=B4=20=EB=9C=A8?= =?UTF-8?q?=EB=A9=B4=20=EA=B1=B7=EB=8A=94=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/index.html | 5 +++++ frontend/src/b/BLayout.tsx | 8 +++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index 1ff2d06..dde21b1 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -96,6 +96,11 @@ /> + +
+ +

날씨 불러오는 중…

+

날씨각

diff --git a/frontend/src/b/BLayout.tsx b/frontend/src/b/BLayout.tsx index 7693069..fca9a25 100644 --- a/frontend/src/b/BLayout.tsx +++ b/frontend/src/b/BLayout.tsx @@ -3,7 +3,7 @@ import { NavLink, Outlet, useLocation } from 'react-router' import { useIsFetching, useQuery } from '@tanstack/react-query' import { getSeasonWeekOptions } from '../api/client/@tanstack/react-query.gen' import { cx } from '../lib/utils' -import { kindOfHour, kst, type TimeKind } from './lib' +import { kindOfHour, kst, seasonOf, type TimeKind } from './lib' import './b.css' import { AuthProvider } from './auth' import { RegionProvider } from './region' @@ -24,10 +24,6 @@ const TABS = [ { to: '/season', key: 'season', label: '계절·상식', title: '계절·상식' }, ] as const -// 달(1~12) → 계절 이름과 아이콘 -const SEASONS: [string, string][] = [['겨울', 'snow'], ['봄', 'garden'], ['여름', 'sun'], ['가을', 'maple']] -const seasonOf = (month: number) => SEASONS[Math.floor((month % 12) / 3)] - /** 로고 옆 계절 칩: 계절 이름과 지금 절기. 누르면 이번 주 절기 창. 좁은 화면에선 절기를 뺀다 */ function SeasonChip() { const { open } = useSheet() @@ -184,6 +180,8 @@ function FirstLoad() { // 받기 시작했다가 받는 게 없어지면 끝 (렌더 중에 바로 맞춘다) if (fetching > 0 && !started) setStarted(true) if (fetching === 0 && started && !done) setDone(true) + // 앱이 떴으니 index.html 의 첫 화면은 걷는다 (이 덮개가 이어받는다) + useEffect(() => document.getElementById('boot')?.remove(), []) // 느린 망에서도 10초 넘게 막지 않는다 (그 뒤는 화면 안 스켈레톤이 맡는다) useEffect(() => { const id = setTimeout(() => setDone(true), 10000)