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
- 7J/7
- Open every day
- 2000 m²
- Across three universes
- +10
- Experts & coaches
- 3
- Univers under one roof
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. »
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.
Fitness
A 1000 m² gym with Technogym machines, dedicated musculation and cardio areas, and a full programme of group classes.
1000 m² · Technogym
Bien-être
Sauna, massage, osteopathy and dietitian appointments — a recovery and restoration zone, not just a spa annex.
Sauna · Massage · Ostéo
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
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
Nine sections,
one platform.
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.
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.
Nos valeurs
Six commitments on a hover-revealing grid: open 7/7, Technogym equipment, certified coaching, performance + recovery, accessibility for all levels, continuous improvement.
Partenaires
A dark partner-logos strip — “Ils avancent avec nous” — surfacing the club’s commercial and institutional partnerships.
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.
Réservation
The centrepiece: a four-step animated wizard from service selection to Stripe Checkout, with no external redirect.
Planning
A weekly group-class schedule built from the CMS, filterable by category — protected by middleware so only authenticated members reach it.
Abonnements
Four membership tiers — FITNESS, DYNAMIQUE, PREMIUM, ESPACE — rendered dynamically from Payload with their own benefit stacks and Stripe payment links.
Contact & comptes
A validated contact form (React Hook Form + Zod → Nodemailer) plus full auth: login, Google OAuth, password reset, profile and security pages.
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
Four steps
Service selector
Browse and pick a bookable service — coaching, massage, padel course — each CMS-managed, none hardcoded.
Date & time
A calendar and time slots built from real coach availability, with buffer times and booking lead times enforced server-side.
Authentication gate
Login, register, or continue with Google OAuth — shown only when the visitor is not already authenticated.
Summary + Stripe
Price confirmation, optional coupon code, then Stripe Checkout. On success the booking transitions to confirmed.
Dark, premium, immersive — full-bleed photography behind bold display type, with each universe announced by its own accent. A club, not a SaaS dashboard.
Responsive by design
Every flow — discovery, booking, account — is composed for the phone first, where most members will reserve their next session.
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.7App 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 16Payload 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 JWTThree 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 · webhooksServer-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 + ZodAccessible 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/typesTransactional 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
Next.js + Payload CMS 3
Marketing · /admin · /api/* — single artifact
Stripe
Checkout · webhooks
OAuth 2.0
SMTP
Nodemailer
PostgreSQL 16
14 collections · db-postgres
14 Payload collections
Challenges solved
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.
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.
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.
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.
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.
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.
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.
FITNESS
The essentials
Gym accessDYNAMIQUE
Fitness + group classes
Most popularPREMIUM
Adds bien-être & recovery
Spa includedESPACE
Everything, padel included
All accessPremium, 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
Brand, frontend, backend, payments and CMS — by one person.
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.