feat: 앱 단풍 지도 — /foliage 지도(두 손가락 확대·이동, 눌러 가까운 명소)·단계별 명소 목록, 단풍철 오늘 피드 맨 앞 카드(foliage_post 좋아요·댓글)와 아이콘. 명소 데이터·계산을 shared/lib/foliage.ts 로 (GA foliage_open·foliage_spot)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
skkimandClaude committed 2026-11-04 17:52:23 +09:00
1 parent 6daa2f4d2a
commit e5cdfa2642
11 files changed
+966 -180

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
import { foliageOn, foliageToday } from '@nalssigak/shared/lib/foliage';
import { useMemo, useState } from 'react';
export { foliageInSeason } from '@nalssigak/shared/lib/foliage';
/** 단풍 지도 그림 (웹 public/foliage/korea-map.webp 를 그대로 묶는다, 정사각형) */
export const MAP_IMAGE: number = require('../../../frontend/public/foliage/korea-map.webp');
/** 오늘(한국 시각) 기준 명소 67곳과 단계. 단풍철이 아니면 inSeason 이 false (웹 useFoliage) */
export function useFoliage() {
const [today] = useState(() => foliageToday());
return useMemo(() => foliageOn(today), [today]);
}