← WorkCase Study — Client Project
Case StudyMarketing · Booking · CMS

Espace
Sport

Votre Espace fitness, bien-être & padel.

A premium multi-activity sports club in Verberie — fitness, bien-être and padel under one roof, open every day of the year. Shipped as a single deployable full-stack product: marketing site, integrated booking engine, and a CMS-managed back-office. Designed and built solo.

Role
Design & full-stack
Type
Booking platform
Platform
Web · Responsive
Status
Live — Verberie
espacesports.com
Hero sectionhero.png
7J/7
Open every day
2000 m²
Across three universes
+10
Experts & coaches
3
Univers under one roof
01The Brief
Photo — the clubstudio.jpg — 2000 m², three universes

Far more than a brochure

One address,
three worlds.

Espace Sport is a premium club in the Oise valley, an hour north of Paris. In a landscape of budget chains and single-sport clubs, the founders wanted a single address where fitness, wellness and padel coexist — open every day of the year.

The brief was threefold: a high-design marketing presence worthy of a premium club, an integrated booking engine backed by real business logic, and a CMS-managed back-office so the client owns their content from day one. No third-party widget. No template.

« Votre Espace fitness, bien-être & padel. »

The club’s own words
02Three Universes

Each world,
its own identity.

Fitness, bien-être and padel each carry a distinct accent, consistent across every section, page and component — so the brand never blurs as you move through the site.

Univers 01

Fitness

A 1000 m² gym with Technogym machines, dedicated musculation and cardio areas, and a full programme of group classes.

1000 m² · Technogym

Univers 02

Bien-être

Sauna, massage, osteopathy and dietitian appointments — a recovery and restoration zone, not just a spa annex.

Sauna · Massage · Ostéo

Univers 03

Padel

Two indoor courts with the club’s signature purple surface and premium equipment — from first-timers to competitive players.

2 indoor courts · signature purple

03The Idea

Not a widget wrapper.
A product.

Espace Sport is purpose-built to handle the full lifecycle from discovery to payment confirmation. The entire platform — marketing pages, custom booking API, admin panel and database layer — ships as one Next.js application, with no separate backend service to operate or maintain.

What Espace Sport is not

  • A third-party booking widget wrapper (no Bsport, no Mindbody)
  • A generic gym brochure built on a template
  • A separate frontend + backend to operate
  • A social network or member community
  • An e-commerce store
04The Sections

Nine sections,
one platform.

01

Hero

A full-screen dark hero — tagline in bold display type over photography at 50% opacity — with “Réserver maintenant” and “Découvrir les espaces” CTAs and a four-fact stats strip.

02

Services bento

An asymmetric grid of three universe cards — Fitness, Bien-être, Padel — each with its own accent, photography and link through to a dedicated service section.

03

Nos valeurs

Six commitments on a hover-revealing grid: open 7/7, Technogym equipment, certified coaching, performance + recovery, accessibility for all levels, continuous improvement.

04

Partenaires

A dark partner-logos strip — “Ils avancent avec nous” — surfacing the club’s commercial and institutional partnerships.

05

Nos services

Dedicated CMS-managed pages per universe (/nos-services/fitness · bien-etre · padel · les-espaces · les-cours · les-coach) — zones, equipment, courses and coach profiles.

06

Réservation

The centrepiece: a four-step animated wizard from service selection to Stripe Checkout, with no external redirect.

07

Planning

A weekly group-class schedule built from the CMS, filterable by category — protected by middleware so only authenticated members reach it.

08

Abonnements

Four membership tiers — FITNESS, DYNAMIQUE, PREMIUM, ESPACE — rendered dynamically from Payload with their own benefit stacks and Stripe payment links.

09

Contact & comptes

A validated contact form (React Hook Form + Zod → Nodemailer) plus full auth: login, Google OAuth, password reset, profile and security pages.

05The Booking Wizard
The centrepiece

From intent to confirmed

A four-step animated flow — service, date & time, authentication, payment — that converts intent into a confirmed booking with Stripe Checkout and zero external redirects. Step transitions are animated with Framer Motion; state lives in a single BookingFlowState object lifted to the page.

Booking status machine

pending_paymentconfirmedfailed_paymentcancelledcompleted

Four steps

1

Service selector

Browse and pick a bookable service — coaching, massage, padel course — each CMS-managed, none hardcoded.

2

Date & time

A calendar and time slots built from real coach availability, with buffer times and booking lead times enforced server-side.

3

Authentication gate

Login, register, or continue with Google OAuth — shown only when the visitor is not already authenticated.

4

Summary + Stripe

Price confirmation, optional coupon code, then Stripe Checkout. On success the booking transitions to confirmed.

espacesports.com/reservation
Réservation — service selectorreservation.png
espacesports.com/planning
Planning — weekly scheduleplanning.png
06The Site

Dark, premium, immersive — full-bleed photography behind bold display type, with each universe announced by its own accent. A club, not a SaaS dashboard.

espacesports.com
Hero — Votre Espacehero.png
espacesports.com/nos-services
Fitnessfitness.png
espacesports.com/nos-services
Bien-êtrebien-etre.png
espacesports.com/nos-services
Padelpadel.png

Responsive by design

Every flow — discovery, booking, account — is composed for the phone first, where most members will reserve their next session.

Mobile viewmobile.png
07Engineering

One app.
The whole stack.

The stack was chosen to deliver a single deployable artifact — marketing site, custom booking API, admin panel and database layer — all in one Next.js application, with no separate backend service to run.

The stack

Framework & runtime

Next.js 16 · React 19 · TypeScript 5.7

App Router and React Server Components for fast, SEO-ready pages — packaged with pnpm and a Turborepo task pipeline (build · dev · lint · typecheck).

CMS, API & database

Payload CMS 3 · @payloadcms/next · PostgreSQL 16

Payload is embedded directly inside Next.js: the admin panel at /admin and the REST/GraphQL API at /api/* run in the same process, against Postgres — 14 collections, no separate backend service.

Authentication

HMAC session cookie · Google OAuth 2.0 · Payload JWT

Three layers coexist: a signed fitbepad_auth_session cookie and Google OAuth for marketing-site members, and Payload’s built-in JWT for club staff in /admin.

Payments

Stripe Checkout · webhooks

Server-side Checkout sessions, with booking status driven by checkout.session.completed and payment_intent.payment_failed events at /api/stripe/webhook.

UI & client state

Tailwind 3 · shadcn/ui · Radix · Framer Motion · TanStack Query · RHF + Zod

Accessible primitives and a custom token system; Framer Motion drives the wizard transitions; React Query fetches coach availability; RHF + Zod validate every form.

Email & shared logic

Nodemailer · @coaching/booking-logic · @coaching/types

Transactional email on booking, payment and signup; pure, framework-free packages hold slot building, conflict detection and coupon validation, shared across the app.

Architecture

Browser — espacesports.com

Next.js 16 · App Router · React 19

One process

Next.js + Payload CMS 3

Marketing · /admin · /api/* — single artifact

Stripe

Checkout · webhooks

Google

OAuth 2.0

SMTP

Nodemailer

Persists to

PostgreSQL 16

14 collections · db-postgres

14 Payload collections

usersadminscoachesservicesbookingspaymentsspacescoursesgym-classessubscriptionscouponscoupon-usagespayment-linksmedia

Challenges solved

01

One process, the whole stack

Payload CMS runs embedded inside Next.js via @payloadcms/next — marketing frontend, /admin panel and /api/* all ship as a single deployable artifact, with no separate backend to operate.

02

Server-side booking rules

Business logic lives in Payload lifecycle hooks — enforceBookingRules, preventBookingConflict, computeBookingTotals and incrementCouponUsage — so conflicts and totals are guaranteed server-side, not trusted from the client.

03

Three auth layers, one app

A signed session cookie, Google OAuth, and Payload’s admin JWT coexist in the same codebase — each scoped to its own audience, with rate-limited forgot-password (5 req / 15 min per IP) in middleware.

04

Webhook-driven status machine

Bookings move through pending_payment → confirmed / failed_payment / cancelled / completed, transitioned by Stripe webhooks rather than optimistic client updates — the source of truth stays on the server.

05

Pure, testable booking logic

Slot building, conflict detection and coupon validation are extracted into @coaching/booking-logic — framework-free functions reused across API routes and the wizard, easy to reason about in isolation.

06

Client owns the content

Every coach, space, course, class, subscription and coupon is editable in the French-localised Payload admin — the club runs day-to-day operations with zero developer involvement.

08Subscriptions

Four tiers,
one revenue engine.

Memberships are the club’s primary business model — each tier fully managed in Payload and rendered dynamically, with its own benefit stack and Stripe payment link.

01

FITNESS

The essentials

Gym access
02

DYNAMIQUE

Fitness + group classes

Most popular
03

PREMIUM

Adds bien-être & recovery

Spa included
04

ESPACE

Everything, padel included

All access
espacesports.com/abonnements
Abonnements — tier cardssubscriptions.png
09Brand

Premium, never
generic.

A dark, confident identity with three colour-coded universes — energy for fitness, calm for bien-être, and the signature purple of the padel courts. No budget-gym clichés.

Palette

Charcoal

#1D1D1B

Fitness

#E2722E

Bien-être

#9CAF88

Padel

#6E4CA6

Cream

#EFEAE2

Fitness

Energy

Bien-être

Calm

Padel

Signature

Principles

  • Three universes, three accents — consistent across every page
  • Dark, premium base — never pure black, never cold gray
  • Tracking 0.15–0.2em on uppercase mono labels
  • Accent colour as fill and tint, never as body text
  • Fade-in on load, gentle scroll reveals, reduced-motion honoured
10One Developer

Brand, frontend, backend, payments and CMS — by one person.

Brand translationUI designFront-endBack-end / Payload CMSStripe paymentsAuth & securityAnimationResponsive designDevOps / DockerSEO

A client project delivered end-to-end — from a premium visual brief to a production full-stack platform with real business logic — now live, serving a club in the Oise valley every day of the year.

Three universes, one platform — design and engineering in service of a single, seamless booking.