feat(hero+navbar): always show CRE Innovations logo, dynamic mobile gradient, and shift image downwards for mobile readability
This commit is contained in:
@@ -279,14 +279,16 @@ 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-90 brightness-[0.95]"
|
||||
className="w-full h-full object-cover object-[center_80%] sm:object-right select-none pointer-events-none opacity-80 sm:opacity-90 brightness-[0.92] sm:brightness-[0.95] translate-y-12 sm:translate-y-0"
|
||||
loading="eager"
|
||||
fetchPriority="high"
|
||||
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" />
|
||||
{/* 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" />
|
||||
{/* 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>
|
||||
|
||||
@@ -81,8 +81,8 @@ export function Navbar({ config, currentLocale }: NavbarProps) {
|
||||
}`}
|
||||
>
|
||||
<div className="max-w-[1640px] mx-auto px-4 sm:px-6 lg:px-10 flex items-center justify-between">
|
||||
{/* Brand Logo - In text-only mode on hero it is hidden, sliding into place when scrolled past hero */}
|
||||
<div className={`relative z-20 flex-shrink-0 transition-all duration-300 ${isTextOnlyMode ? 'opacity-0 -translate-x-3 pointer-events-none' : 'opacity-100 translate-x-0'}`}>
|
||||
{/* Brand Logo - Always visible at all times */}
|
||||
<div className="relative z-20 flex-shrink-0">
|
||||
<BrandLogo size="md" />
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user