Rooftop Skyline
v1.0A rooftop bar app under a glass dock and a drawn city skyline: drag the evening scrubber and the sky turns from sunset to night as booked tables light up.
페이지 주소: /
기본 제공
제공 내용- 라이트 및 다크사용 중인 테마 색상 적용
- 데스크톱, 태블릿 및 휴대폰지원하는 화면
- 패키지…
- 코드 크기…
- 배터리 절약30 fps, 멈춰 있을 땐 대기
- 숨겨지면 일시 정지화면 밖 또는 다른 탭
- 모션 줄이기원하는 사용자에겐 차분하게
변경할 때마다 검사
보안 검사 12월 3일- 타입 검사TypeScript strict 모드
- 린트 및 포맷ESLint · Prettier
- 테스트 및 빌드라이트/다크 스크린샷
- 보안 감사높음 또는 심각 등급 권고 없음
- 패키지 공개 기간모든 버전 공개 후 7일 이상
- 대기 시 CPU대기 시 코어 절반 미만, 30 fps 이하
코드
rooftop-skylineReact
- rooftop-skyline.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.tsxOne booking (#/bookings/<id>): who, when and where, the next step for the host (arrive, seat, finish, cancel, no-show), the deposit, and tabs for its bar tab and its history.
- bookings.tsxBookings (#/bookings): every booking by night, filtered by the address (night, status, sunset, deposit) so filters survive Back, with a search, the night's numbers and New / Walk-in. #/bookings/<id> opens one (pages/booking.tsx).
- menu.tsxMenu (#/menu): cocktails and plates with prices and tags; 86 one when the bar runs out, reorder, edit or delete (with Undo). #/menu/<id> opens one with its details and its sales tonight.
- orders.tsxOrders (#/orders): every open tab by table (add a drink or plate, take one off, comp it, close with a tip) and the bar board (?view=bar). The open tab is in the address (?tab=) so Back returns to it.
- overview.tsxOverview (#/): tonight at a glance. The hero numbers and the evening scrubber, then covers by hour, who arrives next and the bar queue, then top cocktails, deposits due and who is on.
- reports.tsxReports (#/reports): tonight, the last 7 nights or the last 30 (?range=, so Back keeps it): covers, takings, spend per cover, covers per hour, takings per night and the top cocktails.
- settings.tsxThe settings page: the venue (sunset time, deposits, booking slots and table turns) and Appearance (style, theme and language).
- sign-in.tsxThe sign-in page (#/sign-in): the logo and the form on one glass card over the dusk sky and the skyline, without the top bar and dock.
- staff.tsxStaff (#/staff): the week's shifts as a timeline per night (?day= so Back keeps it), add or edit one, and the sections board: drag a person to the rail, lounge, deck, bar or door (or move them with the arrow keys).
- terrace.tsxTerrace (#/terrace): the signature. Drag the evening scrubber and the sky behind the floor plan moves from sunset to night while the tables booked at that minute light up. Tap a table to book it, seat or clear its party, move it, or merge and split tables.
- 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).
- bar-board.tsxThe bar board: every cocktail ticket in New, Making, Ready or Served. Click a ticket to move it on one step, or drag it to any column (it follows the pointer from where it was grabbed).
- booking-bits.tsxThe small pieces every booking list shares: its status and deposit chips and one booking row (time, guest, party, tables, status).
- booking-form.tsxThe booking dialog: new or edit, a walk-in, or a table picked on the evening scrubber (time and table filled in). Checked as you save; a table clash says who holds it.
- dock.tsxThe dock: a glass column floating on the left edge (a bar at the bottom on phones), one key per page; a liquid bead glides to the current one.
- item-form.tsxThe menu item dialog: a cocktail or a plate with its price, tags and a short line; new or edit.
- shift-form.tsxThe shift dialog: who, which night, from and until (half-hour steps, past midnight allowed); new, edit or delete.
- 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.
- top-bar.tsxThe top bar: a floating glass strip with the wordmark, where you are, tonight's sunset, search, the theme switch and the account menu.
- partsWhat several sections share.
- buildWhat several sections share.
- cardsWhat several sections share.
- odometer.tsxThe odometer card style: cards rise while every number rolls digit by digit to its value.
- 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 soft mesh of dusk clouds over a drawn city skyline whose sky, sun, moon and lit windows follow the time of evening (parts/evening.ts). With followBackground it paints your background instead.
- charts.tsxThe two charts: pill bars and a glowing line, each plotted in a recessed glass well, the current bar or last point in the accent.
- 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.
- evening.tsThe time of evening the app shows: the pinned "now", or wherever the evening scrubber is dragged. The backdrop's sky and the terrace plan read it.
- field.tsxA labeled form field (a text input or a select) with its error line under it, tied together for screen readers.
- floor-plan.tsxThe terrace plan: 30 tables under the drawn skyline. The sky follows the evening scrubber's time; tables booked then light up gold, seated ones carry a chair just off their lower corner, pushed-together ones are bridged.
- 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.
- scrubber.tsxThe evening scrubber: a glass knob you drag along the night (17:00-01:00) over its covers curve. It follows the pointer 1:1, then glides to the nearest slot; the sky and the terrace plan follow it (parts/evening.ts).
- 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.
- 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 shared pieces every page is built from: the glass panel, its heading row, the segmented switch with the liquid marker, status chips 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.
- seed-bookings.tsThe pretend bookings: tonight's ~46 (done, seated, arriving and still to come at the pinned 20:10), plus yesterday and the next six nights.
- seed-floor.tsThe pretend terrace: 30 tables in three zones, the team and their shifts for the week.
- seed-menu.tsThe pretend menu: fourteen cocktails and ten plates, with what sold tonight and on a usual night.
- seed-orders.tsThe pretend tabs and bar tickets for tonight (one tab per party that sat down), and thirty nights of history for the reports.
- venue.tsThe shapes every page shares and the night's clock: service runs 17:00 to 01:00, written as minutes after midnight (1500 is 01:00).
- 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}).
rooftop-skyline.tsx
The page: the sections in order.
불러오는 중…
- 이럴 때 좋아요
- Rooftop bars and terraces that run sunset bookings, deposits, a cocktail menu, bar tabs and a small floor team.
- 작동 방식
- Drag the evening along its timeline: the sky behind the terrace plan darkens, windows light and the tables booked then glow.
- 사용 방법
- Edit words in locales/ and colors in theme.ts, and swap the bodies in data/api.ts for calls to your backend.