diff --git a/app/components/design-system/card-recipe-section.tsx b/app/components/design-system/card-recipe-section.tsx index 9587cda8..edc7dab7 100644 --- a/app/components/design-system/card-recipe-section.tsx +++ b/app/components/design-system/card-recipe-section.tsx @@ -25,6 +25,12 @@ export function CardRecipeSection() {

Tinted card

tone tinted (gray.50 bg)

+
  • +

    Dark card

    +

    + tone dark (dark bg, white text) +

    +
  • No-border card

    border false · shadow only

    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/components/studio/closing-section.tsx b/app/components/studio/closing-section.tsx new file mode 100644 index 00000000..07fa3efc --- /dev/null +++ b/app/components/studio/closing-section.tsx @@ -0,0 +1,78 @@ +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', 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' }); +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) { + 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..221fb004 --- /dev/null +++ b/app/components/studio/companies-strip.tsx @@ -0,0 +1,118 @@ +import * as React from 'react'; +import { useTranslation } from 'react-i18next'; + +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, + marqueeWrapWhenStill, +} from './studio-marquee'; + +/** + * Below this many companies, one copy is narrower than the column and the + * loop shows a gap: the names then sit in a static row. + */ +const MARQUEE_MIN_COMPANIES = 6; + +type CompaniesStripProps = { + /** Previous companies of the team, from the member files. */ + companies: string[]; +}; + +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 staticNames = css({ display: 'flex', flexWrap: 'wrap', rowGap: '3' }); +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); + const labelId = React.useId(); + if (companies.length === 0) return null; + const scrolls = companies.length >= MARQUEE_MIN_COMPANIES; + const renderNames = (className: string, hidden = false) => ( +
      + {companies.map((company) => ( +
    • + {company} +
    • + ))} +
    + ); + + return ( +
    + +

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

    + {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/expertises-section.tsx b/app/components/studio/expertises-section.tsx new file mode 100644 index 00000000..70fbd41a --- /dev/null +++ b/app/components/studio/expertises-section.tsx @@ -0,0 +1,146 @@ +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 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({ + _hover: { textDecoration: 'underline' }, + _after: { content: '""', position: 'absolute', inset: '0' }, +}); +const faces = css({ + display: 'flex', + '& > li:not(:first-child)': { ml: '-2.5' }, +}); + +/** + * 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, 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')} +

    +

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

    +
    + +
      + {challenges.map((challenge) => { + const experts = members.filter( + (member) => member.challenge === challenge.key, + ); + return ( +
    • + + {challenge.name} + +

      + + {challenge.tagline ?? challenge.name} + +

      + {experts.length > 0 && ( +
      + +

      + {names.format( + experts.map((expert) => getFirstName(expert.name)), + )} +

      +
      + )} +
    • + ); + })} +
    +
    +
    + ); +} diff --git a/app/components/studio/hero-section.tsx b/app/components/studio/hero-section.tsx index b476f61a..ceb539c6 100644 --- a/app/components/studio/hero-section.tsx +++ b/app/components/studio/hero-section.tsx @@ -1,111 +1,207 @@ -import { ChevronDown } from 'lucide-react'; -import { Trans, useTranslation } from 'react-i18next'; +import { ArrowRight } from 'lucide-react'; +import * as React from 'react'; +import { useTranslation } from 'react-i18next'; -import { css } from '@ocobo/styled-system/css'; -import { center, flex } from '@ocobo/styled-system/patterns'; -import { badge, text } from '@ocobo/styled-system/recipes'; +import { css, cx } from '@ocobo/styled-system/css'; +import { badge, button, 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 { 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'; +import { + MarqueePauseButton, + MarqueeTrack, + marqueeEdgeFade, + marqueeHoverPause, + marqueeWrapWhenStill, +} from './studio-marquee'; -export const HeroSection = () => { +/** + * 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; + +/** 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', + flexDirection: 'column', + gap: '6', + w: '[108%]', + 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({ + display: 'flex', + flexWrap: 'wrap', + justifyContent: 'center', + gap: '5', +}); +const memberCard = css({ + flex: 'none', + display: 'flex', + flexDirection: 'column', + alignItems: 'center', + gap: '4', + w: '52', + px: '4', + pt: '7', + pb: '5', + bg: 'gray.100', + borderRadius: '2xl', + textAlign: 'center', +}); +const cardName = text({ variant: 'display-md-black' }); +const cardRole = text({ variant: 'small', color: 'muted' }); + +type MemberCardsProps = { + members: StudioMemberCard[]; + /** A marquee copy: hidden from assistive tech, photos load lazily. */ + hidden?: boolean; + label?: string; + className: string; +}; + +function MemberCards({ members, hidden, label, className }: MemberCardsProps) { + return ( +
      + {members.map((member, index) => ( +
    • + + + {getFirstName(member.name)} + {member.role} + +
    • + ))} +
    + ); +} + +type HeroSectionProps = { + members: StudioMemberCard[]; +}; + +/** + * 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. + */ +export function HeroSection({ members }: HeroSectionProps) { const { t } = useTranslation('studio'); - const getLocalizedPath = useLocalizedPathname(); + 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 (
    -
    - +
    + {t('hero.badge')} - -

    +

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

    -

    - , - }} - /> + {t('hero.subtitle')}

    + + {t('hero.cta')} +
    + - + {members.length > 0 && members.length < MARQUEE_MIN_MEMBERS && ( + + + + )} -
    + {members.length >= MARQUEE_MIN_MEMBERS && ( + <>
    - {t('hero.quote')} +
    + {rows.map((row) => ( +
    + ( +
    + ))} +
    - - - {t('hero.cta')} - -
    - -
    - -
    - + setPaused((value) => !value)} + /> + + + )}
    ); -}; +} diff --git a/app/components/studio/model-section.tsx b/app/components/studio/model-section.tsx deleted file mode 100644 index 0c6f26bc..00000000 --- a/app/components/studio/model-section.tsx +++ /dev/null @@ -1,111 +0,0 @@ -import { 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 { Container } from '../ui/Container'; - -const ICON_MAP: Record = { - users: Users, - zap: Zap, - target: Target, -}; - -interface ModelCard { - icon: string; - title: string; - description: string; - hoverColor: string; -} - -export const 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; - - return ( -
    -
    - -
    -

    - {card.title} -

    -

    - {card.description} -

    -
    - ); - })} -
    -
    -
    - ); -}; diff --git a/app/components/studio/offices-section.tsx b/app/components/studio/offices-section.tsx new file mode 100644 index 00000000..b1cb7ff2 --- /dev/null +++ b/app/components/studio/offices-section.tsx @@ -0,0 +1,262 @@ +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'; + +/** Anchor of the offices section, as in the prototype. */ +const OFFICES_ID = 'vie'; + +type Office = { + city: string; + note: string; +}; + +// 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.workspace' }, + { src: '/images/jobs/bureau-2.jpeg', altKey: 'offices.photos.meetingRoom' }, +] 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))', + }, + // 220px rows from tablet, as in the mockup. + gridAutoRows: { base: '[10rem]', md: '[13.75rem]' }, + gap: '4', + mt: '6', +}); +// 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 ( + + ); +} + +/** + * 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[]; + + return ( +
    + +
    +

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

    +

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

    +
    + +
    +
    +

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

    +

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

    +
      + {offices.map((office, index) => ( +
    • +
    • + ))} +
    +
    + +
    + +
      + {photos.map((photo, index) => ( +
    • + {t(photo.altKey)} +
    • + ))} +
    +
    +
    + ); +} diff --git a/app/components/studio/share-section.tsx b/app/components/studio/share-section.tsx new file mode 100644 index 00000000..b9907216 --- /dev/null +++ b/app/components/studio/share-section.tsx @@ -0,0 +1,156 @@ +import { ArrowRight } from 'lucide-react'; +import { useTranslation } from 'react-i18next'; +import { Link } from 'react-router'; + +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 { url } from '~/utils/url'; + +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' }), + // Reads the card text colour, white on the dark card. + css({ color: '[inherit]', mt: 'auto', pt: '4', alignSelf: 'flex-start' }), +); +const srOnly = css({ srOnly: true }); + +/** Podcast, club and blog: what the team shares (`#partage`). */ +export function ShareSection() { + const { t } = useTranslation(['studio', 'common']); + + const items = [ + { + key: 'podcast', + title: t('common:navigation.resources.podcasts'), + description: t('common:navigation.resources.podcasts.description'), + href: url.podcasts, + external: true, + dark: true, + }, + { + key: 'club', + title: t('common:navigation.resources.club'), + description: t('common:navigation.resources.club.description'), + href: url.modernRevenueClub, + external: true, + dark: false, + }, + { + key: 'blog', + title: t('common:navigation.resources.blog'), + description: t('common:navigation.resources.blog.description'), + // The blog has no English route. + href: url.blog, + external: false, + dark: false, + }, + ] as const; + + return ( +
    + +
    +

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

    +

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

    +
    + +
      + {items.map(({ key, title, description, href, external, dark }) => { + const cta = ( + <> + {t(`share.${key}.cta`)} + {title} +
    +
    +
    + ); +} 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/components/studio/studio-marquee.tsx b/app/components/studio/studio-marquee.tsx new file mode 100644 index 00000000..d6321e45 --- /dev/null +++ b/app/components/studio/studio-marquee.tsx @@ -0,0 +1,148 @@ +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', + // No motion: the one visible copy fits the width and wraps. + _motionReduce: { animation: '[none]', w: 'full' }, +}); +// 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, except under reduced motion. */ +export const marqueeEdgeFade = css({ + overflow: 'hidden', + maskImage: + '[linear-gradient(90deg, transparent 0, black 8%, black 92%, transparent 100%)]', + _motionReduce: { maskImage: '[none]' }, +}); + +/** + * Goes on the list inside a track: under reduced motion, its items wrap so + * that none is clipped. + */ +export const marqueeWrapWhenStill = css({ + _motionReduce: { flexWrap: 'wrap', justifyContent: 'center' }, +}); + +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; + /** + * Names the marquee, when the page has more than one, so that each + * button has its own name. + */ + labels?: { pause: string; play: string }; + 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, + labels, + className, +}: MarqueePauseButtonProps) { + const { t } = useTranslation('studio'); + const Icon = paused ? Play : Pause; + const { pause, play } = labels ?? { + pause: t('marquee.pause'), + play: t('marquee.play'), + }; + const label = paused ? play : pause; + + return ( + + ); +} 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.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/components/studio/team-section.tsx b/app/components/studio/team-section.tsx index b57427ac..faae6205 100644 --- a/app/components/studio/team-section.tsx +++ b/app/components/studio/team-section.tsx @@ -1,133 +1,97 @@ -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/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/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), diff --git a/app/modules/studio-team.ts b/app/modules/studio-team.ts new file mode 100644 index 00000000..ded61a40 --- /dev/null +++ b/app/modules/studio-team.ts @@ -0,0 +1,74 @@ +/** + * 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, + buildExpertCard, +} 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'); + const members = getActiveMembers(registry).map((member) => { + const expert = resolveExpertFields(member, tools, reportTool, reportDrop); + return { + ...buildExpertCard(expert, lang), + 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.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; }); }); diff --git a/app/routes/_main.($lang).studio.tsx b/app/routes/_main.($lang).studio.tsx index 45d88897..cb699cdc 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 { SquadSection } from '~/components/studio/squad-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/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] ?? ''; +} diff --git a/docs/development/component-inventory.md b/docs/development/component-inventory.md index 83ce4168..6f1085bc 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 | +| **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 | +| **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 | 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/locales/en/studio.json b/locales/en/studio.json index e9db5afc..2b71b28d 100644 --- a/locales/en/studio.json +++ b/locales/en/studio.json @@ -1,44 +1,76 @@ { "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.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", - "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": [ + "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", + "companies.label": "Before Ocobo, we worked at", + "companies.pause": "Pause the companies animation", + "companies.play": "Resume the companies animation", + "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.", - "hoverColor": "mint" + "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.", - "hoverColor": "sky" + "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.", - "hoverColor": "yellow" + "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", "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.photos.seminar": "The Ocobo seminar", + "offices.photos.rooftop": "The rooftop", + "offices.photos.cafeteria": "The cafeteria", + "offices.photos.workspace": "The workspace", + "offices.photos.meetingRoom": "The meeting room", + "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", + "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..46f79d57 100644 --- a/locales/fr/studio.json +++ b/locales/fr/studio.json @@ -1,44 +1,76 @@ { "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.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", - "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": [ + "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", + "companies.label": "Avant Ocobo, nous étions chez", + "companies.pause": "Mettre en pause le défilement des entreprises", + "companies.play": "Reprendre le défilement des entreprises", + "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.", - "hoverColor": "mint" + "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.", - "hoverColor": "sky" + "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.", - "hoverColor": "yellow" + "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", "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.photos.seminar": "Le séminaire Ocobo", + "offices.photos.rooftop": "Le rooftop", + "offices.photos.cafeteria": "La cafétéria", + "offices.photos.workspace": "L'espace de travail", + "offices.photos.meetingRoom": "La salle de réunion", + "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", + "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" 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: {