From 8a649b7647804a63013bc9a44485f36e60dfdb7f Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Sun, 15 Feb 2026 15:42:27 -0600 Subject: [PATCH] feat: imporvement pass over sections --- src/components/buttons/GiteaButton.astro | 2 +- src/components/sections/FeaturesSection.astro | 4 +- src/components/sections/GiteaSection.astro | 67 ++++++++----------- src/components/sections/HeaderSection.astro | 18 ++--- src/components/sections/HeroSection.astro | 60 +++++++---------- src/components/sections/WeatherSection.astro | 2 +- src/styles/utilities.css | 6 +- 7 files changed, 67 insertions(+), 92 deletions(-) diff --git a/src/components/buttons/GiteaButton.astro b/src/components/buttons/GiteaButton.astro index e889bf7..a5a730e 100644 --- a/src/components/buttons/GiteaButton.astro +++ b/src/components/buttons/GiteaButton.astro @@ -21,7 +21,7 @@ const { title, url } = Astro.props; class="h-4 w-4 md:h-6 md:w-6" /> - {title} + Continue to Gitea -
+
-
+ +
-
+
- +
-

+

{title} -

+
- +
- { - subTitle && ( -

{subTitle}

- ) - } + {subTitle && ( +

+ {subTitle} +

+ )}
- - { - url && ( -
- -
- ) - } + + {url && ( +
+ +
+ )} diff --git a/src/components/sections/HeaderSection.astro b/src/components/sections/HeaderSection.astro index 9c2efa5..da89173 100644 --- a/src/components/sections/HeaderSection.astro +++ b/src/components/sections/HeaderSection.astro @@ -15,21 +15,17 @@ const { title, subTitle, btnExists, btnTitle, btnURL } = Astro.props;
-

+

{title}

-

+

{subTitle}

- { - btnExists ? ( -
- -
- ) : null - } + {btnExists ? ( +
+ +
+ ) : null}
diff --git a/src/components/sections/HeroSection.astro b/src/components/sections/HeroSection.astro index 30f8def..db40f03 100644 --- a/src/components/sections/HeroSection.astro +++ b/src/components/sections/HeroSection.astro @@ -3,9 +3,6 @@ import GoLinkPrimary from '@components/buttons/GoLinkPrimary.astro'; import GoLinkSecondary from '@components/buttons/GoLinkSecondary.astro'; import Image from '@components/ui/images/Image.astro'; -const { title, subTitle, primaryBtn, primaryBtnURL, secondaryBtn, secondaryBtnURL, src, alt } = - Astro.props; - interface Props { title: string; subTitle?: string; @@ -18,49 +15,42 @@ interface Props { rounded?: boolean; } +const { title, subTitle, primaryBtn, primaryBtnURL, secondaryBtn, secondaryBtnURL, src, alt } = Astro.props; + const roundedClasses = Astro.props.rounded ? "rounded-xl" : null; --- -
+
-

+

- { - subTitle && ( -

- {subTitle} -

- ) - } - -
+ {subTitle && ( +

+ {subTitle} +

+ )} +
{primaryBtn && } {secondaryBtn && }
-
diff --git a/src/components/sections/WeatherSection.astro b/src/components/sections/WeatherSection.astro index fd5fab0..8ce3091 100644 --- a/src/components/sections/WeatherSection.astro +++ b/src/components/sections/WeatherSection.astro @@ -8,7 +8,7 @@ const { forecastDays, error } = await getFiveDayForecast(latitude, longitude, ti
-

+

Weather in my Area

diff --git a/src/styles/utilities.css b/src/styles/utilities.css index 5c9797c..649a9bd 100644 --- a/src/styles/utilities.css +++ b/src/styles/utilities.css @@ -73,8 +73,8 @@ @utility card-text-header { @apply text-header - md:text-5xl - text-4xl + text-4xl md:text-5xl + font-bold leading-tight tracking-tight text-balance } @utility card-text-header-minor { @@ -87,7 +87,7 @@ @utility card-text-header-description { @apply text-primary text-lg - text-pretty + text-pretty leading-relaxed } @utility card-text-title {