Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
138 changes: 81 additions & 57 deletions app/components/studio/companies-strip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,51 +14,82 @@ 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',
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',
}),
);
// 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) => (
<ul aria-hidden={hidden || undefined} className={className}>
{companies.map((company) => (
<li key={company} className={name}>
{company}
{COMPANIES.map((company) => (
<li key={company.name} className={item}>
<img
src={company.logo}
alt={hidden ? '' : company.name}
width={company.width}
height={LOGO_HEIGHT}
className={logo}
// Eager: lazy copies outside the mask would pop in while scrolling.
decoding="async"
/>
</li>
))}
</ul>
Expand All @@ -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',
Expand All @@ -84,34 +117,25 @@ export function CompaniesStrip({ companies }: CompaniesStripProps) {
>
{t('companies.label')}
</p>
{scrolls ? (
<>
<div className={cx(marqueeEdgeFade, marqueeHoverPause)}>
<MarqueeTrack
direction="left"
paused={paused}
renderCopy={({ hidden, className }) =>
renderNames(
cx(names, marqueeWrapWhenStill, className),
hidden,
)
}
/>
</div>
<MarqueePauseButton
paused={paused}
onToggle={() => setPaused((value) => !value)}
iconOnly
labels={{
pause: t('companies.pause'),
play: t('companies.play'),
}}
className={css({ justifySelf: 'start' })}
/>
</>
) : (
renderNames(staticNames)
)}
<div className={cx(marqueeEdgeFade, marqueeHoverPause)}>
<MarqueeTrack
direction="left"
paused={paused}
renderCopy={({ hidden, className }) =>
renderLogos(cx(logos, marqueeWrapWhenStill, className), hidden)
}
/>
</div>
<MarqueePauseButton
paused={paused}
onToggle={() => setPaused((value) => !value)}
iconOnly
labels={{
pause: t('companies.pause'),
play: t('companies.play'),
}}
className={css({ justifySelf: 'start' })}
/>
</Container>
</section>
);
Expand Down
70 changes: 70 additions & 0 deletions app/components/studio/stats-section.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<section aria-labelledby={titleId} className={section({ bg: 'dark' })}>
<Container>
<h2 id={titleId} className={css({ srOnly: true })}>
{t('stats.title')}
</h2>
<ul
className={css({
display: 'grid',
gridTemplateColumns: {
base: '1fr',
md: 'repeat(3, minmax(0, 1fr))',
},
gap: { base: '10', md: '12' },
textAlign: 'center',
})}
>
{stats.map((stat, index) => (
<li key={stat.label}>
<p
className={cx(
text({ variant: 'display-xl' }),
valueTones[index % valueTones.length],
)}
>
{stat.value}
</p>
<p
className={cx(
text({ variant: 'body' }),
css({ mt: '3', color: 'white/75', fontWeight: 'medium' }),
)}
>
{stat.label}
</p>
</li>
))}
</ul>
</Container>
</section>
);
}
16 changes: 1 addition & 15 deletions app/modules/studio-team.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string>();
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,
Expand All @@ -70,5 +56,5 @@ export function buildStudioTeam(
),
};
});
return { members, previousCompanies: uniqueCompanies(members) };
return { members };
}
5 changes: 1 addition & 4 deletions app/routes/_main.($lang).studio.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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 () => {
Expand Down
10 changes: 5 additions & 5 deletions app/routes/_main.($lang).studio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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,
};
Expand All @@ -58,13 +58,13 @@ export const meta: MetaFunction<typeof loader> = ({ data, params }) => {
};

export default function StudioPage() {
const { members, previousCompanies, jobsEnabled } =
useLoaderData<typeof loader>();
const { members, jobsEnabled } = useLoaderData<typeof loader>();

return (
<div>
<HeroSection members={members} />
<CompaniesStrip companies={previousCompanies} />
<CompaniesStrip />
<StatsSection />
<SquadSection />
<ExpertisesSection members={members} />
<TeamSection members={members} />
Expand Down
3 changes: 2 additions & 1 deletion docs/development/component-inventory.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
12 changes: 12 additions & 0 deletions locales/en/studio.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
12 changes: 12 additions & 0 deletions locales/fr/studio.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
Binary file added public/images/companies/aviv-group.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/companies/deliveroo.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/companies/doctolib.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/companies/lucca.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/companies/mirakl.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/companies/payfit.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/companies/qonto.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/companies/spendesk.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/companies/sumup.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/companies/thefork.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/companies/youtrust.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/companies/zei.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading