From 169b3693b816c47b4ad65b5f751c51e26b76c3ac Mon Sep 17 00:00:00 2001 From: zv Date: Sat, 13 Jun 2026 12:19:44 +0200 Subject: [PATCH] fix: limit precipitation effects to weather overlay --- components/weather/weather-effects.tsx | 31 +++++++++----------------- 1 file changed, 10 insertions(+), 21 deletions(-) diff --git a/components/weather/weather-effects.tsx b/components/weather/weather-effects.tsx index aef0eff..53abbda 100644 --- a/components/weather/weather-effects.tsx +++ b/components/weather/weather-effects.tsx @@ -7,7 +7,7 @@ const rainDrops = Array.from({ length: 32 }, (_, index) => ({ delay: (index % 16) * 0.08, duration: 0.82 + (index % 5) * 0.1, lengthClass: index % 3 === 0 ? "h-16" : index % 3 === 1 ? "h-12" : "h-9", - opacity: index % 3 === 0 ? 0.46 : index % 3 === 1 ? 0.38 : 0.3, + opacity: index % 3 === 0 ? 0.58 : index % 3 === 1 ? 0.48 : 0.36, })); const mistDrops = Array.from({ length: 18 }, (_, index) => ({ @@ -17,8 +17,8 @@ const mistDrops = Array.from({ length: 18 }, (_, index) => ({ })); const lightningBolts = [ - "left-[68%] top-[12%] h-28 rotate-[18deg]", - "left-[76%] top-[20%] h-20 rotate-[24deg]", + "left-[68%] top-[12%] h-28 rotate-[12deg]", + "left-[78%] top-[22%] h-20 rotate-[18deg]", ]; export function WeatherEffects({ precipitation10m, thunderstorm = false }: { precipitation10m?: number | null; thunderstorm?: boolean }) { @@ -29,20 +29,13 @@ export function WeatherEffects({ precipitation10m, thunderstorm = false }: { pre