fix: 기념일 소품을 헤더부터 네 귀퉁이에 — 폰은 반씩 폭을 채우고 웹은 300px로 양옆에 붙어 안 잘림, 헤더 칸은 흐림 막 위에 한 번 더 그려 선명하게

This commit is contained in:
minaChoi committed 2026-10-30 11:06:09 +09:00
1 parent 89ad5e1600
commit 70286030b1
26 files changed
+27 -9

No files matched your search

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 119 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 114 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 133 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

+5
View File
@@ -268,6 +268,11 @@ function Shell() {
<FirstLoad />
{/* 위·아래 바: 띠는 화면 끝까지, 내용은 가운데 440px 안 */}
<div className="b-topbg fixed inset-x-0 top-0 z-[19] h-[calc(54px+env(safe-area-inset-top,0px))] backdrop-blur-md" aria-hidden="true" />
{HOLIDAY && (
<div className="b-holiday-head pointer-events-none fixed inset-x-0 top-0 z-[19] h-[calc(54px+env(safe-area-inset-top,0px))] overflow-hidden" data-h={HOLIDAY.key} data-t={kind} aria-hidden="true">
<i />
</div>
)}
<div className="fixed inset-x-0 top-0 z-[19] h-[env(safe-area-inset-top,0px)] transition-colors duration-1400" style={{ backgroundColor: NOTCH_BG[kind] }} aria-hidden="true" />
<div className="relative mx-auto min-h-dvh max-w-[440px] overflow-x-clip pb-[calc(104px+env(safe-area-inset-bottom,0px))]">
<TopBar />
+22 -9
View File
@@ -456,20 +456,33 @@
.b-skybg[data-t='night'] .b-sky-night {
opacity: 1;
}
/* 기념일 소품 (holiday.ts): 하늘은 그대로 두고 투명 배경 소품 그림을 위(상단바 아래)·아래 두 조각으로 얹는다 (public/b/holiday/<key>-top·bottom.webp) */
/* 기념일 소품 (holiday.ts): 하늘은 그대로 두고 투명 배경 소품 그림을 화면 네 귀퉁이에 (public/b/holiday/<key>-tl·tr·bl·br.webp).
폰은 반씩 나눠 폭을 채우고, 넓은 화면은 300px 로 귀퉁이에 붙어 잘리지 않는다. 헤더 칸은 .b-holiday-head 가 흐림 막 위에 한 번 더 그린다 */
.b-sky-holiday,
.b-holiday-head > i {
--hw: min(50%, 300px);
background:
var(--h-tl) left top / var(--hw) auto no-repeat,
var(--h-tr) right top / var(--hw) auto no-repeat,
var(--h-bl) left bottom / var(--hw) auto no-repeat,
var(--h-br) right bottom / var(--hw) auto no-repeat;
}
.b-skybg[data-h] .b-sky-holiday {
opacity: 1;
background:
var(--h-top) center calc(54px + env(safe-area-inset-top, 0px)) / min(100%, 560px) auto no-repeat,
var(--h-bottom) center bottom / min(100%, 560px) auto no-repeat;
}
.b-skybg[data-h][data-t='night'] .b-sky-holiday {
.b-holiday-head > i {
position: absolute;
inset: 0 0 auto;
height: 100dvh;
}
[data-t='night'] .b-sky-holiday,
.b-holiday-head[data-t='night'] > i {
filter: brightness(0.8);
}
.b-skybg[data-h='halloween'] { --h-top: url('/b/holiday/halloween-top.webp'); --h-bottom: url('/b/holiday/halloween-bottom.webp'); }
.b-skybg[data-h='pepero'] { --h-top: url('/b/holiday/pepero-top.webp'); --h-bottom: url('/b/holiday/pepero-bottom.webp'); }
.b-skybg[data-h='christmas'] { --h-top: url('/b/holiday/christmas-top.webp'); --h-bottom: url('/b/holiday/christmas-bottom.webp'); }
.b-skybg[data-h='chuseok'] { --h-top: url('/b/holiday/chuseok-top.webp'); --h-bottom: url('/b/holiday/chuseok-bottom.webp'); }
[data-h='halloween'] { --h-tl: url('/b/holiday/halloween-tl.webp'); --h-tr: url('/b/holiday/halloween-tr.webp'); --h-bl: url('/b/holiday/halloween-bl.webp'); --h-br: url('/b/holiday/halloween-br.webp'); }
[data-h='pepero'] { --h-tl: url('/b/holiday/pepero-tl.webp'); --h-tr: url('/b/holiday/pepero-tr.webp'); --h-bl: url('/b/holiday/pepero-bl.webp'); --h-br: url('/b/holiday/pepero-br.webp'); }
[data-h='christmas'] { --h-tl: url('/b/holiday/christmas-tl.webp'); --h-tr: url('/b/holiday/christmas-tr.webp'); --h-bl: url('/b/holiday/christmas-bl.webp'); --h-br: url('/b/holiday/christmas-br.webp'); }
[data-h='chuseok'] { --h-tl: url('/b/holiday/chuseok-tl.webp'); --h-tr: url('/b/holiday/chuseok-tr.webp'); --h-bl: url('/b/holiday/chuseok-bl.webp'); --h-br: url('/b/holiday/chuseok-br.webp'); }
.b-skybg[data-t='morning'] {
--b1: #ffc39b;
--b2: #bfe5ff;