fix(hero): refine top gradient for black navbar text contrast and fix mobile portrait positioning

This commit is contained in:
2026-11-06 10:04:44 +05:30
parent 3330b8ed7b
commit 2650565c92
+5 -5
View File
@@ -279,18 +279,18 @@ export function HeroSection({
<img
src="/management/pages/home/hero_desktop.jpg"
alt="CRE AI Photo Magic"
className="w-full h-full object-cover object-[75%_center] sm:object-right select-none pointer-events-none opacity-85 sm:opacity-90 brightness-[0.92] sm:brightness-[0.95] translate-y-0 sm:translate-y-8 sm:scale-[1.03]"
className="w-full h-full object-cover object-[72%_top] sm:object-right select-none pointer-events-none opacity-85 sm:opacity-90 brightness-[0.92] sm:brightness-[0.95] translate-y-0 sm:translate-y-8 sm:scale-[1.03]"
loading="eager"
fetchPriority="high"
decoding="sync"
/>
</picture>
{/* Subtle Top Gradient: Just a little feathering along the top edge for the navbar */}
<div className="absolute inset-x-0 top-0 h-14 sm:h-16 lg:h-20 bg-gradient-to-b from-[#FAF8F5]/85 via-[#FAF8F5]/40 via-40% to-transparent pointer-events-none" />
{/* Top Gradient for Black Navbar Text Contrast */}
<div className="absolute inset-x-0 top-0 h-28 sm:h-32 lg:h-36 bg-gradient-to-b from-[#FAF8F5] from-35% via-[#FAF8F5]/85 via-65% to-transparent pointer-events-none" />
{/* Dynamic Desktop Gradient: 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% hidden sm:block pointer-events-none" />
{/* Dynamic Mobile Gradient: Deep protection at top where text sits, fading down so artwork stays visible below */}
<div className="absolute inset-0 bg-gradient-to-b from-[#FAF8F5] from-20% via-[#FAF8F5]/85 via-50% to-[#FAF8F5]/20 to-85% sm:hidden pointer-events-none" />
{/* Dynamic Mobile Gradient: Left-to-right feathering to keep text razor sharp while keeping portrait vibrant & naturally framed */}
<div className="absolute inset-0 bg-gradient-to-r from-[#FAF8F5]/95 via-[#FAF8F5]/70 via-50% to-transparent to-85% sm:hidden 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>