feat: 기념일 꾸밈 — 할로윈·빼빼로데이·크리스마스·추석 기간에만 이야기 주제와 구름 합치기 그림이 바뀜

frontend/src/b/holiday.ts 한 곳에 기간·주제·배경·게임 그림. ?holiday=<key> 로 미리 보기.
GA: game_start theme 추가, talk_post topic 6~9.
This commit is contained in:
minaChoi committed 2026-10-30 09:15:53 +09:00
1 parent 48299e3ac5
commit 4fec164364
36 files changed
+171 -13

No files matched your search

+4 -3
View File
@@ -15,7 +15,8 @@ import { cx } from '../lib/utils'
import { useAuth } from './authContext'
import { kst } from '@nalssigak/shared/lib'
import { useRegion } from './regionContext'
import { topicName, TOPICS, useMyTalks } from './talkState'
import { holidayByTopic } from './holiday'
import { openTopics, topicName, useMyTalks } from './talkState'
import { useSheet } from './sheetContext'
import { CameraIcon, CommentIcon, HeartIcon, SendIcon } from './svg'
import { Avatar, TAP44 } from './ui'
@@ -153,7 +154,7 @@ function Composer({ onDone }: { onDone?: (t: TalkData) => void }) {
</div>
)}
<div className="mt-2 flex flex-wrap gap-1.5" role="radiogroup" aria-label="글 주제">
{TOPICS.map(([k, label]) => (
{openTopics().map(([k, label]) => (
<button
key={k}
type="button"
@@ -377,7 +378,7 @@ export function TalkPost({ t }: { t: TalkData }) {
<MenuButton menu={menu} setMenu={setMenu} className="ml-auto" />
</div>
{menu !== 'closed' && <TalkMenu t={t} menu={menu} setMenu={setMenu} className="px-3 pb-2.5" />}
<div ref={bodyRef} onClick={onTap} className={cx('b-day aspect-[4/5] overflow-hidden', !src && `b-bg-${(t.topic && TOPIC_BG[t.topic]) || 'mint'} grid place-items-center px-7`)}>
<div ref={bodyRef} onClick={onTap} className={cx('b-day aspect-[4/5] overflow-hidden', !src && `b-bg-${(t.topic && (TOPIC_BG[t.topic] ?? holidayByTopic(t.topic)?.bg)) || 'mint'} grid place-items-center px-7`)}>
{src ? (
<img src={src} alt="" loading="lazy" className="size-full bg-[#eef4fc] object-cover" />
) : (