fix: homepage hero orange background color mismatch#664
fix: homepage hero orange background color mismatch#664Pato-desu merged 7 commits intoPauseAI:mainfrom
Conversation
✅ Deploy Preview for pauseai ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
…mages Replace the pre-faded hero images with background-removed PNGs and recreate the orange tint effect using CSS mix-blend-mode: soft-light over the existing #ff9416 background. This matches the original Figma design (orange background + image group with soft-light blend). Benefits: - Fixes Dark Reader two-tone artifact: both letterbox and image areas now go through the same rendering pipeline - Fixes Firefox color mismatch: no more CSS vs JPEG color profile split - Left/right fade-out recreated with mask-image gradient - isolation: isolate added to hero to contain the blend context
a7586e1 to
f71b0ca
Compare
|
Hi, thanks a lot for working on this ! |
The mask-image gradient was applied relative to the img element's box (100vw×100vh with object-fit: contain), not the rendered image content. On ultra-wide viewports the image could be narrower than the element, so the fade happened at viewport edges instead of image edges. - Switch to position:absolute; width:min(100%, calc(max(100vh, var(--hero-min-height)) * var(--hero-img-ar))); height:auto so the element always matches the rendered image dimensions - Center with left:50%/translateX(-50%) for ultra-wide viewports - Update desktop landscape transform to translateX(-50%) scale(0.95) - Add -webkit-mask-image for older Safari/WebKit - Extract image AR into --hero-img-ar (2880/1600) for maintainability
Avoids repeating translateX(-50%) in the desktop media query override by introducing a --hero-scale custom property. Also inlines the 1.8 aspect ratio directly instead of keeping a named --hero-img-ar variable.
|
@Pato-desu Good point! Now the fading applies correctly to the image. I also added |
|
Sorry for responding so late, I assumed Nils was checking on all these PRs for some reason. |
Good idea! Added it: Use bottom fade on mobile hero image instead of lateral fade |
|
Perfect! |

Closes #666
Summary
Fixes visual artifacts on the home page hero section where the orange background color appeared inconsistent — visible as a two-tone seam in Firefox and when using the Dark Reader extension.
mix-blend-mode: soft-lightover the existingbackground-color: #ff9416— matching the original Figma designmask-imagegradient (previously baked into the JPEG)isolation: isolateto.heroto contain the blend contextDark Reader (Chrome)
Firefox
Mobile (bottom fade)
Test plan