Skip to content

Gym App Sign Up with Membership Code

Gym app sign up screen with a membership code field checked against a pattern, password strength meter, help bottom sheet and a member pass success state.

Also known as: fitness app registration screen, gym member signup form, membership code input, password strength meter mobile, create account screen ui

Gym App Sign Up with Membership Code live demo

Open in new tab

Bootstrap 5 code (HTML, CSS, JS)

This gym app sign up screen links a new account to an existing club membership: members enter the code from their key card, see which club it belongs to, pick a password with a live strength meter and land on a member pass. It is an HTML mobile template for mobile sites and PWAs, built with Bootstrap 5, Bootstrap Icons and Barlow in dark charcoal with lime, and it can be packaged with Capacitor. Use it as a fitness app registration screen or member signup form.

How it works

The root .gsu-app is a centred app column (max 430 px) with a compact top bar and no tab bar. The form .gsu-form holds the membership code, name, email, password and terms fields.

The code input .gsu-code formats typing on the fly (dt48210937 becomes DT-4821-0937) and checks the pattern AB-1234-5678. The prefix is looked up in CLUBS in script.js: a known one shows the .gsu-match chip with club and plan, an unknown one shows an error. The password updates .gsu-meter through data-gsu-score (0 to 4) and the .gsu-strength text; the eye button toggles visibility.

On submit each field is validated, messages fill the .gsu-error paragraphs and focus moves to the first problem. A valid form shows a spinner, then the [data-gsu-panel="done"] panel with a member pass card; "Member since" and the intro session time are computed from today without a year. "Where is it?" opens the offcanvas .gsu-sheet from the bottom with tips for finding the code.

Customization

  • --gsu-lime, --gsu-lime-dark and --gsu-on-lime on .gsu-app: the accent for the brand mark, buttons, focus rings and the matched code chip.
  • --gsu-bg, --gsu-field and --gsu-line on .gsu-app: the charcoal background, input fill and borders.
  • --gsu-radius on .gsu-app: corner radius of inputs and buttons (10 px).
  • CLUBS in script.js: your own club prefixes, names and plans.
  • CODE_RE in script.js and the pattern attribute on .gsu-code: change both for a different code format.
  • score() in script.js: the password rules behind the four meter segments.
  • The setTimeout in the submit handler: replace it with a fetch() to your sign-up endpoint.

Use cases

  • Gym and fitness club apps: members activate the app with the code from their card.
  • Yoga, climbing and swim studios: link a front-desk membership to an online account.
  • Corporate wellness portals: employees sign up with a company access code.

Accessibility

Inputs have visible labels, real type and autocomplete values (name, email, new-password) and are linked to help and error text with aria-describedby and aria-invalid. The password toggle uses aria-pressed. Status changes are announced in a polite aria-live region and the success heading receives focus. Touch targets are at least 44 px, and the bottom sheet closes with Escape, the close button or a tap on the backdrop.

Usage notes

Requires the Bootstrap 5.3 bundle for the offcanvas sheet. The code is prefilled for the demo; remove the value attribute on .gsu-code for an empty field.

Gym App Sign Up with Membership Code at a glance

Framework
Bootstrap 5
Code
HTML, CSS, JavaScript
JavaScript
Vanilla JavaScript, no jQuery
Dependencies
Bootstrap 5, Bootstrap Icons, fonts.googleapis.com
Layout
Mobile-first app screen, centred on wider screens, dark design
Category
Mobile Login & Sign Up
License
Free for personal and commercial use

Questions about this template

Can I use the Gym App Sign Up with Membership Code code for free?

Yes. You can copy or download the code and use it in personal and commercial projects, including client work. No sign-up is needed. Reselling it as part of a component library or template collection is not allowed; see the license.

How do I add it to my website?

Load Bootstrap 5 and Bootstrap Icons and fonts.googleapis.com from a CDN (the links are under Requirements). Paste the HTML where the component should appear, add the CSS to your stylesheet and load the JavaScript before the closing </body> tag. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. The script is plain vanilla JavaScript, so it works without jQuery, React or Vue. You can still use the markup inside those frameworks.

Can I turn this screen into an iOS or Android app?

Yes. It is plain HTML, CSS and JavaScript, so it works in a mobile website or progressive web app as it is. To ship it as a store app, put it in the web folder of a Capacitor or Cordova project and build it for iOS and Android; replace the sample data with calls to your own API.

How does it look on a desktop screen?

The screen is designed for phones. On wider screens it stays at phone width in the middle of the page, so it still looks like an app. The live demo opens at mobile width; use the Tablet and Desktop buttons to check other sizes.

Requirements

Add these to your page (already included in the download):

  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css">
  • <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
  • <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&display=swap">
Gym App Sign Up with Membership Code – free Bootstrap 5 mobile login & sign up template
Gym App Sign Up with Membership Code · free Bootstrap 5 mobile login & sign up template

More Mobile Login & Sign Up

Workspace App Sign In with SSO – free Bootstrap 6 mobile login & sign up template

Workspace App Sign In with SSO

Workspace app sign in screen that asks for a work email first, then shows a single sign-on button or a password field based on the domain: an SSO login UI for team apps.

Dating App Sign Up with Photo Upload – free Tailwind CSS mobile login & sign up template

Dating App Sign Up with Photo Upload

Dating app sign up screen with first name, birthday age check, a six-slot photo upload grid with previews and a step progress bar for profile onboarding.

Kids Learning App Parent Login – free Pure CSS mobile login & sign up template

Kids Learning App Parent Login

Kids learning app parent login screen with a maths parent gate that unlocks the email and password sign-in form, plus a password reset bottom sheet.

Banking App Login with Biometric Option – free Bootstrap 6 mobile login & sign up template

Banking App Login with Biometric Option

Banking app login screen with a 6-digit PIN keypad, simulated Face ID and fingerprint sign-in, forgot PIN sheet and account switcher: a secure mobile bank PIN login UI.

Passwordless Magic Link Login – free Pure CSS mobile login & sign up template

Passwordless Magic Link Login

Passwordless magic link login screen for mobile apps: email-only sign in that switches to a check-your-inbox state with an open mail app button and resend countdown.