Glacier Crevasse
v1.0An ops desk for a glacier guiding company in frosted ice-blue glass, with a conditions card that frosts over as the temperature drops.
Адреса сторінки: /
Вбудовано
Що ви отримуєте- Світла й темнаВикористовує кольори вашої теми
- Комп’ютер, планшет і телефонЕкрани, для яких його створено
- Пакети…
- Розмір коду…
- Економить батарею30 fps, у спокої не навантажує
- Пауза, коли прихованоПоза екраном або в іншій вкладці
- Зменшення рухуСпокійно для тих, хто цього просить
Перевіряється після кожної зміни
Безпеку перевірено 3 груд.- Перевірка типівСтрогий TypeScript
- Лінтер і форматESLint · Prettier
- Тести й збіркаСкриншоти у світлій і темній темах
- Аудит безпекиБез високих чи критичних загроз
- Вік пакетівКожна версія публічна 7+ днів
- Процесор у спокоїМенше половини ядра у спокої, ≤ 30 fps
Код
glacier-crevasseReact
- glacier-crevasse.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.tsxBookings: the last two weeks and everything ahead, searched and filtered by status, each opening its dialog.
- conditions.tsxConditions: the conditions card, three weeks of snout readings, the ice caves with their status and the notes on each route.
- departure.tsxOne departure: its seats and guide ratio, then the bookings with check-in, the guides on it, the kit handed out and the note for the guides.
- gear.tsxGear: crampons, helmets and harnesses by size with what's out and due a check, the kits on guests with their return, and the inspection log.
- guests.tsxGuests: the list searched and filtered by waiver, and one guest's profile, bookings and waiver.
- guides.tsxGuides: the week ahead for all twelve, the roster and every certificate with its expiry, and one guide's tours and certificates.
- overview.tsxOverview: today at the base. Today's tours beside the conditions card, four numbers, then the live desk, gear out by size and the guides.
- reports.tsxReports: guests per week, cancellations by weather and other reasons, guests by tour, gear checks passed and each guide's hours this week, over 8 or 12 weeks.
- safety.tsxSafety: incidents, near misses, hazards and drills, filtered by kind, each with what was done and whether it is still open.
- settings.tsxThe settings page: Appearance (style, theme and language) and Operations, the limits the desk and the conditions card work to (guests per guide, when caves close, when high routes hold, how often gear is checked).
- sign-in.tsxThe sign-in page (#/sign-in): a frosted card over the ice-blue backdrop, the mark and the base's name beside it on wide screens, without the sidebar and top bar.
- tours.tsxTours: the departures (today, the week ahead, on hold, past) and the tour types the company sells, with their dialogs.
- 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).
- conditions-card.tsxThe conditions card, the app's signature: drag the glass bead along the thermometer and frost creeps in over the glass as it gets colder, while today's route draws itself over the glacier and its cave leg opens, goes on watch or closes; Log reading saves it and holds or frees today's tours.
- forms-ice.tsxThe ice and gear dialogs: a gear unit, an inspection, a cave's status, a route note and a safety record.
- forms-people.tsxThe people dialogs: a guest (boot size, harness, waiver), a guide (role, days off) and a guide's certificate.
- forms-tours.tsxThe tour dialogs: a tour type, a departure, a booking, the guides on a departure and cancelling one. Each checks its own fields (noValidate), saves through the fake API and refreshes every page.
- glacier.tsxThe glacier drawn on the conditions card: peaks, the ice tongue with its crevasses, the moraine, the icefall's seracs and the cave mouth, and today's route drawing itself over it leg by leg; the cave leg turns dotted and red when the caves close.
- overview-rows.tsxThe overview's panels around the conditions card: today's tours, the four numbers, the live desk, gear out by size, the guides today and the caves.
- sidebar.tsxThe ice-wall rail: the mark, search with the command palette shortcut, the pages in four groups with a glass bead (and its orange notch) that flows to the current one, and the base's name; collapsed, only the icons show.
- 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.
- tags.tsxThe status tags the pages share: a departure, a booking, a waiver, a gear unit and a cave, each its word and tone.
- top-bar.tsxThe top bar: the menu button on narrow screens, where you are, the conditions chip, search, the theme switch and the account menu. Clear over the page at the top, it frosts once the page scrolls.
- 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.
- center.tsThe center row motion: the middle row on screen rises first, then the ripple spreads up and down.
- 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 Glass style's backdrop: an ice-blue mesh of slow clouds with one signal-orange glow over a faint ridge of peaks, what shows through the frosted panels; faded out in Solid; with followBackground it paints your background instead.
- charts.tsxThe two charts: pill bars standing in a recessed well (one bar or a stack per column, the current one in the accent) and a line with its soft area, drawn over a freezing line.
- command-palette.tsxThe command palette (⌘K or Ctrl K): type to find a page or an action, then Enter.
- dates.tsDays as "2026-11-29" keys and times as "09:30", with the demo's pinned now: today from the real date, the time held at 10:40 so the day is always mid-tour.
- 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 meltwater: shared by every segmented control, tab row and the rail's nav bead.
- live.tsThe live desk: every few seconds the next booked guest walks in, checks in and takes a kit, and every page loaded shows it. Rests while the tab is hidden, while paused (the feed's Pause button) and once everyone is in.
- 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).
- 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 pieces every page is built from: frosted panels, the page head, segmented controls and tab rows with the meltwater bead, status tags, stat tiles, a search box, a text area, a confirm dialog and the table classes.
- 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-save.tsThe fake API's saves: tours, departures, bookings and check-in, guests, guides and certificates, gear, inspections, conditions readings, caves, route notes, safety records and settings. Each waits like a network call, then changes data/db.ts.
- api.tsThe fake API: every page loads and saves through these functions (saves in data/api-save.ts), so wiring a real backend happens here only.
- db.tsThe fake backend's tables (copies of the seed, changed by every save) and the views the pages read: a departure's row, today at the base, the gear room, the reports.
- seed-gear.tsThe pretend gear room and the ice: crampons, helmets and harnesses by size, today's kits out on guests, the inspection log, the three ice caves, route notes and the safety book.
- seed-people.tsThe pretend people: the twelve guides with their certificates, 240 guests with boot and harness sizes and waivers, and the company's safety settings.
- seed-tours.tsThe pretend tours: six tour types, twelve weeks of departures and bookings plus two ahead, and the morning reading of every day, with warm spells that closed the caves and storms that held the high routes.
- types.tsThe shapes of the guiding company's data: tours and their departures, bookings, guests, guides, gear, ice conditions and safety records.
- 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}).
glacier-crevasse.tsx
The page: the sections in order.
Завантаження…
- Підходить для
- Glacier guiding, ice-cave and outdoor tour companies that run guided departures, rent gear and watch the weather.
- Як це працює
- Drag the thermometer: frost spreads over the glass and the route line redraws. Check-ins and gear checkouts arrive live.
- Як користуватися
- Edit words in content.ts and colors in theme.ts, and swap the bodies in data/api.ts for calls to your backend.