דילוג לתוכן

Waterpark Flume

v1.0

A waterpark's day desk in sunny glass: a live park map where every slide's queue fills its tube, plus tickets, lifeguards, lockers and lightning holds.

$69

כתובת העמוד: /

מובנה

מה מקבלים
  • בהיר וכההמשתמש בצבעי ערכת העיצוב שלכם
  • מחשב, טאבלט וטלפוןהמסכים שהוא נבנה בשבילם
  • חבילות…
  • גודל הקוד…
  • חסכוני בסוללה30 fps, במנוחה כשהכול דומם
  • נעצר כשהוא מוסתרמחוץ למסך או בלשונית אחרת
  • הפחתת תנועהרגוע למי שמבקש

נבדק בכל שינוי

אבטחה נבדקה ב-3 בדצמ׳
  • בדיקת טיפוסיםTypeScript strict
  • Lint ועיצוב קודESLint · Prettier
  • בדיקות ובנייהצילומי מסך בהיר וכהה
  • בדיקת אבטחהללא התראות חמורות או קריטיות
  • גיל החבילותכל גרסה פומבית 7 ימים לפחות
  • מעבד במנוחהפחות מחצי ליבה במנוחה, ≤ 30 fps

קוד

waterpark-flumeReact
  • waterpark-flume.tsxThe page: the sections in order.
  • content.tsEvery word and number: brand, nav links, each section's copy and lists.
  • theme.tsThe colors as CSS variables, and the shared class strings.
  • README.mdHow to install it, and where to change the text, colors and form.
  • pagesOne file per page: the sections it shows, in order.
    • lifeguards.tsxLifeguards: the posts board (drag a guard onto a post, the one there swaps out; or onto the break bench), the 30-minute push rotation ahead, rotate now, posts added, edited and removed, and the guard roster; #/lifeguards/<id> opens one guard.
    • lockers.tsxLockers and cabanas: each bank's lockers free or rented to a wristband (rent, release, change the size), the day prices by size, and the shaded cabanas booked or freed for the day.
    • overview.tsxThe overview: guests in the park now, the longest waits and the lightning status up top, the live park map beside the guards on post, then guests an hour, today's sales and free lockers.
    • reports.tsxReports: guests (an hour today, a day for 7 or 30 days against the period before), the most ridden rides, revenue by ticket kind, and the numbers as a CSV file.
    • rides.tsxThe rides: the live park map over every ride's status, wait and height limit, filters that stay in the address, and adding, editing or removing a ride; #/rides/<id> opens one ride (sections/ride-detail.tsx).
    • settings.tsxThe settings page: the park's own settings (name, hours, the guest limit and the lifeguard rotation), then Appearance (style, theme and language).
    • sign-in.tsxThe sign-in page (#/sign-in): the logo and the form on one glass card over the backdrop, without the top bar, and the day's park facts under it.
    • tickets.tsxTickets: today's scans by gate, the passes on sale, and the orders, sold at the box office, scanned in, refunded or removed; #/tickets/<id> opens one order and #/tickets?new=1 opens the sale.
    • weather.tsxWeather: the lightning hold (started by a close strike or by hand, counting down to when it lifts, pausing the outdoor rides), heat and UV now, the afternoon outlook, strikes logged by distance, the hold rules and past holds.
  • sectionsOne file per page section.
    • account-menu.tsxThe 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.tsxSettings → Appearance: the style (Glass or Solid) and the theme (System, Dark or Light), each choice shown as a small preview, and the language (System or one of locales/list.ts).
    • guard-roster.tsxThe lifeguard team: every guard's role, shift and certifications (soon to lapse in amber, lapsed in red), added, edited and removed, and one guard's page (#/lifeguards/<id>) with their post now and the next rotations.
    • ride-detail.tsxOne ride (#/rides/<id>): its status keys and posted wait, the queue through the day, and its inspections with a new one logged in place.
    • sign-in-form.tsxThe 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.
    • ticket-types.tsxThe passes on sale (day, twilight, season, group): price, guests per ticket and on sale or not, added, edited and removed in place.
    • top-bar.tsxThe top bar, a floating glass strip: the logo, the page tabs whose current one sits in a glass water drop that slides and stretches between them, the live guest count and lightning status, search, pause, the theme switch and the account menu.
  • partsWhat several sections share.
    • buildWhat several sections share.
      • cardsWhat several sections share.
        • iris.tsThe iris card style: each card opens as a circle from its center.
      • rowsWhat several sections share.
        • flip.tsThe flip row motion: each row on screen tilts up from its bottom edge, from faint.
      • core.tsxThe 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.tsThe 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.tsHow the app looks right now: dark or light, Glass or Solid, from Settings → Appearance, the page around it and the Style setting.
    • avatar.tsxA person's initials in a round badge, tinted with the primary.
    • backdrop.tsxThe backdrop: an aqua-and-lime mesh of four soft clouds behind the glass with a sunny light in the corner and a few drawn swell lines along the bottom, dusky in dark and near-white pastel in light, drifting slowly. With followBackground it paints your background instead.
    • charts.tsxThe charts: rounded pill bars, a glowing line with its soft area and a donut, each plotted in a recessed glass well with the current bar or point in the sunny accent.
    • command-palette.tsxThe command palette (⌘K or Ctrl K): type to find a page or an action, then Enter.
    • dialog.tsxA 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-lanes.tsDrag a guard between posts and the break bench: mouse and pen at once, touch after a short press (a swipe still scrolls), the lifted copy kept under the grab point, the others sliding aside (FLIP), the page scrolling near its edges, Escape to cancel, and a keyboard path (Space lifts, arrows move, Space drops).
    • field.tsxA labeled form field (a text input or a select) with its error line under it, tied together for screen readers.
    • format.tsHow 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.tsxThe logo and the line icons, drawn on a 24-unit grid with round ends.
    • language.tsThe 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).
    • liquid-marker.tsThe selected marker that moves like a drop of water: the top bar's glass drop and every segmented control.
    • live.tsThe live park: one beat every few seconds lets guests scan in and waits drift (data/api.ts tick), and one shared one-second clock drives every countdown; both rest in hidden tabs and while paused.
    • moments.tsThe animations the sidebar, the sign-in card, menus, dialogs, the phone sheet and toasts play, timed by their moments in theme.ts.
    • motion.tsMotion helpers: the reduced-motion check, live, and run-once-in-view.
    • park-map.tsxThe park map, the app's hero: every slide is a glass tube whose water fills to its queue; drag a tube up or down to post a new wait, tap it for its status keys, and it ripples whenever its queue changes.
    • router.tsThe page switcher: reads the app's page from the address hash (#/settings, #/?status=open).
    • scroll-to-view.tsScrolls an element into view moving only its own scroll container, never the page around it.
    • select-box.tsxA native select dressed to match the app: no browser arrow, a drawn chevron instead.
    • session.tsWhether 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.
    • states.tsxThe data states every page shares: a calm skeleton while loading, an error with Try again, and an empty note with a way out.
    • store.tsThe app-wide state several parts share: the theme mode and style (kept in the browser) and the toasts.
    • ticker.tsxA number that counts up while its page builds in, and rolls to its new value whenever it changes.
    • toasts.tsxThe toasts: short notes that confirm what just happened, at the bottom end.
    • ui.tsxThe app's small shared parts: the glass panel, a card's heading, the segmented switch and link tabs with the liquid drop, status chips, a meter and the confirm dialog.
    • use-api.tsLoads 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.tsOpens 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.
  • dataThe pretend data and the fake API: swap it for your backend.
    • account.tsThe demo account: who is signed in (the account menu shows them) and the email and password the sign-in page takes.
    • api.tsThe fake API: every page loads and saves through these functions, so wiring a real backend happens here only.
    • guards.tsThe pretend lifeguard team: guards with their certifications, the posts they cover and the 30-minute push rotation that moves everyone one post along.
    • lockers.tsThe pretend lockers and cabanas: three locker banks in three sizes, free or rented to a wristband, and eight shaded cabanas you book for the day.
    • park.tsThe park's clock and the seeded randomness the pretend data uses: the demo day is today, and it opens already at 14:20 so every chart has a full morning.
    • rides.tsThe pretend rides: 14 slides, the wave pool, the lazy river and the splash pad, with their queues, height limits and inspections.
    • tickets.tsThe pretend tickets: the passes on sale, today's orders, the gate scans by hour and the revenue behind the reports.
    • weather.tsThe pretend weather over the park: heat, UV, wind, the hourly outlook, lightning strikes nearby, the hold rules and past holds.
  • localesEvery word the app shows, one JSON file a language; list.ts names them.
    • en.jsonOne language's words, with the keys of en.json.
    • es.jsonOne language's words, with the keys of en.json.
    • list.tsThe 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/check-locales.mjs the rest (no extra keys, plural forms, {slots}).

waterpark-flume.tsx

The page: the sections in order.

טוען…
מתאים ל
Waterparks, pools and leisure parks that run rides, gates, lifeguard rotations, lockers and weather holds from one screen.
איך זה עובד
Guests count up at the gates, waits shift on a park map of water tubes that ripple, and a close strike pauses rides.
איך משתמשים
Edit words in locales/, colors in theme.ts, and swap the bodies in data/api.ts for calls to your backend.