1 GitHub star = 1 new component.

Full templates

Forja · Gym & Member Area

Gym site with weekly timetable, plans and free trial, plus a member area with class booking and progress, and a staff view with members and occupancy.

Complete template for a gym, box or fitness studio. 9 page types: home with today's classes, disciplines, live occupancy, plans, coaches and trial form; weekly timetable with day tabs and filters; plans with monthly/yearly billing and FAQ; coaches; free-trial pass; plus member sign-in, a progress dashboard (goal, streak, sessions, records, weight), class booking with waitlist, and a staff view with membership KPIs, occupancy and a members table.

9 pages 8 components 7 sections 0 deps

Live preview

Pages

Every page is a real, interactive preview: links, forms and state work across pages.

Home

Hero with today's classes, disciplines, live occupancy, plans, coaches and trial form.

src/pages/index.astro

Timetable

Weekly timetable with day tabs, discipline filters and booking links, plus what each class is.

src/pages/clases.astro

Plans

Membership plans with monthly/yearly billing and membership FAQ.

src/pages/tarifas.astro

Coaches

Coaching team with certifications, years and classes.

src/pages/entrenadores.astro

Free trial

Free-trial sign-up that returns a 7-day pass with an access code; club address and hours.

src/pages/prueba-gratis.astro

Member sign in

Split sign-in for members and staff with a testimonial and club figures.

src/pages/acceso.astro

Member progress

Goal, streak, weekly sessions, records, weight, upcoming classes and occupancy.

src/pages/socios/index.astro

Class booking

Pick a day, book, cancel or join the waitlist; my bookings update live.

src/pages/socios/reservar.astro

Staff: members & occupancy

Membership KPIs, live occupancy and a searchable members table.

src/pages/socios/staff.astro

What is included

  • Timetable with accessible day tabs that opens on today and filters by discipline
  • Plans with a monthly/yearly switch that recalculates prices and savings
  • Class booking with live spots, waitlist and booking limit
  • Member progress with goal ring, streak, records and weight trend in plain SVG
  • Live occupancy with usual crowd per hour so members pick quiet times

Install & use

  1. Install the package

    bash
    npm install astro-component-kit
    npm install astro-component-kit
  2. Create one Astro page per template page

    src/pages/index.astro

    astro
    ---
    import { GymHomePage } from 'astro-component-kit/templates/gym';
    ---
    
    <GymHomePage />
    --- import { GymHomePage } from 'astro-component-kit/templates/gym'; --- <GymHomePage />

    src/pages/clases.astro

    astro
    ---
    import { GymClassesPage } from 'astro-component-kit/templates/gym';
    ---
    
    <GymClassesPage />
    --- import { GymClassesPage } from 'astro-component-kit/templates/gym'; --- <GymClassesPage />

    src/pages/tarifas.astro

    astro
    ---
    import { GymPlansPage } from 'astro-component-kit/templates/gym';
    ---
    
    <GymPlansPage />
    --- import { GymPlansPage } from 'astro-component-kit/templates/gym'; --- <GymPlansPage />

    src/pages/entrenadores.astro

    astro
    ---
    import { GymTrainersPage } from 'astro-component-kit/templates/gym';
    ---
    
    <GymTrainersPage />
    --- import { GymTrainersPage } from 'astro-component-kit/templates/gym'; --- <GymTrainersPage />

    src/pages/prueba-gratis.astro

    astro
    ---
    import { GymTrialPage } from 'astro-component-kit/templates/gym';
    ---
    
    <GymTrialPage action="/api/trial" />
    --- import { GymTrialPage } from 'astro-component-kit/templates/gym'; --- <GymTrialPage action="/api/trial" />

    src/pages/acceso.astro

    astro
    ---
    import { GymSignInPage } from 'astro-component-kit/templates/gym';
    ---
    
    <GymSignInPage />
    --- import { GymSignInPage } from 'astro-component-kit/templates/gym'; --- <GymSignInPage />

    src/pages/socios/index.astro

    astro
    ---
    import { GymDashboardPage } from 'astro-component-kit/templates/gym';
    ---
    
    <GymDashboardPage />
    --- import { GymDashboardPage } from 'astro-component-kit/templates/gym'; --- <GymDashboardPage />

    src/pages/socios/reservar.astro

    astro
    ---
    import { GymBookingPage } from 'astro-component-kit/templates/gym';
    ---
    
    <GymBookingPage />
    --- import { GymBookingPage } from 'astro-component-kit/templates/gym'; --- <GymBookingPage />

    src/pages/socios/staff.astro

    astro
    ---
    import { GymMembersPage } from 'astro-component-kit/templates/gym';
    ---
    
    <GymMembersPage />
    --- import { GymMembersPage } from 'astro-component-kit/templates/gym'; --- <GymMembersPage />
  3. Use your own catalogue, currency and routes

    Spread the demo store and replace what you need. Products accept a real image or one of 16 built-in illustrations.

    astro
    ---
    // Pass your own data and routes to every page (e.g. from your booking system)
    import { GymHomePage, gymData, gymRoutes } from 'astro-component-kit/templates/gym';
    
    const data = {
      ...gymData,
      brand: { ...gymData.brand, name: 'Iron Hall', phone: '+34 900 000 000' },
      classes: await fetch('https://api.example.com/classes').then((r) => r.json()),
    };
    
    const routes = { ...gymRoutes, classes: '/timetable', trial: '/free-trial' };
    ---
    
    <GymHomePage data={data} routes={routes} />
    --- // Pass your own data and routes to every page (e.g. from your booking system) import { GymHomePage, gymData, gymRoutes } from 'astro-component-kit/templates/gym'; const data = { ...gymData, brand: { ...gymData.brand, name: 'Iron Hall', phone: '+34 900 000 000' }, classes: await fetch('https://api.example.com/classes').then((r) => r.json()), }; const routes = { ...gymRoutes, classes: '/timetable', trial: '/free-trial' }; --- <GymHomePage data={data} routes={routes} />

New sections 7

Full-width blocks of this template, available in Sections. Open any of them to see it on its own page with code.

Section

Gym Hero

Bold gym hero with free-trial and schedule CTAs, club figures and a card with the next classes of the day and spots left.

Section

Gym Disciplines

Class type cards with duration, approximate kcal and an intensity meter; each links to the schedule filtered by that discipline.

Section

Gym Schedule

Weekly class timetable with accessible day tabs, discipline filter chips, level, trainer, room, spots left and booking links. Opens on today.

Section

Gym Membership Plans

Membership pricing with a monthly/yearly switch that updates prices, the yearly total and the saving per year.

Section

Gym Trainers Grid

Coaching team cards with initials portrait, specialty, years, certifications, the classes they teach and a quote.

Section

Gym Trial Form

Free-trial sign-up with club details; on submit it shows a 7-day pass with an access code and validity dates. Pre-selects ?plan=.

Section

Gym Footer

Gym footer with a full-width free-trial call to action, opening hours table, link columns, contact and legal row.

New e-commerce components 8

Built for this template and available on their own in the library.

Component

Gym Class Booking

Member class booking: weekday picker, classes with capacity bars, book, cancel or join the waitlist, booking limit and a live "my bookings" list.

Component

Gym Progress Tracker

Member progress: monthly goal ring, weekly streak, sessions per week chart, personal records with change and a body-weight sparkline. SVG, no JavaScript.

Component

Gym Occupancy Meter

Live club occupancy with a quiet/moderate/full level and the usual occupancy per hour, highlighting the current hour.

Component

Gym Area Topbar

Gym member-area top bar with today’s date, live occupancy chip, check-in pass with access code, notifications and member menu (native popovers).

Component

Gym Area Heading

Bold uppercase page heading for the gym member area with kicker, description, back link and action buttons.

Component

Gym Members Table

Staff members table: search, status and at-risk filters, sorting by visits, last visit and join date, 30-day activity bars and one-click reminders.

Component

Gym Sign In

Gym sign-in screen with member/staff switch, member number or email, PIN with show/hide and demo quick-access buttons on a striped background.

Reused library components

Existing components the template is assembled from.