An indoor cycling studio's front desk in soft neumorphism: book bikes on a room map of raised round keys, plan rides with knobs, run members and pay.
Web
10 עמודים
$69
כתובת העמוד: /
עוד למטה ↓
מובנה
מה מקבלים
בהיר וכההמשתמש בצבעי ערכת העיצוב שלכם
מחשב, טאבלט וטלפוןהמסכים שהוא נבנה בשבילם
חבילות…
גודל הקוד…
חסכוני בסוללה30 fps, במנוחה כשהכול דומם
נעצר כשהוא מוסתרמחוץ למסך או בלשונית אחרת
הפחתת תנועהרגוע למי שמבקש
נבדק בכל שינוי
אבטחה נבדקה ב-28 בנוב׳
בדיקת טיפוסיםTypeScript strict
Lint ועיצוב קודESLint · Prettier
בדיקות ובנייהצילומי מסך בהיר וכהה
בדיקת אבטחהללא התראות חמורות או קריטיות
גיל החבילותכל גרסה פומבית 7 ימים לפחות
מעבד במנוחהפחות מחצי ליבה במנוחה, ≤ 30 fps
קוד
יש בעיה באפליקציה הזו? שליחת משוב ›
spin-cadenceReact
spin-cadence.tsxpageThe page: the sections in order.
content.tscontentEvery word and number: brand, nav links, each section's copy and lists.
theme.tsthemeThe colors as CSS variables, and the shared class strings.
README.mdreadmeHow to install it, and where to change the text, colors and form.
pagespagesOne file per page: the sections it shows, in order.
bikes.tsxpageBikes: pick a day and a class, then run its room's bike map: book a free bike for a rider, move a booking by dragging it (or from the bike's panel), check riders in, cancel with Undo, and seat the waitlist by Promote or by dragging a rider onto a bike.
class-detail.tsxpageOne weekly class (#/timetable/<id>?date=&tab=): its roster on a date with check-in, the ride plan it uses, and its details with edit and delete.
instructor-detail.tsxpageOne coach (#/instructors/<id>?tab=schedule|pay|profile): their weekly classes, this month's pay ledger (rate per class plus a bonus per rider over 12, with CSV), and their profile with edit and delete.
instructors.tsxpageInstructors: each coach as a raised card with their classes a week and this month's classes and pay; add one from a dialog. A coach opens their page (pages/instructor-detail.tsx).
member-detail.tsxpageOne member (#/members/<id>?tab=overview|attendance|bookings|billing): their details and notes, 12 weeks of rides, upcoming and past bookings, and their plan with renew, add a pack, freeze and delete.
members.tsxpageMembers: everyone on a plan or pack, searched by name and filtered by status (renewing soon too; both survive Back), with their plan, classes left, last 12 weeks of rides and renewal date. A new member from a dialog; a member opens their page (pages/member-detail.tsx).
overview.tsxpageOverview: today's riders, fill, waitlist and members as raised keys; today's classes beside the fill ring; the class riding now (or next) on its interval strip beside its bike map; the busiest slots and the members to talk to at the desk.
plans.tsxpagePlans: monthly memberships, class packs and intro offers as raised cards with their price, classes, length and how many members hold each; add, edit and delete (a plan in use can't go).
reports.tsxpageReports: fill rate by week (12 or 26, with CSV), members kept and joined by month, the popular-slots heat grid for the coming week, and fill by class type and by instructor. Charts sit flat on the ground.
ride-detail.tsxpageOne ride (#/rides/<id>?tab=plan|playlist|classes): edit its intervals with the knobs and its playlist, then save or discard; see which weekly classes use it; delete it when none do.
rides.tsxpageRides: the studio's interval plans as cards (each with its strip), filtered by class type, and a new ride from a name and a type. A ride opens its editor (pages/ride-detail.tsx).
settings.tsxpageSettings: the studio's booking rules (how far ahead, late cancel hours and fee, auto-seat the waitlist), each room's rows of bikes and the bikes out of service, then Appearance (style, theme and language).
sign-in.tsxpageThe sign-in page (#/sign-in): the form on a raised card beside a drawn front row of bike keys, a few booked and lit, and a resistance dial, without the sidebar and top bar.
timetable.tsxpageTimetable: the weekly classes of one room on a week board (drag a class to move it, Undo puts it back), filtered by type and instructor, plus the class types list. A class opens its own page (pages/class-detail.tsx).
sectionssectionsOne file per page section.
account-menu.tsxsectionThe account menu under the avatar in the top bar: who is signed in, Settings and Sign out; the arrow keys move through it, Escape, Tab or a click outside closes it.
appearance.tsxsectionSettings → Appearance: the style (Soft keys with shadows, or Flat keys with a hairline), the theme (System, Dark or Light), each choice a small preview, and the language (System or one of locales/list.ts). The picked choice sinks and gets an accent rim and light.
bike-map.tsxsectionThe room's bike map, the studio's signature: bikes as round raised keys in their real rows facing the instructor's podium. A booked bike sinks and lights its cobalt ring with the rider's initials; a checked-in rider gets a green dot; a bike out of service is struck through. The arrow keys move between bikes, Enter or Space picks one, and a booked bike (or a rider from the side list) drags onto another bike.
class-form.tsxsectionThe class dialogs: add or edit a weekly class (type, instructor, room, day, start, ride) and add or edit a class type (name, length, color, level).
interval-strip.tsxsectionA ride's interval strip: one bar per interval in a sunk slot, as wide as its minutes and as tall as its resistance, rising one after another as the page builds in. In the ride editor each bar is a slider (drag it up or down, or use the arrow keys); on Overview the class riding now lights its current bar and turns the crank at the target cadence on the shared clock.
playlist.tsxsectionA ride's playlist: each track with the interval it plays under and a light that says whether its beat fits that interval's cadence (the bpm, or half of it, within 6 of the rpm); add from the library, reorder and remove.
ride-editor.tsxsectionThe ride editor: the interval strip as sliders (drag a bar for resistance), and for the picked interval its name, minutes and two knobs for cadence (60-120 rpm) and resistance (1-10), with move, duplicate, delete and add.
sidebar.tsxsectionThe rail: the chainring logo over a column of round raised keys, one per page; the current page's key sinks, its LED lights and its label turns cobalt. In the phone sheet the keys sit in rows with their labels beside them.
sign-in-form.tsxsectionThe sign-in form: email and password with their errors under them, show or hide the password, keep me signed in, and the demo account to fill in; a wrong pair says so above the fields.
top-bar.tsxsectionThe top bar: the menu key on narrow screens, the studio's name, the class riding now or next, search, the theme key and the account menu. Clear at rest; once the page scrolls under it a ground fade comes in (no blur, no edge), and the rail sits above it so its shadow is never cut.
waitlist.tsxsectionA class's waitlist beside the bike map: riders in order, each draggable onto a free bike or seated with Move up, removed, or added from the members not yet riding.
week-grid.tsxsectionThe week timetable for one room: days across, 06:00 to 21:00 down, each class a small raised block. Drag a block to another day or time (snapped to 15 minutes), or focus it, press Space to lift, move it with the arrow keys and press Space again to drop (Escape puts it back).
partspartsWhat several sections share.
buildbuildWhat several sections share.
cardscardsWhat several sections share.
rise.tspartThe rise card style: cards rise and fade in (24px, a hair smaller), one after another.
rowsrowsWhat several sections share.
cols.tspartThe cols row motion, a column wave: the parts of each row on screen (its children) arrive left to right, 35ms apart.
core.tsxpartThe page's build-in: on first load and on every page switch the cards arrive in the app's card style and their contents build: bars grow, lines draw, rings fill, the list rows on screen ripple in in the app's row motion, numbers count. The two picks are wired in ./index.ts.
index.tspartThe app's two build-in picks, wired here and nowhere else: its card style (cards/) and its row motion (rows/). npm run new-app copies only the two it is given (--cards, --rows).
appearance.tspartHow the app looks right now: dark or light, Glass or Solid, from Settings → Appearance, the page around it and the Style setting.
avatar.tsxpartA person's initials in a round badge, tinted with the primary.
backdrop.tsxpartThe Soft style's backdrop: a still, faint dot grid on the ground, faded out in Flat; with followBackground it paints your background instead.
command-palette.tsxpartThe command palette (⌘K or Ctrl K): type to find a page or an action, then Enter.
dialog.tsxpartA centered modal dialog (a form, a confirm): rises in, plays its way out, Escape or a tap outside closes it, and the focus goes back where it was.
field.tsxpartA labeled form field (a text input or a select) with its error line under it, tied together for screen readers.
format.tspartHow numbers and dates are written: by Intl, the current language's way ("1,240", "1.240"; "Nov 19", "19 nov."). Add a helper here when a page needs money, times or a list.
icons.tsxpartThe logo (a chainring) and the line icons, drawn on a 24-unit grid with round ends.
language.tspartThe app's language: the words every page reads (useWords), how dates and numbers are written (parts/format.ts) and the reading direction. Picked in Settings → Appearance (or System: the page's own language) and kept in this browser; English is built in, any other language loads only when it shows (locales/list.ts).
lift-drag.tspartDrag something onto a drop place (a class block onto a day and time, a rider onto a bike): mouse and pen at once, touch after a short press (a swipe still scrolls), a lifted copy held under the press point in the floating layer, the page scrolling near its edges, Escape to cancel, and a glide into the slot on drop. Each part adds its own keyboard path.
moments.tspartThe animations the sidebar, the sign-in card, menus, dialogs, the phone sheet and toasts play, timed by their moments in theme.ts.
motion.tspartMotion helpers: the reduced-motion check, live, and run-once-in-view.
neu.tsxpartThe studio's soft controls: a ride knob (a real slider: drag, arrows, Page keys, Home/End), a fill ring, raised stat keys, sunk tab groups and the class-type dot.
page-head.tsxpartA page's heading: a back key on detail pages, the title, one line under it and the page's actions at the end.
ride-clock.tspartThe one shared clock for the live ride (the turning crank, the cadence readout, the current interval's fill): at most 30 frames a second, only while a part using it is on screen, the tab is visible, motion is allowed and the Pause key is off.
router.tspartThe page switcher: reads the app's page from the address hash (#/settings, #/?status=open).
scroll-to-view.tspartScrolls an element into view moving only its own scroll container, never the page around it.
select-box.tsxpartA native select dressed to match the app: no browser arrow, a drawn chevron instead.
session.tspartWhether someone is signed in: a first visit is signed in as the demo account; Sign out holds until the next sign-in, and a sign-in without Keep me signed in lasts only this tab.
sheet.tsxpartThe phone sheet: a modal panel that springs in from the left with the sidebar; Escape, a tap outside or its close button slides it away.
states.tsxpartThe data states every page shares: a calm skeleton while loading, an error with Try again, and an empty note with a way out.
store.tspartThe app-wide state several parts share: the theme mode and style (kept in the browser) and the toasts.
ticker.tsxpartA number that counts up while its page builds in, and rolls to its new value whenever it changes.
toasts.tsxpartThe toasts: short notes that confirm what just happened, at the bottom end.
use-api.tspartLoads data through the fake API with loading, error and retry, remembering each answer so a page you come back to shows at once.
use-dialog.tspartOpens and closes a native <dialog> as a modal; on close it plays its way out first (data-closing), so dialogs, sheets and the palette never vanish in one frame.
datadataThe pretend data and the fake API: swap it for your backend.
account.tsdataThe demo account: who is signed in (the account menu shows them) and the email and password the sign-in page takes.
api.tsdataThe fake API: every page loads and saves through these functions, so wiring a real backend happens here only.
seed.tsdataThe pretend studio: two rooms, eight class types, nine instructors, a full weekly timetable, 64 members, six plans, nine ride plans with playlists, and a week of bike bookings made from a fixed seed so every visit shows the same studio.
types.tsdataThe shapes the fake API answers with: a studio's rooms, class types, the weekly timetable, bike bookings, members, plans, ride plans and instructors.
views.tsdataWhat the pages show, worked out from the studio's data: sessions on a date with their state, Overview's numbers, reports, a member's or an instructor's page. Kept apart from data/api.ts so a count and the list it opens use one rule.
localeslocalesEvery word the app shows, one JSON file a language; list.ts names them.
en.jsoncontentOne language's words, with the keys of en.json.
es.jsoncontentOne language's words, with the keys of en.json.
list.tscontentThe languages the app offers, in the picker's order: one JSON file each, en.json the source. To remove one, delete its file and its line; to add one, copy es.json, translate it and add a line. English is built in; the rest load only when picked. TypeScript checks each file has en.json's keys, scripts/check-locales.mjs the rest (no extra keys, plural forms, {slots}).
spin-cadence.tsx
The page: the sections in order.
טוען…
מתאים ל
Indoor cycling and spin studios with one or two rooms: timetable, bike bookings, waitlist, members, ride plans and instructor pay.
איך זה עובד
Bikes are raised round keys in the room's rows; booking one sinks it and lights it. Ride bars rise in order and turn with knobs.
איך משתמשים
Edit words in content.ts and colors in theme.ts, and swap the bodies in data/api.ts for calls to your backend.