Rink Glide
v1.0An ice rink front desk on frosted cyan glass: sessions and tickets, skate hire, lessons, resurfacing, bookings and reports, under a ribbon of tabs.
页面地址: /
内置
你能得到- 浅色和深色使用你的主题颜色
- 桌面端、平板和手机为这些屏幕设计
- 依赖包…
- 代码大小…
- 省电30 fps,静止时空闲
- 隐藏时暂停不在屏幕内或在其他标签页
- 减少动效尊重用户的减少动效设置
每次修改都会检查
安全检查于 12月3日- 类型检查TypeScript 严格模式
- 代码检查与格式化ESLint · Prettier
- 测试与构建浅色和深色截图
- 安全审计无高危或严重漏洞通告
- 依赖包发布时间每个版本都已公开 7 天以上
- 空闲 CPU静止时不到半个核心,≤ 30 fps
代码
rink-glideReact
- rink-glide.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.
- booking-detail.tsxOne booking: the price, what is paid and what is left, then tabs (kept in the address) for the payments (take one; paying in full marks it paid) and the details (status, edit, delete with Undo).
- bookings.tsxBookings: private hire and hockey ice time, filtered by kind and status (both kept in the address, so Back returns to them), each with how much is paid; and the hockey teams (edit, delete with Undo).
- group-detail.tsxOne lesson group: the roster with each pupil's four skills for the level (tick one as passed), add or remove a pupil (with Undo), and the group's details (edit, or delete with Undo). The tab is kept in the address.
- hire.tsxSkate hire: the shelf by size, the pairs out now (check one in, with Undo) and the sharpening queue (tick a pair done, book one in). The view is kept in the address, so the overview's links open it filtered and Back returns to it.
- ice.tsxThe ice: the rink with the day's timer (drag the handle to move the chosen resurfacing pass; the pass is kept in the address), the day's passes (pick, tick done, delete with Undo, add one) and the quality log.
- lessons.tsxLessons: the groups (level, coach, when, places and how far the pupils have got) and the coaches (who teaches which levels). The tab is kept in the address; a group opens its roster.
- overview.tsxOverview: the day at the rink. Four KPI tiles, the day's session ribbon beside the rink and its next resurfacing (the signature drag), then skates out by size, the next lessons, this week's bookings, the ice log and the sharpening queue; every block opens its filtered page.
- reports.tsxReports: skaters per day, hire takings and how full each kind of session ran, over 7, 14 or 30 days (kept in the address); today is the accent bar.
- session-detail.tsxOne session: its fill and takings up top, then tabs (kept in the address) for the ticket desk, the sales so far (refund one, with Undo) and the details (edit, or delete with Undo).
- sessions.tsxSessions: the week on one board, a lane a day. Filter by kind (kept in the address, so Back returns to it), open a session for its tickets, add one, or drag a session to another day: it keeps its time and swaps places with the session there.
- settings.tsxThe settings page: the rink's own settings (opening hours, capacity, resurfacing time, prices) and Appearance (style, theme and language).
- sign-in.tsxThe sign-in page (#/sign-in): the form on a frosted card beside the rink with a resurfacing gleam half-way across, without the top bar.
- 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).
- booking-dialog.tsxThe booking forms: a private hire or a hockey team's ice time (who, when, how many, the price) and a hockey team (name, contact, players, their usual slot).
- group-dialog.tsxThe lesson forms: a group (name, level, coach, day, time, places) and a coach (name, phone, the levels they teach).
- hire-dialogs.tsxThe skate-hire forms: hand a pair out (size, skater, session) and book a pair in for sharpening (a hire pair by size, or a skater's own skates by name).
- quality-log.tsxThe ice quality log: two weeks of surface temperature and thickness (morning and afternoon readings), the latest readings with their rating (delete one, with Undo), and a form to log a new one.
- rink-card.tsxThe signature: the rink with the day's timer under it. Drag the glass handle along the day and the resurfacing gleam sweeps the ice 1:1, the skaters-on-ice number rolls and the gap under the handle lights; let go in a gap and the pass moves there (saved, with Undo), anywhere else and it glides back.
- session-dialog.tsxAdd or edit a session: its title, kind, day, start, length, capacity and a note. One sheet of ice, so a time that overlaps another session is refused with the reason under the start.
- session-ribbon.tsxThe day's session ribbon: every session of the day as a band on one track (the resurfacing passes between them, the now line across it), then four ticket stubs around now (the last one done, the one on the ice, the next two) and the day's totals.
- 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.
- size-board.tsxThe skate shelf: a tile per size with the pairs free to hand out, a rack of pegs (free, out, at the sharpener) and the counts in words; pick a size to hand a pair out. The last tile sums the shelf.
- ticket-desk.tsxThe ticket desk for one session: pick a ticket, set how many, add a name (or sell to a walk-up), and sell. A sale that would put more skaters on the ice than the session holds is refused with the places left.
- top-bar.tsxThe shell's top: a slim header (logo, the rink's live now, search, theme, account) over the ice ribbon, a full-width frosted strip of tabs whose glass marker glides on the blade spring with a bright blade edge along the ribbon's bottom. Once the page scrolls, a solid strip backs both rows so nothing reads through.
- partsWhat several sections share.
- buildWhat several sections share.
- cardsWhat several sections share.
- flip.tsThe flip card style: cards turn up in 3D from their bottom edge.
- 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 drawn mesh of four soft frosted clouds behind the glass, cyan ice with one magenta light, and faint figure-eight skate tracings cut into it; dusky in dark, near-white pastel in light, drifting very slowly for its first ten minutes. With followBackground it paints your background instead.
- charts.tsxThe charts: rounded pill bars and soft glowing lines, each plotted in a recessed glass well, the current bar or last point in the accent, axis labels that never overlap.
- 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-days.tsDrag a session to another day of the week: mouse and pen at once, touch after a short press (a swipe still scrolls), the lifted copy kept under the grab point, the gap opening at the session's own time in the day it hovers, the board scrolling near its edges, Escape to cancel, and a keyboard path (Space lifts, left and right 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.
- 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.tsxFrosted glass: every panel has a bright fixed rim and an inset highlight (theme.ts GLASS, a plain CSS blur), the same in every browser.
- 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 glides like a skate blade: shared by the ice ribbon and every segmented switch.
- 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.
- rink.tsxThe drawn rink: an oval of ice with its boards, lines and circles, skaters gliding round it counter-clockwise on one 30 fps clock, skate cuts in the ice, and the resurfacing pass whose gleam sweeps across and leaves the ice glossy behind it.
- router.tsThe page switcher: reads the app's page from the address hash (#/settings, #/?status=open).
- rules.tsThe rink's rules, one place for each count, so a number and the list it opens always agree: skaters on a ticket, a session's fill and takings, what is on the ice at a minute and where the gaps are.
- 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 shared pieces every page uses: the page heading, a segmented switch on the blade spring, card heads with See all, kind and status chips, the capacity meter, a KPI tile 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.
- 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, but the time is pinned to ten past two in the afternoon, mid public skate, so "today" is never empty whenever you open it.
- seed-bookings.tsThe pretend bookings: private ice hire (birthdays, corporate nights, a film shoot) and hockey team ice, plus the clubs that hold a weekly slot.
- seed-hire.tsThe pretend skate hire: the shelf of sizes (kids C8 to C13, then UK 1 to 13), today's pairs out and back, and the sharpening queue.
- seed-ice.tsThe pretend ice log: two readings a day for the last two weeks (thickness, surface temperature, a 1-5 rating) and the past 30 days of skaters, hire takings and session fill for the reports.
- seed-lessons.tsThe pretend skating school: six coaches, twelve weekly groups from Learn to Skate 1 to figure and hockey skills, and each group's pupils with the skills they have passed.
- seed-sessions.tsThe pretend week on the ice at Northgate Ice Arena: eleven slots a day with a gap for the resurfacer between them, the tickets sold for each, and the passes planned in those gaps.
- types.tsThe shapes the fake API answers with: sessions and tickets, skate hire, lessons, the ice, bookings and the rink's own settings. Times of day are minutes after midnight; days of the week are 0 (Monday) to 6.
- 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}).
rink-glide.tsx
The page: the sections in order.
正在加载…
- 适用场景
- Indoor ice rinks and skating clubs: public and disco sessions, skate hire, learn-to-skate groups, hockey ice time and resurfacing.
- 工作原理
- Drag the timer under the rink and a resurfacing gleam sweeps the ice while the skater count rolls; drag sessions between days.
- 使用方法
- Edit words in locales/ and colors in theme.ts, and swap the bodies in data/api.ts for calls to your backend.