Zum Inhalt springen

Balloon Zephyr

v1.0

A hot-air balloon company's operations app in dawn-sky glass: drag a balloon up the wind column to plan its drift, call go or hold, level the baskets and send the chase crews.

$69

Seitenadresse: /

Eingebaut

Das bekommst du
  • Hell und dunkelNutzt deine Theme-Farben
  • Desktop, Tablet und HandyDie Bildschirme, für die es gebaut ist
  • Pakete…
  • Codegröße…
  • Schont den Akku30 fps, ruht im Stillstand
  • Pausiert, wenn verdecktAußerhalb des Bildschirms oder anderer Tab
  • Weniger BewegungRuhig für alle, die es wollen

Bei jeder Änderung geprüft

Sicherheit geprüft am 3. Dez.
  • TypprüfungTypeScript strict
  • Lint und FormatESLint · Prettier
  • Tests und BuildScreenshots in Hell und Dunkel
  • Sicherheits-AuditKeine hohen oder kritischen Hinweise
  • PaketalterJede Version seit 7+ Tagen öffentlich
  • CPU im LeerlaufUnter einem halben Kern in Ruhe, ≤ 30 fps

Code

balloon-zephyrReact
  • balloon-zephyr.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.
    • baskets.tsxThe baskets: each balloon with its next flight's load (weight against the day's limit, each compartment's share) and its inspection; open one for the drag-to-level load plan, the envelope's limits and the balloon's flights.
    • crew.tsxThe crew: pilots and chase drivers (available today or off, their next flight and how many they fly this fortnight) and the launch sites on the map, each editable; tabs keep the list in the address.
    • flight-detail.tsxOne flight: the pilot's call (go, hold, or cancel with a reason, which sends everyone to the rebook queue), and tabs for its manifest with check-in, the basket's load plan, the wind column and the chase crew's plan.
    • flights.tsxThe flights: every dawn and evening slot from today on, by day, filtered by status, balloon and slot (kept in the address); a row opens the flight. New flight opens the form.
    • overview.tsxThe overview: this morning at a glance. Seats, the heaviest basket, voucher sales and the rebook queue; the wind column with the drift map; today's go/no-go call; the three balloons with their baskets; the next flights, the chase crews and voucher sales.
    • passenger-detail.tsxOne booking: who, their party and contact, the flight, compartment, price and voucher, with check-in, rebook, edit and delete; the history tab lists everything that happened to it.
    • passengers.tsxThe passengers: every booking with its flight, weight band and status, searchable and filtered by status, band and day (kept in the address); the rebook queue a tap away. A row opens the booking.
    • reports.tsxThe reports: flights flown, passengers, cancellations and voucher sales over the last six or twelve months, flown against cancelled by month, voucher sales as a line and why flights were called off; Export CSV saves the months as a file.
    • settings.tsxThe settings page: Appearance (style, theme and language) and the company's details (name, base and the shared seat price new bookings start from).
    • sign-in.tsxThe sign-in page (#/sign-in): three glass balloons rising over the dawn sky beside the card with the logo and the form, without the rail and top bar.
    • vouchers.tsxThe gift vouchers: how many are live, what they're worth unflown and which run out soon; every voucher as a ticket with redeem (book it on a flight), void and restore; Sell voucher opens the form.
    • weather.tsxThe weather: for a picked day and slot, the wind at each altitude (with a pilot's pibal reading to replace it), the go/no-go advice at the planned cruise height, the next five days' flyable chance, the surface wind through the morning and the go/no-go rules themselves.
  • 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).
    • basket-plan.tsxA flight's load plan: the basket seen from above, its passenger compartments either side of the pilot's, each person a card you drag (or lift with Space and move with the arrows) to another compartment to level the basket; the payload against the day's limit, how far it leans, and Auto-balance.
    • booking-dialog.tsxThe booking form (name, party, contact, weight band, flight type, flight and price) and the rebook picker (the upcoming flights with seats free, one tap moves the passenger), each in a dialog.
    • crew-dialog.tsxThe crew form (a pilot or chase driver: name, role, phone, pilot rating or vehicle, home site, available today), the launch site form (name, village, map spot, access notes) and the delete confirm, each in a dialog.
    • flight-dialog.tsxThe flight form, in a dialog: the day and slot, which balloon, pilot, chase driver and launch site, the planned cruise height and a note. New flights start awaiting the pilot's call.
    • go-card.tsxToday's dawn call: the go/no-go advice for each balloon flying this morning (every rule checked against the forecast at its cruise height), the call each pilot has made, and the keys to call go or hold one balloon or all of them.
    • rail.tsxThe navigation: on wide screens a vertical glass rail down the right edge (the logo, every page with its icon and name, a glass bead that flows to the current one, and search); on phones a glass dock along the bottom with the first four pages and More, which opens the rest in a sheet.
    • 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.
    • top-bar.tsxThe top bar: where you are, today's sunrise and sunset, the time of the dawn briefing, search on phones, the theme switch and the account menu. Once the page scrolls the bar itself frosts (blur, a light ground fill, a thin bottom edge).
    • voucher-dialog.tsxSelling a gift voucher (who bought it, who it's for, the flight type, seats, price and expiry) and redeeming one onto a flight with seats free, each in a dialog.
    • wind-column.tsxThe wind column, the app's signature: the forecast's altitude bands stacked like the sky, each with its wind arrow and speed; drag the glass balloon up or down to the height a flight should cruise at and its drift draws on the map, ending at the field the chase crew should meet it in. Letting go saves the cruise height (and holds a go flight the wind now rules out).
  • partsWhat several sections share.
    • buildWhat several sections share.
      • cardsWhat several sections share.
        • rise.tsThe rise card style: cards rise and fade in (24px, a hair smaller), one after another.
      • rowsWhat several sections share.
        • stack.tsThe stack row motion, a drawer: the rows on screen start stacked under the first and spread to their places together.
      • 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: a dawn sky drawn as a mesh of four soft color clouds (sky blue above, pale gold and flame low on the horizon) over a faint line of chalk downs, drifting very slowly behind the glass. With followBackground it paints your background instead.
    • balloon-art.tsxA glass hot-air balloon drawn in SVG: a striped envelope with a shine, the basket on its ropes and the burner's flame. Each of the three balloons wears its own stripe color.
    • book.tsThe company data every page reads (one answer, "book") and the one way pages save: run the call, reload the answer, confirm with a toast or show what went wrong.
    • charts.tsxThe charts: pill bars (stacked when there are two series), a glowing line with its area, and a donut. Each sits in a recessed glass well; the current bar is the accent; every one follows the Charts studio (data-chart).
    • 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 cards between lanes (a basket's compartments): 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 and the board scrolling near their edges, Escape to cancel, and a keyboard path (Space lifts, arrows move, Space drops).
    • drift-map.tsxThe drawn map of the flying area (160 by 90 map units, 4 to the km): chalk downs, the river, woods, lanes and the launch sites, with a flight's drift path from its site to the field the chase crew should meet it in.
    • 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.
    • glass.tsxThe glass parts every page is built from: a panel, the liquid segmented switch, page and card headings, status pills, load meters and compact stat tiles.
    • 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 liquid: shared by every segmented control, tab row and the nav droplet.
    • logic.tsThe rules every page and the fake API share: dates and sun times, the go/no-go call, the drift path a balloon takes through the wind layers, where the chase crew should meet it, and basket loads.
    • 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.
    • router.tsThe page switcher: reads the app's page from the address hash (#/flights, #/flights/<id>?tab=load, #/passengers?status=rebook).
    • 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.
    • sheet.tsxThe 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.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.
    • 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.
    • seed.tsThe pretend company: three balloons out of three launch sites in a chalk-downs valley, their crew, a fortnight of dawn and evening flights with their passengers, vouchers, the wind and a year of history. "Today" is the real date; the demo clock is pinned to the dawn briefing.
    • types.tsThe shapes of everything the fake API hands out: balloons, launch sites, crew, flights, bookings, vouchers, the wind and the go/no-go rules.
  • 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}).

balloon-zephyr.tsx

The page: the sections in order.

Lädt…
Gut für
Balloon, glider and tour operators who sell weather-bound flights, plan crews and rebook passengers when the wind says no.
So funktioniert es
Drag the glass balloon through the wind bands: the drift draws on the map, the chase meet point moves and the go/no-go advice updates.
So nutzt du es
Edit words in locales/, colors in theme.ts and the company in data/seed.ts, and swap the bodies in data/api.ts for calls to your backend.