feat: 기념일 배경을 행사 그림으로 — 할로윈(달·유령·호박), 빼빼로, 크리스마스(전구·눈사람), 추석(보름달·토끼·송편)을 화면 전체 하늘 위에 깔고 밤엔 어둡게, 떠다니는 아이콘은 뺌
This commit is contained in:
1 parent
cff44be771
commit
1c9e15500b
7 files changed
+19
-52
No files matched your search
@@ -6,7 +6,6 @@ import { cx } from '../lib/utils'
|
||||
import { kindOfHour, kst, seasonOf, type TimeKind } from '@nalssigak/shared/lib'
|
||||
import './b.css'
|
||||
import { AuthProvider } from './auth'
|
||||
import { iconSrc } from './lib'
|
||||
import { RegionProvider } from './region'
|
||||
import { useAuth } from './authContext'
|
||||
import { preloadGoogle } from './googleScript'
|
||||
@@ -110,16 +109,6 @@ const SHOOTS = [
|
||||
|
||||
const HOLIDAY = currentHoliday()
|
||||
|
||||
/** 기념일에 하늘에 떠다니는 그림: 게임 그림 중 큰 것부터 */
|
||||
const FLOATS = [
|
||||
{ top: '9%', left: '6%', '--z': '46px', '--dur': '13s', '--dl': '0s' },
|
||||
{ top: '17%', left: '82%', '--z': '40px', '--dur': '15s', '--dl': '2s' },
|
||||
{ top: '38%', left: '88%', '--z': '34px', '--dur': '17s', '--dl': '4s' },
|
||||
{ top: '46%', left: '3%', '--z': '38px', '--dur': '14s', '--dl': '1s' },
|
||||
{ top: '66%', left: '84%', '--z': '44px', '--dur': '16s', '--dl': '3s' },
|
||||
{ top: '78%', left: '8%', '--z': '36px', '--dur': '18s', '--dl': '5s' },
|
||||
]
|
||||
|
||||
/** 화면 전체 하늘: 시간대별 색, 아주 느리게 일렁이는 색 덩어리, 밤에는 별 */
|
||||
function SkyBg() {
|
||||
const { kind } = useSky()
|
||||
@@ -146,13 +135,6 @@ function SkyBg() {
|
||||
<span key={i} className="b-shoot" style={s} />
|
||||
))}
|
||||
</div>
|
||||
{HOLIDAY && (
|
||||
<div className="b-holiday-fx absolute inset-0">
|
||||
{FLOATS.map((s, i) => (
|
||||
<img key={i} src={iconSrc(HOLIDAY.game[HOLIDAY.game.length - 1 - (i % 4)].icon) ?? ''} alt="" style={s} />
|
||||
))}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user