From 787479e077e3608112f6ddad41d6d5e686c0166f Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Sun, 15 Mar 2026 23:01:12 -0500 Subject: [PATCH] feat: add fallback --- src/components/sections/WeatherSection.astro | 2 +- src/pages/index.astro | 18 ++++++++++++++---- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/src/components/sections/WeatherSection.astro b/src/components/sections/WeatherSection.astro index ac57a02..6674540 100644 --- a/src/components/sections/WeatherSection.astro +++ b/src/components/sections/WeatherSection.astro @@ -7,7 +7,7 @@ const { latitude = "44.95", longitude = "-93.09", cityName = "St. Paul, Minnesot const { forecastDays, error } = await getFiveDayForecast(latitude, longitude, timezone); --- -
+

Weather in my Area diff --git a/src/pages/index.astro b/src/pages/index.astro index 948b963..f57efcd 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -68,10 +68,20 @@ const recentPosts = posts cityName={weather.location} timezone={weather.timezone} > -
-

- Loading weather... -

+
+
+

+ Loading weather... +

+
+
+
+
+
+ {Array.from({ length: 5 }).map((_, index) => ( +
= 4 ? "hidden min-[1100px]:block" : ""}`}>
+ ))} +