fix(hero): start bottom fade downwards strictly after the metrics capsule ends

This commit is contained in:
2026-11-05 18:18:09 +05:30
parent f8f7a737dc
commit 33fe8e03b9
+4 -4
View File
@@ -269,7 +269,7 @@ export function HeroSection({
// - Perfect bottom fade (h-28 sm:h-36) seamlessly blending with content below
// -------------------------------------------------------------
return (
<section id="hero-section" className="relative min-h-[92vh] sm:min-h-screen flex items-center overflow-hidden bg-[#FAF8F5] pt-20 sm:pt-24 pb-14 sm:pb-20">
<section id="hero-section" className="relative min-h-[92vh] sm:min-h-screen flex items-center overflow-hidden bg-[#FAF8F5] pt-20 sm:pt-24 pb-20 sm:pb-28 lg:pb-32">
{/* 1. Background Image with Responsive Ultra-Fast Loading */}
<div className="absolute inset-0 z-0 overflow-hidden">
<picture>
@@ -282,13 +282,13 @@ export function HeroSection({
className="w-full h-full object-cover object-[75%_center] sm:object-right select-none pointer-events-none opacity-90 brightness-[0.95]"
loading="eager"
fetchPriority="high"
decoding="async"
decoding="sync"
/>
</picture>
{/* White / Cream Gradient Overlay: Restrained to left text side (~55%) so complete image stays vibrant & visible */}
<div className="absolute inset-0 bg-gradient-to-r from-[#FAF8F5] via-[#FAF8F5]/65 via-30% to-transparent to-55% pointer-events-none" />
{/* Soft Bottom Fade: Seamlessly blends into #our-tools without covering her necklace or shoulder */}
<div className="absolute inset-x-0 bottom-0 h-24 sm:h-32 lg:h-36 bg-gradient-to-t from-[#FAF8F5] via-[#FAF8F5]/85 via-40% to-transparent pointer-events-none" />
{/* Soft Bottom Fade: Starts cleanly after the metrics section ends to blend into #our-tools */}
<div className="absolute inset-x-0 bottom-0 h-14 sm:h-16 lg:h-20 bg-gradient-to-t from-[#FAF8F5] via-[#FAF8F5]/75 via-40% to-transparent pointer-events-none" />
</div>
{/* Hero End Sentinel for exact scroll position detection */}