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

+8 -1
View File
@@ -1,10 +1,12 @@
import { type ReactNode } from 'react'
import { useState, type ReactNode } from 'react'
import { Link } from 'react-router'
import { track } from '../lib/analytics'
import { HIDDEN } from './features'
import { firstSnowInSeason } from './firstSnow'
import { useFoliage } from './foliage'
import { useTarotBadge } from './fortune'
import { sajuSeenToday } from './SajuPage'
import { useSunrise } from './sunrise'
import { useSheet } from './sheetContext'
import { Ic, Rail } from './ui'
@@ -20,6 +22,8 @@ export function TodayIcons() {
const { open } = useSheet()
const tarot = useTarotBadge()
const { inSeason } = useFoliage()
const [snowSeason] = useState(() => firstSnowInSeason())
const { inSeason: sunriseSeason } = useSunrise()
const items: Item[] = [
{
@@ -35,7 +39,10 @@ export function TodayIcons() {
},
{ key: 'saju', label: '날씨 사주', icon: 'yin_yang', badge: sajuSeenToday() ? null : <Dot />, to: '/saju' },
{ key: 'game', label: '날씨 게임', icon: 'game', to: '/game' },
// 계절 지도 칸: 단풍 지도 → 첫눈 지도 → 해돋이 지도 순으로 한 번에 하나만 나온다
...(inSeason ? [{ key: 'foliage', label: '단풍 지도', icon: 'maple', to: '/foliage' }] : []),
...(snowSeason ? [{ key: 'firstSnow', label: '첫눈 지도', icon: 'snow', to: '/first-snow' }] : []),
...(sunriseSeason ? [{ key: 'sunrise', label: '해돋이 지도', icon: 'sunset', to: '/sunrise' }] : []),
{ key: 'shorts', label: '쇼츠', icon: 'clapper', to: '/shorts' },
{ key: 'myGak', label: '내 각', icon: 'rabbit', onClick: () => document.getElementById(MY_GAK_ID)?.scrollIntoView({ behavior: 'smooth', block: 'start' }) },
{ key: 'talk', label: '동네 이야기', icon: 'speech', to: '/talk' },