A boutique hotel's front office in eleven pages: a letterhead masthead over a drawn river at dusk, a night ribbon of rooms sold, a room-by-night calendar you drag stays across, check-in, folios, guests, a housekeeping board, rates and reports.
Web
12 pages
$69
Adresse de la page : /
Suite plus bas ↓
Intégré
Ce que vous obtenez
Clair et sombreUtilise les couleurs de votre thème
Ordinateur, tablette et téléphoneLes écrans pour lesquels il est conçu
Paquets…
Taille du code…
Économe en batterie30 i/s, au repos quand rien ne bouge
Pause quand masquéHors écran ou autre onglet
Mouvement réduitCalme pour ceux qui le demandent
Vérifié à chaque modification
Vérification des typesTypeScript strict
Lint et formatESLint · Prettier
Tests et buildCaptures claires et sombres
Audit de sécuritéAucune vulnérabilité élevée ou critique
Ancienneté des paquetsChaque version publique depuis 7 jours ou plus
CPU au reposMoins d’un demi-cœur au repos, ≤ 30 i/s
Code
Un problème avec cette application ? Envoyer un avis ›
stay-marlowReact
stay-marlow.tsxpageThe page: the sections in order.
content.tscontentEvery word and number: brand, nav links, each section's copy and lists.
theme.tsthemeThe colors as CSS variables, and the shared class strings.
README.mdreadmeHow to install it, and where to change the text, colors and form.
content-hotel.tspartThe hotel pages' words: Guests, Housekeeping and Settings.
content-numbers.tspartThe numbers pages' words: Rates and Reports.
content-stays.tspartThe stay pages' words: Calendar, Front desk, Check-in and a booking's own page.
pagespagesOne file per page: the sections it shows, in order.
calendar.tsxpageThe Calendar: rooms by night for two weeks or 30 nights, stays dragged between rooms and nights or stretched, the tray of bookings still waiting for a room, and the New booking dialog.
check-in.tsxpageCheck-in, its own page per booking: four steps (guest and ID, room, payment, keys) with the step in the address so Back walks them, each checked before the next, then a done screen.
front-desk.tsxpageFront desk: arrivals, in-house guests, departures and every booking in tabs, a day to look at, search and filters kept in the address, and the table with its bulk actions.
guest.tsxpageA guest's profile: Back to the list it came from, the head with five numbers, the Stays, Profile and Preferences tabs, and the next-stay card.
guests.tsxpageGuests: search, country and tag filters and quick toggles kept in the address, the table with bulk tagging, and the Add guest dialog.
home.tsxpageOverview: the greeting and its sentence about tonight, five key numbers, today's arrivals, departures and housekeeping, then the next three weeks, revenue by channel and what needs attention.
housekeeping.tsxpageHousekeeping: rooms by state or by attendant on a drag-and-drop board, a count per state and each attendant's load above it, and filters kept in the address.
rates.tsxpageRates and availability: two weeks of rates per room type to type over, the plan they show in, earlier and later weeks, and the Bulk edit dialog.
reports.tsxpageReports: occupancy, ADR and RevPAR for the last 7, 30 or 90 nights against the period before, the night-by-night trend, then room types, channels, weekdays and the nights already on the books.
reservation.tsxpageA booking's own page: Back to the list it came from, the head with its actions, the Stay, Folio, Requests and History tabs, and the guest, money and room cards beside them.
settings.tsxpageSettings: the property and its policies, room types, the team and Appearance (style, theme and colors), each in a tab kept in the address.
sign-in.tsxpageThe sign-in page, in the letterhead's look over the drawn river: email and password with their errors, show or hide the password, Remember me, the demo account, and Forgot password to a sent screen.
sectionssectionsOne file per page section.
account-menu.tsxsectionThe account menu under the avatar: who is signed in, Profile, Settings, the theme and Sign out; the arrow keys move through it, Escape or a click outside closes it.
appearance.tsxsectionSettings → Appearance: the style (Glass or Solid), the theme (System, Dark or Light) and the color preset, each choice shown as a small preview.
back-link.tsxsectionThe Back link above a detail page: back to the list it was opened from, filters and all.
calendar-tray.tsxsectionThe Calendar's tray: bookings still waiting for a room, each one dragged onto a room row or given a room from a short list of the free ones.
check-in-done.tsxsectionThe done screen after a check-in: the guest is in, with links to the booking and back to the desk's arrivals.
check-in-pay.tsxsectionCheck-in's last two steps: what to take now (the whole balance, the first night or nothing) and how, then how many key cards to cut with a summary of the stay.
check-in-steps.tsxsectionCheck-in's first two steps: the guest's details and ID, then the room, picked from the ones free for every night and ready (clean or inspected), the booked type first.
desk-table.tsxsectionFront desk's table: guest, booking, room, stay, status, channel and balance, sortable, with a check-in or check-out button per row and bulk actions for the rows ticked.
guest-head.tsxsectionA guest profile's head: the name with a VIP switch, since when they stay with us, five numbers about their stays, and the next-stay card.
guest-table.tsxsectionThe Guests table: name with VIP star and tags, country, stays, nights, spend, last and next stay, sortable, with a bulk Add tag for the guests ticked.
guest-tabs.tsxsectionA guest profile's tabs: every stay (each opens its booking), the contact details to edit or the record to delete, and preferences, tags and notes.
hk-board.tsxsectionThe housekeeping board: rooms as cards in a column per state (or per attendant), dragged or moved with the keyboard to change their state or who cleans them, each card also with a select for the other, saved with Undo.
hk-stats.tsxsectionHousekeeping's numbers: a count per state (each a filter) and how many rooms each attendant still has to clean (each opening their rooms).
home-charts.tsxsectionOverview's charts: rooms sold each of the next 21 nights (a bar opens that night on the Calendar) and this month's room revenue by booking channel (a row opens those bookings).
home-house.tsxsectionOverview's house: every room as a tile by floor in its housekeeping color with a count per state, and the list of what needs the desk today.
home-kpis.tsxsectionOverview's head: the greeting with one sentence about tonight, then five key numbers in one ruled strip, each opening the list it counts.
home-today.tsxsectionOverview's day at the desk: today's arrivals by expected time with a Check in button each, and today's departures with what they still owe.
masthead.tsxsectionThe letterhead at the top: search on the left, the crest and the hotel's name in the middle, theme, New booking and the account menu on the right.
new-booking.tsxsectionThe New booking dialog, open while the address has ?new=1: a returning guest or a new one, the room type, the nights and the plan; it saves through the API and the stay lands on the Calendar.
new-guest.tsxsectionThe Add guest dialog, open while the address has ?new=1: name, email, phone and country, checked, saved through the API, then the new profile opens.
night-ribbon.tsxsectionThe night ribbon under the links: tonight and the 20 nights after it, each a column filled by the rooms sold; on first load the columns fill left to right like a rising tide. A night opens the Calendar from that date.
page-links.tsxsectionThe masthead's page links: small capitals set like a letterhead, the current one underlined by a rule that glides from link to link.
rates-bulk.tsxsectionThe Bulk edit dialog on Rates, open while the address has ?bulk=1: room types, a date range, the weekdays, a percent change or a set rate, and an optional minimum stay, checked then saved through the API.
rates-cells.tsxsectionThe rates grid's cells: a night's rate typed in place (Enter or leaving saves it, Escape puts it back, arrows move on) and the switch that closes a night to new bookings.
rates-grid.tsxsectionThe rates grid: a block per room type with its rate for each night (typed in place, arrow keys moving between nights and types like a spreadsheet), rooms left, minimum nights and a switch to close the night to new bookings.
report-cards.tsxsectionReports' lower cards: each room type's numbers for the range (a row opens its rooms on the Calendar), the channel mix, occupancy by day of the week, and the next 60 nights already on the books.
report-trend.tsxsectionReports' top: five numbers for the range against the period before (the first three pick the measure), and the night-by-night trend of the measure picked, morphing when the range or measure changes.
res-checkout.tsxsectionA booking's check-out panel (the address has ?checkout=1): settle the balance by a payment method and go.
res-folio.tsxsectionA booking's folio: the room nights, every extra and payment by date with the balance under them, a dialog to add a charge or take a payment, and the check-out panel that settles the balance.
res-head.tsxsectionA booking's head: the guest, the stay at a glance, its status, and the actions it allows (check in, check out, cancel with a confirm).
res-side.tsxsectionA booking's side cards: the guest (with their profile link), the money (total, paid, balance) and the room's housekeeping state today.
res-stay.tsxsectionA booking's Stay, Requests and History tabs: each night with its rate and a form to change the room or the dates (the click path for a Calendar drag), the guest's requests to add or remove, and what happened to the booking.
settings-property.tsxsectionSettings → Property: the hotel's name and contacts, check-in and check-out times, and the policies (deposit, VAT, breakfast price, auto-assign, inspection), checked and saved through the API.
settings-team.tsxsectionSettings → Room types (each type's name, base rate and size, with its drawing and rooms) and Settings → Team (members with their role, added or removed).
tape-bar.tsxsectionOne stay on the Calendar: a bar from the middle of its first day to the middle of its last, colored by where the guest is, with a handle at each end to change its length.
tape-chart.tsxsectionThe Calendar's grid: a row per room grouped by type, a column per night, every stay a bar you can drag to another room or other nights, or stretch from either end; the landing place shows as an outline, red where it would clash.
tape-head.tsxsectionThe Calendar grid's head: the month in the corner, then each night's weekday, date and rooms sold, today in brass and weekends shaded.
tape-row.tsxsectionOne room's row on the Calendar: its label (number, view, housekeeping dot), tonight's column and any out-of-order nights, its stays, the stay the keyboard carried in, and the outline where a dragged stay would land.
partspartsWhat several sections share.
buildbuildWhat several sections share.
cardscardsWhat several sections share.
rise.tspartThe rise card style: cards rise and fade in (24px, a hair smaller), one after another.
rowsrowsWhat several sections share.
slide.tspartThe slide row motion: each row on screen slides 12px in from the nav side, from faint.
core.tsxpartThe 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.tspartThe app's two build-in picks, wired here and nowhere else: its card style (cards/) and its row motion (rows/). To change one, copy another style from the kit and point this file at it.
appearance.tspartHow the app looks right now: dark or light, Glass or Solid and the color preset, from Settings → Appearance, the page around it and the Brand settings.
backdrop.tsxpartThe Glass style's backdrop: a line drawing of the river at dusk (the far bank, a church spire, the suspension bridge, a willow and the water's ripples) under a soft dusk wash, one fixed layer behind the app, faded out in Solid; with followBackground it paints your background instead.
bits.tsxpartSmall shared pieces: a titled panel, the data-state switch, initials avatars and a segmented switch.
board-model.tspartA board as data: every card's place (one order) and column, and how a move changes them.
board.tsxpartA board of columns and cards: drag a card (mouse, pen or a short press on touch) with a lift and a gap where it will land, or pick it up with Space and move it with the arrow keys; the other cards glide out of the way.
bulk-bar.tsxpartThe bar that rises over a list once rows are ticked: how many, the actions for all of them, and Clear.
chart-path.tspartA chart's line and area paths in each curve Chart Studio has (straight, smooth, step), and the classes that let a Chart Studio curve swap them in CSS.
command-palette.tsxpartThe command palette (⌘K or Ctrl K): type to find a booking, a guest, a room, a page or an action, then Enter.
data-table.tsxpartA data table: columns that sort (aria-sort), a checkbox per row for bulk actions (Shift picks a range), still skeleton rows while loading, an empty note with a way out, and rows you move through with the arrow keys and open with Enter or a click.
dialog.tsxpartA 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-board.tspartThe board's drag engine: mouse, pen and touch drags with a lift, a gap where the card will land, auto-scroll near the edges, and a drop or Escape that settles the card into place.
field.tsxpartA labeled form field (a text input or a select) with its error line under it, tied together for screen readers.
filters.tsxpartA list's toolbar pieces: dropdowns and a search box that set filters in the address, and removable chips for every filter in force, with Clear all.
flip.tspartFLIP: when cards change place, each one glides from where it was to where it is now instead of jumping.
format.tspartHow numbers and dates are written: British style (the hotel is on the Thames), in one place.
hk.tspartEach housekeeping state's color, the same on Overview, the board, the Calendar and a booking's page: berry to clean, amber being cleaned, the primary once clean (solid once inspected), hatched when out of order.
icons.tsxpartThe crest and the line icons, drawn on a 24-unit grid with round ends.
keyboard-move.tspartMoving a board card with the keyboard: Space picks it up, the arrow keys move it, Space or Enter drops it, Escape puts it back; each step is read out.
motion.tspartMotion helpers: the reduced-motion check, live, and first-show-only entrances, plus the app's keyframes and page build-in CSS.
room-art.tsxpartSmall line drawings of each room type, seen from the door: the bed or beds, a window on the river, a lamp; a loft gets its sloped ceiling and a suite its armchair.
router.tspartThe page switcher: reads the app's page from the address hash (#/front-desk?tab=arrivals, #/reservation/MH-2410), building a new page in.
scroll-to-view.tspartScrolls an element into view moving only its own scroll container, never the page around it.
select-box.tsxpartA native select dressed to match the app: no browser arrow, a drawn chevron instead.
session.tspartWhether 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 Remember me lasts only this browser session.
states.tsxpartThe data states every page shares: a calm skeleton while loading, an error with Try again, and an empty note with a way out.
store.tspartThe app-wide state several parts share: the theme mode, style and color preset (kept in the browser) and the toasts.
table-bits.tsxpartThe data table's smaller pieces: a column's sortable head, Shift-click range ticking, still loading rows and the Show more button.
tabs.tsxpartTabs kept in the address (?tab=), so Back and a reload keep the one open: the arrow keys, Home and End move between them, and the open one's panel follows.
tape-drag.tspartThe Calendar's drag engine: a stay follows the pointer (mouse, pen, or touch after a short press) to another room or other nights, or one end is dragged to change its length; the page and the grid scroll near their edges, Escape puts it back, and a drop glides the stay into its new place.
tape-keys.tspartMoving a stay on the Calendar with the keyboard: Space picks it up, the arrow keys move it a night or a room, Shift and an arrow changes its last night, Space or Enter drops it, Escape puts it back; each step is read out.
ticker.tsxpartA number that counts up while its page builds in, and rolls to its new value whenever it changes.
toasts.tsxpartThe toasts: short notes that confirm what just happened, bottom right.
trend.tsxpartA trend chart: this period as a filled line in the primary, the period before as a dashed line, a range switch morphing both lines to their new shape, and a picked night (pointer or arrow keys) that opens on the Calendar.
use-api.tspartLoads 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.tspartOpens 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.
datadataThe pretend data and the fake API: swap it for your backend.
api-hotel.tsdataThe fake API for the rest of the hotel: housekeeping, rates and availability, guests and settings. Replace each body with a call to your backend.
api.tsdataThe fake API for bookings: every page loads and saves stays through these functions (rooms, rates, guests and settings: api-hotel.ts), so wiring a real backend happens here only.
book.tsdataThe pretend bookings and guests: four months of stays around today, made the same way on every load from a seeded random walk per room.
dates.tsdataCalendar dates as "YYYY-MM-DD" strings: the hotel's today, adding nights and counting them.
db.tsdataThe pretend database the fake API reads and changes: bookings, guests, each room's housekeeping state, rate changes and settings, plus the rows the lists show.
hotel.tsdataThe hotel itself: its room types and rooms, the housekeeping team, booking channels and rate plans, and the shapes every page shares.
numbers.tsdataThe numbers Overview, the night ribbon and Reports show, worked out from the bookings by the rules in rules.ts.
rules.tsdataThe hotel's counting rules in one place, so a number on Overview and the list it opens always agree: who stays a night, who arrives, who leaves, what is owed.
stay-marlow.tsx
The page: the sections in order.
Chargement…
Idéal pour
Boutique hotels, inns and B&Bs that run stays, rooms, rates and housekeeping in one place, or any booking product with a tape chart.
Fonctionnement
Drag a stay to another room or stretch it, check guests in step by step, drag rooms across the housekeeping board; every number opens its list.
Utilisation
Edit words in content.ts and colors in theme.ts, and swap the bodies in data/api.ts and data/api-hotel.ts for calls to your backend.
Aucun paquet en plusReact seulement, rien d’autre
134,4 ko gzippé · 104 fichiersLe téléchargement complet