Skip to content

Commit 18a53b7

Browse files
Yushin-Lclaude
andcommitted
Fix water shimmer positioning to use viewport percentages
Changed from fixed px bottom/right to percentage-based positioning so effects are visible on all screen sizes. Container now covers full viewport (inset-0) instead of bottom strip. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 89d0634 commit 18a53b7

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

src/components/layout/WaterRipple.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22

33
export default function WaterRipple() {
44
return (
5-
<div className="pointer-events-none fixed inset-x-0 bottom-0 z-0 h-64 overflow-hidden">
6-
{/* 바다 위 햇살 반사 - 흰색/은빛 빛줄기 */}
7-
<div className="absolute bottom-16 right-[15%] h-32 w-48 animate-shimmer rounded-full bg-white/20 blur-2xl" />
8-
<div className="absolute bottom-24 right-[20%] h-20 w-64 animate-shimmer-slow rounded-full bg-white/15 blur-3xl" />
9-
<div className="absolute bottom-12 right-[12%] h-16 w-40 animate-shimmer-fast rounded-full bg-white/25 blur-xl" />
5+
<div className="pointer-events-none fixed inset-0 z-0 overflow-hidden">
6+
{/* 바다 위 햇살 반사 - 우하단 영역 */}
7+
<div className="absolute bottom-[8%] right-[10%] h-32 w-48 animate-shimmer rounded-full bg-white/20 blur-2xl" />
8+
<div className="absolute bottom-[12%] right-[15%] h-20 w-64 animate-shimmer-slow rounded-full bg-white/15 blur-3xl" />
9+
<div className="absolute bottom-[5%] right-[8%] h-16 w-40 animate-shimmer-fast rounded-full bg-white/25 blur-xl" />
1010

1111
{/* 작은 반짝임들 */}
12-
<div className="absolute bottom-20 right-[18%] h-3 w-3 animate-sparkle rounded-full bg-white/60 blur-sm" />
13-
<div className="absolute bottom-28 right-[22%] h-2 w-2 animate-sparkle-delayed rounded-full bg-white/50 blur-sm" />
14-
<div className="absolute bottom-14 right-[16%] h-2 w-2 animate-sparkle-slow rounded-full bg-white/55 blur-sm" />
15-
<div className="absolute bottom-24 right-[25%] h-2.5 w-2.5 animate-sparkle rounded-full bg-white/45 blur-sm" />
16-
<div className="absolute bottom-10 right-[20%] h-2 w-2 animate-sparkle-delayed rounded-full bg-white/50 blur-sm" />
12+
<div className="absolute bottom-[10%] right-[13%] h-3 w-3 animate-sparkle rounded-full bg-white/60 blur-sm" />
13+
<div className="absolute bottom-[15%] right-[18%] h-2 w-2 animate-sparkle-delayed rounded-full bg-white/50 blur-sm" />
14+
<div className="absolute bottom-[6%] right-[11%] h-2 w-2 animate-sparkle-slow rounded-full bg-white/55 blur-sm" />
15+
<div className="absolute bottom-[13%] right-[20%] h-2.5 w-2.5 animate-sparkle rounded-full bg-white/45 blur-sm" />
16+
<div className="absolute bottom-[4%] right-[16%] h-2 w-2 animate-sparkle-delayed rounded-full bg-white/50 blur-sm" />
1717

1818
<style>{`
1919
@keyframes shimmer {

0 commit comments

Comments
 (0)