feat: 계절 지도 자리에 첫눈 지도·해돋이 지도 — 단풍 지도가 끝나면 첫눈 지도(~12/20, 지점 42곳 평년 첫눈 날짜 + 앞으로 7일 눈 예보, GET /v1/season/first-snow), 12/21부터 해돋이 지도(~2월, 명소 50곳 해 뜨는 시각, 12월엔 새해 첫날 기준). 오늘 탭 아이콘·피드 맨 앞 카드(foliage_post 좋아요·댓글 자리를 이어받음)·/first-snow·/sunrise 페이지·공유 이미지. 지도 확대·이동은 mapView.ts 로 꺼내 단풍 지도와 같이 씀 (GA first_snow_open·first_snow_spot·sunrise_open·sunrise_spot·sunrise_day)

This commit is contained in:
skkim committed 2026-11-20 11:18:54 +09:00
1 parent 4e69c4ac44
commit d7dfc1ba82
30 files changed
+1973 -255

No files matched your search

+5 -1
View File
@@ -16,7 +16,9 @@ import {
import { cx } from '../lib/utils'
import { cardBg, kindOfHour, kst, type Load, loadOf, MEDALS, type TimeKind, WEEKDAYS } from '@nalssigak/shared/lib'
import { fall } from './lib'
import { FirstSnowCard } from './firstSnowMap'
import { FoliageCard } from './foliageMap'
import { SunriseCard } from './sunriseMap'
import { InstallBanner } from './installBanner'
import { MoonArt } from './moon'
import { MyGakRow } from './myGak'
@@ -645,8 +647,10 @@ export function TodayPage() {
{load !== 'loading' && !posts.length && (
<StateBox load="ready" empty={load === 'ready' ? '오늘 올라온 글이 아직 없어요.' : '글을 불러오지 못했어요.'} hold={<PostsSkel />} className="inset-x-3 top-3.5 bottom-auto" />
)}
{/* 단풍철엔 단풍 지도를 포스트 맨 앞에 */}
{/* 계절 지도 카드를 포스트 맨 앞에: 단풍 지도 → 첫눈 지도 → 해돋이 지도 순으로 한 번에 하나만. 좋아요·댓글 자리(foliage_post)는 같이 쓴다 */}
{load !== 'loading' && posts.length > 0 && <FoliageCard post={f?.foliage_post} />}
{load !== 'loading' && posts.length > 0 && <FirstSnowCard post={f?.foliage_post} />}
{load !== 'loading' && posts.length > 0 && <SunriseCard post={f?.foliage_post} />}
{posts.map((p, i) => {
const t = talkAt(i)
const ev = eventNo.get(p.post_id)