From cd933d0dc972865b6037bd662de5c54e40feee4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?je=CC=81ro=CC=82me=20boileux?= Date: Mon, 16 Nov 2026 22:00:21 +0100 Subject: [PATCH 01/24] refactor(challenges): share the expert field resolution with other pages Export resolveExpertFields, which resolves one member's tools and drops placeholders, and toolReporter, which now takes the log function. The studio page (#244) resolves every member with them. --- app/modules/content/challenge-references.ts | 75 +++++++++++++-------- 1 file changed, 48 insertions(+), 27 deletions(-) diff --git a/app/modules/content/challenge-references.ts b/app/modules/content/challenge-references.ts index 14232af5..464e4a7a 100644 --- a/app/modules/content/challenge-references.ts +++ b/app/modules/content/challenge-references.ts @@ -115,14 +115,17 @@ function logBrokenReference(slug: string, message: string): void { } /** - * Logs a broken Tool slug. An empty registry means the Tool files failed to - * load (`loadToolRegistry` already logged why): every tool then drops - * without one log per slug, which would blame the challenge file. + * Logs a broken Tool slug through `log`. An empty registry means the Tool + * files failed to load (`loadToolRegistry` already logged why): every tool + * then drops without one log per slug, which would blame the content file. */ -function toolReporter(slug: string, tools: ToolRegistry) { +export function toolReporter( + tools: ToolRegistry, + log: (message: string) => void, +) { const registryLoaded = Object.keys(tools).length > 0; return (message: string) => { - if (registryLoaded) logBrokenReference(slug, message); + if (registryLoaded) log(message); }; } @@ -225,39 +228,57 @@ function resolvePartner( return { tool, sentence, metrics, source }; } +/** + * The expert fields of one Team member, as a card shows them: tools resolved + * to Tools (a broken slug drops only that tool), and the contribution and + * previous companies cleaned of mockup placeholders. A member without expert + * fields comes out with no tools, no contribution and no companies. Challenge + * pages and the studio page (#244) share it. + */ +export function resolveExpertFields( + member: Member, + tools: ToolRegistry, + reportTool: (message: string) => void, + reportDrop: ReportDrop, +): ChallengeExpert { + const field = (name: string) => `team/${member.slug} ${name}`; + const contribution = (lang: 'fr' | 'en') => + writtenOrNull(member.contribution?.[lang], () => + reportDrop(field(`contribution.${lang}`)), + ); + return { + ...member, + tools: resolveTools(member.tools ?? [], tools, (toolSlug) => + reportTool(`team/${member.slug} tools "${toolSlug}" is not a Tool`), + ), + contribution: { fr: contribution('fr'), en: contribution('en') }, + previousCompanies: (member.previousCompanies ?? []).filter( + (company, index) => { + if (!hasPlaceholder(company)) return true; + reportDrop(field(`previousCompanies[${index}]`)); + return false; + }, + ), + }; +} + function resolveExperts( { challenge, tools, members }: ChallengeReferenceSources, reportTool: (message: string) => void, reportDrop: ReportDrop, ): ChallengeExpert[] { - return getChallengeExperts(members, challenge.key).map((member) => { - const field = (name: string) => `team/${member.slug} ${name}`; - const contribution = (lang: 'fr' | 'en') => - writtenOrNull(member.contribution?.[lang], () => - reportDrop(field(`contribution.${lang}`)), - ); - return { - ...member, - tools: resolveTools(member.tools ?? [], tools, (toolSlug) => - reportTool(`team/${member.slug} tools "${toolSlug}" is not a Tool`), - ), - contribution: { fr: contribution('fr'), en: contribution('en') }, - previousCompanies: (member.previousCompanies ?? []).filter( - (company, index) => { - if (!hasPlaceholder(company)) return true; - reportDrop(field(`previousCompanies[${index}]`)); - return false; - }, - ), - }; - }); + return getChallengeExperts(members, challenge.key).map((member) => + resolveExpertFields(member, tools, reportTool, reportDrop), + ); } export function resolveChallengeReferences( sources: ChallengeReferenceSources, ): ChallengeReferences { const { slug, challenge, tools } = sources; - const reportTool = toolReporter(slug, tools); + const reportTool = toolReporter(tools, (message) => + logBrokenReference(slug, message), + ); const reportDrop = dropReporter('ChallengeReferences', slug); return { clientCase: resolveClientCase(sources, reportDrop), From 6bf840b33d1e09d19e1a5d7c615d64df7f0ab7ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?je=CC=81ro=CC=82me=20boileux?= Date: Mon, 16 Nov 2026 22:00:21 +0100 Subject: [PATCH 02/24] refactor(member): extract MemberAvatar and getFirstName MemberAvatar is the round photo in a challenge colour ring, with initials behind it, in two sizes. PersonCard uses the large one; the studio hero and expertise cards use both. getFirstName ignores leading and repeated spaces. --- app/components/member/member-avatar.tsx | 138 ++++++++++++++++++++++++ app/components/member/person-card.tsx | 100 +---------------- app/utils/first-name.test.ts | 17 +++ app/utils/first-name.ts | 4 + 4 files changed, 164 insertions(+), 95 deletions(-) create mode 100644 app/components/member/member-avatar.tsx create mode 100644 app/utils/first-name.test.ts create mode 100644 app/utils/first-name.ts diff --git a/app/components/member/member-avatar.tsx b/app/components/member/member-avatar.tsx new file mode 100644 index 00000000..be9ab1ee --- /dev/null +++ b/app/components/member/member-avatar.tsx @@ -0,0 +1,138 @@ +import * as React from 'react'; + +import { css, cx } from '@ocobo/styled-system/css'; +import { text } from '@ocobo/styled-system/recipes'; + +import type { ChallengeKey } from '~/modules/challenge-schema'; + +// One static class per challenge: Panda only ships literal values. +const ringColour: Record = { + rp: css({ bg: 'challenge.rp' }), + se: css({ bg: 'challenge.se' }), + sc: css({ bg: 'challenge.sc' }), + cx: css({ bg: 'challenge.cx' }), + sy: css({ bg: 'challenge.sy' }), + ai: css({ bg: 'challenge.ai' }), +}; + +const avatarColour: Record = { + rp: css({ bg: 'challenge.rp.light' }), + se: css({ bg: 'challenge.se.light' }), + sc: css({ bg: 'challenge.sc.light' }), + cx: css({ bg: 'challenge.cx.light' }), + sy: css({ bg: 'challenge.sy.light' }), + ai: css({ bg: 'challenge.ai.light' }), +}; + +const ring = css({ display: 'flex', flexShrink: '0', borderRadius: 'full' }); +const ringSize = { + lg: css({ w: '24', h: '24', p: '1' }), + sm: css({ w: '11', h: '11', p: '0.5' }), +}; +const ringGrey = css({ bg: 'gray.200' }); +const avatar = css({ + position: 'relative', + flex: '1', + display: 'flex', + alignItems: 'center', + justifyContent: 'center', + overflow: 'hidden', + borderRadius: 'full', + borderStyle: 'solid', + borderColor: 'white', +}); +const avatarSize = { + lg: cx(text({ variant: 'display-md-bold' }), css({ borderWidth: '3px' })), + sm: cx( + text({ variant: 'small' }), + css({ fontWeight: 'bold', borderWidth: '2px' }), + ), +}; +const avatarGrey = css({ bg: 'gray.50' }); +const photoStyle = css({ + position: 'absolute', + inset: '0', + w: 'full', + h: 'full', + objectFit: 'cover', +}); + +const pixels = { lg: 96, sm: 44 } as const; + +function getInitials(name: string) { + return name + .split(' ') + .filter(Boolean) + .map((part) => part[0]) + .join('') + .toUpperCase() + .slice(0, 2); +} + +type MemberAvatarProps = { + name: string; + /** Photo URL. Without it, or when it fails to load, initials show. */ + photo?: string; + /** Colours the ring. Without it, the ring is grey. */ + challenge?: ChallengeKey | null; + /** `lg` (96px) on person cards, `sm` (44px) in a row of faces. */ + size?: 'lg' | 'sm'; + /** `eager` for a photo above the fold. */ + loading?: 'lazy' | 'eager'; + className?: string; +}; + +/** + * Round photo in a ring of the member's challenge colour, initials behind it. + * Decorative: the name always follows as text, so the photo has no alt. + */ +export function MemberAvatar({ + name, + photo, + challenge, + size = 'lg', + loading = 'lazy', + className, +}: MemberAvatarProps) { + const [photoFailed, setPhotoFailed] = React.useState(false); + const photoRef = React.useRef(null); + + // A photo that fails before hydration never fires `onError`. + React.useEffect(() => { + const image = photoRef.current; + if (image?.complete && image.naturalWidth === 0) setPhotoFailed(true); + }, []); + + return ( + + + + {photo && !photoFailed && ( + setPhotoFailed(true)} + /> + )} + + + ); +} diff --git a/app/components/member/person-card.tsx b/app/components/member/person-card.tsx index aecfee26..80ca9db7 100644 --- a/app/components/member/person-card.tsx +++ b/app/components/member/person-card.tsx @@ -6,6 +6,9 @@ import { text } from '@ocobo/styled-system/recipes'; import { challengeFill } from '~/components/challenges/challenge-palette'; import { FlipCard } from '~/components/ui/flip-card'; +import { getFirstName } from '~/utils/first-name'; + +import { MemberAvatar } from './member-avatar'; /** Challenge keys, as in the posts frontmatter and the `challenge` tokens. */ export type ChallengeKey = 'rp' | 'se' | 'sc' | 'cx' | 'sy' | 'ai'; @@ -35,57 +38,6 @@ type PersonCardProps = { className?: string; }; -// One static class per challenge: Panda only ships literal values. -const ringColour: Record = { - rp: css({ bg: 'challenge.rp' }), - se: css({ bg: 'challenge.se' }), - sc: css({ bg: 'challenge.sc' }), - cx: css({ bg: 'challenge.cx' }), - sy: css({ bg: 'challenge.sy' }), - ai: css({ bg: 'challenge.ai' }), -}; - -const avatarColour: Record = { - rp: css({ bg: 'challenge.rp.light' }), - se: css({ bg: 'challenge.se.light' }), - sc: css({ bg: 'challenge.sc.light' }), - cx: css({ bg: 'challenge.cx.light' }), - sy: css({ bg: 'challenge.sy.light' }), - ai: css({ bg: 'challenge.ai.light' }), -}; - -const ring = css({ - display: 'flex', - flexShrink: '0', - w: '24', - h: '24', - p: '1', - borderRadius: 'full', -}); -const ringGrey = css({ bg: 'gray.200' }); -const avatar = cx( - text({ variant: 'display-md-bold' }), - css({ - position: 'relative', - flex: '1', - display: 'flex', - alignItems: 'center', - justifyContent: 'center', - overflow: 'hidden', - borderRadius: 'full', - borderWidth: '3px', - borderStyle: 'solid', - borderColor: 'white', - }), -); -const avatarGrey = css({ bg: 'gray.50' }); -const photoStyle = css({ - position: 'absolute', - inset: '0', - w: 'full', - h: 'full', - objectFit: 'cover', -}); const identity = css({ display: 'flex', flexDirection: 'column', @@ -132,16 +84,6 @@ const footer = cx( css({ mt: 'auto', fontWeight: 'bold' }), ); -function getInitials(name: string) { - return name - .split(' ') - .filter(Boolean) - .map((part) => part[0]) - .join('') - .toUpperCase() - .slice(0, 2); -} - /** * Person variant of `FlipCard` (ADR 0002), for the team, challenge and * about-us pages. Front: photo, name, role and challenge label. Back: first @@ -165,22 +107,14 @@ export function PersonCard({ className, }: PersonCardProps) { const { t } = useTranslation(); - const [photoFailed, setPhotoFailed] = React.useState(false); - const photoRef = React.useRef(null); const toolsId = React.useId(); const summaryId = React.useId(); - const firstName = name.trim().split(/\s+/)[0]; + const firstName = getFirstName(name); const summary = showBio ? bio : contribution; const visibleTools = toolLimit === undefined ? tools : tools.slice(0, Math.max(0, toolLimit)); const companies = hidePreviousCompanies ? [] : previousCompanies; - // A photo that fails before hydration never fires `onError`. - React.useEffect(() => { - const image = photoRef.current; - if (image?.complete && image.naturalWidth === 0) setPhotoFailed(true); - }, []); - return ( - - - - {photo && !photoFailed && ( - setPhotoFailed(true)} - /> - )} - - +
{name}

{role}

diff --git a/app/utils/first-name.test.ts b/app/utils/first-name.test.ts new file mode 100644 index 00000000..8a56a800 --- /dev/null +++ b/app/utils/first-name.test.ts @@ -0,0 +1,17 @@ +import { describe, expect, it } from 'vitest'; + +import { getFirstName } from './first-name'; + +describe('getFirstName', () => { + it('returns the first word of a full name', () => { + expect(getFirstName('Clara Lecarrié')).toBe('Clara'); + }); + + it('ignores leading and repeated spaces', () => { + expect(getFirstName(' Aude Cadiot ')).toBe('Aude'); + }); + + it('returns an empty string for a blank name', () => { + expect(getFirstName(' ')).toBe(''); + }); +}); diff --git a/app/utils/first-name.ts b/app/utils/first-name.ts new file mode 100644 index 00000000..e32c70e3 --- /dev/null +++ b/app/utils/first-name.ts @@ -0,0 +1,4 @@ +/** First word of a full name, ignoring surrounding and repeated spaces. */ +export function getFirstName(name: string): string { + return name.trim().split(/\s+/)[0] ?? ''; +} From af07a4b6bb2daec4d3cbe9d4521e525350e5149f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?je=CC=81ro=CC=82me=20boileux?= Date: Mon, 16 Nov 2026 22:00:21 +0100 Subject: [PATCH 03/24] feat(studio): rebuild the studio page with a person card per member Rebuild the page against the equipe mockup. Every active Team member gets a PersonCard with all their tools. A member without expert fields still gets a card, with the bio on its back. - Hero with the technology headline style and a member marquee - Previous companies strip, from the member files - Model, expertises (one card per challenge), team and offices sections - Offices section carries the #vie anchor - Share section and a closing section with the join card when jobs is on Mockup copy with no production equivalent is new in both locales. The v1 team card and team photo illustration are deleted. --- app/components/studio/closing-section.tsx | 77 +++++ app/components/studio/companies-strip.tsx | 61 ++++ app/components/studio/expertises-section.tsx | 134 +++++++++ app/components/studio/hero-section.tsx | 202 ++++++++----- app/components/studio/model-section.tsx | 124 ++++---- app/components/studio/offices-section.tsx | 106 +++++++ app/components/studio/share-section.tsx | 128 +++++++++ app/components/studio/team-member-card.tsx | 195 ------------- .../studio/team-photo-illustration.tsx | 266 ------------------ app/components/studio/team-section.tsx | 187 +++++------- app/modules/studio-team.ts | 76 +++++ app/routes/_main.($lang).studio.tsx | 46 +-- locales/en/studio.json | 45 ++- locales/fr/studio.json | 45 ++- 14 files changed, 917 insertions(+), 775 deletions(-) create mode 100644 app/components/studio/closing-section.tsx create mode 100644 app/components/studio/companies-strip.tsx create mode 100644 app/components/studio/expertises-section.tsx create mode 100644 app/components/studio/offices-section.tsx create mode 100644 app/components/studio/share-section.tsx delete mode 100644 app/components/studio/team-member-card.tsx delete mode 100644 app/components/studio/team-photo-illustration.tsx create mode 100644 app/modules/studio-team.ts diff --git a/app/components/studio/closing-section.tsx b/app/components/studio/closing-section.tsx new file mode 100644 index 00000000..0806a409 --- /dev/null +++ b/app/components/studio/closing-section.tsx @@ -0,0 +1,77 @@ +import { useTranslation } from 'react-i18next'; + +import { css, cx } from '@ocobo/styled-system/css'; +import { card, section, text } from '@ocobo/styled-system/recipes'; + +import { Container } from '~/components/ui/Container'; +import { ButtonLink } from '~/components/ui/button-link'; +import { ContactCta } from '~/components/ui/contact-cta'; +import { useLocalizedPathname } from '~/hooks/useLocalizedPathname'; +import { url } from '~/utils/url'; + +type ClosingSectionProps = { + /** Shows the "Join us" card, which links to the jobs page. */ + jobsEnabled: boolean; +}; + +// Static literals per layout: Panda drops a value computed at runtime. +const oneDoor = css({ display: 'grid', gap: '6' }); +const twoDoors = css({ + display: 'grid', + gridTemplateColumns: { base: '1fr', lg: 'repeat(2, minmax(0, 1fr))' }, + gap: '6', +}); +const column = css({ gap: '5', alignItems: 'flex-start' }); + +/** Two closing doors: work with the Studio, or join it. */ +export function ClosingSection({ jobsEnabled }: ClosingSectionProps) { + const { t } = useTranslation('studio'); + const getLocalizedPath = useLocalizedPathname(); + + return ( +
+ +
+

+ {t('closing.work.eyebrow')} +

+

{t('cta.title')}

+

+ {t('cta.subtitle')} +

+ + {t('cta.button')} + +
+ + {jobsEnabled && ( +
+

+ {t('closing.join.eyebrow')} +

+

+ {t('closing.join.title')} +

+

+ {t('closing.join.text')} +

+ + {t('closing.join.cta')} + +
+ )} +
+
+ ); +} diff --git a/app/components/studio/companies-strip.tsx b/app/components/studio/companies-strip.tsx new file mode 100644 index 00000000..b3389c78 --- /dev/null +++ b/app/components/studio/companies-strip.tsx @@ -0,0 +1,61 @@ +import { useTranslation } from 'react-i18next'; + +import { css } from '@ocobo/styled-system/css'; +import { text } from '@ocobo/styled-system/recipes'; + +import { Container } from '~/components/ui/Container'; + +type CompaniesStripProps = { + /** Previous companies of the team, from the member files. */ + companies: string[]; +}; + +/** "Before Ocobo, we worked at": the team's previous companies, as text. */ +export function CompaniesStrip({ companies }: CompaniesStripProps) { + const { t } = useTranslation('studio'); + if (companies.length === 0) return null; + + return ( +
+ +

+ {t('companies.label')} +

+
    + {companies.map((company) => ( +
  • + {company} +
  • + ))} +
+
+
+ ); +} diff --git a/app/components/studio/expertises-section.tsx b/app/components/studio/expertises-section.tsx new file mode 100644 index 00000000..6ee9c71e --- /dev/null +++ b/app/components/studio/expertises-section.tsx @@ -0,0 +1,134 @@ +import { ArrowRight } from 'lucide-react'; +import { useTranslation } from 'react-i18next'; +import { Link } from 'react-router'; + +import { css, cx } from '@ocobo/styled-system/css'; +import { card, section, text } from '@ocobo/styled-system/recipes'; + +import { challengeFill } from '~/components/challenges/challenge-palette'; +import { MemberAvatar } from '~/components/member/member-avatar'; +import { Container } from '~/components/ui/Container'; +import { useChallengeMenu } from '~/hooks/use-challenge-menu'; +import { useLocalizedPathname } from '~/hooks/useLocalizedPathname'; +import type { StudioMemberCard } from '~/modules/studio-team'; +import { getFirstName } from '~/utils/first-name'; + +type ExpertisesSectionProps = { + members: StudioMemberCard[]; +}; + +const bar = css({ w: '10', h: '1.5', borderRadius: 'full' }); +// The whole card is the link target, through the heading link. +const cardLink = css({ + display: 'inline-flex', + alignItems: 'center', + gap: '2', + _hover: { textDecoration: 'underline' }, + _after: { content: '""', position: 'absolute', inset: '0' }, +}); +const faces = css({ + display: 'flex', + '& > li:not(:first-child)': { ml: '-2' }, +}); + +/** + * One card per published challenge, with the faces of its experts and a link + * to the challenge page (`#expertises`). Hidden when no challenge loaded. + */ +export function ExpertisesSection({ members }: ExpertisesSectionProps) { + const { t } = useTranslation('studio'); + const { challenges } = useChallengeMenu(); + const getLocalizedPath = useLocalizedPathname(); + if (challenges.length === 0) return null; + + return ( +
+ +
+

+ {t('expertises.title')} +

+

+ {t('expertises.subtitle')} +

+
+ +
    + {challenges.map((challenge) => { + const experts = members.filter( + (member) => member.challenge === challenge.key, + ); + return ( +
  • +
  • + ); + })} +
+
+
+ ); +} diff --git a/app/components/studio/hero-section.tsx b/app/components/studio/hero-section.tsx index b476f61a..47ca0f58 100644 --- a/app/components/studio/hero-section.tsx +++ b/app/components/studio/hero-section.tsx @@ -1,111 +1,167 @@ -import { ChevronDown } from 'lucide-react'; import { Trans, useTranslation } from 'react-i18next'; -import { css } from '@ocobo/styled-system/css'; -import { center, flex } from '@ocobo/styled-system/patterns'; +import { css, cx } from '@ocobo/styled-system/css'; import { badge, text } from '@ocobo/styled-system/recipes'; -import { ButtonLink } from '~/components/ui/button-link'; +import { MemberAvatar } from '~/components/member/member-avatar'; +import { Container } from '~/components/ui/Container'; +import { ContactCta } from '~/components/ui/contact-cta'; import { headlineAccent } from '~/components/ui/headline-accent'; -import { useLocalizedPathname } from '~/hooks/useLocalizedPathname'; -import { url } from '~/utils/url'; +import type { StudioMemberCard } from '~/modules/studio-team'; +import { getFirstName } from '~/utils/first-name'; -import { Container } from '../ui/Container'; -import { TeamPhotoIllustration } from './team-photo-illustration'; +/** Copies of the member list in the marquee: its keyframes move by a third. */ +const COPIES = [0, 1, 2] as const; +/** + * Below this many members, one copy of 160px tiles leaves a gap on a wide + * screen before the loop restarts: the faces then sit in a static row. + */ +const MARQUEE_MIN_MEMBERS = 12; -export const HeroSection = () => { +const marqueeTrack = css({ + display: 'flex', + w: 'max', + animation: 'marquee-ultra-slow', + _motionReduce: { + animation: '[none]', + w: 'full', + flexWrap: 'wrap', + justifyContent: 'center', + }, +}); +const marqueeList = css({ + display: 'flex', + _motionReduce: { flexWrap: 'wrap', justifyContent: 'center' }, +}); +// Without motion, one copy of the list is enough. +const extraCopy = css({ _motionReduce: { display: 'none' } }); +const staticList = css({ + display: 'flex', + flexWrap: 'wrap', + justifyContent: 'center', +}); +const tile = css({ + display: 'flex', + flexDirection: 'column', + alignItems: 'center', + gap: '2', + w: '40', + px: '3', + textAlign: 'center', +}); +const tileName = cx(text({ variant: 'small' }), css({ fontWeight: 'bold' })); +const tileRole = text({ variant: 'small', color: 'muted' }); + +type MemberTilesProps = { + members: StudioMemberCard[]; + /** Names the list. The copies of the marquee have none. */ + label?: string; + /** A marquee copy: hidden from assistive tech, photos load lazily. */ + hidden?: boolean; + className: string; +}; + +function MemberTiles({ members, label, hidden, className }: MemberTilesProps) { + return ( +
    + {members.map((member) => ( +
  • + + {getFirstName(member.name)} + {member.role} +
  • + ))} +
+ ); +} + +type HeroSectionProps = { + members: StudioMemberCard[]; +}; + +export function HeroSection({ members }: HeroSectionProps) { const { t } = useTranslation('studio'); - const getLocalizedPath = useLocalizedPathname(); return (
-
- +
+ {t('hero.badge')} - -

+

{t('hero.title.line1')}
{t('hero.title.highlight')}

-

, - }} + components={{ bold: }} />

-
- - - -
-
- {t('hero.quote')} -
- - + {t('hero.cta')} - +
+ -
- + {members.length > 0 && ( +
+ {members.length < MARQUEE_MIN_MEMBERS ? ( + + ) : ( +
+ {COPIES.map((copy) => + copy === 0 ? ( + + ) : ( +
+ )}
- + )}
); -}; +} diff --git a/app/components/studio/model-section.tsx b/app/components/studio/model-section.tsx index 0c6f26bc..6599ffcc 100644 --- a/app/components/studio/model-section.tsx +++ b/app/components/studio/model-section.tsx @@ -1,111 +1,85 @@ -import { Target, Users, Zap } from 'lucide-react'; +import { type LucideIcon, Target, Users, Zap } from 'lucide-react'; import { useTranslation } from 'react-i18next'; -import { css } from '@ocobo/styled-system/css'; -import { grid } from '@ocobo/styled-system/patterns'; -import { iconBox, text } from '@ocobo/styled-system/recipes'; +import { css, cx } from '@ocobo/styled-system/css'; +import { card, iconBox, section, text } from '@ocobo/styled-system/recipes'; -import { Container } from '../ui/Container'; +import { Container } from '~/components/ui/Container'; -const ICON_MAP: Record = { +const ICONS: Record = { users: Users, zap: Zap, target: Target, }; -interface ModelCard { +type ModelCard = { icon: string; title: string; description: string; - hoverColor: string; -} +}; -export const ModelSection = () => { +/** The Studio model: three principles on a dark band (`#squad`). */ +export function ModelSection() { const { t } = useTranslation('studio'); - const cards = t('model.cards', { returnObjects: true }) as ModelCard[]; return (
- {/* Dot pattern background */} -
- - -
-

+ +
+

{t('model.title')}

-

+

{t('model.subtitle')}

-
- {cards.map((card) => { - const IconComponent = ICON_MAP[card.icon] ?? Users; - +
    + {cards.map((item) => { + const Icon = ICONS[item.icon] ?? Users; return ( -
    -
    - -
    -

    - {card.title} -

    -

    - {card.description} +

    + {item.title} +

    +

    + {item.description}

    -
    + ); })} -
+

); -}; +} diff --git a/app/components/studio/offices-section.tsx b/app/components/studio/offices-section.tsx new file mode 100644 index 00000000..04beb499 --- /dev/null +++ b/app/components/studio/offices-section.tsx @@ -0,0 +1,106 @@ +import { MapPin } from 'lucide-react'; +import { useTranslation } from 'react-i18next'; + +import { css, cx } from '@ocobo/styled-system/css'; +import { card, iconBox, section, text } from '@ocobo/styled-system/recipes'; + +import { Container } from '~/components/ui/Container'; + +/** Anchor of the offices section, as in the prototype. */ +const OFFICES_ID = 'vie'; + +type Office = { + city: string; + note: string; +}; + +/** Where the team works: three offices, one team (`#vie`). */ +export function OfficesSection() { + const { t } = useTranslation('studio'); + const offices = t('offices.list', { returnObjects: true }) as Office[]; + + return ( +
+ +
+

+ {t('offices.title')} +

+

+ {t('offices.subtitle')} +

+
+ +
+
+

+ {t('offices.label')} +

+

+ {t('offices.heading')} +

+
+
    + {offices.map((office) => ( +
  • + + + + + {office.city} + + + {office.note} + + +
  • + ))} +
+
+
+
+ ); +} diff --git a/app/components/studio/share-section.tsx b/app/components/studio/share-section.tsx new file mode 100644 index 00000000..a7dbbfad --- /dev/null +++ b/app/components/studio/share-section.tsx @@ -0,0 +1,128 @@ +import { ArrowRight, BookOpen, Mic, Users } from 'lucide-react'; +import { useTranslation } from 'react-i18next'; +import { Link } from 'react-router'; + +import { css, cx } from '@ocobo/styled-system/css'; +import { + button, + card, + iconBox, + section, + text, +} from '@ocobo/styled-system/recipes'; + +import { Container } from '~/components/ui/Container'; +import { useLocalizedPathname } from '~/hooks/useLocalizedPathname'; +import { url } from '~/utils/url'; + +const cardStyle = cx(card({ padding: 'lg' }), css({ gap: '4' })); +const linkStyle = cx( + button({ variant: 'link' }), + css({ mt: 'auto', alignSelf: 'flex-start' }), +); +const srOnly = css({ srOnly: true }); +const iconStyle = iconBox({ size: 'xl', variant: 'solid', color: 'yellow' }); + +/** Podcast, club and blog: what the team shares (`#partage`). */ +export function ShareSection() { + const { t } = useTranslation(['studio', 'common']); + const getLocalizedPath = useLocalizedPathname(); + + const items = [ + { + key: 'podcast', + icon: Mic, + title: t('common:navigation.resources.podcasts'), + description: t('common:navigation.resources.podcasts.description'), + href: url.podcasts, + external: true, + }, + { + key: 'club', + icon: Users, + title: t('common:navigation.resources.club'), + description: t('common:navigation.resources.club.description'), + href: url.modernRevenueClub, + external: true, + }, + { + key: 'blog', + icon: BookOpen, + title: t('common:navigation.resources.blog'), + description: t('common:navigation.resources.blog.description'), + href: getLocalizedPath(url.blog), + external: false, + }, + ] as const; + + return ( +
+ +
+

+ {t('share.title')} +

+

+ {t('share.subtitle')} +

+
+ +
    + {items.map( + ({ key, icon: Icon, title, description, href, external }) => { + const cta = ( + <> + {t(`share.${key}.cta`)} + {title} +
+
+
+ ); +} diff --git a/app/components/studio/team-member-card.tsx b/app/components/studio/team-member-card.tsx deleted file mode 100644 index 4a972c8f..00000000 --- a/app/components/studio/team-member-card.tsx +++ /dev/null @@ -1,195 +0,0 @@ -import { Linkedin } from 'lucide-react'; - -import { css, cx } from '@ocobo/styled-system/css'; -import { center } from '@ocobo/styled-system/patterns'; -import { text } from '@ocobo/styled-system/recipes'; - -import { OptimizedImage } from '../ui/optimized-image'; - -import type { MemberTrack } from '~/modules/schemas'; - -type TrackColor = 'yellow' | 'coral' | 'mint'; - -const trackColorMap: Record = { - architect: 'yellow', - builder: 'coral', - 'expert-engineer': 'mint', -}; - -const badgeBgStyles: Record = { - yellow: css({ bg: 'ocobo.yellow.light', color: 'ocobo.yellow' }), - coral: css({ bg: 'ocobo.coral.light', color: 'ocobo.coral' }), - mint: css({ bg: 'ocobo.mint.light', color: 'ocobo.mint' }), -}; - -const photoBorderStyles: Record = { - yellow: css({ _groupHover: { borderColor: 'ocobo.yellow' } }), - coral: css({ _groupHover: { borderColor: 'ocobo.coral' } }), - mint: css({ _groupHover: { borderColor: 'ocobo.mint' } }), -}; - -interface TeamMemberCardProps { - name: string; - track: MemberTrack; - trackLabel: string; - role: string; - bio: string; - avatar: string; - linkedin?: string; - animate: boolean; -} - -export const TeamMemberCard = ({ - name, - track, - trackLabel, - role, - bio, - avatar, - animate, - linkedin, -}: TeamMemberCardProps) => { - const color = trackColorMap[track]; - - return ( -
- {/* Track badge */} -
- {trackLabel} -
- - {/* Photo */} -
- -
- - {/* Info */} -
-

- {name} -

-

- {role} -

- -

- {bio} -

- - {linkedin ? ( -
- - -
- ) : null} -
-
- ); -}; diff --git a/app/components/studio/team-photo-illustration.tsx b/app/components/studio/team-photo-illustration.tsx deleted file mode 100644 index 8c58ae51..00000000 --- a/app/components/studio/team-photo-illustration.tsx +++ /dev/null @@ -1,266 +0,0 @@ -import { Sparkles, Users } from 'lucide-react'; -import { useTranslation } from 'react-i18next'; - -import { css } from '@ocobo/styled-system/css'; -import { hstack } from '@ocobo/styled-system/patterns'; -import { card, text } from '@ocobo/styled-system/recipes'; - -import { OptimizedImage } from '~/components/ui/optimized-image'; - -export const TeamPhotoIllustration = () => { - const { t } = useTranslation('studio'); - - return ( -
- {/* Background decorative blobs */} -
-
-
-
-
-
- - {/* Photo container */} -
- {/* Corner accents */} -
-
- - {/* Main photo card */} -
- - - {/* Overlay gradient */} -
- - {/* Caption badge */} -
-
- - {t('hero.captionBadge')} - -
-
- - {/* Floating icons */} -
- -
-
- -
-
-
- ); -}; diff --git a/app/components/studio/team-section.tsx b/app/components/studio/team-section.tsx index b57427ac..7bfc7420 100644 --- a/app/components/studio/team-section.tsx +++ b/app/components/studio/team-section.tsx @@ -1,133 +1,90 @@ -import { useEffect, useState } from 'react'; import { useTranslation } from 'react-i18next'; -import { css } from '@ocobo/styled-system/css'; -import { flex, grid } from '@ocobo/styled-system/patterns'; -import { text } from '@ocobo/styled-system/recipes'; +import { css, cx } from '@ocobo/styled-system/css'; +import { section, text } from '@ocobo/styled-system/recipes'; -import type { Member } from '~/modules/content/members'; -import { type MemberTrack, MemberTrackSchema } from '~/modules/schemas'; +import { PersonCard } from '~/components/member/person-card'; +import { Container } from '~/components/ui/Container'; +import { useChallengeMenu } from '~/hooks/use-challenge-menu'; +import type { StudioMemberCard } from '~/modules/studio-team'; -import { Container } from '../ui/Container'; -import { TeamMemberCard } from './team-member-card'; - -type Filter = MemberTrack | 'all'; - -const FILTERS = [ - 'all', - ...MemberTrackSchema.options, -] as const satisfies readonly Filter[]; - -const TRACK_LABEL_FALLBACKS: Record = { - architect: 'Architect', - builder: 'Builder', - 'expert-engineer': 'Expert Engineer', +type TeamSectionProps = { + members: StudioMemberCard[]; }; -interface TeamSectionProps { - members: Member[]; - lang: 'fr' | 'en'; -} - -export const TeamSection = ({ members, lang }: TeamSectionProps) => { - const { t } = useTranslation('studio'); - const [filter, setFilter] = useState('all'); - const [animate, setAnimate] = useState(false); - - const filters = t('team.filters', { returnObjects: true }) as Record< - string, - string - >; - - useEffect(() => { - setAnimate(false); - const timer = setTimeout(() => setAnimate(true), 10); - return () => clearTimeout(timer); - }, [filter]); - - const filtered = - filter === 'all' ? members : members.filter((m) => m.track === filter); +/** + * Every active Team member as a `PersonCard`, with all their tools (#244). + * A member without expert fields gets a card without those lines, and the + * bio on the back. + */ +export function TeamSection({ members }: TeamSectionProps) { + const { t } = useTranslation(['studio', 'challenges']); + const { challenges } = useChallengeMenu(); + const challengeName = new Map( + challenges.map((challenge) => [challenge.key, challenge.name]), + ); return (
-
-
-

- {t('team.title')} -

-

- {t('team.subtitle')} -

-
- -
- {FILTERS.map((f) => ( - - ))} -
+
+

+ {t('team.title')} +

+

+ {t('team.subtitle')} +

-
- {filtered.map((member) => ( - - ))} -
+ {members.map((member) => { + const name = member.challenge + ? challengeName.get(member.challenge) + : undefined; + return ( +
  • + +
  • + ); + })} +
    ); -}; +} diff --git a/app/modules/studio-team.ts b/app/modules/studio-team.ts new file mode 100644 index 00000000..d9daadae --- /dev/null +++ b/app/modules/studio-team.ts @@ -0,0 +1,76 @@ +/** + * View model of the studio page team (#244): one card per active Team member, + * in the page language. + * + * Every member gets a card. The expert fields (challenge, contribution, tools, + * previous companies) are optional: a member without them gets a card without + * those lines, and the bio fills the back. Tools resolve through the Tool + * registry and placeholders drop, as on challenge pages + * (`resolveExpertFields`). + */ + +import type { Language } from '~/localization/resources'; +import { + type ExpertCard, + buildExpertCards, +} from './challenge-reference-sections'; +import type { ChallengeKey } from './challenge-schema'; +import { + resolveExpertFields, + toolReporter, +} from './content/challenge-references'; +import { getActiveMembers } from './content/members'; +import type { MemberRegistry } from './content/members'; +import { dropReporter, writtenOrNull } from './content/placeholder'; +import type { ToolRegistry } from './content/tools'; + +export type StudioMemberCard = ExpertCard & { + /** The challenge the member is an expert of, `null` for none. */ + challenge: ChallengeKey | null; + /** Bio in the page language, for the back of a card with no contribution. */ + bio: string | null; +}; + +export type StudioTeam = { + members: StudioMemberCard[]; + /** Every member's previous companies, once each, in member order. */ + previousCompanies: string[]; +}; + +const SCOPE = 'StudioTeam'; + +function uniqueCompanies(cards: readonly StudioMemberCard[]): string[] { + const seen = new Set(); + return cards + .flatMap((card) => card.previousCompanies) + .filter((company) => { + const key = company.trim().toLowerCase(); + if (seen.has(key)) return false; + seen.add(key); + return true; + }); +} + +export function buildStudioTeam( + registry: MemberRegistry, + tools: ToolRegistry, + lang: Language, +): StudioTeam { + const reportTool = toolReporter(tools, (message) => + console.error(`[${SCOPE}] studio: ${message}`), + ); + const reportDrop = dropReporter(SCOPE, 'studio'); + // One member at a time, so a card can never take another member's fields. + const members = getActiveMembers(registry).map((member) => { + const expert = resolveExpertFields(member, tools, reportTool, reportDrop); + const [card] = buildExpertCards([expert], lang); + return { + ...card, + challenge: expert.challenge ?? null, + bio: writtenOrNull(member.bio[lang], () => + reportDrop(`team/${member.slug} bio.${lang}`), + ), + }; + }); + return { members, previousCompanies: uniqueCompanies(members) }; +} diff --git a/app/routes/_main.($lang).studio.tsx b/app/routes/_main.($lang).studio.tsx index 45d88897..697f861e 100644 --- a/app/routes/_main.($lang).studio.tsx +++ b/app/routes/_main.($lang).studio.tsx @@ -1,40 +1,46 @@ -import { useTranslation } from 'react-i18next'; import { type LoaderFunctionArgs, type MetaFunction, useLoaderData, } from 'react-router'; -import { CtaSection } from '~/components/offer/cta-section'; +import { ClosingSection } from '~/components/studio/closing-section'; +import { CompaniesStrip } from '~/components/studio/companies-strip'; +import { ExpertisesSection } from '~/components/studio/expertises-section'; import { HeroSection } from '~/components/studio/hero-section'; import { ModelSection } from '~/components/studio/model-section'; +import { OfficesSection } from '~/components/studio/offices-section'; +import { ShareSection } from '~/components/studio/share-section'; import { TeamSection } from '~/components/studio/team-section'; import i18nServer from '~/localization/i18n.server'; import { createHybridLoader } from '~/modules/cache'; -import { - getActiveMembers, - loadMemberRegistry, -} from '~/modules/content/members'; -import { throwIfDisabled } from '~/modules/feature-flags'; +import { loadMemberRegistry } from '~/modules/content/members'; +import { loadToolRegistry } from '~/modules/content/tools'; +import { isPageEnabled, throwIfDisabled } from '~/modules/feature-flags'; +import { buildStudioTeam } from '~/modules/studio-team'; import { getLang } from '~/utils/lang'; import { getMetaTags } from '~/utils/metatags'; import { redirectWithLocale } from '~/utils/redirections'; -import { url, getImageOgFullPath } from '~/utils/url'; +import { getImageOgFullPath } from '~/utils/url'; export const loader = createHybridLoader(async (args: LoaderFunctionArgs) => { await redirectWithLocale(args); throwIfDisabled('studio'); const lang = getLang(args.params); - const [t, registry] = await Promise.all([ + const [t, registry, tools] = await Promise.all([ i18nServer.getFixedT(lang, 'studio'), loadMemberRegistry(), + loadToolRegistry(), ]); + const { members, previousCompanies } = buildStudioTeam(registry, tools, lang); return { title: t('meta.title'), description: t('meta.description'), ogImageSrc: getImageOgFullPath('studio', args.request.url), - members: getActiveMembers(registry), + members, + previousCompanies, + jobsEnabled: isPageEnabled('jobs'), lang, }; }, 'static'); @@ -52,21 +58,19 @@ export const meta: MetaFunction = ({ data, params }) => { }; export default function StudioPage() { - const { t } = useTranslation('studio'); - const { members, lang } = useLoaderData(); + const { members, previousCompanies, jobsEnabled } = + useLoaderData(); return (
    - + + - - + + + + +
    ); } diff --git a/locales/en/studio.json b/locales/en/studio.json index e9db5afc..9b94ec9c 100644 --- a/locales/en/studio.json +++ b/locales/en/studio.json @@ -5,40 +5,55 @@ "hero.title.line1": "A Revenue Ops direction", "hero.title.highlight": "embedded.", "hero.subtitle": "We are not a traditional agency. We are a studio of senior experts who embed within your teams to operate from the inside.", - "hero.quote": "\"We join your Slacks, your rituals, and we build the system alongside you.\"", "hero.cta": "Talk to the Studio", - "hero.captionBadge": "The Ocobo Squad", - "hero.photoAlt": "The Ocobo team", + "hero.members": "The members of the Ocobo team", + "companies.label": "Before Ocobo, we worked at", "model.title": "The Ocobo Studio™ model", "model.subtitle": "The traditional agency is often too slow and too far from the reality on the ground. We designed a pragmatic alternative to truly scale.", "model.cards": [ { "icon": "users", "title": "Embedded Squad", - "description": "We deploy a multidisciplinary squad that joins your daily work environment.", - "hoverColor": "mint" + "description": "We deploy a multidisciplinary squad that joins your daily work environment." }, { "icon": "zap", "title": "100% Impact", - "description": "No lengthy theoretical reports. We deliver ready-to-use system building blocks.", - "hoverColor": "sky" + "description": "No lengthy theoretical reports. We deliver ready-to-use system building blocks." }, { "icon": "target", "title": "Zero Junior", - "description": "On every account, only senior profiles who have already scaled leading companies.", - "hoverColor": "yellow" + "description": "On every account, only senior profiles who have already scaled leading companies." } ], + "expertises.title": "One expertise, real faces", + "expertises.subtitle": "Each expertise is carried by people who practised it before advising on it. You know who you will be working with.", + "expertises.experts": "Experts: {{names}}", "team.title": "Your Studio team", "team.subtitle": "Senior experts accustomed to scaling complex organisations together.", - "team.filters": { - "all": "All profiles", - "architect": "Architect", - "builder": "Builder", - "expert-engineer": "Expert Engineer" - }, + "offices.title": "Teams close to yours", + "offices.subtitle": "Paris, Bordeaux, Marseille: a team within reach of your offices, working in your tools and on site when the project calls for it. And among ourselves, a yearly offsite and rituals that move us forward together.", + "offices.label": "Our offices", + "offices.heading": "Three cities, one team.", + "offices.list": [ + { "city": "Paris", "note": "Headquarters" }, + { "city": "Bordeaux", "note": "Since 2026" }, + { "city": "Marseille", "note": "Since 2026" } + ], + "share.title": "We share what we learn", + "share.subtitle": "Expertise is not claimed, it is shown.", + "share.podcast.label": "Podcast", + "share.podcast.cta": "Listen", + "share.club.label": "Community", + "share.club.cta": "Join", + "share.blog.label": "Blog and LinkedIn", + "share.blog.cta": "Read", + "closing.work.eyebrow": "You are a company", + "closing.join.eyebrow": "You are a talent", + "closing.join.title": "Join us", + "closing.join.text": "You have driven revenue in a scale-up and want to do it for others? We are hiring.", + "closing.join.cta": "See open positions", "cta.title": "Want a team that truly delivers?", "cta.subtitle": "Let's evaluate the squad you need to reach the next level.", "cta.button": "Talk to the Studio" diff --git a/locales/fr/studio.json b/locales/fr/studio.json index 79b75459..4d929929 100644 --- a/locales/fr/studio.json +++ b/locales/fr/studio.json @@ -5,40 +5,55 @@ "hero.title.line1": "Une direction Revenue Ops", "hero.title.highlight": "embarquée.", "hero.subtitle": "Nous ne sommes pas une agence classique. Nous sommes un studio d'experts seniors qui s'intègrent à vos équipes pour opérer de l'intérieur.", - "hero.quote": "\"Nous rejoignons vos Slacks, vos rituels et nous construisons le système à vos côtés.\"", "hero.cta": "Discuter avec le Studio", - "hero.captionBadge": "La Squad Ocobo", - "hero.photoAlt": "L'équipe Ocobo", + "hero.members": "Les membres de l'équipe Ocobo", + "companies.label": "Avant Ocobo, nous étions chez", "model.title": "Le modèle Studio Ocobo™", "model.subtitle": "L'agence traditionnelle est souvent trop lente et trop loin de la réalité du terrain. Nous avons conçu une alternative pragmatique pour scaler vraiment.", "model.cards": [ { "icon": "users", "title": "Squad Immergée", - "description": "Nous déployons une squad pluridisciplinaire qui rejoint votre environnement de travail quotidien.", - "hoverColor": "mint" + "description": "Nous déployons une squad pluridisciplinaire qui rejoint votre environnement de travail quotidien." }, { "icon": "zap", "title": "100% Impact", - "description": "Pas de grands rapports théoriques. Nous délivrons des briques de système prêtes à l'emploi.", - "hoverColor": "sky" + "description": "Pas de grands rapports théoriques. Nous délivrons des briques de système prêtes à l'emploi." }, { "icon": "target", "title": "Zéro Junior", - "description": "Sur chaque compte, uniquement des profils seniors ayant déjà scalé des entreprises leaders.", - "hoverColor": "yellow" + "description": "Sur chaque compte, uniquement des profils seniors ayant déjà scalé des entreprises leaders." } ], + "expertises.title": "Une expertise, des visages", + "expertises.subtitle": "Chaque expertise est portée par des personnes qui l'ont pratiquée avant de la conseiller. Vous savez qui vous aurez en face de vous.", + "expertises.experts": "Experts : {{names}}", "team.title": "Votre équipe Studio", "team.subtitle": "Des experts seniors habitués à scaler ensemble des organisations complexes.", - "team.filters": { - "all": "Tous les profils", - "architect": "Architecte", - "builder": "Builder", - "expert-engineer": "Expert Engineer" - }, + "offices.title": "Des équipes proches des vôtres", + "offices.subtitle": "Paris, Bordeaux, Marseille : une équipe à portée de vos bureaux, qui travaille dans vos outils et vient sur place quand le chantier le demande. Et entre nous, un séminaire chaque année et des rituels qui nous font avancer ensemble.", + "offices.label": "Nos bureaux", + "offices.heading": "Trois villes, une seule équipe.", + "offices.list": [ + { "city": "Paris", "note": "Le siège" }, + { "city": "Bordeaux", "note": "Depuis 2026" }, + { "city": "Marseille", "note": "Depuis 2026" } + ], + "share.title": "Nous partageons ce que nous apprenons", + "share.subtitle": "L'expertise ne se revendique pas, elle se montre.", + "share.podcast.label": "Podcast", + "share.podcast.cta": "Écouter", + "share.club.label": "Communauté", + "share.club.cta": "Rejoindre", + "share.blog.label": "Blog et LinkedIn", + "share.blog.cta": "Lire", + "closing.work.eyebrow": "Vous êtes une entreprise", + "closing.join.eyebrow": "Vous êtes un talent", + "closing.join.title": "Nous rejoindre", + "closing.join.text": "Vous avez fait du revenu dans une scale-up et vous voulez le faire pour d'autres ? Nous recrutons.", + "closing.join.cta": "Voir les postes ouverts", "cta.title": "Envie d'une équipe qui agit vraiment ?", "cta.subtitle": "Évaluons ensemble la squad dont vous avez besoin pour passer au niveau supérieur.", "cta.button": "Discuter avec le Studio" From c086d8a4dcdf770604a50cec5eec2d07d8a3b6a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?je=CC=81ro=CC=82me=20boileux?= Date: Mon, 16 Nov 2026 22:00:21 +0100 Subject: [PATCH 04/24] test(studio): cover cards with and without expert fields The loader test checks that every active member gets a card, that tools and bios resolve in the page language and that placeholders drop. The TeamSection test checks that a card shows all five tools of a member and puts the bio on the back when there is no contribution. --- app/components/studio/team-section.test.tsx | 94 +++++++++ app/routes/_main.($lang).studio.test.ts | 223 ++++++++++++++++---- 2 files changed, 279 insertions(+), 38 deletions(-) create mode 100644 app/components/studio/team-section.test.tsx diff --git a/app/components/studio/team-section.test.tsx b/app/components/studio/team-section.test.tsx new file mode 100644 index 00000000..6e537cae --- /dev/null +++ b/app/components/studio/team-section.test.tsx @@ -0,0 +1,94 @@ +import { describe, expect, it } from 'vitest'; + +import { MAIN_ROUTE_ID } from '~/modules/challenge-menu'; +import type { StudioMemberCard } from '~/modules/studio-team'; +import { render, screen, within } from '~/test/utils'; + +import { TeamSection } from './team-section'; + +const expert: StudioMemberCard = { + slug: 'clara', + name: 'Clara Lecarrié', + role: 'Manager', + photo: '', + challenge: 'cx', + contribution: 'Santé client, renouvellements et expansion.', + tools: ['Salesforce', 'HubSpot', 'Metabase', 'Segment', 'Planhat'], + previousCompanies: ['Qonto'], + bio: 'Dix ans de Customer Success en SaaS.', +}; + +// No expert fields: the card stays, with the bio on its back. +const member: StudioMemberCard = { + slug: 'yoann', + name: 'Yoann Boileux', + role: 'RevOps Manager', + photo: '', + challenge: null, + contribution: null, + tools: [], + previousCompanies: [], + bio: 'Ancien Head of Sales Ops.', +}; + +const loaderData = { + [MAIN_ROUTE_ID]: { + challenges: [ + { + slug: 'customer-experience', + key: 'cx', + name: 'Customer Experience', + tagline: null, + }, + ], + failed: false, + }, +}; + +describe('TeamSection', () => { + it('renders one card per member, with or without expert fields', () => { + render(, { loaderData }); + expect( + screen.getByRole('heading', { level: 3, name: 'Clara Lecarrié' }), + ).toBeInTheDocument(); + expect( + screen.getByRole('heading', { level: 3, name: 'Yoann Boileux' }), + ).toBeInTheDocument(); + expect(screen.getAllByRole('heading', { level: 3 })).toHaveLength(2); + }); + + it('shows every tool of a member, with no limit', () => { + render(, { loaderData }); + const tools = screen.getByRole('list', { + name: 'Ses outils', + hidden: true, + }); + expect( + within(tools) + .getAllByRole('listitem', { hidden: true }) + .map((item) => item.textContent), + ).toEqual(expert.tools); + }); + + it('labels an expert with the challenge name', () => { + render(, { loaderData }); + expect(screen.getByText('Expert Customer Experience')).toBeInTheDocument(); + }); + + it('puts the bio on the back of a card with no contribution', () => { + const { container } = render(, { + loaderData, + }); + expect(container).toHaveTextContent('Parcours'); + expect(container).toHaveTextContent(member.bio ?? ''); + expect(container).not.toHaveTextContent('Expert'); + }); + + it('keeps the contribution on the back of an expert card', () => { + const { container } = render(, { + loaderData, + }); + expect(container).toHaveTextContent(expert.contribution ?? ''); + expect(container).not.toHaveTextContent(expert.bio ?? ''); + }); +}); diff --git a/app/routes/_main.($lang).studio.test.ts b/app/routes/_main.($lang).studio.test.ts index 91489a38..5b8784cb 100644 --- a/app/routes/_main.($lang).studio.test.ts +++ b/app/routes/_main.($lang).studio.test.ts @@ -1,18 +1,24 @@ /** - * Loader tests for the studio route. + * Loader tests for the studio route (#244). * - * Behaviors verified: - * 1. Returns correct data when i18n + member registry both succeed. - * 2. getFixedT and loadMemberRegistry fire in parallel (not sequentially). + * Behaviours verified: + * 1. Every active member gets a card, with or without expert fields. + * 2. Expert fields resolve in the page language: tool names through the Tool + * registry, all tools kept, placeholders dropped. + * 3. Previous companies are collected once each, in member order. + * 4. The i18n, member and tool loads fire in parallel. */ import { afterEach, describe, expect, it, vi } from 'vitest'; +import type { Member, MemberRegistry } from '~/modules/content/members'; +import type { ToolRegistry } from '~/modules/content/tools'; import { invokeLoader } from '~/test/loader-harness'; const getFixedTMock = vi.fn(); const loadMemberRegistryMock = vi.fn(); -const getActiveMembersMock = vi.fn(); +const loadToolRegistryMock = vi.fn(); +const isPageEnabledMock = vi.fn(); vi.mock('~/localization/i18n.server', () => ({ default: { @@ -20,60 +26,199 @@ vi.mock('~/localization/i18n.server', () => ({ }, })); -vi.mock('~/modules/content/members', () => ({ +vi.mock('~/modules/content/members', async (importOriginal) => ({ + ...(await importOriginal()), loadMemberRegistry: () => loadMemberRegistryMock(), - getActiveMembers: (...args: unknown[]) => getActiveMembersMock(...args), +})); + +vi.mock('~/modules/content/tools', async (importOriginal) => ({ + ...(await importOriginal()), + loadToolRegistry: () => loadToolRegistryMock(), })); vi.mock('~/modules/feature-flags', () => ({ throwIfDisabled: vi.fn(), + isPageEnabled: (...args: unknown[]) => isPageEnabledMock(...args), })); vi.mock('~/utils/redirections', () => ({ redirectWithLocale: vi.fn().mockResolvedValue(undefined), })); +/** Keeps expected logs out of the test output. */ +const silence = () => undefined; + afterEach(() => { vi.resetAllMocks(); + vi.restoreAllMocks(); }); -describe('studio loader', () => { - it('returns title, description and members from parallel i18n + registry calls', async () => { - const fakeRegistry = { alice: { slug: 'alice', name: 'Alice' } }; - const fakeMembers = [{ slug: 'alice', name: 'Alice' }]; +function member(slug: string, fields: Partial = {}): Member { + return { + slug, + name: `${slug} Doe`, + role: { fr: `Rôle ${slug}`, en: `Role ${slug}` }, + track: 'architect', + avatar: `https://example.com/${slug}.jpg`, + displayOrder: 1, + active: true, + bio: { fr: `Bio ${slug}`, en: `Bio ${slug} en` }, + featuredOnAboutUs: false, + ...fields, + }; +} + +const tools: ToolRegistry = { + hubspot: { slug: 'hubspot', name: 'HubSpot' }, + attio: { slug: 'attio', name: 'Attio' }, + n8n: { slug: 'n8n', name: 'n8n' }, + clay: { slug: 'clay', name: 'Clay' }, + dust: { slug: 'dust', name: 'Dust' }, +}; + +const registry: MemberRegistry = { + alice: member('alice', { + displayOrder: 1, + challenge: 'cx', + contribution: { fr: 'Elle structure le support.', en: 'She runs support.' }, + // Five tools: the loader keeps them all; `team-section.test.tsx` checks + // that the card shows them all. + tools: ['hubspot', 'attio', 'n8n', 'clay', 'dust'], + previousCompanies: ['Qonto', '[Entreprise]', 'Alan'], + }), + // No expert fields at all. + bob: member('bob', { displayOrder: 2 }), + carol: member('carol', { + displayOrder: 3, + challenge: 'sy', + contribution: { fr: '[Contribution]', en: '[Contribution]' }, + tools: ['hubspot'], + previousCompanies: ['qonto', 'Payfit'], + }), + dan: member('dan', { displayOrder: 4, active: false }), +}; + +async function runLoader(url = 'http://test.local/studio', params = {}) { + const { loader } = await import('./_main.($lang).studio'); + const outcome = await invokeLoader(loader, { url, params }); + expect(outcome.type).toBe('data'); + if (outcome.type !== 'data') throw new Error('expected data'); + return outcome.data; +} +describe('studio loader', () => { + it('gives every active member a card, with or without expert fields', async () => { getFixedTMock.mockResolvedValue((key: string) => `fr:${key}`); - loadMemberRegistryMock.mockResolvedValue(fakeRegistry); - getActiveMembersMock.mockReturnValue(fakeMembers); - - const { loader } = await import('./_main.($lang).studio'); - const outcome = await invokeLoader(loader, { - url: 'http://test.local/studio', - params: {}, + loadMemberRegistryMock.mockResolvedValue(registry); + loadToolRegistryMock.mockResolvedValue(tools); + isPageEnabledMock.mockReturnValue(true); + vi.spyOn(console, 'warn').mockImplementation(silence); + vi.spyOn(console, 'error').mockImplementation(silence); + + const data = await runLoader(); + + expect(data.title).toBe('fr:meta.title'); + expect(data.description).toBe('fr:meta.description'); + expect(data.lang).toBe('fr'); + expect(data.jobsEnabled).toBe(true); + expect(isPageEnabledMock).toHaveBeenCalledWith('jobs'); + expect(data.members.map((card) => card.slug)).toEqual([ + 'alice', + 'bob', + 'carol', + ]); + + const [alice, bob, carol] = data.members; + expect(alice).toEqual({ + slug: 'alice', + name: 'alice Doe', + role: 'Rôle alice', + photo: 'https://example.com/alice.jpg', + challenge: 'cx', + contribution: 'Elle structure le support.', + tools: ['HubSpot', 'Attio', 'n8n', 'Clay', 'Dust'], + previousCompanies: ['Qonto', 'Alan'], + bio: 'Bio alice', + }); + expect(bob).toEqual({ + slug: 'bob', + name: 'bob Doe', + role: 'Rôle bob', + photo: 'https://example.com/bob.jpg', + challenge: null, + contribution: null, + tools: [], + previousCompanies: [], + // The bio fills the back of a card with no contribution. + bio: 'Bio bob', }); + // A placeholder contribution drops; the card stays. + expect(carol.contribution).toBeNull(); + expect(carol.tools).toEqual(['HubSpot']); - expect(outcome.type).toBe('data'); - if (outcome.type !== 'data') return; - expect(outcome.data.title).toBe('fr:meta.title'); - expect(outcome.data.description).toBe('fr:meta.description'); - expect(outcome.data.members).toBe(fakeMembers); - expect(outcome.data.lang).toBe('fr'); - expect(getActiveMembersMock).toHaveBeenCalledWith(fakeRegistry); + expect(data.previousCompanies).toEqual(['Qonto', 'Alan', 'Payfit']); }); - it('fires getFixedT and loadMemberRegistry in parallel', async () => { - let resolveT!: (fn: (key: string) => string) => void; - let resolveRegistry!: (registry: Record) => void; - const tPromise = new Promise<(key: string) => string>((r) => { - resolveT = r; + it('resolves the cards in English on /en', async () => { + getFixedTMock.mockResolvedValue((key: string) => `en:${key}`); + loadMemberRegistryMock.mockResolvedValue(registry); + loadToolRegistryMock.mockResolvedValue(tools); + isPageEnabledMock.mockReturnValue(false); + vi.spyOn(console, 'warn').mockImplementation(silence); + vi.spyOn(console, 'error').mockImplementation(silence); + + const data = await runLoader('http://test.local/en/studio', { + lang: 'en', }); - const registryPromise = new Promise>((r) => { - resolveRegistry = r; + + expect(getFixedTMock).toHaveBeenCalledWith('en', 'studio'); + expect(data.lang).toBe('en'); + expect(data.jobsEnabled).toBe(false); + expect(data.members[0].role).toBe('Role alice'); + expect(data.members[0].contribution).toBe('She runs support.'); + expect(data.members[0].bio).toBe('Bio alice en'); + }); + + it('drops an unknown tool and keeps the card', async () => { + getFixedTMock.mockResolvedValue((key: string) => key); + loadMemberRegistryMock.mockResolvedValue({ + erin: member('erin', { + challenge: 'rp', + contribution: { fr: 'Contribution', en: 'Contribution' }, + tools: ['hubspot', 'unknown-tool'], + }), }); + loadToolRegistryMock.mockResolvedValue(tools); + isPageEnabledMock.mockReturnValue(true); + const error = vi.spyOn(console, 'error').mockImplementation(silence); - getFixedTMock.mockReturnValue(tPromise); - loadMemberRegistryMock.mockReturnValue(registryPromise); - getActiveMembersMock.mockReturnValue([]); + const data = await runLoader(); + + expect(data.members).toHaveLength(1); + expect(data.members[0].tools).toEqual(['HubSpot']); + expect(error).toHaveBeenCalledWith(expect.stringContaining('unknown-tool')); + }); + + it('fires getFixedT, loadMemberRegistry and loadToolRegistry in parallel', async () => { + let resolveT!: (fn: (key: string) => string) => void; + let resolveRegistry!: (registry: MemberRegistry) => void; + let resolveTools!: (tools: ToolRegistry) => void; + getFixedTMock.mockReturnValue( + new Promise((r) => { + resolveT = r; + }), + ); + loadMemberRegistryMock.mockReturnValue( + new Promise((r) => { + resolveRegistry = r; + }), + ); + loadToolRegistryMock.mockReturnValue( + new Promise((r) => { + resolveTools = r; + }), + ); + isPageEnabledMock.mockReturnValue(true); const { loader } = await import('./_main.($lang).studio'); const loaderPromise = invokeLoader(loader, { @@ -84,13 +229,15 @@ describe('studio loader', () => { // Let the loader run past its first await point. await new Promise((r) => setImmediate(r)); - // Both must be called before either resolves — sequential awaits would - // only call loadMemberRegistry after getFixedT settles. + // All three start before any resolves: sequential awaits would call the + // later loads only once the earlier ones settle. expect(getFixedTMock).toHaveBeenCalledTimes(1); expect(loadMemberRegistryMock).toHaveBeenCalledTimes(1); + expect(loadToolRegistryMock).toHaveBeenCalledTimes(1); - resolveT((key: string) => `fr:${key}`); + resolveT((key: string) => key); resolveRegistry({}); + resolveTools({}); await loaderPromise; }); }); From ca0fae51dc9f77b1cfb9a9da8ab9158411c548e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?je=CC=81ro=CC=82me=20boileux?= Date: Mon, 16 Nov 2026 22:00:21 +0100 Subject: [PATCH 05/24] docs(inventory): list MemberAvatar and the studio sections --- docs/development/component-inventory.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/development/component-inventory.md b/docs/development/component-inventory.md index 83ce4168..c5a8f9f6 100644 --- a/docs/development/component-inventory.md +++ b/docs/development/component-inventory.md @@ -122,6 +122,19 @@ The OCOBO website implements a comprehensive component library built on Ark UI p |-----------|------|---------|-------------| | **MemberCard** | `member-card.tsx` | Profile card: avatar, role, bio, LinkedIn (jobs, blog author) | Reusable | | **PersonCard** | `person-card.tsx` | Person variant of `FlipCard`: photo, role and challenge label, then contribution or bio, tools (with a limit) and previous companies | Reusable | +| **MemberAvatar** | `member-avatar.tsx` | Round photo in a ring of the member's challenge colour, initials behind it; `lg` on person cards, `sm` in a row of faces | Reusable | + +### Studio Components (`app/components/studio/`) +| Component | File | Purpose | Reusability | +|-----------|------|---------|-------------| +| **HeroSection** | `hero-section.tsx` | Studio hero with a marquee of member tiles | Studio-specific | +| **CompaniesStrip** | `companies-strip.tsx` | The team's previous companies, from the member files | Studio-specific | +| **ModelSection** | `model-section.tsx` | Studio model, three principles on a dark band (`#squad`) | Studio-specific | +| **ExpertisesSection** | `expertises-section.tsx` | One card per published challenge with its experts' faces (`#expertises`) | Studio-specific | +| **TeamSection** | `team-section.tsx` | Every active member as a `PersonCard`, all tools (`#equipe`) | Studio-specific | +| **OfficesSection** | `offices-section.tsx` | Offices, three cities (`#vie`) | Studio-specific | +| **ShareSection** | `share-section.tsx` | Podcast, club and blog cards (`#partage`) | Studio-specific | +| **ClosingSection** | `closing-section.tsx` | Work with us, and join us when the jobs page is on | Studio-specific | ### Legacy Homepage Components (`app/components/homepage/`) | Component | File | Purpose | Reusability | From 6fd5faa365218df370e5407af8a654fcbc34ed9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?je=CC=81ro=CC=82me=20boileux?= Date: Mon, 16 Nov 2026 22:31:57 +0100 Subject: [PATCH 06/24] refactor(challenges): extract buildExpertCard The studio page built each member card by calling buildExpertCards on a one-member list. It now calls buildExpertCard, which buildExpertCards maps over. Challenge pages render the same cards as before. --- app/modules/challenge-reference-sections.ts | 18 +++++++++++++----- app/modules/studio-team.ts | 6 ++---- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/app/modules/challenge-reference-sections.ts b/app/modules/challenge-reference-sections.ts index c388aca8..6bad7258 100644 --- a/app/modules/challenge-reference-sections.ts +++ b/app/modules/challenge-reference-sections.ts @@ -58,11 +58,12 @@ export function buildClientCaseSection( }; } -export function buildExpertCards( - experts: readonly ChallengeExpert[], +/** One expert as a card shows it, in the page language. */ +export function buildExpertCard( + expert: ChallengeExpert, lang: Language, -): ExpertCard[] { - return experts.map((expert) => ({ +): ExpertCard { + return { slug: expert.slug, name: expert.name, role: expert.role[lang], @@ -70,7 +71,14 @@ export function buildExpertCards( contribution: expert.contribution[lang], tools: expert.tools.map((tool) => tool.name), previousCompanies: expert.previousCompanies, - })); + }; +} + +export function buildExpertCards( + experts: readonly ChallengeExpert[], + lang: Language, +): ExpertCard[] { + return experts.map((expert) => buildExpertCard(expert, lang)); } export function buildChallengeReferenceSections( diff --git a/app/modules/studio-team.ts b/app/modules/studio-team.ts index d9daadae..ded61a40 100644 --- a/app/modules/studio-team.ts +++ b/app/modules/studio-team.ts @@ -12,7 +12,7 @@ import type { Language } from '~/localization/resources'; import { type ExpertCard, - buildExpertCards, + buildExpertCard, } from './challenge-reference-sections'; import type { ChallengeKey } from './challenge-schema'; import { @@ -60,12 +60,10 @@ export function buildStudioTeam( console.error(`[${SCOPE}] studio: ${message}`), ); const reportDrop = dropReporter(SCOPE, 'studio'); - // One member at a time, so a card can never take another member's fields. const members = getActiveMembers(registry).map((member) => { const expert = resolveExpertFields(member, tools, reportTool, reportDrop); - const [card] = buildExpertCards([expert], lang); return { - ...card, + ...buildExpertCard(expert, lang), challenge: expert.challenge ?? null, bio: writtenOrNull(member.bio[lang], () => reportDrop(`team/${member.slug} bio.${lang}`), From f118720495e729fc4368fcdc5c6682c8ed1fe7b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?je=CC=81ro=CC=82me=20boileux?= Date: Mon, 16 Nov 2026 22:31:57 +0100 Subject: [PATCH 07/24] feat(studio): expertise cards with a challenge pill and the promise Each card now shows the challenge name in a pill of its colour, the challenge promise as its title, then the experts' faces and first names, as in the equipe mockup. The names read "Clara et Dorian" in the page language, so the "Experts:" line and its key go. The heading is centred. --- app/components/studio/expertises-section.tsx | 70 ++++++++++++-------- locales/en/studio.json | 1 - locales/fr/studio.json | 1 - 3 files changed, 41 insertions(+), 31 deletions(-) diff --git a/app/components/studio/expertises-section.tsx b/app/components/studio/expertises-section.tsx index 6ee9c71e..70fbd41a 100644 --- a/app/components/studio/expertises-section.tsx +++ b/app/components/studio/expertises-section.tsx @@ -1,4 +1,3 @@ -import { ArrowRight } from 'lucide-react'; import { useTranslation } from 'react-i18next'; import { Link } from 'react-router'; @@ -17,37 +16,54 @@ type ExpertisesSectionProps = { members: StudioMemberCard[]; }; -const bar = css({ w: '10', h: '1.5', borderRadius: 'full' }); +const pill = cx( + text({ variant: 'label' }), + css({ + alignSelf: 'flex-start', + px: '3', + py: '1', + borderRadius: 'full', + }), +); // The whole card is the link target, through the heading link. const cardLink = css({ - display: 'inline-flex', - alignItems: 'center', - gap: '2', _hover: { textDecoration: 'underline' }, _after: { content: '""', position: 'absolute', inset: '0' }, }); const faces = css({ display: 'flex', - '& > li:not(:first-child)': { ml: '-2' }, + '& > li:not(:first-child)': { ml: '-2.5' }, }); /** - * One card per published challenge, with the faces of its experts and a link - * to the challenge page (`#expertises`). Hidden when no challenge loaded. + * One card per published challenge (`#expertises`): the challenge name in a + * pill of its colour, its promise as the title, then its experts' faces and + * first names. The whole card links to the challenge page. Hidden when no + * challenge loaded. */ export function ExpertisesSection({ members }: ExpertisesSectionProps) { - const { t } = useTranslation('studio'); + const { t, i18n } = useTranslation('studio'); const { challenges } = useChallengeMenu(); const getLocalizedPath = useLocalizedPathname(); if (challenges.length === 0) return null; + // "Jeanne et Hugo", "Jeanne, Hugo et Clara" in the page language. + const names = new Intl.ListFormat(i18n.language, { type: 'conjunction' }); + return (
    -
    +

    {t('expertises.title')}

    @@ -76,30 +92,24 @@ export function ExpertisesSection({ members }: ExpertisesSectionProps) { key={challenge.slug} className={cx(card(), css({ position: 'relative', gap: '4' }))} > -
    From 8d85c468e600c35bce3f769e1ba906d567574c88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?je=CC=81ro=CC=82me=20boileux?= Date: Mon, 16 Nov 2026 22:31:57 +0100 Subject: [PATCH 10/24] fix(studio): drop LinkedIn from the blog card label --- locales/en/studio.json | 2 +- locales/fr/studio.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/locales/en/studio.json b/locales/en/studio.json index a862d08c..1bae89dc 100644 --- a/locales/en/studio.json +++ b/locales/en/studio.json @@ -46,7 +46,7 @@ "share.podcast.cta": "Listen", "share.club.label": "Community", "share.club.cta": "Join", - "share.blog.label": "Blog and LinkedIn", + "share.blog.label": "Blog", "share.blog.cta": "Read", "closing.work.eyebrow": "You are a company", "closing.join.eyebrow": "You are a talent", diff --git a/locales/fr/studio.json b/locales/fr/studio.json index 19abdcdf..cc27987a 100644 --- a/locales/fr/studio.json +++ b/locales/fr/studio.json @@ -46,7 +46,7 @@ "share.podcast.cta": "Écouter", "share.club.label": "Communauté", "share.club.cta": "Rejoindre", - "share.blog.label": "Blog et LinkedIn", + "share.blog.label": "Blog", "share.blog.cta": "Lire", "closing.work.eyebrow": "Vous êtes une entreprise", "closing.join.eyebrow": "Vous êtes un talent", From c8fcbb7b545135dfe6e121ca33e0d15f03b63f83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?je=CC=81ro=CC=82me=20boileux?= Date: Mon, 16 Nov 2026 22:31:57 +0100 Subject: [PATCH 11/24] style(studio): closing doors side by side from tablet Both cards use card() with xl padding and no border or shadow. The join card is dark with a yellow eyebrow and a yellow button. The dark tone stays a single static class until the card recipe gets one. --- app/components/studio/closing-section.tsx | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/app/components/studio/closing-section.tsx b/app/components/studio/closing-section.tsx index 0806a409..a3b2a8c3 100644 --- a/app/components/studio/closing-section.tsx +++ b/app/components/studio/closing-section.tsx @@ -18,10 +18,15 @@ type ClosingSectionProps = { const oneDoor = css({ display: 'grid', gap: '6' }); const twoDoors = css({ display: 'grid', - gridTemplateColumns: { base: '1fr', lg: 'repeat(2, minmax(0, 1fr))' }, + gridTemplateColumns: { base: '1fr', md: 'repeat(2, minmax(0, 1fr))' }, gap: '6', }); const column = css({ gap: '5', alignItems: 'flex-start' }); +// Flat cards on the yellow band, as in the mockup. +const door = card({ padding: 'xl', border: false, shadow: 'none' }); +// The card recipe has no dark tone yet (PR #332, open question on the dark +// tone): a static class until it gets one. +const darkTone = css({ bg: 'dark', color: 'white' }); /** Two closing doors: work with the Studio, or join it. */ export function ClosingSection({ jobsEnabled }: ClosingSectionProps) { @@ -31,7 +36,7 @@ export function ClosingSection({ jobsEnabled }: ClosingSectionProps) { return (
    -
    +

    {t('closing.work.eyebrow')}

    @@ -45,15 +50,8 @@ export function ClosingSection({ jobsEnabled }: ClosingSectionProps) {
    {jobsEnabled && ( -
    -

    +

    +

    {t('closing.join.eyebrow')}

    @@ -64,7 +62,7 @@ export function ClosingSection({ jobsEnabled }: ClosingSectionProps) {

    {t('closing.join.cta')} From eef02c3c4f4d99b9b0b4de88e2fd623dab433c94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?je=CC=81ro=CC=82me=20boileux?= Date: Mon, 16 Nov 2026 22:31:57 +0100 Subject: [PATCH 12/24] feat(studio): two-row hero marquee with a pause control Member cards (photo, first name, role) run in two tilted rows that scroll in opposite directions, as in the mockup. A visible button pauses them (WCAG 2.2.2), as do hover and focus. Reduced motion stops them, and a team under 12 members shows as a static grid. The track, pause button, hover pause and edge fade live in studio-marquee.tsx so the companies strip can reuse them. --- app/components/studio/hero-section.tsx | 157 ++++++++++++++--------- app/components/studio/studio-marquee.tsx | 128 ++++++++++++++++++ locales/en/studio.json | 2 + locales/fr/studio.json | 2 + 4 files changed, 228 insertions(+), 61 deletions(-) create mode 100644 app/components/studio/studio-marquee.tsx diff --git a/app/components/studio/hero-section.tsx b/app/components/studio/hero-section.tsx index 47ca0f58..1e628979 100644 --- a/app/components/studio/hero-section.tsx +++ b/app/components/studio/hero-section.tsx @@ -1,3 +1,4 @@ +import * as React from 'react'; import { Trans, useTranslation } from 'react-i18next'; import { css, cx } from '@ocobo/styled-system/css'; @@ -10,66 +11,70 @@ import { headlineAccent } from '~/components/ui/headline-accent'; import type { StudioMemberCard } from '~/modules/studio-team'; import { getFirstName } from '~/utils/first-name'; -/** Copies of the member list in the marquee: its keyframes move by a third. */ -const COPIES = [0, 1, 2] as const; +import { + MarqueePauseButton, + MarqueeTrack, + marqueeEdgeFade, + marqueeHoverPause, +} from './studio-marquee'; + /** - * Below this many members, one copy of 160px tiles leaves a gap on a wide - * screen before the loop restarts: the faces then sit in a static row. + * Below this many members, a row of 208px cards leaves a gap on a wide + * screen before its loop restarts: the cards then sit in a static grid. */ const MARQUEE_MIN_MEMBERS = 12; -const marqueeTrack = css({ - display: 'flex', - w: 'max', - animation: 'marquee-ultra-slow', - _motionReduce: { - animation: '[none]', - w: 'full', - flexWrap: 'wrap', - justifyContent: 'center', - }, -}); -const marqueeList = css({ +// Two rows, tilted, a little wider than the screen (mockup `equipe`). +const tiltedRows = css({ display: 'flex', - _motionReduce: { flexWrap: 'wrap', justifyContent: 'center' }, + flexDirection: 'column', + gap: '6', + w: '[108%]', + ml: '[-4%]', + py: '6', + transform: 'rotate(-3deg)', }); -// Without motion, one copy of the list is enough. -const extraCopy = css({ _motionReduce: { display: 'none' } }); +const rowList = css({ display: 'flex', gap: '5', pr: '5' }); const staticList = css({ display: 'flex', flexWrap: 'wrap', justifyContent: 'center', + gap: '5', }); -const tile = css({ +const memberCard = css({ + flex: 'none', display: 'flex', flexDirection: 'column', alignItems: 'center', - gap: '2', - w: '40', - px: '3', + gap: '4', + w: '52', + px: '4', + pt: '7', + pb: '5', + bg: 'gray.100', + borderRadius: '2xl', textAlign: 'center', }); -const tileName = cx(text({ variant: 'small' }), css({ fontWeight: 'bold' })); -const tileRole = text({ variant: 'small', color: 'muted' }); +const cardName = text({ variant: 'display-md-black' }); +const cardRole = text({ variant: 'small', color: 'muted' }); -type MemberTilesProps = { +type MemberCardsProps = { members: StudioMemberCard[]; - /** Names the list. The copies of the marquee have none. */ - label?: string; /** A marquee copy: hidden from assistive tech, photos load lazily. */ hidden?: boolean; + label?: string; className: string; }; -function MemberTiles({ members, label, hidden, className }: MemberTilesProps) { +function MemberCards({ members, hidden, label, className }: MemberCardsProps) { return (
      {members.map((member) => ( -
    • +
    • - {getFirstName(member.name)} - {member.role} + + {getFirstName(member.name)} + {member.role} +
    • ))}
    @@ -89,8 +96,19 @@ type HeroSectionProps = { members: StudioMemberCard[]; }; +/** + * The promise, then two tilted rows of member cards that scroll in opposite + * directions. A visible button pauses them (WCAG 2.2.2). Reduced motion + * stops them, and a small team shows as a static grid. + */ export function HeroSection({ members }: HeroSectionProps) { const { t } = useTranslation('studio'); + const [paused, setPaused] = React.useState(false); + const half = Math.ceil(members.length / 2); + const rows = [ + { key: 'first', direction: 'left', members: members.slice(0, half) }, + { key: 'second', direction: 'right', members: members.slice(half) }, + ] as const; return (
    - {members.length > 0 && ( -
    - {members.length < MARQUEE_MIN_MEMBERS ? ( - - ) : ( -
    - {COPIES.map((copy) => - copy === 0 ? ( - - ) : ( -
    + + setPaused((value) => !value)} + /> + + )}
    ); diff --git a/app/components/studio/studio-marquee.tsx b/app/components/studio/studio-marquee.tsx new file mode 100644 index 00000000..fc8683c3 --- /dev/null +++ b/app/components/studio/studio-marquee.tsx @@ -0,0 +1,128 @@ +import { Pause, Play } from 'lucide-react'; +import * as React from 'react'; +import { useTranslation } from 'react-i18next'; + +import { css, cx } from '@ocobo/styled-system/css'; +import { button } from '@ocobo/styled-system/recipes'; + +/** Copies per track: the `marquee-ultra-slow` keyframes move by a third. */ +const COPIES = [0, 1, 2] as const; + +const TRACK_CLASS = 'studio-marquee-track'; + +const track = css({ + display: 'flex', + w: 'max', + animation: 'marquee-ultra-slow', + _motionReduce: { animation: '[none]' }, +}); +// Static literals per direction and state: Panda drops runtime values. +const directionStyles = { + left: css({ animationDirection: 'normal' }), + right: css({ animationDirection: 'reverse' }), +} as const; +const pausedStyle = css({ animationPlayState: 'paused' }); +// Without motion, one copy is enough. +const extraCopy = css({ _motionReduce: { display: 'none' } }); + +/** + * Goes on the element around one or more tracks: hovering it, or focusing + * inside it, pauses them while the user reads. + */ +export const marqueeHoverPause = css({ + [`&:hover .${TRACK_CLASS}, &:focus-within .${TRACK_CLASS}`]: { + animationPlayState: 'paused', + }, +}); + +/** Fades both ends of a marquee row. */ +export const marqueeEdgeFade = css({ + overflow: 'hidden', + maskImage: + '[linear-gradient(90deg, transparent 0, black 8%, black 92%, transparent 100%)]', +}); + +type MarqueeTrackProps = { + direction: 'left' | 'right'; + paused: boolean; + /** + * Renders one copy of the content. The copies after the first are hidden + * from assistive tech and under reduced motion: they take `className`. + */ + renderCopy: (copy: { + hidden: boolean; + className?: string; + }) => React.ReactNode; +}; + +/** One row that scrolls without end, left or right. */ +export function MarqueeTrack({ + direction, + paused, + renderCopy, +}: MarqueeTrackProps) { + return ( +
    + {COPIES.map((copy) => ( + + {copy === 0 + ? renderCopy({ hidden: false }) + : renderCopy({ hidden: true, className: extraCopy })} + + ))} +
    + ); +} + +const pauseStyles = cx( + button({ variant: 'secondary', size: 'sm' }), + css({ + display: 'flex', + // Rendered from the server on, then hidden by CSS under reduced motion. + _motionReduce: { display: 'none' }, + }), +); +const iconOnlyStyles = css({ px: '2.5' }); +const iconSize = css({ w: '4', h: '4' }); +const srOnly = css({ srOnly: true }); + +type MarqueePauseButtonProps = { + paused: boolean; + onToggle: () => void; + /** Keeps the label for assistive tech only. */ + iconOnly?: boolean; + className?: string; +}; + +/** + * Pauses and resumes a marquee that moves for more than five seconds + * (WCAG 2.2.2), as on the home hero. + */ +export function MarqueePauseButton({ + paused, + onToggle, + iconOnly = false, + className, +}: MarqueePauseButtonProps) { + const { t } = useTranslation('studio'); + const Icon = paused ? Play : Pause; + const label = paused ? t('marquee.play') : t('marquee.pause'); + + return ( + + ); +} diff --git a/locales/en/studio.json b/locales/en/studio.json index 1bae89dc..f6d9d6d9 100644 --- a/locales/en/studio.json +++ b/locales/en/studio.json @@ -7,6 +7,8 @@ "hero.subtitle": "We are not a traditional agency. We are a studio of senior experts who embed within your teams to operate from the inside.", "hero.cta": "Talk to the Studio", "hero.members": "The members of the Ocobo team", + "marquee.pause": "Pause the animation", + "marquee.play": "Resume the animation", "companies.label": "Before Ocobo, we worked at", "model.title": "The Ocobo Studio™ model", "model.subtitle": "The traditional agency is often too slow and too far from the reality on the ground. We designed a pragmatic alternative to truly scale.", diff --git a/locales/fr/studio.json b/locales/fr/studio.json index cc27987a..2b6c7d44 100644 --- a/locales/fr/studio.json +++ b/locales/fr/studio.json @@ -7,6 +7,8 @@ "hero.subtitle": "Nous ne sommes pas une agence classique. Nous sommes un studio d'experts seniors qui s'intègrent à vos équipes pour opérer de l'intérieur.", "hero.cta": "Discuter avec le Studio", "hero.members": "Les membres de l'équipe Ocobo", + "marquee.pause": "Mettre en pause l'animation", + "marquee.play": "Reprendre l'animation", "companies.label": "Avant Ocobo, nous étions chez", "model.title": "Le modèle Studio Ocobo™", "model.subtitle": "L'agence traditionnelle est souvent trop lente et trop loin de la réalité du terrain. Nous avons conçu une alternative pragmatique pour scaler vraiment.", From ad32c8c40ecf24db133b02ada6f412f143c817d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?je=CC=81ro=CC=82me=20boileux?= Date: Mon, 16 Nov 2026 22:31:57 +0100 Subject: [PATCH 13/24] feat(studio): companies strip as a single-line marquee The label sits on the left and the previous companies scroll on one line, with an icon pause button. Vertical spacing comes from tokens. --- app/components/studio/companies-strip.tsx | 95 +++++++++++++++-------- 1 file changed, 64 insertions(+), 31 deletions(-) diff --git a/app/components/studio/companies-strip.tsx b/app/components/studio/companies-strip.tsx index b3389c78..db9543e0 100644 --- a/app/components/studio/companies-strip.tsx +++ b/app/components/studio/companies-strip.tsx @@ -1,60 +1,93 @@ +import * as React from 'react'; import { useTranslation } from 'react-i18next'; -import { css } from '@ocobo/styled-system/css'; +import { css, cx } from '@ocobo/styled-system/css'; import { text } from '@ocobo/styled-system/recipes'; import { Container } from '~/components/ui/Container'; +import { + MarqueePauseButton, + MarqueeTrack, + marqueeEdgeFade, + marqueeHoverPause, +} from './studio-marquee'; + type CompaniesStripProps = { /** Previous companies of the team, from the member files. */ companies: string[]; }; -/** "Before Ocobo, we worked at": the team's previous companies, as text. */ +const strip = css({ + display: 'grid', + gridTemplateColumns: { base: '1fr', md: '13rem minmax(0, 1fr) auto' }, + alignItems: 'center', + gap: { base: '4', md: '8' }, +}); +const names = css({ display: 'flex' }); +const name = cx( + text({ variant: 'display-md-black' }), + css({ + px: '9', + color: 'gray.400', + whiteSpace: 'nowrap', + borderLeftWidth: '1px', + borderColor: 'gray.200', + }), +); + +/** + * "Before Ocobo, we worked at": the label on the left, then the team's + * previous companies on one scrolling line, with a pause button. + */ export function CompaniesStrip({ companies }: CompaniesStripProps) { const { t } = useTranslation('studio'); + const [paused, setPaused] = React.useState(false); if (companies.length === 0) return null; return (
    - -

    + +

    {t('companies.label')}

    -
      - {companies.map((company) => ( -
    • - {company} -
    • - ))} -
    +
    + ( +
      + {companies.map((company) => ( +
    • + {company} +
    • + ))} +
    + )} + /> +
    + setPaused((value) => !value)} + iconOnly + className={css({ justifySelf: 'start' })} + />
    ); From e6122fe7db35b1cd758f2c7c499ec39852bf45e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?je=CC=81ro=CC=82me=20boileux?= Date: Mon, 16 Nov 2026 22:31:57 +0100 Subject: [PATCH 14/24] feat(studio): offices map, city rows and photo gallery The offices card lists the cities with a coloured dot and their note on hairline rows, next to a map of France with the three offices. Under it, a gallery of the office and seminar photos already used by the jobs page: one wide photo, then a grid of four. --- app/components/studio/offices-section.tsx | 253 +++++++++++++++++----- locales/en/studio.json | 5 + locales/fr/studio.json | 5 + 3 files changed, 205 insertions(+), 58 deletions(-) diff --git a/app/components/studio/offices-section.tsx b/app/components/studio/offices-section.tsx index 04beb499..c9cc2d2e 100644 --- a/app/components/studio/offices-section.tsx +++ b/app/components/studio/offices-section.tsx @@ -1,8 +1,7 @@ -import { MapPin } from 'lucide-react'; import { useTranslation } from 'react-i18next'; import { css, cx } from '@ocobo/styled-system/css'; -import { card, iconBox, section, text } from '@ocobo/styled-system/recipes'; +import { card, section, text } from '@ocobo/styled-system/recipes'; import { Container } from '~/components/ui/Container'; @@ -14,7 +13,132 @@ type Office = { note: string; }; -/** Where the team works: three offices, one team (`#vie`). */ +// One static class per office, in `offices.list` order: Paris, Bordeaux, +// Marseille. Panda only ships literal values. +const dotColours = [ + css({ bg: 'dark' }), + css({ bg: 'yellow' }), + css({ bg: 'mint' }), +] as const; +const pinColours = [ + css({ fill: 'dark' }), + css({ fill: 'yellow' }), + css({ fill: 'mint' }), +] as const; + +/** Pin and label positions on the map, in `offices.list` order. */ +const pins = [ + { x: 52, y: 24, r: 2.6, labelX: 56, labelY: 23 }, + { x: 28, y: 60, r: 2.8, labelX: 32, labelY: 62 }, + { x: 70, y: 82, r: 2.8, labelX: 58, labelY: 77 }, +] as const; + +const FRANCE_OUTLINE = + 'M52,2 L62,8 L72,12 L80,16 L88,22 L86,35 L82,48 L86,60 L88,72 L90,76 L80,80 L72,82 L62,84 L56,88 L52,92 L40,90 L30,88 L24,84 L26,74 L28,66 L26,58 L22,46 L14,40 L2,35 L6,28 L20,28 L28,22 L38,20 L44,12 Z'; + +/** Office photos from the jobs page, the first one wide. */ +const photos = [ + { src: '/images/jobs/seminaire.jpeg', altKey: 'offices.photos.seminar' }, + { src: '/images/jobs/rooftop.jpeg', altKey: 'offices.photos.rooftop' }, + { src: '/images/jobs/cafet.jpeg', altKey: 'offices.photos.cafeteria' }, + { src: '/images/jobs/bureau-1.jpeg', altKey: 'offices.photos.office' }, + { src: '/images/jobs/bureau-2.jpeg', altKey: 'offices.photos.office' }, +] as const; + +const land = css({ fill: 'gray.100', stroke: 'gray.300' }); +const route = css({ fill: '[none]', stroke: 'gray.400' }); +const pinStroke = css({ stroke: 'dark' }); +const pinLabel = css({ fill: 'dark', fontWeight: 'bold' }); + +const row = css({ + display: 'flex', + alignItems: 'center', + gap: '4', + py: '4', + borderTopWidth: '1px', + borderColor: 'line', + _last: { borderBottomWidth: '1px' }, +}); +const dot = css({ + flex: 'none', + w: '3.5', + h: '3.5', + borderRadius: 'full', + borderWidth: '2px', + borderColor: 'dark', +}); +const gallery = css({ + display: 'grid', + gridTemplateColumns: { + base: 'repeat(2, minmax(0, 1fr))', + md: 'repeat(4, minmax(0, 1fr))', + }, + gridAutoRows: { base: '[10rem]', md: '[14rem]' }, + gap: '4', + mt: '6', +}); +const widePhoto = css({ gridColumn: 'span 2', gridRow: 'span 2' }); +const photoStyle = css({ + w: 'full', + h: 'full', + objectFit: 'cover', + borderRadius: '2xl', +}); + +function FranceMap({ offices }: { offices: Office[] }) { + const { t } = useTranslation('studio'); + return ( + + + + + {offices.slice(0, pins.length).map((office, index) => { + const pin = pins[index]; + return ( + + 0 && pinStroke)} + strokeWidth="0.7" + /> + + {office.city} + + + ); + })} + + ); +} + +/** + * Where the team works (`#vie`): the cities with a map, then photos of the + * offices and the seminar. + */ export function OfficesSection() { const { t } = useTranslation('studio'); const offices = t('offices.list', { returnObjects: true }) as Office[]; @@ -24,16 +148,20 @@ export function OfficesSection() { id={OFFICES_ID} className={cx(section({ bg: 'gray' }), css({ scrollMarginTop: '24' }))} > - -
    -

    + +
    +

    {t('offices.title')}

    @@ -41,53 +169,48 @@ export function OfficesSection() {

    -
    -
    -

    +

    +
    +

    {t('offices.label')}

    -

    +

    {t('offices.heading')}

    -
    -
      - {offices.map((office) => ( -
    • - - - +
        + {offices.map((office, index) => ( +
      • +
      • - ))} -
      +
    • + ))} +
    +
    +
    + +
      + {photos.map((photo, index) => ( +
    • + {t(photo.altKey)} +
    • + ))} +

    ); diff --git a/locales/en/studio.json b/locales/en/studio.json index f6d9d6d9..cb70af61 100644 --- a/locales/en/studio.json +++ b/locales/en/studio.json @@ -37,6 +37,11 @@ "offices.subtitle": "Paris, Bordeaux, Marseille: a team within reach of your offices, working in your tools and on site when the project calls for it. And among ourselves, a yearly offsite and rituals that move us forward together.", "offices.label": "Our offices", "offices.heading": "Three cities, one team.", + "offices.map": "Map of France: offices in Paris, Bordeaux and Marseille", + "offices.photos.seminar": "The Ocobo seminar", + "offices.photos.rooftop": "The rooftop", + "offices.photos.cafeteria": "The cafeteria", + "offices.photos.office": "The offices", "offices.list": [ { "city": "Paris", "note": "Headquarters" }, { "city": "Bordeaux", "note": "Since 2026" }, diff --git a/locales/fr/studio.json b/locales/fr/studio.json index 2b6c7d44..7f5bce42 100644 --- a/locales/fr/studio.json +++ b/locales/fr/studio.json @@ -37,6 +37,11 @@ "offices.subtitle": "Paris, Bordeaux, Marseille : une équipe à portée de vos bureaux, qui travaille dans vos outils et vient sur place quand le chantier le demande. Et entre nous, un séminaire chaque année et des rituels qui nous font avancer ensemble.", "offices.label": "Nos bureaux", "offices.heading": "Trois villes, une seule équipe.", + "offices.map": "Carte de France : bureaux à Paris, Bordeaux et Marseille", + "offices.photos.seminar": "Le séminaire Ocobo", + "offices.photos.rooftop": "Le rooftop", + "offices.photos.cafeteria": "La cafétéria", + "offices.photos.office": "Les bureaux", "offices.list": [ { "city": "Paris", "note": "Le siège" }, { "city": "Bordeaux", "note": "Depuis 2026" }, From 01a92207ce93eba5e3c5275f09bc1b0b22403ae6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?je=CC=81ro=CC=82me=20boileux?= Date: Mon, 16 Nov 2026 22:34:22 +0100 Subject: [PATCH 15/24] feat(studio): hero copy from the mockup Eyebrow, three-line headline with the last line in mint italic, intro and a CTA to the team section, as in the equipe mockup. English added. --- app/components/studio/hero-section.tsx | 21 ++++++++++----------- locales/en/studio.json | 11 ++++++----- locales/fr/studio.json | 11 ++++++----- 3 files changed, 22 insertions(+), 21 deletions(-) diff --git a/app/components/studio/hero-section.tsx b/app/components/studio/hero-section.tsx index 1e628979..d8b93e01 100644 --- a/app/components/studio/hero-section.tsx +++ b/app/components/studio/hero-section.tsx @@ -1,12 +1,12 @@ +import { ArrowRight } from 'lucide-react'; import * as React from 'react'; -import { Trans, useTranslation } from 'react-i18next'; +import { useTranslation } from 'react-i18next'; import { css, cx } from '@ocobo/styled-system/css'; -import { badge, text } from '@ocobo/styled-system/recipes'; +import { badge, button, text } from '@ocobo/styled-system/recipes'; import { MemberAvatar } from '~/components/member/member-avatar'; import { Container } from '~/components/ui/Container'; -import { ContactCta } from '~/components/ui/contact-cta'; import { headlineAccent } from '~/components/ui/headline-accent'; import type { StudioMemberCard } from '~/modules/studio-team'; import { getFirstName } from '~/utils/first-name'; @@ -97,7 +97,7 @@ type HeroSectionProps = { }; /** - * The promise, then two tilted rows of member cards that scroll in opposite + * The promise and a link to the team, then two tilted rows of member cards that scroll in opposite * directions. A visible button pauses them (WCAG 2.2.2). Reduced motion * stops them, and a small team shows as a static grid. */ @@ -127,6 +127,8 @@ export function HeroSection({ members }: HeroSectionProps) {

    {t('hero.title.line1')}
    + {t('hero.title.line2')} +
    {t('hero.title.highlight')} @@ -137,15 +139,12 @@ export function HeroSection({ members }: HeroSectionProps) { css({ maxW: '2xl', mx: 'auto', mb: '10' }), )} > - }} - /> + {t('hero.subtitle')}

    - + {t('hero.cta')} - +

    diff --git a/locales/en/studio.json b/locales/en/studio.json index cb70af61..c1ff6bb3 100644 --- a/locales/en/studio.json +++ b/locales/en/studio.json @@ -1,11 +1,12 @@ { "meta.title": "Studio", "meta.description": "A studio of senior RevOps experts who embed within your teams to operate from the inside.", - "hero.badge": "REVOPS STUDIO", - "hero.title.line1": "A Revenue Ops direction", - "hero.title.highlight": "embedded.", - "hero.subtitle": "We are not a traditional agency. We are a studio of senior experts who embed within your teams to operate from the inside.", - "hero.cta": "Talk to the Studio", + "hero.badge": "The team", + "hero.title.line1": "Experts", + "hero.title.line2": "who have lived", + "hero.title.highlight": "your problems.", + "hero.subtitle": "Before Ocobo, we sat on our clients' side: Sales Ops, RevOps and sales managers in demanding scale-ups. Today, we join your teams and your rituals to build the machine with you.", + "hero.cta": "Meet the team", "hero.members": "The members of the Ocobo team", "marquee.pause": "Pause the animation", "marquee.play": "Resume the animation", diff --git a/locales/fr/studio.json b/locales/fr/studio.json index 7f5bce42..c510883b 100644 --- a/locales/fr/studio.json +++ b/locales/fr/studio.json @@ -1,11 +1,12 @@ { "meta.title": "Studio", "meta.description": "Un studio d'experts seniors RevOps qui s'intègrent à vos équipes pour opérer de l'intérieur.", - "hero.badge": "REVOPS STUDIO", - "hero.title.line1": "Une direction Revenue Ops", - "hero.title.highlight": "embarquée.", - "hero.subtitle": "Nous ne sommes pas une agence classique. Nous sommes un studio d'experts seniors qui s'intègrent à vos équipes pour opérer de l'intérieur.", - "hero.cta": "Discuter avec le Studio", + "hero.badge": "L'équipe", + "hero.title.line1": "Des experts", + "hero.title.line2": "qui ont vécu", + "hero.title.highlight": "vos problèmes.", + "hero.subtitle": "Avant Ocobo, nous étions chez nos clients : Sales Ops, RevOps, managers commerciaux dans des scale-ups exigeantes. Aujourd'hui, nous rejoignons vos équipes et vos rituels pour construire la machine avec vous.", + "hero.cta": "Rencontrer l'équipe", "hero.members": "Les membres de l'équipe Ocobo", "marquee.pause": "Mettre en pause l'animation", "marquee.play": "Reprendre l'animation", From 05ac3e14f347d5e93dd8458e28abe7d254905da2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?je=CC=81ro=CC=82me=20boileux?= Date: Mon, 16 Nov 2026 22:35:42 +0100 Subject: [PATCH 16/24] feat(studio): squad roles and sprint timeline from the mockup Replaces the Studio model band with the mockup's "Comment nous travaillons": the three squad roles with their tags, then the two-week sprint timeline. The #squad anchor stays. ModelSection becomes SquadSection. --- app/components/studio/model-section.tsx | 85 --------- app/components/studio/squad-section.tsx | 222 ++++++++++++++++++++++++ app/routes/_main.($lang).studio.tsx | 4 +- docs/development/component-inventory.md | 2 +- locales/en/studio.json | 32 ++-- locales/fr/studio.json | 32 ++-- 6 files changed, 265 insertions(+), 112 deletions(-) delete mode 100644 app/components/studio/model-section.tsx create mode 100644 app/components/studio/squad-section.tsx diff --git a/app/components/studio/model-section.tsx b/app/components/studio/model-section.tsx deleted file mode 100644 index 6599ffcc..00000000 --- a/app/components/studio/model-section.tsx +++ /dev/null @@ -1,85 +0,0 @@ -import { type LucideIcon, Target, Users, Zap } from 'lucide-react'; -import { useTranslation } from 'react-i18next'; - -import { css, cx } from '@ocobo/styled-system/css'; -import { card, iconBox, section, text } from '@ocobo/styled-system/recipes'; - -import { Container } from '~/components/ui/Container'; - -const ICONS: Record = { - users: Users, - zap: Zap, - target: Target, -}; - -type ModelCard = { - icon: string; - title: string; - description: string; -}; - -/** The Studio model: three principles on a dark band (`#squad`). */ -export function ModelSection() { - const { t } = useTranslation('studio'); - const cards = t('model.cards', { returnObjects: true }) as ModelCard[]; - - return ( -
    - -
    -

    - {t('model.title')} -

    -

    - {t('model.subtitle')} -

    -
    - -
      - {cards.map((item) => { - const Icon = ICONS[item.icon] ?? Users; - return ( -
    • - - -

      - {item.title} -

      -

      - {item.description} -

      -
    • - ); - })} -
    -
    -
    - ); -} diff --git a/app/components/studio/squad-section.tsx b/app/components/studio/squad-section.tsx new file mode 100644 index 00000000..d87ebef3 --- /dev/null +++ b/app/components/studio/squad-section.tsx @@ -0,0 +1,222 @@ +import { useTranslation } from 'react-i18next'; + +import { css, cx } from '@ocobo/styled-system/css'; +import { badge, card, section, text } from '@ocobo/styled-system/recipes'; + +import { Container } from '~/components/ui/Container'; + +type SquadRole = { + name: string; + tag: string; + description: string; +}; + +// One static class per role, in role order: strategy, builder, on demand. +const tagTones = [ + css({ bg: 'sky.light' }), + css({ bg: 'coral.light' }), + css({ bg: 'mint.light' }), +]; + +const tagStyle = cx( + text({ variant: 'label' }), + css({ + gridColumn: '2', + gridRow: 'span 2', + alignSelf: 'center', + px: '3', + py: '1.5', + borderRadius: 'full', + whiteSpace: 'nowrap', + }), +); + +// Ten working days: four build days, then a review day, twice. +const SPRINT_DAYS = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; +const REVIEW_DAYS = new Set([5, 10]); +const dayBar = css({ h: '3.5', borderRadius: 'full' }); +const buildDay = css({ bg: 'mint' }); +const reviewDay = css({ bg: 'gray.100' }); + +const timelineGrid = css({ + display: 'grid', + gridTemplateColumns: 'repeat(10, minmax(0, 1fr))', + columnGap: '1.5', +}); +const weekLabel = cx( + text({ variant: 'label' }), + css({ gridColumn: 'span 5', color: 'gray.400' }), +); +const phaseStyle = cx( + text({ variant: 'small' }), + css({ + display: 'flex', + alignItems: 'center', + gap: '2', + fontWeight: 'semibold', + color: 'gray.600', + }), +); +const dot = css({ flex: 'none', w: '2.5', h: '2.5', borderRadius: 'full' }); + +// Phase columns and dots are static, one class each. +const phases = [ + { + key: 'planning', + column: css({ gridColumn: '1 / 4' }), + dot: css({ bg: 'dark' }), + }, + { key: 'build', column: css({ gridColumn: '4 / 9' }), dot: null }, + { + key: 'review', + column: css({ gridColumn: '9 / 11' }), + dot: css({ bg: 'coral' }), + }, +] as const; + +/** + * How a mission runs (`#squad`): the three roles of a squad, then the + * two-week sprint cadence. + */ +export function SquadSection() { + const { t } = useTranslation('studio'); + const roles = t('squad.roles', { returnObjects: true }) as SquadRole[]; + + return ( +
    + +
    +
    + + {t('squad.badge')} + +

    + {t('squad.title')} +

    +

    + {t('squad.subtitle')} +

    +
    + +
      + {roles.map((role, index) => ( +
    • +

      + {role.name} +

      + + {role.tag} + +

      + {role.description} +

      +
    • + ))} +
    +
    + +
    +
    +

    + {t('squad.sprint.title')} +

    +

    + {t('squad.sprint.description')} +

    +
    + +
    + + +
      + {phases.map((phase) => ( +
    1. + {phase.dot && ( +
    2. + ))} +
    +
    +
    +
    +
    + ); +} diff --git a/app/routes/_main.($lang).studio.tsx b/app/routes/_main.($lang).studio.tsx index 697f861e..cb699cdc 100644 --- a/app/routes/_main.($lang).studio.tsx +++ b/app/routes/_main.($lang).studio.tsx @@ -8,9 +8,9 @@ import { ClosingSection } from '~/components/studio/closing-section'; import { CompaniesStrip } from '~/components/studio/companies-strip'; import { ExpertisesSection } from '~/components/studio/expertises-section'; import { HeroSection } from '~/components/studio/hero-section'; -import { ModelSection } from '~/components/studio/model-section'; import { OfficesSection } from '~/components/studio/offices-section'; import { ShareSection } from '~/components/studio/share-section'; +import { SquadSection } from '~/components/studio/squad-section'; import { TeamSection } from '~/components/studio/team-section'; import i18nServer from '~/localization/i18n.server'; import { createHybridLoader } from '~/modules/cache'; @@ -65,7 +65,7 @@ export default function StudioPage() {
    - + diff --git a/docs/development/component-inventory.md b/docs/development/component-inventory.md index c5a8f9f6..6f1085bc 100644 --- a/docs/development/component-inventory.md +++ b/docs/development/component-inventory.md @@ -129,7 +129,7 @@ The OCOBO website implements a comprehensive component library built on Ark UI p |-----------|------|---------|-------------| | **HeroSection** | `hero-section.tsx` | Studio hero with a marquee of member tiles | Studio-specific | | **CompaniesStrip** | `companies-strip.tsx` | The team's previous companies, from the member files | Studio-specific | -| **ModelSection** | `model-section.tsx` | Studio model, three principles on a dark band (`#squad`) | Studio-specific | +| **SquadSection** | `squad-section.tsx` | How we work (`#squad`): the three squad roles with their tags, then the 2-week sprint timeline | Studio-specific | | **ExpertisesSection** | `expertises-section.tsx` | One card per published challenge with its experts' faces (`#expertises`) | Studio-specific | | **TeamSection** | `team-section.tsx` | Every active member as a `PersonCard`, all tools (`#equipe`) | Studio-specific | | **OfficesSection** | `offices-section.tsx` | Offices, three cities (`#vie`) | Studio-specific | diff --git a/locales/en/studio.json b/locales/en/studio.json index c1ff6bb3..fcd7e720 100644 --- a/locales/en/studio.json +++ b/locales/en/studio.json @@ -11,25 +11,33 @@ "marquee.pause": "Pause the animation", "marquee.play": "Resume the animation", "companies.label": "Before Ocobo, we worked at", - "model.title": "The Ocobo Studio™ model", - "model.subtitle": "The traditional agency is often too slow and too far from the reality on the ground. We designed a pragmatic alternative to truly scale.", - "model.cards": [ + "squad.badge": "Revenue Squad", + "squad.title": "How we work", + "squad.subtitle": "Every mission gets a dedicated squad. A manager who builds with you day to day, a director who holds the course, and data, tech or AI expertise when the project calls for it.", + "squad.roles": [ { - "icon": "users", - "title": "Embedded Squad", - "description": "We deploy a multidisciplinary squad that joins your daily work environment." + "name": "RevOps Director", + "tag": "Strategy", + "description": "Holds the course, aligns the teams and leadership" }, { - "icon": "zap", - "title": "100% Impact", - "description": "No lengthy theoretical reports. We deliver ready-to-use system building blocks." + "name": "RevOps Manager", + "tag": "Builder", + "description": "Builds with your teams, day to day, in your tools" }, { - "icon": "target", - "title": "Zero Junior", - "description": "On every account, only senior profiles who have already scaled leading companies." + "name": "RevOps Engineer / Analyst", + "tag": "On demand", + "description": "Data, integrations and AI, when the project calls for it" } ], + "squad.sprint.title": "2-week sprints", + "squad.sprint.description": "To iterate fast, stay flexible as things change and deliver value from the first weeks.", + "squad.sprint.week1": "Week 1", + "squad.sprint.week2": "Week 2", + "squad.sprint.phases.planning": "Planning", + "squad.sprint.phases.build": "We build, we test", + "squad.sprint.phases.review": "Demo and review", "expertises.title": "One expertise, real faces", "expertises.subtitle": "Each expertise is carried by people who practised it before advising on it. You know who you will be working with.", "team.title": "Your Studio team", diff --git a/locales/fr/studio.json b/locales/fr/studio.json index c510883b..b6824adc 100644 --- a/locales/fr/studio.json +++ b/locales/fr/studio.json @@ -11,25 +11,33 @@ "marquee.pause": "Mettre en pause l'animation", "marquee.play": "Reprendre l'animation", "companies.label": "Avant Ocobo, nous étions chez", - "model.title": "Le modèle Studio Ocobo™", - "model.subtitle": "L'agence traditionnelle est souvent trop lente et trop loin de la réalité du terrain. Nous avons conçu une alternative pragmatique pour scaler vraiment.", - "model.cards": [ + "squad.badge": "Revenue Squad", + "squad.title": "Comment nous travaillons", + "squad.subtitle": "Pour chaque mission, une squad dédiée. Un manager qui construit avec vous au quotidien, un directeur qui tient le cap, et l'expertise data, tech ou IA quand le chantier la demande.", + "squad.roles": [ { - "icon": "users", - "title": "Squad Immergée", - "description": "Nous déployons une squad pluridisciplinaire qui rejoint votre environnement de travail quotidien." + "name": "RevOps Director", + "tag": "Stratégie", + "description": "Tient le cap, aligne les équipes et la direction" }, { - "icon": "zap", - "title": "100% Impact", - "description": "Pas de grands rapports théoriques. Nous délivrons des briques de système prêtes à l'emploi." + "name": "RevOps Manager", + "tag": "Builder", + "description": "Construit avec vos équipes, au quotidien, dans vos outils" }, { - "icon": "target", - "title": "Zéro Junior", - "description": "Sur chaque compte, uniquement des profils seniors ayant déjà scalé des entreprises leaders." + "name": "RevOps Engineer / Analyst", + "tag": "À la demande", + "description": "Data, intégrations et IA, quand le chantier le demande" } ], + "squad.sprint.title": "Sprints de 2 semaines", + "squad.sprint.description": "Pour itérer vite, rester flexible face aux évolutions et livrer de la valeur dès les premières semaines.", + "squad.sprint.week1": "Semaine 1", + "squad.sprint.week2": "Semaine 2", + "squad.sprint.phases.planning": "Planning", + "squad.sprint.phases.build": "Nous construisons, nous testons", + "squad.sprint.phases.review": "Démo et revue", "expertises.title": "Une expertise, des visages", "expertises.subtitle": "Chaque expertise est portée par des personnes qui l'ont pratiquée avant de la conseiller. Vous savez qui vous aurez en face de vous.", "team.title": "Votre équipe Studio", From 15980b219f5c99cd767c9e4c4bccec0acd1ab015 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?je=CC=81ro=CC=82me=20boileux?= Date: Mon, 16 Nov 2026 22:37:20 +0100 Subject: [PATCH 17/24] fix(studio): decorative offices map and distinct photo alts The map repeated the city list for screen readers: it is now hidden from them. The two office photos get their own alt text. --- app/components/studio/offices-section.tsx | 9 ++++----- locales/en/studio.json | 4 ++-- locales/fr/studio.json | 4 ++-- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/app/components/studio/offices-section.tsx b/app/components/studio/offices-section.tsx index c9cc2d2e..60b27053 100644 --- a/app/components/studio/offices-section.tsx +++ b/app/components/studio/offices-section.tsx @@ -41,8 +41,8 @@ const photos = [ { src: '/images/jobs/seminaire.jpeg', altKey: 'offices.photos.seminar' }, { src: '/images/jobs/rooftop.jpeg', altKey: 'offices.photos.rooftop' }, { src: '/images/jobs/cafet.jpeg', altKey: 'offices.photos.cafeteria' }, - { src: '/images/jobs/bureau-1.jpeg', altKey: 'offices.photos.office' }, - { src: '/images/jobs/bureau-2.jpeg', altKey: 'offices.photos.office' }, + { src: '/images/jobs/bureau-1.jpeg', altKey: 'offices.photos.workspace' }, + { src: '/images/jobs/bureau-2.jpeg', altKey: 'offices.photos.meetingRoom' }, ] as const; const land = css({ fill: 'gray.100', stroke: 'gray.300' }); @@ -86,12 +86,11 @@ const photoStyle = css({ }); function FranceMap({ offices }: { offices: Office[] }) { - const { t } = useTranslation('studio'); return (
      + {companies.map((company) => ( +
    • + {company} +
    • + ))} +
    + ); return (

    {t('companies.label')}

    -
    - ( -
      - {companies.map((company) => ( -
    • - {company} -
    • - ))} -
    - )} - /> -
    - setPaused((value) => !value)} - iconOnly - className={css({ justifySelf: 'start' })} - /> + {scrolls ? ( + <> +
    + + renderNames( + cx(names, marqueeWrapWhenStill, className), + hidden, + ) + } + /> +
    + setPaused((value) => !value)} + iconOnly + labels={{ + pause: t('companies.pause'), + play: t('companies.play'), + }} + className={css({ justifySelf: 'start' })} + /> + + ) : ( + renderNames(staticNames) + )}
    ); diff --git a/app/components/studio/hero-section.tsx b/app/components/studio/hero-section.tsx index d8b93e01..ceb539c6 100644 --- a/app/components/studio/hero-section.tsx +++ b/app/components/studio/hero-section.tsx @@ -16,6 +16,7 @@ import { MarqueeTrack, marqueeEdgeFade, marqueeHoverPause, + marqueeWrapWhenStill, } from './studio-marquee'; /** @@ -24,6 +25,9 @@ import { */ const MARQUEE_MIN_MEMBERS = 12; +/** Photos loaded eagerly per row: the ones in view below the CTA. */ +const EAGER_PHOTOS = 4; + // Two rows, tilted, a little wider than the screen (mockup `equipe`). const tiltedRows = css({ display: 'flex', @@ -33,6 +37,8 @@ const tiltedRows = css({ ml: '[-4%]', py: '6', transform: 'rotate(-3deg)', + // Still rows sit flat and inside the screen. + _motionReduce: { w: 'full', ml: '0', transform: 'none' }, }); const rowList = css({ display: 'flex', gap: '5', pr: '5' }); const staticList = css({ @@ -73,14 +79,14 @@ function MemberCards({ members, hidden, label, className }: MemberCardsProps) { aria-label={label} className={className} > - {members.map((member) => ( + {members.map((member, index) => (
  • {getFirstName(member.name)} @@ -178,7 +184,7 @@ export function HeroSection({ members }: HeroSectionProps) {
  • +
  • +

    Dark card

    +

    + tone dark (dark bg, white text) +

    +
  • No-border card

    border false · shadow only

    diff --git a/docs/development/j1-route-review-checklist.md b/docs/development/j1-route-review-checklist.md index c37eed0d..e361c1a8 100644 --- a/docs/development/j1-route-review-checklist.md +++ b/docs/development/j1-route-review-checklist.md @@ -78,6 +78,7 @@ Keeps its style; tokens only. | Team member cards: radius 12px becomes 16px, H3 names in Bornia | | | | Model section tiles: radius 12px becomes 16px | | | | Team photo hover: contrast and brightness stay, only the grayscale goes (#217) | | | +| Podcast share card and "join us" card use the new `card({ tone: 'dark' })`: dark background, white text, as before (#332) | | | ### Technology (`/technology`, `/en/technology`) @@ -134,7 +135,7 @@ Keep their style; not locale-prefixed, so FR views only. | Markdoc prose: `medium` and `small` text styles take the body and small values | | | | Breadcrumb in the `small` text style | | | -### Design system (`/design-system/tokens`, `/design-system/colours`, `/design-system/typography`, `/design-system/forms`) +### Design system (`/design-system/tokens`, `/design-system/colours`, `/design-system/typography`, `/design-system/forms`, `/design-system/cards`) | Change | Views checked | Status | |---|---|---| @@ -142,6 +143,7 @@ Keep their style; not locale-prefixed, so FR views only. | `gradients.ai-text` title readable on white | | | | Coral border sample now renders (#217) | | | | Form section: the Select label now targets the Select trigger (#217) | | | +| Cards page (`/design-system/cards`): the card recipe shows a dark tone sample (#332) | | | ### Not found page (any unknown URL, FR and EN) diff --git a/preset/recipes/card.ts b/preset/recipes/card.ts index e59dbb00..2d406548 100644 --- a/preset/recipes/card.ts +++ b/preset/recipes/card.ts @@ -22,6 +22,7 @@ export const card = defineRecipe({ tone: { white: { bg: 'white' }, tinted: { bg: 'gray.50' }, + dark: { bg: 'dark', color: 'white' }, }, border: { true: { From 8552ed051a18f1f59502a836e2810c1ece1f1222 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?je=CC=81ro=CC=82me=20boileux?= Date: Tue, 17 Nov 2026 08:47:40 +0100 Subject: [PATCH 22/24] refactor(studio): dark cards through the card tone --- app/components/studio/closing-section.tsx | 11 ++++++--- app/components/studio/share-section.tsx | 30 ++++++++++++++--------- 2 files changed, 26 insertions(+), 15 deletions(-) diff --git a/app/components/studio/closing-section.tsx b/app/components/studio/closing-section.tsx index a3b2a8c3..07fa3efc 100644 --- a/app/components/studio/closing-section.tsx +++ b/app/components/studio/closing-section.tsx @@ -24,9 +24,12 @@ const twoDoors = css({ const column = css({ gap: '5', alignItems: 'flex-start' }); // Flat cards on the yellow band, as in the mockup. const door = card({ padding: 'xl', border: false, shadow: 'none' }); -// The card recipe has no dark tone yet (PR #332, open question on the dark -// tone): a static class until it gets one. -const darkTone = css({ bg: 'dark', color: 'white' }); +const darkDoor = card({ + padding: 'xl', + border: false, + shadow: 'none', + tone: 'dark', +}); /** Two closing doors: work with the Studio, or join it. */ export function ClosingSection({ jobsEnabled }: ClosingSectionProps) { @@ -50,7 +53,7 @@ export function ClosingSection({ jobsEnabled }: ClosingSectionProps) {
  • {jobsEnabled && ( -
    +

    {t('closing.join.eyebrow')}

    diff --git a/app/components/studio/share-section.tsx b/app/components/studio/share-section.tsx index a875d93f..a8d153a2 100644 --- a/app/components/studio/share-section.tsx +++ b/app/components/studio/share-section.tsx @@ -9,16 +9,24 @@ import { Container } from '~/components/ui/Container'; import { useLocalizedPathname } from '~/hooks/useLocalizedPathname'; import { url } from '~/utils/url'; -const cardStyle = cx( - card({ padding: 'lg', border: false, shadow: 'none' }), - css({ gap: '3.5' }), -); -// The card recipe has no dark, yellow or sky tone yet: one static class per -// card until it gets a tone variant (PR #332, open question on the dark tone). -const toneStyles = { - podcast: css({ bg: 'dark', color: 'white' }), - club: css({ bg: 'yellow.light' }), - blog: css({ bg: 'sky.light' }), +const cardGap = css({ gap: '3.5' }); +// One static class per card. The card recipe has a dark tone; the yellow and +// sky tints stay inline, as only this section uses them. +const cardStyles = { + podcast: cx( + card({ padding: 'lg', border: false, shadow: 'none', tone: 'dark' }), + cardGap, + ), + club: cx( + card({ padding: 'lg', border: false, shadow: 'none' }), + cardGap, + css({ bg: 'yellow.light' }), + ), + blog: cx( + card({ padding: 'lg', border: false, shadow: 'none' }), + cardGap, + css({ bg: 'sky.light' }), + ), } as const; const linkStyle = cx( button({ variant: 'link' }), @@ -100,7 +108,7 @@ export function ShareSection() { ); return ( -
  • +
  • Date: Tue, 17 Nov 2026 08:47:40 +0100 Subject: [PATCH 23/24] feat(studio): office photos zoom on hover, mockup gallery rows --- app/components/studio/offices-section.tsx | 33 ++++++++++++++++++----- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/app/components/studio/offices-section.tsx b/app/components/studio/offices-section.tsx index b7e05e26..b1cb7ff2 100644 --- a/app/components/studio/offices-section.tsx +++ b/app/components/studio/offices-section.tsx @@ -73,17 +73,33 @@ const gallery = css({ base: 'repeat(2, minmax(0, 1fr))', md: 'repeat(4, minmax(0, 1fr))', }, - gridAutoRows: { base: '[10rem]', md: '[14rem]' }, + // 220px rows from tablet, as in the mockup. + gridAutoRows: { base: '[10rem]', md: '[13.75rem]' }, gap: '4', mt: '6', }); -const widePhoto = css({ gridColumn: 'span 2', gridRow: 'span 2' }); -const photoStyle = css({ - w: 'full', - h: 'full', - objectFit: 'cover', +// The photo zooms in on hover, as in the mockup (0.6s ease, snapped to the +// `slowest` duration and the default curve). No zoom with reduced motion. +const tile = css({ + overflow: 'hidden', borderRadius: '2xl', + _motionSafe: { '&:hover .office-photo': { transform: 'scale(1.05)' } }, }); +const widePhoto = css({ gridColumn: 'span 2', gridRow: 'span 2' }); +const photoStyle = cx( + 'office-photo', + css({ + display: 'block', + w: 'full', + h: 'full', + objectFit: 'cover', + _motionSafe: { + transitionProperty: 'common', + transitionDuration: 'slowest', + transitionTimingFunction: 'default', + }, + }), +); function FranceMap({ offices }: { offices: Office[] }) { return ( @@ -227,7 +243,10 @@ export function OfficesSection() {

      {photos.map((photo, index) => ( -
    • +
    • {t(photo.altKey)} Date: Tue, 17 Nov 2026 08:52:52 +0100 Subject: [PATCH 24/24] fix(studio): unlocalised blog link in the share section --- app/components/studio/share-section.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/components/studio/share-section.tsx b/app/components/studio/share-section.tsx index a8d153a2..b9907216 100644 --- a/app/components/studio/share-section.tsx +++ b/app/components/studio/share-section.tsx @@ -6,7 +6,6 @@ import { css, cx } from '@ocobo/styled-system/css'; import { button, card, section, text } from '@ocobo/styled-system/recipes'; import { Container } from '~/components/ui/Container'; -import { useLocalizedPathname } from '~/hooks/useLocalizedPathname'; import { url } from '~/utils/url'; const cardGap = css({ gap: '3.5' }); @@ -38,7 +37,6 @@ const srOnly = css({ srOnly: true }); /** Podcast, club and blog: what the team shares (`#partage`). */ export function ShareSection() { const { t } = useTranslation(['studio', 'common']); - const getLocalizedPath = useLocalizedPathname(); const items = [ { @@ -61,7 +59,8 @@ export function ShareSection() { key: 'blog', title: t('common:navigation.resources.blog'), description: t('common:navigation.resources.blog.description'), - href: getLocalizedPath(url.blog), + // The blog has no English route. + href: url.blog, external: false, dark: false, },