feat: 기념일 배경을 행사 그림으로 — 할로윈(달·유령·호박), 빼빼로, 크리스마스(전구·눈사람), 추석(보름달·토끼·송편)을 화면 전체 하늘 위에 깔고 밤엔 어둡게, 떠다니는 아이콘은 뺌
This commit is contained in:
1 parent
cff44be771
commit
1c9e15500b
7 files changed
+19
-52
No files matched your search
@@ -6,7 +6,7 @@ type GamePiece = { icon: string; name: string }
|
||||
|
||||
/**
|
||||
* 기념일 꾸밈. 기간(KST, 양 끝 포함) 안에만 켜진다. 'MM-DD' 는 해마다, 'YYYY-MM-DD' 는 그해만(음력 기념일).
|
||||
* 새 기념일: 여기에 한 줄 + TalkTopic(backend/common/enums.py) + 그림(public/b/icons, lib.ts OWN)
|
||||
* 새 기념일: 여기에 한 줄 + TalkTopic(backend/common/enums.py) + 게임 그림(public/b/icons, lib.ts OWN) + 배경(public/b/holiday, b.css)
|
||||
*/
|
||||
export type Holiday = {
|
||||
key: 'halloween' | 'pepero' | 'christmas' | 'chuseok'
|
||||
@@ -15,9 +15,9 @@ export type Holiday = {
|
||||
topic: TalkTopic
|
||||
/** 글만 있는 사람 글 배경 (b.css b-bg-*) */
|
||||
bg: string
|
||||
/** 낮 하늘 맨 위 색 = 노치 띠 색. 하늘 그라데이션은 b.css .b-skybg[data-h] */
|
||||
/** 배경 그림(public/b/holiday/<key>.webp) 맨 위 색 = 노치 띠 색 */
|
||||
notch: string
|
||||
/** 밤 하늘도 바꾸는 기념일만 */
|
||||
/** 밤(그림을 어둡게 누른 색)에 따로 줄 때 */
|
||||
nightNotch?: string
|
||||
game: readonly GamePiece[]
|
||||
}
|
||||
@@ -25,8 +25,8 @@ export type Holiday = {
|
||||
export const HOLIDAYS: readonly Holiday[] = [
|
||||
{
|
||||
key: 'halloween',
|
||||
notch: '#ffad62',
|
||||
nightNotch: '#1c1030',
|
||||
notch: '#9b84d8',
|
||||
nightNotch: '#2c2350',
|
||||
name: '할로윈',
|
||||
ranges: [['10-31', '11-01']],
|
||||
topic: TalkTopic.HALLOWEEN,
|
||||
@@ -44,7 +44,7 @@ export const HOLIDAYS: readonly Holiday[] = [
|
||||
},
|
||||
{
|
||||
key: 'pepero',
|
||||
notch: '#e2b08e',
|
||||
notch: '#e9c3cf',
|
||||
name: '빼빼로데이',
|
||||
ranges: [['11-11', '11-11']],
|
||||
topic: TalkTopic.PEPERO,
|
||||
@@ -62,7 +62,7 @@ export const HOLIDAYS: readonly Holiday[] = [
|
||||
},
|
||||
{
|
||||
key: 'christmas',
|
||||
notch: '#95d8ac',
|
||||
notch: '#bfe6d6',
|
||||
name: '크리스마스',
|
||||
ranges: [['12-24', '12-25']],
|
||||
topic: TalkTopic.CHRISTMAS,
|
||||
@@ -80,7 +80,7 @@ export const HOLIDAYS: readonly Holiday[] = [
|
||||
},
|
||||
{
|
||||
key: 'chuseok',
|
||||
notch: '#ffd77e',
|
||||
notch: '#8a8fd8',
|
||||
name: '추석',
|
||||
ranges: [['2027-09-14', '2027-09-16']],
|
||||
topic: TalkTopic.CHUSEOK,
|
||||
|
||||
Reference in new issue
Block a user