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
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.
Frame · My role
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.
Frame · Decision 01
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.
courses.brand-a.edu
middleware · getBrandByDomain
x-institution: brand-a
the page renders as brand-a
Frame · Decision 02
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.
Frame · Decision 03
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.
Frame · Decision 04
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 · decisionRewriting the page as server components would have been a big, risky refactor, and the numbers said it wouldn't help.
Frame · Screen · recreated
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.
// Simplified example for this page. Not client code.const UTM_KEYS = ['utm_source', 'utm_medium', 'utm_campaign'] as const;
exportconst readUtms = (search: string) => {
const params = new URLSearchParams(search);
return Object.fromEntries(
UTM_KEYS.flatMap((key) => {
const value = params.get(key);
return value ? [[key, value]] : [];
}),
);
};
// Internal links carry the campaign, so the lead form still// knows where the candidate came from three pages later.exportconst withUtms = (href: string, utms: Record<string, string>) => {
const url = new URL(href, 'https://courses.brand-a.edu');
for (const [key, value] of Object.entries(utms)) {
if (!url.searchParams.has(key)) url.searchParams.set(key, value);
}
return url.pathname + url.search;
};
// Simplified and renamed for this page.exportconst COURSES_PER_PAGE = 12;
// Before: the grid always drew 6 skeletons for a 12-course page,// so every filter change collapsed it to half height and back.exportconst countSkeletons = (total: number | undefined, page: number) => {
if (total === undefined) return COURSES_PER_PAGE;
const left = total - (page - 1) * COURSES_PER_PAGE;
return Math.max(0, Math.min(COURSES_PER_PAGE, left));
};
I simplified and renamed these files for this page. Nothing here is confidential.
Frame · Result
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.
// Simplified example for this page. Not client code.
const UTM_KEYS = ['utm_source', 'utm_medium', 'utm_campaign'] as const;
export const readUtms = (search: string) => {
const params = new URLSearchParams(search);
return Object.fromEntries(
UTM_KEYS.flatMap((key) => {
const value = params.get(key);
return value ? [[key, value]] : [];
}),
);
};
// Internal links carry the campaign, so the lead form still
// knows where the candidate came from three pages later.
export const withUtms = (href: string, utms: Record<string, string>) => {
const url = new URL(href, 'https://courses.brand-a.edu');
for (const [key, value] of Object.entries(utms)) {
if (!url.searchParams.has(key)) url.searchParams.set(key, value);
}
return url.pathname + url.search;
};
// Simplified and renamed for this page.
export const COURSES_PER_PAGE = 12;
// Before: the grid always drew 6 skeletons for a 12-course page,
// so every filter change collapsed it to half height and back.
export const countSkeletons = (total: number | undefined, page: number) => {
if (total === undefined) return COURSES_PER_PAGE;
const left = total - (page - 1) * COURSES_PER_PAGE;
return Math.max(0, Math.min(COURSES_PER_PAGE, left));
};