fix: 해돋이·첫눈 지도 다듬기 — 그림 귀퉁이의 단풍잎 장식이 잘려 보이던 것(오른쪽은 위·아래 귀퉁이만 잘라 독도는 남김), 해돋이 지도 색을 살구빛 바탕·주황빛 땅으로, 처음 화면에서 한 단계 더 축소(울릉도·독도까지 전체 보기)

This commit is contained in:
skkim committed 2026-11-20 11:44:26 +09:00
1 parent d7dfc1ba82
commit 0578c127d5
7 files changed
+31 -24

No files matched your search

+5 -3
View File
@@ -5,7 +5,7 @@ import { ICON_R, LABEL, MAP_SRC, PROVINCE, PROVINCES, labelBoxes, md, placeLabel
import { useMapView } from './mapView'
import { useSheet } from './sheetContext'
import { SunriseMapShare, SunriseSpotShare } from './shareCards'
import { clock, COAST, direction, dokdoRise, SUN_DOT, SUN_LABEL_INK, SUN_MAP_IMG, SUN_SHADOW, sunriseHeadline, useSunrise, type Coast, type SunSpot } from './sunrise'
import { clock, COAST, direction, dokdoRise, SUN_DOT, SUN_LABEL_INK, SUN_MAP_IMG, SUN_PAPER, SUN_SHADOW, sunriseHeadline, useSunrise, type Coast, type SunSpot } from './sunrise'
import { SendIcon } from './svg'
import { Chips, Ic, TAP44 } from './ui'
import { track } from '../lib/analytics'
@@ -16,6 +16,8 @@ const DOT_R = 4
// 대표 명소가 아닌 곳의 이름이 나오기 시작하는 배율(처음 화면 대비): 처음엔 대표 명소 이름만 보여 차분하게
const LABEL_FROM = 2.2
const TAP_R = 24
// 처음 화면에서 − 를 한 번 더 누를 수 있다: 울릉도·독도까지 전체가 보인다
const MIN_ZOOM = 1 / 1.6
const SHARE_ICON = 'relative grid size-9 shrink-0 cursor-pointer place-items-center rounded-full [&_svg]:size-[19px] [&_svg]:fill-none [&_svg]:stroke-(--ink2) [&_svg]:stroke-[1.9]'
const SHARE_BTN = `${SHARE_ICON} bg-white/80`
const FILTERS: [Filter, string][] = [['all', '전체'], ...(Object.entries(COAST) as [Coast, string][])]
@@ -66,7 +68,7 @@ export function SunrisePage() {
}
setSel((cur) => (best && best !== cur ? best : null))
}, [])
const { box, view, fit, zoomAt, focus } = useMapView(vpRef, spots, params.get('spot'), pickAt)
const { box, view, fit, zoomAt, focus } = useMapView(vpRef, spots, params.get('spot'), pickAt, MIN_ZOOM)
const pts = useMemo(
() => spread(shown.map((m) => ({ m, x: view.tx + m.x * box.W * view.s, y: view.ty + m.y * box.W * view.s, r: m.top ? ICON_R : DOT_R }))),
@@ -135,7 +137,7 @@ export function SunrisePage() {
{days.length > 1 && <Chips label="날짜" items={days.map((d) => [d.key, `${d.label} ${md(d.date)}`] as const)} value={day.key} onChange={pickDay} />}
<div ref={vpRef} className="b-keep-bg relative mt-2 h-[min(122vw,calc(100dvh-330px),560px)] min-h-[300px] touch-pan-y overflow-hidden bg-[#fff6ea] select-none">
<div ref={vpRef} className={cx('b-keep-bg relative mt-2 h-[min(122vw,calc(100dvh-330px),560px)] min-h-[300px] touch-pan-y overflow-hidden select-none', SUN_PAPER)}>
<img src={MAP_SRC} alt="해돋이 지도" draggable={false} className={cx(SUN_MAP_IMG, 'max-w-none')} style={{ left: view.tx, top: view.ty, width: box.W * view.s, height: box.W * view.s }} />
{provs.map((v) => (
<span key={v.name} aria-hidden="true" className={PROVINCE} style={{ left: v.x, top: v.y }}>