feat: 히어로 공유 이미지를 하루 띠로 — 아침·낮·저녁·밤 네 줄(그 시간대 하늘·날씨·기온·날씨 점수·1등 각, 지금 표시), 1:1은 2×2 칸

This commit is contained in:
minaChoi committed 2026-10-21 13:33:54 +09:00
1 parent 8b487b7030
commit b5c280ca3c
4 files changed
+91 -62

No files matched your search

+2 -2
View File
@@ -532,7 +532,7 @@ function ShareSheet({ share }: { share: SharePayload }) {
if (images[size] || failed[size]) return
let alive = true
const today = new Date().toLocaleDateString('ko-KR', { month: 'long', day: 'numeric', weekday: 'long' })
shareImage(share.slides, { size, sky: kind, sub: `${region.name} · ${today}`, host: new URL(SITE_URL).host }).then(
shareImage(size === 'square' && share.square ? share.square : share.slides, { size, sky: kind, sub: `${region.name} · ${today}`, host: new URL(SITE_URL).host }).then(
(blob) => {
if (!alive) return
const src = URL.createObjectURL(blob)
@@ -547,7 +547,7 @@ function ShareSheet({ share }: { share: SharePayload }) {
return () => {
alive = false
}
}, [size, images, failed, share.slides, kind, region.name])
}, [size, images, failed, share.slides, share.square, kind, region.name])
useEffect(() => {
const list = srcs.current