diff --git a/frontend/src/b/Post.tsx b/frontend/src/b/Post.tsx
index 84ec23f..771e8cc 100644
--- a/frontend/src/b/Post.tsx
+++ b/frontend/src/b/Post.tsx
@@ -87,7 +87,7 @@ function Big({ children, className }: { children: ReactNode; className?: string
function Pic({ name, className }: { name: string; className?: string }) {
return (
-
+
)
}
diff --git a/frontend/src/b/SeasonPage.tsx b/frontend/src/b/SeasonPage.tsx
index 4a3a320..ed4d567 100644
--- a/frontend/src/b/SeasonPage.tsx
+++ b/frontend/src/b/SeasonPage.tsx
@@ -82,7 +82,7 @@ export function SeasonPage() {
이번 주 특집{w.start && w.end ? ` · ${dateRange(w.start, w.end)}` : ''}
{w.headline}
-
+
{(w.poem_lines ?? []).length > 0 && (
diff --git a/frontend/src/b/Sheets.tsx b/frontend/src/b/Sheets.tsx
index e9a3ac6..8168ab9 100644
--- a/frontend/src/b/Sheets.tsx
+++ b/frontend/src/b/Sheets.tsx
@@ -101,8 +101,10 @@ function SheetHost({ state, onClose }: { state: SheetState; onClose: () => void
const root = document.documentElement
const before = root.style.overflow
root.style.overflow = 'hidden'
+ root.classList.add('b-sheet-open')
return () => {
root.style.overflow = before
+ root.classList.remove('b-sheet-open')
}
}, [isOpen])
diff --git a/frontend/src/b/TodayPage.tsx b/frontend/src/b/TodayPage.tsx
index 27649d7..e0844e0 100644
--- a/frontend/src/b/TodayPage.tsx
+++ b/frontend/src/b/TodayPage.tsx
@@ -199,9 +199,12 @@ function Hero({ hero, today, ranked, all, feedLoad, todayLoad }: HeroProps) {
{CLOUDS.slice(0, CLOUD_N[weather]).map((c) => (
-
+
+
+
))}
-
+
+
{/* 안 보이는 쪽을 덮어 오늘 밤 달 모양으로 */}
{moon && (
+
{top1 ? (
diff --git a/frontend/src/b/b.css b/frontend/src/b/b.css
index 2616718..072b849 100644
--- a/frontend/src/b/b.css
+++ b/frontend/src/b/b.css
@@ -22,11 +22,12 @@
outline-offset: 2px;
}
-/* 하늘에서 떨어진 뒤 둥둥 */
+/* 하늘에서 떨어진 뒤(.b-fall) 둥둥(.b-bob, 그 안쪽 요소). 한 요소에 transform 애니메이션 둘이 겹치면 GPU로 못 넘겨 매 프레임 메인 스레드가 일한다 */
.b-fall {
- animation:
- b-drop 1.05s cubic-bezier(0.22, 0.9, 0.3, 1) var(--d, 0s) both,
- b-float var(--f, 4.8s) ease-in-out calc(var(--d, 0s) + 1.05s) infinite;
+ animation: b-drop 1.05s cubic-bezier(0.22, 0.9, 0.3, 1) var(--d, 0s) backwards;
+}
+.b-bob {
+ animation: b-float var(--f, 4.8s) ease-in-out calc(var(--d, 0s) + 1.05s) infinite;
}
@keyframes b-drop {
0% {
@@ -53,7 +54,7 @@
transform: translateY(0);
}
50% {
- transform: translateY(calc(var(--amp, 9px) * -1)) rotate(var(--tilt, 1.2deg));
+ transform: translateY(-9px) rotate(1.2deg);
}
}
@@ -509,6 +510,9 @@
border-radius: 50%;
background: #fff;
box-shadow: 0 0 6px rgb(255 255 255 / 0.8);
+}
+/* 별은 밤에만 보이니 반짝임·별똥별도 밤에만 돌린다 (낮에 안 보이는 채로 돌면 매 프레임 일을 한다) */
+.b-skybg[data-t='night'] .b-skystars i {
animation: b-twinkle var(--tw, 5s) ease-in-out infinite;
animation-delay: var(--dl, 0s);
}
@@ -523,8 +527,14 @@
border-radius: 2px;
background: linear-gradient(90deg, rgb(255 255 255 / 0), #fff);
opacity: 0;
+}
+:is(.b-skybg, .b-hero)[data-t='night'] .b-shoot {
animation: b-shoot var(--dur, 8s) ease-in var(--dl, 0s) infinite;
}
+/* 아래 창이 열려 있는 동안 뒤 화면 움직임은 멈춘다 (창이 버벅이지 않게) */
+html.b-sheet-open .b-app :is(.b-fall, .b-bob, .b-blob, .b-skystars i, .b-shoot, .b-stars i) {
+ animation-play-state: paused !important;
+}
@keyframes b-shoot {
0%, 86% { opacity: 0; transform: rotate(-24deg) translateX(0); }
89% { opacity: 1; }
diff --git a/frontend/src/b/lib.ts b/frontend/src/b/lib.ts
index a0b5cfe..ab21d2b 100644
--- a/frontend/src/b/lib.ts
+++ b/frontend/src/b/lib.ts
@@ -39,7 +39,7 @@ export const MOODS = [
export const moodEmoji = (mood?: string | null) => MOODS.find(([k]) => k === mood)?.[1]
-export const fall = (d: string, f = '4.8s', amp?: string) => ({ '--d': d, '--f': f, ...(amp ? { '--amp': amp } : {}) }) as CSSProperties
+export const fall = (d: string, f = '4.8s') => ({ '--d': d, '--f': f }) as CSSProperties
export const WEEKDAYS = ['일', '월', '화', '수', '목', '금', '토'] as const