مواد پر جائیں

Escape Cipher

v1.0

A claymorphism escape-room venue app: four puffy room doors, live game timers on one shared clock, and a clay padlock whose number wheels you drag to log each code.

$69

صفحے کا پتہ: /

پہلے سے شامل

آپ کو کیا ملتا ہے
  • لائٹ اور ڈارکآپ کی تھیم کے رنگ استعمال کرتا ہے
  • ڈیسک ٹاپ، ٹیبلٹ، اور فونوہ اسکرینز جن کے لیے یہ بنایا گیا
  • پیکجز…
  • کوڈ کا سائز…
  • بیٹری پر ہلکا30 fps، ساکن ہو تو رک جاتا ہے
  • چھپنے پر رک جاتا ہےاسکرین سے باہر یا دوسرا ٹیب
  • کم حرکتجو لوگ کہیں ان کے لیے پرسکون

ہر تبدیلی پر جانچ

سکیورٹی جانچ 3 دسمبر
  • ٹائپ چیکTypeScript strict
  • لنٹ اور فارمیٹESLint · Prettier
  • ٹیسٹ اور بلڈلائٹ اور ڈارک اسکرین شاٹس
  • سکیورٹی آڈٹکوئی ہائی یا کریٹیکل ایڈوائزری نہیں
  • پیکج کی عمرہر ورژن 7+ دن سے عوامی
  • فارغ CPUآرام میں آدھے کور سے کم، ≤ 30 fps

کوڈ

escape-cipherReact
  • escape-cipher.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 (#/bookings): a strip of the next seven days (?day=), a payment filter (?pay=), the day's board and the booking dialog (?new=1 opens it).
    • home.tsxOverview (#/): the four room doors with live timers, the day's numbers, today's bookings, the fastest teams, the week's escape rate and the reset lists.
    • live.tsxA room's live game (#/live/<room>): the timer with its controls, the code lock, the puzzle progress and the hints. Without a room it opens the first one running.
    • reports.tsxThe reports (#/reports, ?range=4|12 weeks): escape rate and hints per room, the weekly average escape time, and the puzzles where teams ask for the most hints.
    • rooms.tsxThe rooms (#/rooms): a clay door card per room, and a room's page (#/rooms/<id>) with its story, numbers and the puzzles, reset and records tabs.
    • settings.tsxThe settings page: its title, the venue's game rules and Appearance (style, theme and language).
    • sign-in.tsxThe sign-in page (#/sign-in): a clay padlock beside the form on one card over the backdrop, without the rail and the door row. The shackle lifts while the card is hovered or focused.
    • staff.tsxThe game masters (#/staff): a card per game master with the rooms they run, this week's shift grid (tap a cell to add or drop a shift), and the dialog to add, edit or remove one.
    • teams.tsxThe teams (#/teams): every team with a search, or the leaderboard (?tab=board, ?room=); a team's page (#/teams/<id>) with its history, members and bookings. ?new=1 opens the new team dialog.
  • 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).
    • bookings.tsxThe bookings board: rooms down, the day's slots across (a list on phones), and the booking dialog to add, edit or cancel one.
    • live-play.tsxThe live page's play cards: the code lock (the padlock) that logs the next puzzle, the puzzle progress list with undo, and the hints card with ready hints, a free hint and the log.
    • live-timer.tsxThe live page's timer card: a big ring of the time left on the shared clock, the team and game master, and the controls (start, pause or resume, +5 min, end) with the start and end dialogs.
    • overview.tsxOverview's cards: the four big room doors with their live timers, the day's numbers, what is still to play today, the month's fastest teams, the week's escape rate and each room's reset list.
    • rail.tsxThe slim icon rail: the logo on top, then one round clay key per page, centered on the screen; a sunk puck glides to the current one and a gold dot marks it. On phones the same links open in the sheet with their names.
    • room-dialogs.tsxThe rooms' dialogs: add or edit a room (with a delete confirm), and add or edit a puzzle with its code and ready hints.
    • room-tabs.tsxA room's three tabs: the puzzles in play order (drag the grip, or lift it with Space and move it with the arrows), the reset checklist, and the room's records.
    • 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.
    • teams.tsxThe teams' parts: the team table, the leaderboard (a clay podium for the fastest three, rows for the rest) and the dialog to add or edit a team.
    • top-bar.tsxThe header: the menu button on narrow screens, the venue, search, the theme switch and the account menu, and under them a row of puffy door tiles, one per room, each opening its live game with its timer ticking on the shared clock (not on the Overview, whose big door cards show the same rooms).
    • venue.tsxSettings → Venue: the venue's name, the hint limit a game allows, the reset buffer between games and the default game length.
  • 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.
        • mask.tsThe mask row motion: each part of a row on screen (its children) slides up from behind its own mask.
      • 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).
    • act.tsRuns a save: on success every page's data loads again and a toast says what happened; on failure a toast says why.
    • appearance.tsHow the app looks right now: dark or light, Glass or Solid, from Settings → Appearance, the page around it and the Style setting.
    • art.tsxThe drawn art: each room's emblem and the clay door that swings open on its hinge (the header's door row and Overview's big doors).
    • avatar.tsxA person's initials in a round badge, tinted with the primary.
    • backdrop.tsxThe Glass style's backdrop: soft clay blobs of the primary and the tint with a big faint keyhole, what shows through the see-through clay; faded out in Solid; with followBackground it paints your background instead. Its colors are only the primary, the tint and vars made from them (the background never follows chart colors).
    • charts.tsxThe charts, flat inside their clay cards: bars that grow up from the floor (one color per room or series) and a line with a soft area that draws itself in.
    • clock.tsThe one shared clock every room timer reads (the doors, Overview, the live page): a tick a second, only while a timer is on screen and the tab is visible. Plus how game times are written.
    • 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.
    • doors.tsEach room's state right now, worked out once from the rooms, live games and bookings on the shared clock: what the header's door row, Overview's doors and the live page all show.
    • 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).
    • live-clock.tsxOne shared clock for everything live: it ticks only while something on screen listens, the tab is visible and live isn't paused, and the bare button that pauses it. What a tick does (move the demo's time, bring in an event, reload) is the app's, passed to liveClock.
    • 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.
    • padlock.tsxThe signature combination lock: a clay padlock with four rolling number wheels. Drag a wheel up or down (it follows the finger 1:1 and springs to the nearest digit), tap it, or use the arrow and digit keys; Try code springs the shackle open on the right code and wobbles the lock on a wrong one.
    • pills.tsxA pill switch (tabs, a range, a filter): a pressed-in track whose current pill sits up in clay with a gold dot. Each pill is a link, so Back walks the choices.
    • 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.
    • 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-history.tsThe pretend bookings for this week and twelve weeks of finished games, made by a seeded random so every visit shows the same venue.
    • seed.tsThe pretend venue: four rooms with their puzzles and reset lists, the teams and the game masters. Demo data stays in English.
    • stats.tsThe numbers worked out from the finished games: success rate, times and hints per room, best times per team, and the weekly series the charts draw. One rule each, used by every page that shows it.
  • 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}).

escape-cipher.tsx

The page: the sections in order.

لوڈ ہو رہا ہے…
کس کے لیے بہتر
Escape-room venues and game masters running several themed rooms: bookings, live games, hints, teams and reports.
یہ کیسے کام کرتا ہے
Drag the padlock's four wheels to the code a team found and the shackle springs open; every room's timer ticks on one clock.
استعمال کا طریقہ
Edit words in locales/, colors in theme.ts and rooms in data/seed.ts, and swap the bodies in data/api.ts for calls to your backend.