Przejdź do treści

Lounge Concourse

v1.0

An airport lounge app on champagne-and-slate frosted glass: a departures board whose tiles flip as flights change and glow when boarding is called.

$69

Adres strony: /

Wbudowane

Co dostajesz
  • Jasny i ciemnyUżywa kolorów twojego motywu
  • Komputer, tablet i telefonEkrany, dla których powstał
  • Pakiety…
  • Rozmiar kodu…
  • Oszczędza baterię30 fps, bezczynny w spoczynku
  • Pauza, gdy niewidocznyPoza ekranem lub w innej karcie
  • Mniej ruchuSpokojny dla osób, które o to proszą

Sprawdzane przy każdej zmianie

Bezpieczeństwo sprawdzone: 3 gru
  • Sprawdzanie typówTypeScript w trybie strict
  • Lint i formatowanieESLint · Prettier
  • Testy i buildZrzuty ekranu w jasnym i ciemnym
  • Audyt bezpieczeństwaBrak ostrzeżeń wysokich i krytycznych
  • Wiek pakietówKażda wersja publiczna od 7+ dni
  • CPU w spoczynkuPoniżej pół rdzenia w spoczynku, ≤ 30 fps

Kod

lounge-concourseReact
  • lounge-concourse.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.
    • capacity.tsxCapacity: how full the lounge is, then the zones and the waitlist as lanes to seat, move and reorder parties, with an Add to waitlist form at ?new.
    • flights.tsxFlights: the whole day's departures board, filtered by the address (?status=) and found by code or city, a New flight form at ?new, and one flight at #/flights/<id>.
    • food.tsxFood and drink: the order tickets moving from new to served, the buffet stations with their levels and a refill key (and who refilled what), and the menu; New order at ?new, an item form at ?item=new or ?item=<id>.
    • guests.tsxGuests: today's parties in the lounge with their flights, a check-in form at ?new, and one guest's visit at #/guests/<id>.
    • overview.tsxThe Overview: the lounge right now. The departures board with its boarding calls in the middle, the floor's four numbers above it, who was called and who just arrived beside it, and guests per hour, zones and the bar and buffet below.
    • reports.tsxReports for the last 7 or 30 days (?range=30): guests, revenue and dwell time with the change against the week before, guests per day, revenue per day, the guest mix, dwell by guest type, revenue by source and today's guests per hour.
    • settings.tsxThe settings page: its title, the lounge's own settings (prices, waitlist, hours) and Appearance (style, theme and language).
    • sign-in.tsxThe sign-in page (#/sign-in): one frosted boarding pass over the backdrop, without the top bar: a split-flap stub (the lounge, its concourse and "open") above a perforated tear line, then the form.
    • suites.tsxSuites: the six showers and eight nap pods on one timeline around now (each booking a glass pill, the now line lit), the cleaning queue, and the booking form at ?new or ?booking=<id>.
  • 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).
    • capacity-board.tsxSeats by zone as lanes: the waitlist first, then each zone with its parties and how full it is. Drag a waiting party into a zone to seat it, a seated party to another zone to move it, or reorder the waitlist; the keys do the same (Space lifts, arrows move, Space drops).
    • departures-board.tsxThe departures board, the app's signature: every flight on split-flap tiles that turn over softly when a time, gate or remark changes, and a row that lights up and breathes when its boarding is called. Each row says how many of the flight's guests are in the lounge and holds the press-and-hold boarding call.
    • flight-detail.tsxOne flight: its board row large on flap tiles, the boarding call and quick delays, Edit, Cancel (with Undo) and Delete, the guests booked on it who are in the lounge, and its timeline.
    • flight-form.tsxThe flight form (new and edit): code, airline, destination and its airport code, the scheduled time, the gate and a delay. It checks its own fields; a code already on the board is refused in words.
    • food-menu.tsxThe menu by bar, kitchen and coffee: each item's price (or included), a switch for whether it is out today, edit, and delete with Undo; plus the item form (new and edit).
    • food-orders.tsxFood and drink orders: three columns (new, preparing, served) where each ticket moves on with one key or is cancelled with Undo, and the New order form (a guest, then a count per menu item).
    • guest-detail.tsxOne guest's visit: who they are and how they got in, their flight on flap tiles, their stay so far, and tabs for the visit's timeline and their orders. Edit, Check out and Delete (each with Undo) sit at the top.
    • guest-form.tsxThe check-in form (and its edit): the lead guest's name, how they got in, their flight, the party and the zone they sit in. It checks its own fields; a zone without room for the party says so and offers the waitlist instead.
    • guest-list.tsxToday's guests: who is in, who was called to board and who left, filtered by the address (?state=, ?type=) and found by name. Each row shows the party, how they got in, their flight on the board and their stay, with Check out (and Undo) at hand.
    • lounge-settings.tsxThe lounge's own settings: day-pass price, the airline rate and the extra-guest fee, the share of seats that opens the waitlist, how long called guests take to leave, and the opening hours. It checks its own fields and saves with a toast.
    • overview-cards.tsxThe Overview's cards around the board: the four numbers of the floor, who was just called to board, who just checked in, guests per hour, seats by zone, and the bar and buffet.
    • 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.
    • suite-form.tsxThe booking form for a shower or a nap pod (new and edit): which suite, which guest, when and how long. It checks its own fields; a time that overlaps another booking is refused in words. An existing booking can also end now or be cancelled (with Undo).
    • suite-timeline.tsxThe suites timeline: every shower and nap pod on one row around now, each booking a glass pill (the live one lit) and the now line across them all. A pill shows its guest's name only where the whole name fits (on up to two lines); a pill too small keeps the name for screen readers and the hover title.
    • timeline.tsxA guest's or a flight's day as a timeline: each event at its time on a thin rail, the boarding call lit in the accent.
    • top-bar.tsxThe top bar, a frosted departures board floating over the page: the brand, the lounge clock on flap tiles, guests in against seats, the next boarding, Pause, search, the theme switch and the account menu; under it the pages as board tiles with a glass bead on the current one. On a phone the pages open in a sheet.
  • partsWhat several sections share.
    • buildWhat several sections share.
      • cardsWhat several sections share.
        • unfold.tsThe unfold card style: cards unfold downward from their top edge, their contents fading in.
      • 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: the terminal's tall window wall at golden hour. A sky-blue cloud leans in from the top corner, a champagne light pools low, slate settles between them, and faint window mullions and a horizon line run behind the glass; the clouds drift a few slow passes, then rest. With followBackground it paints your background instead.
    • charts.tsxThe charts, each in a recessed well: pill bars (guests per hour or per day, the current one lit in the accent with a glow), a smooth glowing line with a soft fill under it, and a donut whose legend reads each slice.
    • 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 ordered lanes (a zone's parties, the waitlist): 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).
    • field.tsxA labeled form field (a text input or a select) with its error line under it, tied together for screen readers.
    • flap.tsxSplit-flap tiles, the departures board's letters: each character sits on its own small glass tile with a hinge line, and when the text changes only the changed tiles turn over, one after another, softly.
    • 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 nav droplet.
    • 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 small parts every page shares: the glass panel and its heading, a segmented switch whose glass bead flows to the pick, a seat meter, guest-type and flight-status chips, a stat tile, and the press-and-hold key that calls boarding.
    • 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: the lounge's duty manager.
    • api-flights.tsThe fake API for flights: the departures list, one flight, the boarding call, delays, saving and cancelling, and the demo sign-in.
    • api-ops.tsThe fake API for running the floor: zones and the waitlist, shower and nap-pod suites, and food and drink.
    • api-reports.tsThe fake API for the reports (guests per day and hour, dwell time, revenue) and the lounge settings.
    • api.tsThe fake API: every page loads and saves through these functions (and data/api-flights.ts, data/api-ops.ts, data/api-reports.ts), so wiring a real backend happens here only. This file holds the first-paint reads, the Overview and guests.
    • db.tsThe lounge's live state that the fake API reads and changes, the demo clock, and the rules several answers share (who is in, seats per zone, a flight's board status, today's revenue).
    • live.tsThe demo's live floor: every few seconds a party checks in (or joins the waitlist when the lounge is full), a flight is delayed, moves gate or calls boarding, called guests leave, the buffet drains and orders move on. Delete it when your backend pushes real changes.
    • net.tsThe pretend network every API call goes through: a short wait while Slow network is on, and a failing load while Show error state is on. Delete both when you wire your backend.
    • seed.tsThe pretend lounge on the demo day: Concourse B's 220-seat lounge at 14:20, with the day's flights, every party that came in since 05:00, suites, the menu, orders, buffet stations and thirty earlier days for the reports. Built once from a fixed seed, so every visit sees the same day.
    • types.tsThe shapes of the lounge's pretend data: guests, flights, zones, the waitlist, suites, food and drink, and the settings. Times are minutes since midnight of the demo day.
  • 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}).

lounge-concourse.tsx

The page: the sections in order.

Ładowanie…
Dobry do
Airport lounges and premium waiting rooms: guest check-in, flights, seats by zone, showers and nap pods, the bar and reports.
Jak to działa
Guests check in live and seats fill; board tiles flip softly on a delay or gate change, and a held key calls boarding with a glow.
Jak używać
Edit words in content.ts and colors in theme.ts, and swap the bodies in data/api.ts for calls to your backend.