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 -5
View File
@@ -5,7 +5,7 @@ import type { TopIndex } from '@nalssigak/shared/api/client/types.gen'
import { SNOW_DOT, SNOW_MAP_IMG, SNOW_PAPER, SNOW_SHADOW, SNOW_STAGE, type SnowSpot } from './firstSnow'
import { LEAF_SHADOW, MAP_IMG, MAP_SRC, md, PROVINCE, PROVINCES, STAGE, type Spot } from './foliage'
import { MEDALS, type TimeKind } from '@nalssigak/shared/lib'
import { clock, COAST, CROP_IMG, cropXY, direction, SUN_MAP_IMG, SUN_SHADOW, type SunSpot } from './sunrise'
import { clock, COAST, CROP_IMG, cropXY, direction, SUN_MAP_IMG, SUN_PAPER, SUN_SHADOW, type SunSpot } from './sunrise'
import { Ic } from './ui'
/** 공유 이미지 전용 틀. 화면 밖에 그려 두고 보내기 때 이것만 찍는다 (화면의 버튼은 이미지에서 빠지므로 글자만으로 만든다) */
@@ -194,10 +194,10 @@ export function SunriseSpotShare({ spot, when, tops, ref }: { spot: SunSpot | nu
const near = tops.filter((m) => m.name !== spot.name)
return (
<Offscreen>
<div ref={ref} className="flex aspect-[4/5] flex-col bg-[#fff6ea] text-[#28304a]">
<div ref={ref} className={cx('flex aspect-[4/5] flex-col text-[#28304a]', SUN_PAPER)}>
<div className="relative flex-1 overflow-hidden">
{/* 명소가 가운데 오게 지도 그림을 키워 옮긴다 */}
<div className="absolute top-1/2 left-1/2 aspect-square w-[220%] bg-[#fff6ea]" style={{ transform: `translate(-${spot.x * 100}%, -${spot.y * 100}%)` }}>
<div className={cx('absolute top-1/2 left-1/2 aspect-square w-[220%]', SUN_PAPER)} style={{ transform: `translate(-${spot.x * 100}%, -${spot.y * 100}%)` }}>
<img src={MAP_SRC} alt="" className={cx(SUN_MAP_IMG, 'inset-0 size-full')} />
{PROVINCES.map((v) => (
<span key={v.name} className={cx(PROVINCE, 'text-[15px]')} style={{ left: `${v.x * 100}%`, top: `${v.y * 100}%` }}>
@@ -233,10 +233,10 @@ export function SunriseSpotShare({ spot, when, tops, ref }: { spot: SunSpot | nu
export function SunriseMapShare({ title, when, tops, ranked, ref }: { title: string; when: string; tops: SunSpot[]; ranked: SunSpot[]; ref: Ref<HTMLDivElement> }) {
return (
<Offscreen>
<div ref={ref} className="flex aspect-[4/5] flex-col bg-[#fff6ea] px-4 pt-4 pb-3 text-[#28304a]">
<div ref={ref} className={cx('flex aspect-[4/5] flex-col px-4 pt-4 pb-3 text-[#28304a]', SUN_PAPER)}>
<p className="m-0 text-[13px] font-extrabold opacity-75">해돋이 지도 · {when}</p>
<p className="m-0 font-jua text-[24px] leading-tight">{title}</p>
<div className="relative mx-auto mt-1 aspect-square w-[72%] overflow-hidden bg-[#fff6ea]">
<div className={cx('relative mx-auto mt-1 aspect-square w-[72%] overflow-hidden', SUN_PAPER)}>
<img src={MAP_SRC} alt="" className={SUN_MAP_IMG} style={CROP_IMG} />
{PROVINCES.map((v) => {
const at = cropXY(v.x, v.y)