A dance studio app in Memphis style: a week timetable of swaying pastel class blocks, bookings that fill dot rows, members, teachers and the recital.
Web
15 pages
$69
Page address: /
More below ↓
Built in
What you get
Light and darkUses your theme colors
Desktop, tablet, and phoneThe screens it is built for
Packages…
Code size…
Light on battery30 fps, idle when still
Pauses when hiddenOff-screen or other tab
Reduce motionCalm for people who ask
Checked on every change
Security checked Nov 28
Type checkTypeScript strict
Lint and formatESLint · Prettier
Tests and buildLight and dark screenshots
Security auditNo high or critical advisories
Package ageEvery version public 7+ days
Idle CPUUnder half a core at rest, ≤ 30 fps
Code
Something off with this app? Send feedback ›
dance-mamboReact
dance-mambo.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.
bookings.tsxpageBookings (#/bookings): this week's group class spots, filtered by status chips (?status=, kept on Back) and a search, each with a quick check-in; and the private lessons with Mark done. Both tabs book through the fake API.
class.tsxpageOne class (#/class/<id>): its roster with check-in, no-show and cancel, the waitlist with Move up, its details and eight weeks of attendance. Booking a member fills the next dot; checking in the whole class throws confetti.
classes.tsxpageClasses (#/classes): every weekly class as a card in its style's pastel, with its teacher, room and a row of booked dots. Chips filter by style and day (?style=, ?day=, kept on Back); the search narrows in place.
member.tsxpageOne member (#/member/<id>): their plan and classes left (sell a plan or pack, freeze), this week's bookings and every payment. Edit and delete from the head.
members.tsxpageMembers (#/members): everyone with their plan, classes left and last visit. Filter by plan, status and low balance (?plan=, ?status=, ?low=1, kept on Back); the search narrows in place.
number.tsxpageOne recital number (#/number/<id>): its dancers (add or remove), its costume and stage, and its music and place in the show. Edit and delete from the head.
overview.tsxpageOverview (#/): today's classes, the members ring and the recital countdown; four tilted stat tiles; this week by style, who's teaching today and what needs a look. Everything clicks through to its filtered list.
plans.tsxpagePlans (#/plans): the memberships, class packs and private bundles the studio sells, as pastel ticket cards with their price, classes and how many members hold them. Add, edit and delete (a plan in use can't go).
recital.tsxpageRecital (#/recital): the show's running order (drag a number by its handle, or Space and arrows; saving throws confetti and offers Undo), every number as a card, and the costume list where each costume steps to its next stage.
reports.tsxpageReports (#/reports): visits, class fill, revenue and retention up top; attendance by style over the chosen weeks (?range=8, kept on Back), revenue by month and how many members keep coming.
settings.tsxpageSettings (#/settings): the studio's name, its rooms and dance styles (add or remove; one in use can't go), and Appearance (palette, theme and language).
sign-in.tsxpageThe sign-in page (#/sign-in): a magenta block of drawn Memphis shapes with the count-in and what the app does, beside the form card; without the rail and top bar.
teacher.tsxpageOne teacher (#/teacher/<id>): their week of classes and private lessons, hours and pay due this month (log more hours), and their profile. Edit and delete from the head (a teacher with classes can't go).
teachers.tsxpageTeachers (#/teachers): each teacher as a card with their styles, classes, weekly hours and class rate. Add one from the head; a card opens the teacher.
timetable.tsxpageTimetable (#/timetable): the week of classes as colored blocks, filtered by style, teacher, room and level (?style= …, so Back keeps them). Wide screens see the whole week; phones pick one day with chips (?day=). Dragging a block moves the class, with an Undo.
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 palette (seven Memphis sets, each shown as its four swatches), the theme (System, Dark or Light) and the language (System or one of locales/list.ts).
forms-classes.tsxsectionThe form dialog every form shares, and the class forms: a class (new or edit), booking a member into a class, and a private lesson. Each saves through the fake API; a parent remounts it (key) to start it fresh.
forms-people.tsxsectionThe people forms: a member (new or edit), selling a plan or pack, a plan, a teacher and logging a teacher's hours. Each saves through the fake API; a parent remounts it (key) to start it fresh.
forms-recital.tsxsectionThe recital forms: a number (new or edit, with its costume) and adding a dancer to a number. Each saves through the fake API; a parent remounts it (key) to start it fresh.
overview-cards.tsxsectionOverview's first row: today's classes with their booked dots, the members ring and the recital countdown whose starburst turns (with a Pause button).
rail.tsxsectionThe shape rail: the logo, search, and one Memphis shape per page with its icon on top; the current page's shape turns sunny and spins a quarter turn. Wide: labels beside; compact: labels under; the phone sheet shows it wide.
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 button on narrow screens, where you are, the next-class ticket (what's on now or next today, a live countdown and its booked dots), search, the theme switch and the account menu.
ui.tsxsectionThe blocks every page is built from: the colored page band with its squiggle, tabs, filter chips and selects, cards, stat tiles, chips, the load states and the delete confirm.
week-grid.tsxsectionThe week timetable: days as columns, hours down the side, each class a block in its style's pastel that sways in like a dancer settling. Drag a block (mouse or pen at once, a finger after a short press) to another day or time; or focus it, Space lifts, arrows move a day or 15 minutes, Space drops, Escape cancels. A dashed outline shows where it lands.
partspartsWhat several sections share.
buildbuildWhat several sections share.
cardscardsWhat several sections share.
flip.tspartThe flip card style: cards turn up in 3D from their bottom edge.
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 backdrop: a few drawn Memphis shapes scattered behind the pages (a dot patch, a squiggle, a half-moon, a zigzag, a ring, a triangle), small and sparse, never under text; with followBackground it paints your background instead.
charts.tsxpartThe charts: chunky outlined bars, lines and a ring, every series in a chart shade (--dance-mambo-chart-1..5) so a palette recolors them; each plot box carries data-chart for the Chart Studio.
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.
drag-list.tspartDrag to reorder a vertical list (the recital's running order): grab a row's handle with a mouse, pen or finger, the row lifts and tilts under the pointer, the others slide aside, the page scrolls at its edges; or Space lifts, arrows move, Space drops, Escape cancels. Rows glide to their new places (FLIP).
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 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).
memphis.tsxpartThe Memphis drawings: the shape tokens the rail sits on, the squiggle under a title, the recital starburst, the booked-dot row, confetti for wins and the pause logic every loop shares.
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.
palettes.tspartThe Memphis palettes (the same as meta.json's presets): each is four inputs, and theme.ts makes the five pastels from them. Settings → Appearance picks one for this browser.
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.
db.tsdataThe live pretend state, built from data/seed.ts, and the views the pages read (each one a key of the fake API, data/api.ts). Saves change `db` and every view follows.
seed.tsdataThe studio's pretend starting data: dance styles, rooms, teachers, plans, the weekly classes, members and the recital. data/db.ts builds the live state from it; swap all of it for your backend.
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}).
dance-mambo.tsx
The page: the sections in order.
Loading…
Good for
Dance studios with 3-8 teachers running group classes, private lessons, class packs and a yearly recital.
How it works
Drag class blocks across the week, book and check in spots that fill dot rows, sell packs and reorder the recital.
How to use
Edit words in locales/ and colors in theme.ts or parts/palettes.ts, and swap the bodies in data/api.ts for calls to your backend.