diff --git a/app/components/studio/companies-strip.tsx b/app/components/studio/companies-strip.tsx index 221fb004..b7010112 100644 --- a/app/components/studio/companies-strip.tsx +++ b/app/components/studio/companies-strip.tsx @@ -14,16 +14,34 @@ import { marqueeWrapWhenStill, } from './studio-marquee'; +type Company = { + name: string; + /** Trimmed logo, 96px high, under `public/images/companies/`. */ + logo: string; + /** Intrinsic width of the file, so the track keeps its length on load. */ + width: number; +}; + +const LOGO_HEIGHT = 96; + /** - * 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. + * Former employers of the team, in mockup order. Logos supplied by Ocobo + * (Slack, 2026-11-17). Trustpair and Yousign, in the mockup, had no logo. */ -const MARQUEE_MIN_COMPANIES = 6; - -type CompaniesStripProps = { - /** Previous companies of the team, from the member files. */ - companies: string[]; -}; +const COMPANIES: readonly Company[] = [ + { name: 'Deliveroo', logo: '/images/companies/deliveroo.webp', width: 360 }, + { name: 'SumUp', logo: '/images/companies/sumup.webp', width: 331 }, + { name: 'Qonto', logo: '/images/companies/qonto.webp', width: 336 }, + { name: 'PayFit', logo: '/images/companies/payfit.webp', width: 235 }, + { name: 'Doctolib', logo: '/images/companies/doctolib.webp', width: 396 }, + { name: 'Aviv Group', logo: '/images/companies/aviv-group.webp', width: 597 }, + { name: 'Mirakl', logo: '/images/companies/mirakl.webp', width: 484 }, + { name: 'Lucca', logo: '/images/companies/lucca.webp', width: 293 }, + { name: 'Zei', logo: '/images/companies/zei.webp', width: 205 }, + { name: 'TheFork', logo: '/images/companies/thefork.webp', width: 484 }, + { name: 'Spendesk', logo: '/images/companies/spendesk.webp', width: 582 }, + { name: 'YouTrust', logo: '/images/companies/youtrust.webp', width: 416 }, +]; const strip = css({ display: 'grid', @@ -31,34 +49,47 @@ const strip = css({ 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', - }), -); +// Rows only form under reduced motion, when the list wraps. +const logos = css({ display: 'flex', alignItems: 'center', rowGap: '6' }); +const item = css({ + display: 'flex', + alignItems: 'center', + flex: 'none', + px: '9', + borderLeftWidth: '1px', + borderColor: 'gray.200', +}); +const logo = css({ + h: '7', + w: 'auto', + maxW: '[11rem]', + objectFit: 'contain', + filter: 'auto', + grayscale: '1', + opacity: '0.6', +}); /** - * "Before Ocobo, we worked at": the label on the left, then the team's - * previous companies on one scrolling line, with a pause button. + * "Before Ocobo, we worked at": the label on the left, then the logos of + * the team's former employers on one scrolling line, with a pause button. */ -export function CompaniesStrip({ companies }: CompaniesStripProps) { +export function CompaniesStrip() { 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) => ( + const renderLogos = (className: string, hidden = false) => ( @@ -69,6 +100,8 @@ export function CompaniesStrip({ companies }: CompaniesStripProps) { aria-labelledby={labelId} className={css({ py: '8', + // The mockup keeps white space before the dark stats band. + mb: { base: '16', md: '20' }, borderTopWidth: '1px', borderBottomWidth: '1px', borderColor: 'line', @@ -84,34 +117,25 @@ export function CompaniesStrip({ companies }: CompaniesStripProps) { > {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) - )} +
+ + renderLogos(cx(logos, marqueeWrapWhenStill, className), hidden) + } + /> +
+ setPaused((value) => !value)} + iconOnly + labels={{ + pause: t('companies.pause'), + play: t('companies.play'), + }} + className={css({ justifySelf: 'start' })} + /> ); diff --git a/app/components/studio/stats-section.tsx b/app/components/studio/stats-section.tsx new file mode 100644 index 00000000..ed28757f --- /dev/null +++ b/app/components/studio/stats-section.tsx @@ -0,0 +1,70 @@ +import * as React from 'react'; +import { useTranslation } from 'react-i18next'; + +import { css, cx } from '@ocobo/styled-system/css'; +import { section, text } from '@ocobo/styled-system/recipes'; + +import { Container } from '~/components/ui/Container'; + +type Stat = { + value: string; + label: string; +}; + +// One static class per stat, in copy order: yellow, mint, sky. +const valueTones = [ + css({ color: 'yellow' }), + css({ color: 'mint' }), + css({ color: 'sky' }), +]; + +/** + * Team figures on a dark band, three columns from tablet width, one below. + */ +export function StatsSection() { + const { t } = useTranslation('studio'); + const stats = t('stats.list', { returnObjects: true }) as Stat[]; + const titleId = React.useId(); + + return ( +
+ +

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

+
    + {stats.map((stat, index) => ( +
  • +

    + {stat.value} +

    +

    + {stat.label} +

    +
  • + ))} +
+
+
+ ); +} diff --git a/app/modules/studio-team.ts b/app/modules/studio-team.ts index ded61a40..b34ee73f 100644 --- a/app/modules/studio-team.ts +++ b/app/modules/studio-team.ts @@ -33,24 +33,10 @@ export type StudioMemberCard = ExpertCard & { 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, @@ -70,5 +56,5 @@ export function buildStudioTeam( ), }; }); - return { members, previousCompanies: uniqueCompanies(members) }; + return { members }; } diff --git a/app/routes/_main.($lang).studio.test.ts b/app/routes/_main.($lang).studio.test.ts index 5b8784cb..fb066c06 100644 --- a/app/routes/_main.($lang).studio.test.ts +++ b/app/routes/_main.($lang).studio.test.ts @@ -5,8 +5,7 @@ * 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. + * 3. The i18n, member and tool loads fire in parallel. */ import { afterEach, describe, expect, it, vi } from 'vitest'; @@ -155,8 +154,6 @@ describe('studio loader', () => { // A placeholder contribution drops; the card stays. expect(carol.contribution).toBeNull(); expect(carol.tools).toEqual(['HubSpot']); - - expect(data.previousCompanies).toEqual(['Qonto', 'Alan', 'Payfit']); }); it('resolves the cards in English on /en', async () => { diff --git a/app/routes/_main.($lang).studio.tsx b/app/routes/_main.($lang).studio.tsx index cb699cdc..29207e3f 100644 --- a/app/routes/_main.($lang).studio.tsx +++ b/app/routes/_main.($lang).studio.tsx @@ -11,6 +11,7 @@ import { HeroSection } from '~/components/studio/hero-section'; import { OfficesSection } from '~/components/studio/offices-section'; import { ShareSection } from '~/components/studio/share-section'; import { SquadSection } from '~/components/studio/squad-section'; +import { StatsSection } from '~/components/studio/stats-section'; import { TeamSection } from '~/components/studio/team-section'; import i18nServer from '~/localization/i18n.server'; import { createHybridLoader } from '~/modules/cache'; @@ -32,14 +33,13 @@ export const loader = createHybridLoader(async (args: LoaderFunctionArgs) => { loadMemberRegistry(), loadToolRegistry(), ]); - const { members, previousCompanies } = buildStudioTeam(registry, tools, lang); + const { members } = buildStudioTeam(registry, tools, lang); return { title: t('meta.title'), description: t('meta.description'), ogImageSrc: getImageOgFullPath('studio', args.request.url), members, - previousCompanies, jobsEnabled: isPageEnabled('jobs'), lang, }; @@ -58,13 +58,13 @@ export const meta: MetaFunction = ({ data, params }) => { }; export default function StudioPage() { - const { members, previousCompanies, jobsEnabled } = - useLoaderData(); + const { members, jobsEnabled } = useLoaderData(); return (
- + + diff --git a/docs/development/component-inventory.md b/docs/development/component-inventory.md index 158dd49b..33dfb0aa 100644 --- a/docs/development/component-inventory.md +++ b/docs/development/component-inventory.md @@ -128,7 +128,8 @@ The OCOBO website implements a comprehensive component library built on Ark UI p | 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 | +| **CompaniesStrip** | `companies-strip.tsx` | Scrolling logos of the team's former employers, a fixed list with files in `public/images/companies/` | Studio-specific | +| **StatsSection** | `stats-section.tsx` | Team figures on a dark band, copy in `stats.list` | 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 | diff --git a/locales/en/studio.json b/locales/en/studio.json index 2b71b28d..217b77be 100644 --- a/locales/en/studio.json +++ b/locales/en/studio.json @@ -13,6 +13,18 @@ "companies.label": "Before Ocobo, we worked at", "companies.pause": "Pause the companies animation", "companies.play": "Resume the companies animation", + "stats.title": "The team in figures", + "stats.list": [ + { + "value": "20", + "label": "people who worked in operations before consulting" + }, + { + "value": "25+", + "label": "scale-ups and large companies that trained our team" + }, + { "value": "60+", "label": "companies supported" } + ], "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.", diff --git a/locales/fr/studio.json b/locales/fr/studio.json index 46f79d57..c40ece99 100644 --- a/locales/fr/studio.json +++ b/locales/fr/studio.json @@ -13,6 +13,18 @@ "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", + "stats.title": "L'équipe en chiffres", + "stats.list": [ + { + "value": "20", + "label": "personnes, passées par l'opérationnel avant le conseil" + }, + { + "value": "+25", + "label": "scale-ups et grands comptes qui ont formé nos équipes" + }, + { "value": "+60", "label": "entreprises accompagnées" } + ], "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.", diff --git a/public/images/companies/aviv-group.webp b/public/images/companies/aviv-group.webp new file mode 100644 index 00000000..2d39c135 Binary files /dev/null and b/public/images/companies/aviv-group.webp differ diff --git a/public/images/companies/deliveroo.webp b/public/images/companies/deliveroo.webp new file mode 100644 index 00000000..58426d45 Binary files /dev/null and b/public/images/companies/deliveroo.webp differ diff --git a/public/images/companies/doctolib.webp b/public/images/companies/doctolib.webp new file mode 100644 index 00000000..394ff792 Binary files /dev/null and b/public/images/companies/doctolib.webp differ diff --git a/public/images/companies/lucca.webp b/public/images/companies/lucca.webp new file mode 100644 index 00000000..5ccd34df Binary files /dev/null and b/public/images/companies/lucca.webp differ diff --git a/public/images/companies/mirakl.webp b/public/images/companies/mirakl.webp new file mode 100644 index 00000000..0dbb9d7d Binary files /dev/null and b/public/images/companies/mirakl.webp differ diff --git a/public/images/companies/payfit.webp b/public/images/companies/payfit.webp new file mode 100644 index 00000000..58d16fc0 Binary files /dev/null and b/public/images/companies/payfit.webp differ diff --git a/public/images/companies/qonto.webp b/public/images/companies/qonto.webp new file mode 100644 index 00000000..efa70778 Binary files /dev/null and b/public/images/companies/qonto.webp differ diff --git a/public/images/companies/spendesk.webp b/public/images/companies/spendesk.webp new file mode 100644 index 00000000..f0465af3 Binary files /dev/null and b/public/images/companies/spendesk.webp differ diff --git a/public/images/companies/sumup.webp b/public/images/companies/sumup.webp new file mode 100644 index 00000000..15f005e8 Binary files /dev/null and b/public/images/companies/sumup.webp differ diff --git a/public/images/companies/thefork.webp b/public/images/companies/thefork.webp new file mode 100644 index 00000000..61385035 Binary files /dev/null and b/public/images/companies/thefork.webp differ diff --git a/public/images/companies/youtrust.webp b/public/images/companies/youtrust.webp new file mode 100644 index 00000000..f8148afd Binary files /dev/null and b/public/images/companies/youtrust.webp differ diff --git a/public/images/companies/zei.webp b/public/images/companies/zei.webp new file mode 100644 index 00000000..cda92b42 Binary files /dev/null and b/public/images/companies/zei.webp differ