From 954112e30e1ce912ca7098455555f675a49f9841 Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Sun, 15 Mar 2026 23:50:04 -0500 Subject: [PATCH] feat: add fallback to run animations on switch --- src/components/sections/WeatherSection.astro | 8 ++++-- src/layouts/BaseLayout.astro | 27 +++++++++++++++++--- 2 files changed, 29 insertions(+), 6 deletions(-) diff --git a/src/components/sections/WeatherSection.astro b/src/components/sections/WeatherSection.astro index 6674540..8d6a46c 100644 --- a/src/components/sections/WeatherSection.astro +++ b/src/components/sections/WeatherSection.astro @@ -19,8 +19,12 @@ const { forecastDays, error } = await getFiveDayForecast(latitude, longitude, ti {error ? ( -
- Sorry, {error.toLowerCase()} +
+
+

+ Sorry, {error.toLowerCase()} +

+
) : (
diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index dae7e92..585bbb9 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -93,7 +93,7 @@ const normalizeTitle = !title ? global.name : `${title} | ${global.name}`;
- +
@@ -103,16 +103,34 @@ const normalizeTitle = !title ? global.name : `${title} | ${global.name}`; @@ -152,6 +170,7 @@ const normalizeTitle = !title ? global.name : `${title} | ${global.name}`; /* Background that creates the "glimmer" effect */ .bg { animation: slide 25s ease-in-out infinite alternate; + will-change: transform; background-image: linear-gradient(-55deg, var(--bg-primary) 33.3%, var(--bg-secondary) 33.3%, var(--bg-secondary) 66.6%, var(--bg-tertiary) 66.6%); filter: blur(40px); top: 0;