From 32bb9294322b4224511117f064f6cf6817711b2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?je=CC=81ro=CC=82me=20boileux?= Date: Tue, 17 Nov 2026 09:38:43 +0100 Subject: [PATCH] fix(studio): keep the hero member rows inside the content width The two tilted rows of member cards spanned the whole window. The mockup (equipe) keeps them inside the 80rem content container and fades both edges at 12%. Wrap the rows in Container and add that outer fade, off under reduced motion like the per-row fade. --- app/components/studio/hero-section.tsx | 63 ++++++++++++++++---------- 1 file changed, 38 insertions(+), 25 deletions(-) diff --git a/app/components/studio/hero-section.tsx b/app/components/studio/hero-section.tsx index ceb539c6..334c00cc 100644 --- a/app/components/studio/hero-section.tsx +++ b/app/components/studio/hero-section.tsx @@ -40,6 +40,16 @@ const tiltedRows = css({ // Still rows sit flat and inside the screen. _motionReduce: { w: 'full', ml: '0', transform: 'none' }, }); +// The rows stop at the content width and fade out on both sides (mockup +// `equipe`). Still rows need no fade. +const rowsFrame = css({ + mt: '10', + py: '7', + overflow: 'hidden', + maskImage: + '[linear-gradient(90deg, transparent 0, black 12%, black 88%, transparent 100%)]', + _motionReduce: { maskImage: '[none]' }, +}); const rowList = css({ display: 'flex', gap: '5', pr: '5' }); const staticList = css({ display: 'flex', @@ -166,32 +176,35 @@ export function HeroSection({ members }: HeroSectionProps) { {members.length >= MARQUEE_MIN_MEMBERS && ( <> -
-
- {rows.map((row) => ( -
- ( -
- ))} + +
+
+ {rows.map((row) => ( +
+ ( +
+ ))} +
-
+