Skip to content

Keyfob

A website theme for gyms and fitness clubs, in Astro and in Next.js with Sanity: today’s timetable as the first screen with the places left in every class, a timetable per club, a page per class and club, memberships compared line by line, personal training, a free day pass and a join flow. 38 pages, 16 sections, 2 presets, WCAG 2.2 AA.

Keyfob home page on a phone, light mode
Keyfob home page on a phone, dark mode

Theme for gyms and fitness clubs, for Astro and Next.js + Sanity

What Keyfob is for

The site for a gym or a chain of fitness clubs that sells monthly memberships online: today’s timetable is the first screen, with the places left in every class and Book or Wait beside it, in two editions: Astro, or Next.js with a Sanity Studio. 38 pages, 16 sections and 2 presets, WCAG 2.2 AA.

Home, the timetable, a class, memberships, a club, personal training, the coaches and the day pass, ready for your gym.

Every page as it ships, with the invented chain Larkspur: eight clubs in Yorkshire, nine kinds of class and three memberships. Keyfob is a light theme, so the light and dark views match. Click a page to see all of it.

Open the live demo (opens in a new tab)

As considered on a phone.

Every page is checked at phone width. On a phone the day tabs and class filters scroll sideways, each class keeps its places left and its Book button, the memberships comparison puts each label above its three values, and the join flow runs one step at a time.

Home on a phone, light mode
Timetable on a phone, dark mode
A club on a phone, light mode

Two editions, one license

Static files or a Studio. Same design.

Both editions render the same pages from the same sections and presets, so you choose by who edits the site, not by how it looks. Your license includes both.

Framework
AstroAstro 7, static output
Next.js + SanityNext.js 16, App Router and React Server Components
Content
AstroClubs, memberships, comparison rows, coaches and questions in JSON files with a schema; a class per Markdown file; the weekly timetable in one JSON file
Next.js + SanitySanity Studio with documents for clubs, memberships, comparison rows, classes, timetable entries, coaches and questions; the gym, its figures and its links as the Site document
The timetable
AstroYour weekly pattern laid on real dates at build time; rebuild once a day so the days roll on
Next.js + SanityThe same code, refreshed in the background, so the days roll on by themselves
Places left
AstroMade up in the demo; replace one function with a call to your booking system
Next.js + SanityThe same function to replace
Demo content
AstroIn the repository
Next.js + SanityA seed script imports the clubs, memberships, classes, the week’s timetable, coaches, questions and images into your dataset
Preview
Astropnpm dev
Next.js + SanityDrafts beside the form in the Studio’s Presentation tool
Forms
AstroThe day pass posts to the address you set, or to an optional Cloudflare Worker that forwards it and fails closed without a destination
Next.js + SanityA Route Handler that forwards to your endpoint, fails closed without one and logs no field values
Joining
AstroSends only club, membership, start date and concession to your payment page; no payment is taken on the site
Next.js + SanityThe same
JavaScript
AstroSmall scripts: the timetable’s tabs and chips, the comparison’s club chooser, the join steps and the menu
Next.js + SanityThe same small parts as client components; every page renders on the server
Lighthouse, mobile
Astro100
Next.js + Sanity99–100
Deploys to
AstroCloudflare Workers, Netlify, Vercel or any static host
Next.js + SanityVercel, or Cloudflare Workers through OpenNext
Repository
Astrothemesdev/keyfob-astro
Next.js + Sanitythemesdev/keyfob-next

What's inside

38 pages from 16 sections.

Each page is a short list of sections: the timetable board, the memberships, the figures, the clubs, the coaches and the rest. Your classes, clubs, memberships and coaches are separate entries, so a class shows on the board, the timetable, its own page and its clubs’ pages without being entered twice. The weekly pattern is written once and laid on the real dates.

Home
Today’s timetable as the first screen: day tabs, filter chips with a count per kind of class, every class with its places left as a bar, a now line, and Book or Wait. Then the memberships, the figures, the clubs, the coaches and the free day pass.
Timetable
Two weeks of classes for every club, this week and next as tabs, filtered by kind, with the club chosen from a list. A page for each club’s own timetable.
A page per class
What the class is, its level, length and effort, what to bring, and its next ten sessions across the clubs, each marked up as an Event.
Memberships
Three memberships compared line by line, with prices per club, only the rows that differ on request, sticky plan heads and the most-chosen plan marked.
Clubs
A page per club with its own board, opening hours with today marked, staffed hours, getting there, studios, facilities, prices at that club and its coaches. Structured data as an ExerciseGym.
Personal training
Three steps from first session to plan, the packs and their prices.
Coaches
Six coaches with a portrait, their next class and their personal training price.
Day pass and join
A free day pass form that works without JavaScript, and a four-step join flow: club, membership, start date and concession, then a check of the sum with today’s part-month. It sends only those choices to your payment page.
Questions, contact and the rest
Fifteen questions as FAQPage data, a sample privacy page, the thank-you page and a 404.

Two looks, one line apart.

Everything a section draws comes from the preset’s tokens: colours, type, space and corners. Keyfob puts the header and hero on a dark ink field with violet actions; Earlybird keeps the violet on a warm off-white field. One line switches between them, and contrast is checked in both. Both are light pages in Kumbh Sans.

The demo home page in the Keyfob preset
KeyfobLightA white page with the header and hero on a dark ink field, the timetable board on it, and violet for every action. The footer and the figures sit on the same ink.Kumbh Sans
The demo home page in the Earlybird preset
EarlybirdLightThe same white page and violet, with the header and hero on a warm off-white field and the timetable board on white.Kumbh Sans

Checked, not promised

Accessible and fast, page by page.

These checks ran on every page of both editions, at desktop and phone widths.

WCAG 2.2 AA
Zero axe violations on all 38 pages, at desktop and phone widths, in both presets.
Fast on a phone
Lighthouse performance on mobile: 100 for the Astro edition, 99–100 for Next.js, on the home page, the memberships and a club. Every photograph is served at twice its drawn size for sharp screens and at its own size for the rest.
Checked at 17 widths
The main pages measured from 320 to 5120 pixels, and looked over by reviewers in five rounds: no sideways scrolling, no clipped text.
A timetable that reads at a glance
Day tabs with a count per kind of class, places left as a bar and in words (“2 bikes left”, “Full · 3 waiting”), a now line, and the classes that have started folded away. Book and Wait link to your booking system with the club, class, date and time.
Structured data for gyms
The chain as an Organization, every club as an ExerciseGym with opening hours and its memberships as offers, every class session as an Event, personal training as a Service, the questions as FAQPage, and breadcrumbs. A sitemap, llms.txt and Open Graph images.
Design rules, checked
Colours only from the preset, images with alt text and a size: pnpm lint holds every page to it, yours included.

Delivery

A zip, or straight from GitHub.

Download both editions from your account, or connect GitHub and get read access to the private repositories. Each release is one tagged commit, so updating is a pull.

After you accept the invitation
$ git clone git@github.com:themesdev/keyfob-next.git
$ cd keyfob-next && pnpm install
$ pnpm dev      # the demo content, until you connect Sanity
$ pnpm seed     # then import it into your own dataset
# a new release later
$ git pull --tags
  1. 01Buy a licensePay once. The license belongs to your organisation; owners and admins hand out the seats.
  2. 02Connect GitHubIn your account, sign in with GitHub once. We learn only your username, and invite it read-only to both repositories.
  3. 03Pull updatesUpdates are free for life. Access follows your license, and the zip stays in your account next to it.

Pay once. Both editions.

Unlimited projects, private, commercial and for clients, with every future update of both editions. Prices exclude VAT; we sell to businesses. License details

Solo
1 person
€49once

For a freelance developer, or a gym that builds its own site.

Choose Solo
TeamMost studios
Up to 5 people
€129once

A small studio building sites for gyms and fitness clubs: everyone gets their own seat.

Choose Team
Studio
Up to 15 people
€199once

An agency building sites for several clients.

Choose Studio
Company
Everyone in your company
€349once

No seats to count, ever.

Choose Company
Frank Spin
Making themes.dev since 2020

A registered Dutch company, KvK 01129853. Questions before you buy? Ask me.

Paying

Through Mollie: card, Apple Pay, iDEAL, Bancontact or PayPal. A proper invoice for every order, with EU reverse charge.

Updates

Galley 2.0.0 came out on . 27 releases across our themes in the last 30 days, all free for buyers.

Track record

400+ teams and developers have bought from themes.dev since 2020. Their licenses now live in their accounts here.

What's new

Updates for both editions, free.

Full changelog
  1. v1.0.0

    Latest

    The first build of Keyfob, for gyms and fitness clubs.

    Astro

    • Home: today's timetable at the home club as the hero on an ink field (day tabs, kind chips with counts, places left, the now line, Book or Wait), the class photo with four figures on its edge, three memberships in one frame, the free day pass on a violet band, three coaches with their next class and PT price, the clubs as rows, and a footer that asks "See you at 18:00?" with that class to book.
    • Timetable: two weeks per club, this week and next, filtered by kind, a page per club.
    • Classes: nine classes, a page each with its next sessions across every club (Event structured data).
    • Memberships: the comparison, prices per club, "Only what's different", concessions.
    3 more

    Next.js + Sanity

    • The same routes, sections, markup and structured data as the Astro edition; the stylesheets are the Astro edition's (internal/sync-styles.mjs), and the timetable code is the same (src/lib/timetable.ts), so both editions show the same board for the same day (KEYFOB_TODAY).
    • The free day pass form posts to /api/day-pass/, with the Astro form Worker's rules (honeypot, required fields, 64 KB, fail closed without FORWARD_URL).

Questions

Do I get both editions?

Yes. Keyfob is one product: every license includes the Astro theme and the Next.js + Sanity edition, as a zip and as two private GitHub repositories. Use either or both in any project your license covers.

Which edition should I use?

The Astro edition if a developer keeps the site: clubs, memberships and the weekly timetable are data files and the output is plain static HTML on any host. The Next.js + Sanity edition if the gym’s own staff change the timetable, prices and coaches: they edit in the Studio with a live preview, and nobody touches code.

Where do the places left come from?

In the demo they are made up, the same way on every build. In your site you replace one function with a call to your booking system’s API, at build time or in the browser. Book and Wait link to your booking system with the club, class, date and time in the address.

Does it take payments or bookings?

No. Keyfob has no booking or payment system and does not pretend to. Book and Wait go to your booking system, and the join flow sends only the club, membership, start date and concession to your gym software’s payment page. No payment is taken on this site.

Does it have a dark mode?

No. Both presets are light pages; Keyfob puts the header and hero on a dark ink field, but the page itself is white. The tokens are in one file, so a dark preset is possible, but it is not included.

We are a single studio, or a boutique. Does it fit?

Yes. The demo is a chain of eight clubs; with one club you keep one club entry and drop the rest. It fits a gym, a studio or a chain that sells memberships and runs a class timetable. A business that sells only single sessions would use the timetable, day pass and personal training pages and little else.

What happens to the day pass form?

It is a plain form that works without JavaScript, with a hidden field that catches bots. In the Astro edition it posts to the address you set: a form service, or the optional Cloudflare Worker that forwards it. In the Next.js edition it posts to the site, which forwards the fields to the address you set; without one it accepts nothing. Neither edition stores what people send.

Do I need a paid Sanity plan?

No. Sanity’s free plan is enough for this theme. The README walks you through the project, tokens and the seed script.

How does the GitHub access work?

In your themes.dev account, connect your GitHub account once by signing in with GitHub. You then get a read-only invitation to themesdev/keyfob-astro and themesdev/keyfob-next. Every release is a tagged commit there. Access follows your license: a seat you lose or a refund ends it. The zip stays in your account either way.

Can I build sites for clients with it?

Yes, in unlimited projects. A site you build with Keyfob for a gym is theirs: they may own, host, edit and keep running it without a license of their own. They may not take Keyfob out of that site to build other sites.

Can I see it before buying?

Yes. The live demo is the Astro edition with every page, and the screenshots on this page show them. Larkspur and everything in it is invented: the clubs, classes, coaches, prices and figures. The photographs are generated and show fictional people.

Do you charge VAT?

We sell to businesses. Dutch businesses pay 21% VAT; businesses elsewhere in the EU with a valid VAT number pay none (reverse charge); outside the EU there is no Dutch VAT. You get a proper invoice by email.

Is Keyfob an official Astro, Next.js or Sanity product?

No. Keyfob is made by themes.dev and builds on the open-source Astro, Next.js, Tailwind CSS and Sanity projects; it is not affiliated with them.

Put your timetable on Keyfob.

From €49 for one person to €349 for your whole company. Both editions, pay once, lifetime updates.

KeyfobFrom €49