A front desk and floor app for a family arcade and bowling venue in loud Memphis style: a lane board you drag bookings on, parties, game cards, machines and the prize counter.
Web
13 صفحة
$69
عنوان الصفحة: /
المزيد بالأسفل ↓
مدمج
ما تحصل عليه
فاتح وداكنيستخدم ألوان سمتك
سطح المكتب والجهاز اللوحي والهاتفالشاشات المصمّم لها
الحزم…
حجم الكود…
خفيف على البطارية30 إطارًا في الثانية، ويهدأ حين يسكن
المعالج عند السكونأقل من نصف نواة عند السكون، ≤ 30 إطارًا في الثانية
الكود
هل من خلل في هذا التطبيق؟ أرسل ملاحظة ›
arcade-joystickReact
arcade-joystick.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.
booking.tsxpageA booking (#/booking/<id>?tab=players): its details with check-in, no-show, edit and cancel; the players list; and payments with deposits and refunds.
card.tsxpageA game card (#/card/<id>?tab=history): its balance with Top up, holder and status (block, unblock, retire), and every issue, top-up, play, win and redeem.
cards.tsxpageGame cards (#/cards?status=active&issued=today): look up any card by number or name, filter by status, and issue a new one at ?new; every row opens the card.
lanes.tsxpageThe lane board page (#/lanes?day=2026-11-27&area=bowling): a day pager and area filter on the pastel band, the board you drag bookings on, and the day's arrivals with Check in. New booking opens at ?new.
machine.tsxpageA machine (#/machine/<id>?tab=repairs): today's plays, tickets out, takings and uptime with its status switch, and the repair log to add to and close; Edit and Delete on the band.
machines.tsxpageMachines (#/machines?status=down&zone=B): every cabinet as a tile with its lamp, tickets out and uptime, filtered by status and zone; Add machine opens at ?new.
overview.tsxpageOverview (#/): the live ticket counter and four tiles, the live lane strip around now, then the top machines, tonight's parties and the latest card top-ups; everything opens its list.
package.tsxpageA party package (#/package/<id>?tab=addons): what it includes and costs with Edit and Delete, its add-ons to add or remove, and the parties booked on it.
parties.tsxpageParty packages (#/parties): the packages as a tilted pastel patchwork that each open their page, and the upcoming parties with their deposits. New package opens at ?new.
prizes.tsxpageThe prize counter (#/prizes): the shelf you drag into order, and the stock table with ticket prices, Restock, Edit and Delete; Add prize opens at ?new and Edit at ?edit=<id>.
reports.tsxpageReports (#/reports?range=30): takings by area as stacked bars with totals, the daily line, the busiest hours and machine uptime (lowest first), with a CSV download of the takings.
settings.tsxpageSettings (#/settings): the venue (name, opening hours, prices), the palette swatches and Appearance (theme and language).
sign-in.tsxpageThe sign-in page (#/sign-in): a drawn arcade cabinet on a pastel block beside the form card, without the top nav.
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 theme (System, Dark or Light), each shown as a small preview, and the language (System or one of locales/list.ts).
booking-dialog.tsxsectionThe booking form in a dialog, new or changed: who, which lane or room, the day, start and length, and for a party its package, kids and add-ons. It checks its fields and saves through the API; a taken slot says so under the form.
lane-board.tsxsectionThe lane board: lanes and rooms as rows, hours as columns, each booking a pastel slot that drops into its lane with a bounce as the board opens. Drag (or Space and the arrows) to move one; a now line marks the hour. Compact, it is Overview's live strip, the same board read-only around now.
machine-dialog.tsxsectionThe machine form in a dialog, new or edited: name, kind, zone, credits a play and tickets a play.
overview-top.tsxsectionOverview's first row: the ticket counter rolling up live on a pastel block with a drawn joystick, and four tilted stat tiles that open their lists.
package-dialog.tsxsectionThe party package form in a dialog, new or edited: name, where it runs, price a kid, minimum kids, length, deposit and what it includes.
prize-shelf.tsxsectionThe prize counter shelf: tiles you drag into the order kids see them (a short press on touch, so a swipe still scrolls). The others slide out of the way, the drop lands with a bounce and Undo puts it back. Keyboard: Space lifts, arrows move, Space drops, Escape cancels, read out as it goes.
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-nav.tsxsectionThe top nav: the logo, the live marquee (tickets out rolling, lanes in play, machines down, Pause), search, theme and the account menu, over a row of arcade push-buttons with a sunny puck that springs to the lit one. On phones the buttons move into a sheet.
partspartsWhat several sections share.
buildbuildWhat several sections share.
cardscardsWhat several sections share.
odometer.tsxpartThe odometer card style: cards rise while every number rolls digit by digit to its value.
rowsrowsWhat several sections share.
unfold.tspartThe unfold row motion: each row on screen opens down from its top edge, from faint.
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 Memphis shapes scattered behind the pages (a ring, a half moon, a zigzag, dots), small and sparse, in colors made from the primary only; with followBackground it paints your background instead.
bits.tsxpartSmall parts the detail pages share: the back link that keeps the list's filters, the tab row, a fact tile, and the confirm dialog for deletes.
charts.tsxpartThe charts: stacked bars (takings by area each day), plain bars (busiest hours), level bars (uptime, top machines) and a line (takings by day). Every series is a chart shade, so a preset or your Chart Studio recolors them; bars spring up as the page builds in.
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 joystick on a Memphis base) and the line icons, drawn on a 24-unit grid with round ends.
lane-drag.tspartDrag on the lane board: a booking lifts at the point you grab (a short press on touch, so a swipe still scrolls), snaps to half hours and lanes as you move, the board scrolls at its edges, and it drops with a bounce; Escape puts it back. The keyboard path: Space lifts, arrows move, Space drops, Escape cancels, read out as it goes.
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).
live.tsxpartThe one live clock: every two seconds plays come in from the floor (the ticket counter rolls up) and now and then a walk-in drops onto a lane. It rests while the tab is hidden, the app is off screen, the Pause button is on or motion is reduced.
memphis.tsxpartThe Memphis kit: drawn shapes in ink outlines (every picture in the app is one), the zigzag under a title, the pastel header band every page opens with, and the confetti pop for a win.
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-venue.tsdataThe fake API's saves for the venue: party packages, game cards, machines, the prize counter and the settings. Swap each body for a call to your backend.
api.tsdataThe fake API: every page loads and saves through these functions (and data/api-venue.ts), so wiring a real backend happens here only.
db.tsdataThe pretend database the fake API reads and writes: the venue's data from data/venue.ts plus four weeks of bookings and the game cards, made the same way on every load (a seeded random).
net.tsdataThe fake network every load and save goes through: a short wait while Slow network is on, and a failure while Show error state is on. Delete it when you wire your backend.
reports.tsdataWhat Overview and Reports count, worked out from the bookings, machines and cards in data/db.ts, so a number and the list it opens always agree.
venue.tsdataThe pretend venue: its lanes and rooms, party packages, machines, prize counter and game cards, in the shapes the pages need. Bookings are made in data/seed.ts.
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}).
arcade-joystick.tsx
The page: the sections in order.
جارٍ التحميل…
مناسب لـ
Family arcades and bowling alleys: front desk and floor staff running lanes, party rooms, game cards, machines and prizes.
كيف يعمل
Booked slots drop into lanes with a bounce, drag to move them, and a ticket counter rolls up live as the machines pay out.
طريقة الاستخدام
Edit words in locales/ and colors in theme.ts or parts/palettes.ts, and swap the bodies in data/api.ts and data/api-venue.ts for calls to your backend.