Перейти до вмісту

Paraglide Thermal

v1.0

A glass web app for a paragliding school: bookings, a draggable wind window with a glider riding the thermal line, a live flight log, students, pilots and reports over a teal-and-sunset sky.

$69

Адреса сторінки: /

Вбудовано

Що ви отримуєте
  • Світла й темнаВикористовує кольори вашої теми
  • Комп’ютер, планшет і телефонЕкрани, для яких його створено
  • Пакети…
  • Розмір коду…
  • Економить батарею30 fps, у спокої не навантажує
  • Пауза, коли прихованоПоза екраном або в іншій вкладці
  • Зменшення рухуСпокійно для тих, хто цього просить

Перевіряється після кожної зміни

Безпеку перевірено 3 груд.
  • Перевірка типівСтрогий TypeScript
  • Лінтер і форматESLint · Prettier
  • Тести й збіркаСкриншоти у світлій і темній темах
  • Аудит безпекиБез високих чи критичних загроз
  • Вік пакетівКожна версія публічна 7+ днів
  • Процесор у спокоїМенше половини ядра у спокої, ≤ 30 fps

Код

paraglide-thermalReact
  • paraglide-thermal.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.
    • bookings.tsxThe bookings page: one day of tandem and course slots, as the drag board (pilot lanes by slot) or as a list, with the day, the view and the kind kept in the address so Back brings them back.
    • flights.tsxThe flights log: every flight with its pilot, time, height and site, filtered by range, pilot, site and kind (kept in the address); totals on top, and today's take-offs and landings arrive live.
    • overview.tsxThe overview: today at a glance (flights, who is up, what is booked and held), the wind window, today's slots, the pilots up, the live log, this week's flights and the gear checks coming due.
    • pilots.tsxThe pilots: the school's eight instructors as cards (who flies today, their week and their gear); a pilot's page has tabs for their duty week and bookings, their gear checks and their flights.
    • reports.tsxThe reports: flights per week and the weather cancels for the last 8 or 12 weeks (kept in the address), then flights by pilot, by site and by kind, and the weekly numbers as a CSV file.
    • settings.tsxThe settings page: Appearance (style, theme and language), the launch sites (add, edit, remove), and the school's flyer weight and wind limits.
    • sign-in.tsxThe sign-in page (#/sign-in): the school's sign-in on one glass card over the sky, a wind sock and the day's launch line beside it on wide screens, without the top bar.
    • students.tsxThe students: everyone in training with their level, instructor and flights (filter by level, kept in the address); a student's page has tabs for their progress through the five levels, their logbook and their instructors' notes.
    • wind.tsxThe wind page: the wind window for the site in the address, the hour-by-hour forecast with each hour's call, every site's flyable window, and the school's limits (saved).
  • 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).
    • board.tsxThe bookings board for one day: a lane per pilot on duty, a column per slot. Drag a booking to another pilot or slot: it lifts from under the press, follows 1:1, glides into the exact cell and saves (with Undo); Escape or a taken cell sends it back.
    • booking-dialog.tsxThe booking form: a tandem or a course slot with the flyer's name and weight (checked against the school's limits), the day, slot, site and pilot; editing one also cancels it (with Undo).
    • flight-table.tsxThe flight log as a table: day, take-off and landing (a flight still up counts its minutes live), who flew with which pilot where, airtime and the highest point. New take-offs and landings flip in.
    • form-parts.tsxWhat every small form shares (starting over on open, the submit that checks then saves then closes, the button row) and the launch-site form.
    • limits-card.tsxThe school's wind limits (top wind and gust a flight may go in), checked and saved; every hour's fly, marginal or no-fly call reads them. On the Wind page and in Settings.
    • pilot-tabs.tsxTwo tabs of a pilot's page: their duty week (tap a day to switch it) with the bookings ahead, and their gear checks (mark one done).
    • record-dialogs.tsxThe smaller forms: log or edit a flight (and delete it, with Undo), add or edit a student, a pilot or a launch site. Each checks its own fields and says what is wrong under them.
    • 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.
    • student-tabs.tsxTwo tabs of a student's page: their progress through the five levels (sign off the next one, or step back) and their instructors' notes (add one).
    • top-bar.tsxThe top bar: logo, the page tabs with the liquid bead, the live wind sock, search, the theme switch and the account menu; on narrow screens a menu button opens the pages. Clear at the top, it frosts once the page scrolls.
    • wind-parts.tsxThe wind window's pieces: each call's colour, the thermal line's curve, the glider that rides it, and the readout of the hour under the glass (its wind, thermals, bookings, and Hold or Book).
    • wind-window.tsxThe wind window, the app's signature: the day at one launch as a strip of hours (fly, marginal, no-fly, held), wind bars, direction ticks and the thermal line; drag the glass pane through the day and a glider rides the thermal line under it, the readout shows that hour, and Hold puts its bookings on weather hold (saved).
  • partsWhat several sections share.
    • buildWhat several sections share.
      • cardsWhat several sections share.
        • sheen.tsThe sheen card style: cards rise, plus one soft light sweep across each card as it lands.
      • rowsWhat several sections share.
        • turn.tsThe turn row motion: each row on screen swings in from behind, hinged on its left edge, from faint (its free edge never comes forward, so it never widens the page).
      • 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 drawn sky mesh of four soft clouds (sky teal, canopy magenta and a sunset turn of it) over a far ridge line, dusky in dark and pastel in light, drifting very slowly. With followBackground it paints your background instead.
    • charts.tsxThe charts: pill bars and a glowing line, each in a recessed glass well, with the current period in the accent; plus a row of horizontal pill bars, and the last eight weeks of someone's flights as bars.
    • 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.
    • 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 liquid: shared by every segmented control, tab row and the page tabs in the top bar.
    • live.tsThe live day on one shared clock: each demo minute (1.5 seconds) the fake API lets booked flights take off and finished ones land, and every page that shows them loads again; it rests while the tab is hidden.
    • 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 (#/settings, #/?status=open).
    • school.tsThe one school answer every page reads (bookings, flights, people, sites, wind), and small look-ups on it.
    • 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.
    • ui.tsxThe app's small shared pieces: the glass card, its header, the segmented switch and link tabs with the liquid marker, status chips, stat tiles, a confirm dialog and the save helper.
    • 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.
    • wind-sock.tsxThe wind sock in the top bar: a striped sock on its pole, seen from above, that swings to point the way the live wind blows and fills out as it gets stronger.
  • 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.
    • clock.tsThe demo's clock: today is the real date, and the school day starts at 11:40 and runs on, one minute every 1.5 seconds, so flights take off and land while you watch.
    • school.tsThe school's people and places: the launch sites, the eight instructor pilots with their duty days and gear checks, and the students with their levels; plus the shapes every record has.
    • seed.tsThe pretend bookings and flights: twelve weeks of past days (some lost to weather), today around the demo's 11:40 and the next two weeks, from one seeded random so every visit looks the same.
    • wind.tsToday's hourly wind for each launch site: speed, gust, direction and how high the thermals go, from the valley forecast times the site's exposure; and the fly, marginal or no-fly call each hour gets against the school's limits.
  • 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}).

paraglide-thermal.tsx

The page: the sections in order.

Завантаження…
Підходить для
Paragliding and other weather-bound flight schools that book tandems and courses around the wind and track pilots, students and gear.
Як це працює
Drag the glass wind window through the day to read each hour and hold it; flights take off and land in the log live; drag bookings on the board.
Як користуватися
Edit words in locales/ and colors in theme.ts, and swap the bodies in data/api.ts for calls to your backend.