thiago-menezes/ career.fig
PTArticlesRésumé
Case 03 · Grupo Ser

One course platform for six institutions.

Since September 2025 I've been building the site where six institutions of Grupo Ser sell their courses. It started as an MVP, and today every unit of the group is on it.

Role
Full-stack Developer and UX/UI, frontend-led
Period
Sep 2025 to now
Team
Me, one infra developer and an outsourced API vendor
Stack
Next.js, React, TypeScript, React Query, Zod, Strapi, Playwright

ProblemEvery offer from every unit comes in one spreadsheet.

The course offers come from a pricing tool that pulls from TOTVS and delivers one CSV with every offer from every unit. Each institution has its own domain and its own look, and the hubs belong to one brand but also sell offers from other brands.

My roleMost of the code, and the tests around it.

  • I'm the only developer on the product. I do the full-stack work and also the UX and UI. One infra developer takes care of domains and publishing, and an outsourced company provides the pricing and campus-offer APIs.
  • I built the backend that pulls the offer data, and also the CSV processing and the landing page processing.
  • I built the geolocation that preselects the city and campus closest to the candidate.
  • 93% of the frontend commits and 80% of the back-office commits are mine. The project has 117 unit tests and 9 end-to-end tests.

DecisionThe server decides the brand.

The middleware reads the domain of the request and picks the brand before anything renders. Nothing switches brands in the browser, so a candidate never sees the wrong colors, not even for one frame.

  1. courses.brand-a.edu
  2. middleware · getBrandByDomain
  3. x-institution: brand-a
  4. the page renders as brand-a

DecisionOne back-office for every brand.

The content we add on top of the offers lives in a single back-office. When brands share a piece of content, it's written once, and a hub can sell another brand's offer and still belong to its own brand.

DecisionSEO and campaign tracking all the way to the lead form.

Every page has metadata and JSON-LD, there's a strong cache in front, and the UTM parameters are kept from the landing page all the way to the lead form. That way the campaign still gets the credit after the candidate browses around the site.

DecisionI measured before refactoring.

A report said the course listing was the worst page on the site. Before I touched any code I measured the build, and the listing ships about the same amount of JavaScript as the home page.

  • DroppedThe whole page is a client component. That's true, but it isn't what makes it slow.
  • DroppedChained API calls slow down the first byte. But the page is prerendered.
  • ConfirmedLayout shift on refetch: the grid drew 6 skeletons for a 12-course page. I fixed it.
  • DroppedCourse images without sizes. The cards don't have images.
  • SeparateTag manager weight. It's real, but it's on every page, so it's tracked on its own.
Comment from Thiago
Thiago · decision
Rewriting the page as server components would have been a big, risky refactor, and the numbers said it wouldn't help.

ScreenYou can try three of these decisions here.

Switch the brand to see one component in six themes. Refetch with the old skeleton count and then with the new one, and watch the grid height. Then click a course and see the campaign go with it to the next page.

Brand
Skeletons
courses.brand-a.edu/?utm_source=instagram&utm_campaign=fall-intake
Brand A12.54:1 · AA
Press Refetch to measure the grid.Lead form gets: utm_source=instagram, utm_campaign=fall-intake

I recreated this with fake data and replaced the brand names. There's no client code, assets or copy in it.

CodeThe files behind these decisions.

// Simplified and renamed for this page.
export type BrandSlug = 'brand-a' | 'brand-b' | 'portal';

type Brand = {
  slug: BrandSlug;
  domain: string | null;
  domainAliases: string[];
  indexable: boolean;
};

export const BRANDS: Record<BrandSlug, Brand> = {
  'brand-a': { slug: 'brand-a', domain: 'courses.brand-a.edu', domainAliases: [], indexable: true },
  'brand-b': { slug: 'brand-b', domain: 'courses.brand-b.edu', domainAliases: [], indexable: true },
  portal: { slug: 'portal', domain: null, domainAliases: [], indexable: false },
};

export const getBrandByDomain = (host: string): Brand | null => {
  const name = host.toLowerCase().split(':')[0];
  return (
    Object.values(BRANDS).find(
      (b) => b.domain === name || b.domainAliases.includes(name),
    ) ?? null
  );
};

I simplified and renamed these files for this page. Nothing here is confidential.

ResultFrom a proof of concept to every course sale.

226releases in 34 weeks
6institutions on one platform, with every unit on it
93%of the frontend commits, and 80% of the back-office ones
117unit tests
9end-to-end tests

Many separate sites became one site per brand. It started as a proof of concept, it's in production now, and every course sale of the group goes through it.

Shortcuts

Tab, arrows
Move between frames
Enter
Open a case
Esc
Back to the canvas
L
List view
D
Dev Mode
C
Show or hide comments
R
Résumé
+ / −
Zoom
Shift 1 / 2
Fit all / fit selection