From 1db0e7a18500a45de534ff3738c5f0eb01bca9dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mauricio=20L=C3=B3pez=20Coria?= Date: Wed, 1 Jul 2026 23:44:28 -0300 Subject: [PATCH] fix: resolve 5 UI issues from post-deploy review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - CloudDivider: replace Tailwind fill classes with inline CSS var() (fixes black separators) - ServiceCard: add p-6 md:p-7 padding, reduce border-top to 3px (fixes broken card layout) - Hero: increase eyebrow font-size 0.7rem→0.8rem, badges text-sm→text-base (fixes tiny fonts) - LenisScroll: duration 1.2→0.8, remove double RAF bug, add ScrollTrigger.update sync, reduced-motion guard (fixes slow scroll + missing animations) - global.css: remove scroll-behavior:smooth from html (conflicted with Lenis) --- src/components/CloudDivider.astro | 8 ++--- src/components/Hero.astro | 2 +- src/components/LenisScroll.astro | 53 +++++++++++++++---------------- src/components/ServiceCard.astro | 4 +-- src/pages/index.astro | 6 ++-- src/styles/global.css | 3 +- 6 files changed, 36 insertions(+), 40 deletions(-) diff --git a/src/components/CloudDivider.astro b/src/components/CloudDivider.astro index b8457d0..fd79613 100644 --- a/src/components/CloudDivider.astro +++ b/src/components/CloudDivider.astro @@ -2,20 +2,20 @@ interface Props { variant?: 'wave' | 'cloud'; flip?: boolean; - fillClass?: string; + fill?: string; } -const { variant = 'wave', flip = false, fillClass = 'fill-hds-bg' } = Astro.props; +const { variant = 'wave', flip = false, fill = 'var(--hds-bg)' } = Astro.props; --- {variant === 'wave' ? ( ) : ( )} diff --git a/src/components/Hero.astro b/src/components/Hero.astro index 9a588e6..a950399 100644 --- a/src/components/Hero.astro +++ b/src/components/Hero.astro @@ -100,7 +100,7 @@ const { t, whatsappUrl } = Astro.props; -
+
{t('hero.badge26')} diff --git a/src/components/LenisScroll.astro b/src/components/LenisScroll.astro index 9b04284..7dbd03b 100644 --- a/src/components/LenisScroll.astro +++ b/src/components/LenisScroll.astro @@ -1,37 +1,34 @@ --- -// Lenis smooth scroll — Phase 5 -// Synced with GSAP ticker for scroll-driven animations +// Lenis smooth scroll — synced with GSAP ScrollTrigger +// Skipped entirely when prefers-reduced-motion is active --- diff --git a/src/components/ServiceCard.astro b/src/components/ServiceCard.astro index d174593..91b3c4c 100644 --- a/src/components/ServiceCard.astro +++ b/src/components/ServiceCard.astro @@ -13,8 +13,8 @@ const { href, title, description, Icon, borderColor = 'var(--color-hds-naranja)' ---
diff --git a/src/pages/index.astro b/src/pages/index.astro index ca7b78e..fdb8797 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -26,16 +26,16 @@ const description = lang === 'en' > - + - + - + diff --git a/src/styles/global.css b/src/styles/global.css index 0f48f60..40e279c 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -103,7 +103,6 @@ } html { - scroll-behavior: smooth; -webkit-text-size-adjust: 100%; } @@ -210,7 +209,7 @@ display: inline-flex; align-items: center; gap: 0.75rem; - font-size: 0.7rem; + font-size: 0.8rem; font-weight: 600; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;