HOTELLIX hotel booking template
Version 1.0.0. Customer site, hotel-owner panel and admin panel in HTML, Vue 3, React and Next.js, running on dummy JSON data.
Getting started
HOTELLIX is a hotel booking template with three connected areas: a customer site, a hotel-owner panel and an admin panel (90 pages). It ships in four versions that share the same styles and the same dummy data: static HTML, Vue 3, React and Next.js. React and Next.js also come in TypeScript, so there are six apps in all.
data/. Changes you make (add, edit, delete, book, sign in) are kept in your browser's localStorage and can be cleared with
"Reset demo data". No payment, e-mail, text message or one-time code is ever sent. All names, addresses, phone numbers and e-mail addresses are invented.What is in the package
| Folder | What it is | Needs |
|---|---|---|
apps/html/ | Static HTML, CSS and plain JavaScript. Every page is a real .html file. | Any web server, or just open index.html |
apps/vue/ | Vue 3 + Vite + Vue Router (single-file components, JavaScript) | Node.js 18 or newer |
apps/react/ | React 18 + Vite + React Router (function components, JavaScript) | Node.js 18 or newer |
apps/next/ | Next.js 15 App Router with React 19, data served by local route handlers | Node.js 18.18 or newer |
apps/react-ts/ | The React version in TypeScript (strict), with types for all the data in src/types/ | Node.js 18 or newer |
apps/next-ts/ | The Next.js version in TypeScript (strict), with types for all the data in src/types/ | Node.js 18.18 or newer |
shared/ | The one source of the styles, design tokens, images, fonts, icons and dummy data that all four apps use (bundle only) | Node.js 18 to run scripts/sync-shared.mjs |
docs/ | This page, the installation and customisation guides and page-list.md | A browser |
Every folder in apps/ is a complete project of its own: it has its own copy of the styles, images and data, its own package.json,
dev server and build, and keeps working when you copy it out of the package. Pick one and ignore the others.
The "HTML only" item contains apps/html/ and docs/. The bundle contains all four apps, shared/ and docs/.
Which version should I use?
| Choose | When |
|---|---|
| HTML | You want plain files you can edit and upload anywhere, plan to wire them into a server-side framework (PHP, Django, Rails, .NET), or don't use a JavaScript build tool. |
| Vue | Your team works in Vue 3. Builds to static files; any static host works. |
| React | Your team works in React and wants a plain single-page app with Vite. Builds to static files. |
| Next.js | You want React with file-based routing, route handlers for your API and a Node.js server (Vercel, Node hosting, Docker). |
| React TS / Next.js TS | The same, and your team writes TypeScript. Type errors are caught by npm run typecheck and stop npm run build. |
All four have the same pages, look and behaviour.
Demo sign-in
| Area | Page | Password | |
|---|---|---|---|
| Customer | sign-in.html | customer@example.com | demo1234 |
| Hotel owner | owner/sign-in.html | owner@example.com | demo1234 |
| Admin | admin/sign-in.html | admin@example.com | demo1234 |
These accounts are in data/site.json (demoAccounts). Sign-in is a mock: it compares the two fields with that list and remembers the result in the browser.
Replace it with your own authentication before you go live.
HTML version
Run it
Open apps/html/index.html in a browser, or serve the folder. The included server needs only Node.js 18 (no npm install):
cd apps/html
npm run dev # http://localhost:8080 (or any static server: npx serve . / python -m http.server 8080)
There is no build step: to publish, upload the folder (you can leave out scripts/ and package.json, which are only for local use).
When the pages are served over http(s) the data is read from data/*.json with fetch. When a page is opened straight from the file system
(file://), browsers block that, so the pages fall back to data/demo-data.js, which holds the same data in one script. After editing a JSON file, rebuild it
with npm run data (or delete it and always use a server).
Folder structure
apps/html/
index.html, hotels.html, hotel.html, … customer site (27 pages)
owner/ hotel-owner panel (31 pages)
admin/ admin panel (32 pages)
data/ dummy data: 25 JSON files + demo-data.js (file:// fallback)
assets/
css/ds/ design system: tokens, base, components, site-*, bo-*, apple, dark
css/template.css customer-site styles added by this template
css/panel.css owner / admin styles added by this template
js/core/app.js helpers, data store, mock sign-in, theme, language, currency, toasts
js/core/ui.js forms, validation, data table, range calendar, charts, list and form screens
js/site/ one script per customer page (home, hotel, checkout, account, …)
js/panel/panel.js panel shell + the screen engine
js/panel/screens.js about 30 list and form screens described as data
js/panel/owner.js, board.js, staff.js, admin.js screens drawn by code (dashboards, room board, timeline, HR, …)
img/ logo, hero.jpg and photos/ (CC0 / public domain, credits in CREDITS.md)
vendor/ Bootstrap, Phosphor Icons, Inter, Chart.js (each with its licence file)
scripts/serve.mjs local static server (npm run dev)
scripts/build-demo-data.mjs rebuilds data/demo-data.js (npm run data)
How a page is put together
Each .html file holds the full shell (header, footer or sidebar) and one or more mount points. <body data-page="…"> names the page; the matching
function HT.pages['…'] in its script fills the mount points from the data. Everything hangs off one global object, window.HT. There is no build step
and no bundler: edit a file and reload.
To add a page, copy a similar .html file, give it a new data-page name and add HT.pages['that-name'] = function () { … } in a script the page loads.
The header, footer and sidebar are repeated in every file, so change navigation links with a search-and-replace across the folder.
Vue, React and Next.js versions
The three framework versions have the same routes (the HTML file names without .html), the same markup and class names, and the same stylesheets and data.
Each folder has its own README.md with the exact folder tree.
Vue 3
cd apps/vue
npm install
npm run dev # development server with hot reload
npm run build # production build in dist/
npm run preview # serve the production build at http://localhost:4173
React
cd apps/react
npm install
npm run dev
npm run build # production build in dist/
npm run preview
Next.js
cd apps/next
npm install
npm run dev # http://localhost:3000
npm run build
npm run start
TypeScript (React TS and Next.js TS)
apps/react-ts/ and apps/next-ts/ are the React and Next.js versions written in strict TypeScript: same files, same order of code, same comments, with .ts / .tsx files. The data types (hotels, rooms, bookings, payments, staff, page meta, screens) are in src/types/.
cd apps/react-ts # or apps/next-ts
npm install
npm run dev
npm run typecheck # tsc: reports type errors
npm run build # type check, then the production build
pnpm and Yarn work as well (pnpm install, pnpm dev). In the bundle you can also run the scripts from the top folder without
changing directory, for example npm run install:react, npm run dev:react, npm run build:react; that installs only the app you name.
Detailed guides per version are in docs/installation/.
The Next.js version needs a Node server (next start); pages are drawn in the browser, as in the React version. The JSON files live in data/ and are served by a route handler (app/api/data/[name]/route.js). Nothing calls an outside service.
Shared ideas in all three
- Layouts: a site layout (header, footer, phone tab bar), a panel layout (top bar, sidebar) and a plain layout (sign-in and error pages).
- Data layer: one module with
ready(),all(),get(),add(),update(),remove()andreset(). See "Use a real API". - Screens as data: the list and form screens of the panels are described in one file (
screens.js) and drawn by genericListScreenandFormScreencomponents. See "List and form screens". - Route guards: owner and admin routes, and the customer account routes, need the mock sign-in.
- Deploying under a sub-path: Vite versions set
baseinvite.config.js; Next.js readsNEXT_PUBLIC_BASE_PATH(seenext.config.mjs). Single-page versions need the server to answer unknown paths withindex.html.
Page list
All 90 pages. The right-hand column says what each page does. Similar list or form screens are driven by data
(see "List and form screens"). The same list is in docs/page-list.md.
Customer site 27 pages
| Page | File | What it is |
|---|---|---|
| Hotel deals worldwide | index.html | Home: hero search, popular destinations, stay types, banner slider, hotel grid with filters, why-book tiles, guest reviews |
| Search hotels | hotels.html | Search results: search bar, filter drawer, quick chips, sort menu, grid / list toggle, pagination |
| Hotels by destination | destinations.html | Destinations: countries and their cities |
| Hotels in the city | destination.html | City page: intro, hotel cards with filters, area map panel |
| Hotel details | hotel.html | Hotel page: gallery with photo viewer, section menu, rooms with dates and live totals, offers, amenities, reviews, location, FAQs, policies, booking card |
| Tonight's deals | tonight.html | Tonight's deals: deals that start or end today, live countdown, filters and sort |
| Compare hotels | compare.html | Compare: side-by-side table of up to four hotels |
| Checkout | checkout.html | Checkout: stay summary, guest details, payment method, voucher, wallet credit, price breakdown, hold countdown (payment mocked) |
| Booking confirmed | booking-confirmed.html | Booking confirmed: reference, summary and print |
| Profile | account.html | Profile: personal details, password and document upload |
| Trips | trips.html | Trips: upcoming, past and cancelled stays in tabs |
| Your stay | trip.html | Stay details: summary, price breakdown, cancel, report a problem, print invoice |
| Saved hotels | saved.html | Saved hotels with an empty state |
| Wallet and vouchers | wallet.html | Wallet and vouchers: balance, top-up dialog, voucher code, transactions |
| Invite friends | invite.html | Invite friends: referral code and link with copy buttons, how it works, friends list |
| Alerts | notifications.html | Alerts: filter, list grouped by day, mark read and dismiss |
| Contact us | contact.html | Contact: contact details and a validated message form |
| Questions and answers | faq.html | Questions and answers: searchable accordion |
| About us | about.html | About us: company page |
| Policy | policy.html | Policy pages: terms, privacy, refund and cancellation (one page, picked by address) |
| Log in | sign-in.html | Guest sign in with a mocked phone code step |
| Create an account | sign-up.html | Create an account: details, then a 6-digit code step |
| Reset your password | forgot-password.html | Reset password: request form with a success state |
| Page not found | 404.html | Error 404: page not found |
| No access | 403.html | Error 403: no access |
| Something went wrong | 500.html | Error 500: something went wrong |
| Back soon | 503.html | Error 503: maintenance |
Hotel-owner panel 31 pages
| Page | File | What it is |
|---|---|---|
| Today | owner/index.html | Dashboard: needs action, KPIs, revenue chart with range switch, 14-night occupancy, arrivals, recent bookings |
| Bookings | owner/bookings.html | Bookings: arrivals and departures, month calendar, filterable list, walk-in form |
| Booking | owner/booking.html | Booking file: stay, guest, check in / check out / no-show / cancel, guest bill with charges and desk payments |
| Room board | owner/room-board.html | Room board: rooms by floor with housekeeping status, drag an arrival onto a room, add rooms, latest changes |
| Timeline | owner/timeline.html | Timeline: room × date grid, drag-and-drop booking bars, waiting-for-a-room queue |
| Rooms and rates | owner/rooms.html | Rooms and rates: room types, price, guests, rooms for sale, booking rules, 14-night availability |
| Photos | owner/photos.html | Photos: grid with upload, drag to reorder, set cover, delete |
| Hotel story | owner/content.html | Hotel story: about text, highlights, amenities, check-in and check-out times |
| Reviews and extras | owner/reviews.html | Reviews and extras: reply to reviews, awards, paid extras |
| Deals | owner/deals.html | Deals: table with status actions |
| Deal | owner/deal-form.html | Deal form: create and edit with validation |
| Payments | owner/payments.html | Payments: KPI cards, filters, payment table, detail dialog |
| Revenue report | owner/revenue.html | Revenue report: date range, revenue by room type (nights, occupancy, ADR, RevPAR), chart, CSV |
| Hotel profile | owner/profile.html | Hotel profile: summary and sectioned edit form (basics, location, contact, payout details) |
| Policies | owner/policies.html | Policies: tabbed editor for terms, privacy and refund |
| Staff and HR | owner/staff.html | Staff and HR overview: attendance KPIs, 14-day chart, team by department, quick actions, approvals |
| Staff | owner/staff-members.html | Staff list with filters |
| Staff member | owner/staff-member.html | Staff member: job, pay, contact, attendance, leave and awards in tabs |
| Staff member | owner/staff-member-form.html | Staff member form: person, job and pay sections |
| Shifts and roster | owner/staff-roster.html | Shifts and roster: week grid per person, click a cell to plan a shift, copy last week |
| Attendance | owner/staff-attendance.html | Attendance: day sheet with mark buttons and a month grid |
| Leave | owner/staff-leave.html | Leave: approve / reject requests, enter leave, balances |
| Payroll | owner/staff-payroll.html | Payroll: pay period, basic, allowances, deductions, net, approve and mark paid |
| Payslip | owner/payslip.html | Payslip: printable |
| Performance and awards | owner/staff-performance.html | Performance and awards: review scores, quick feedback, award wall, give an award |
| Tasks | owner/staff-tasks.html | Tasks: board with to do, in progress and done, drag and drop, add task |
| Reports | owner/staff-reports.html | HR reports: report picker with tables and CSV export |
| Departments | owner/staff-departments.html | Departments: list with add and edit |
| HR settings | owner/staff-settings.html | HR settings: time zone, week start, late and absent rules, overtime, holidays |
| Hotel owner sign in | owner/sign-in.html | Hotel owner sign in |
| Page not found | owner/404.html | Error 404 inside the panel |
Admin panel 32 pages
| Page | File | What it is |
|---|---|---|
| Dashboard | admin/index.html | Dashboard: KPIs, revenue and bookings charts, revenue by country, payment mix, needs attention, top hotels, recent transactions |
| Reports | admin/reports.html | Reports: report picker, date range, chart, table and CSV |
| Customers | admin/customers.html | Customers: table, detail dialog, block / unblock, add and edit |
| Hotel owners | admin/owners.html | Hotel owners: table with KYC action |
| Admin staff | admin/team.html | Admin staff: list and add form |
| Roles and permissions | admin/roles.html | Roles and permissions: role list with a module × permission matrix |
| Activity log | admin/activity.html | Activity log: filterable log with a details dialog |
| Hotels | admin/hotels.html | Hotels: table with approve and suspend actions |
| Hotel | admin/hotel-form.html | Hotel form: sectioned create and edit form with validation |
| Reviews | admin/reviews.html | Reviews: moderation queue |
| Stay types | admin/categories.html | Stay types: list with add and edit dialog |
| Amenities | admin/amenities.html | Amenities: list with add and edit |
| KYC documents | admin/documents.html | KYC documents: review queue with preview, approve, reject with reason |
| Bookings | admin/bookings.html | Bookings: all bookings with filters |
| Booking | admin/booking.html | Booking: stay, night breakdown, payment, status timeline |
| Transactions | admin/payments.html | Transactions: KPI cards, table, status actions |
| Payouts | admin/payouts.html | Payouts: owner payout queue with mark paid / hold |
| Currency rates | admin/currencies.html | Currency rates: editable rates and a converter |
| Vouchers and offers | admin/coupons.html | Vouchers and offers: list and forms |
| Hotel deals | admin/deals.html | Hotel deals: oversight across hotels |
| Complaints | admin/complaints.html | Complaints: queue with status workflow |
| Notifications | admin/notifications.html | Notifications: list and send form |
| Banners | admin/banners.html | Banners: list and add form |
| Locations | admin/destinations.html | Locations: countries and cities with forms |
| Pages and policies | admin/pages.html | Pages and policies: list with publish / unpublish |
| Page | admin/page-form.html | Page editor form |
| Questions and answers | admin/faqs.html | Questions and answers: keyed content |
| Settings | admin/settings.html | Settings: loyalty, vouchers, referrals, templates and tax in tabs |
| Backups | admin/backups.html | Backups: list with create, download (mock) and delete |
| Admin sign in | admin/sign-in.html | Admin sign in |
| Page not found | admin/404.html | Error 404 inside the panel |
| No access | admin/403.html | Error 403 inside the panel |
Name, logo and colours
Brand name
To use your own product name in a project built on the template: HTML version: search and replace HOTELLIX in apps/html/ (page titles, header, footer, sign-in pages) and change
brand in data/site.json. Framework versions: change BRAND in src/config.js and the <title>.
The localStorage keys start with lumora.; change the prefix at the top of the data module if you want.
Logo
Every place shows the logo as two files, one for light and one for dark backgrounds, and the theme picks the right one: assets/img/logo.svg / logo-light.svg
(the wordmark: site header and footer, panel side menu, sign-in pages) and logo-mark.svg / logo-mark-light.svg (the monogram: phones and the collapsed side menu),
plus favicon.svg. Replace them with your own files. CSS sets heights only (template.css, section "0. logo"), so any proportions work. Image sources and licences: docs/images-and-licences.md.
Colours and other tokens
All colours, type sizes, spacing, radii and shadows are CSS custom properties in assets/css/ds/tokens.css (names start with --ds-). Components use the
semantic names, never raw colours, so changing a token changes every component.
assets/ in the HTML version, public/assets/ in Vue, React
and Next.js. If you use one version, edit its copy. If you keep several versions in step (bundle), edit shared/ instead
(shared/design-tokens/tokens.css, shared/assets/css/, shared/assets/img/, shared/data/) and run
node scripts/sync-shared.mjs to copy the change into every app. See docs/customization.md.| Token | Used for | Default palette (Midnight & Gold) |
|---|---|---|
--ds-accent | Primary buttons, active states | Navy #0B2545 |
--ds-link | Links and brand-coloured text | Blue #1C467A |
--ds-highlight, --ds-gold-* | Deal badges, highlights | Gold #C9A227 |
--ds-canvas, --ds-surface, --ds-sunken | Page, card and inset backgrounds | Ivory , white, sand |
--ds-text, --ds-text-strong, --ds-text-muted | Text | Dark ink and greys |
--ds-border, --ds-border-strong | Hairlines, control borders | Sand, grey |
--ds-success-*, --ds-warning-*, --ds-danger-*, --ds-info-* | Status pills, alerts, validation | Green, amber, red, blue |
--ds-c1 … --ds-c6 | Chart series | Brand, accent and four supporting hues |
--ds-font | Font stack | Inter (panels), system font then Inter (site) |
The colour values of these tokens come from the active palette in assets/css/ds/theme.css. The website, the owner panel and the admin panel all read the same palette,
so the whole product changes together. See Colour palettes and customizer.
Icons
Icons are Phosphor web-font classes: <i class="ph-bold ph-heart"></i>, filled: ph-fill ph-heart. Any Phosphor icon name works.
Photos
Hotel, city, stay-type and banner photos are CC0 or public-domain JPEGs in assets/img/photos/, free to use in your product (credits and sources in CREDITS.md there and in docs/images-and-licences.md).
Replace them with your own pictures (keep the 4:3 ratio for hotel photos) and update the paths in data/hotels.json, destinations.json, categories.json
and banners.json. The home hero image is set in assets/css/ds/site-listing.css (search for hero.jpg).
Colour palettes and customizer
One file, assets/css/ds/theme.css, holds the colour palettes and the global options. It is loaded last on every page of the website, the owner panel and the admin panel.
One script, assets/js/theme.js, applies the saved choice before the first paint and adds the Customize drawer (the tab on the right edge of every page).
Built-in palettes
Each palette is built from two colours, a primary and an accent, with matching neutrals. Try them here; the choice is saved in this browser and used by every demo.
Set the default palette
Put the palette name on the root element of your pages. Without the attribute the first palette of theme.css (Midnight & Gold) is used.
<html lang="en" data-palette="emerald">
In the framework versions set it once in index.html (Vue, React) or app/layout.js (Next.js). A visitor's own choice in the customizer is saved in
localStorage and wins over the attribute.
Add your own palette
- Open the customizer, choose Your brand and pick your primary and accent colours.
- Press Copy palette CSS. You get two blocks: one for light mode and one for dark mode.
- Paste them into section 2 of
theme.cssand renamecustomto your palette name, for exampledata-palette="seaside". - To list it in the drawer, add one line to
PALETTESat the top oftheme.js.
The shades are calculated in the OKLCH colour space, so every palette has the same lightness steps. Each text and background pair is then checked and corrected: body text and links 4.5:1 or more, borders of controls 3:1 or more (WCAG AA). Status colours (green, amber, red, blue) are the same in every palette, because their meaning must not change.
Short token names for your own CSS
Use these names in your own styles. They follow the palette and the light or dark mode.
| Token | Meaning |
|---|---|
--primary-color, --primary-hover-color | Brand fill for buttons and active states (white text on it) |
--secondary-color | Brand colour for links and text |
--accent-color, --on-accent-color | Highlight fill for offers and badges, and the text colour on it |
--background-color, --surface-color | Page background and card background |
--text-color, --heading-color, --muted-color | Body text, headings, secondary text |
--border-color | Hairlines |
--success-color, --warning-color, --danger-color, --info-color | Status colours |
--primary-50 … --primary-900 | Brand shades, light to dark |
--accent-50, -100, -300, -500, -700, -800 | Accent shades |
.my-banner { background: var(--primary-color); color: #fff; border-radius: var(--ds-card-r); }
.my-badge { background: var(--accent-color); color: var(--on-accent-color); }
Typography and corners
Attribute on <html> | Values | Effect |
|---|---|---|
data-font | inter, system, editorial | Inter everywhere, the device font, or serif headings with Inter body text (no font download) |
data-radius | sharp, round | Squarer or rounder buttons, inputs and cards |
data-theme | dark | Dark mode |
data-hx-customizer | off | Hides the Customize drawer (the saved choices still apply). Use it on your live site. |
Use the theme from your own controls
Any element can drive the theme: data-hx-action="open" opens the drawer, "mode" switches light and dark, "palette:emerald" selects a palette.
From JavaScript: HXTheme.set({ palette: 'lagoon', font: 'editorial', radius: 'round' }). After a change the page gets an hx:palette event; charts listen to it and redraw.
theme.css and theme.js are the same two files in every app
(assets/css/ds/ and assets/js/, or public/assets/… in the framework versions). After you change one, copy it to the other apps you use.Dark mode, direction and currency
Dark mode
Dark mode is a second set of token values (the dark block of each palette in theme.css, plus component fixes in dark.css and dark-bo.css), active when the root element has
data-theme="dark". The moon button in every header switches it and remembers the choice. A short inline script in the page head applies the saved choice before the
styles load, so pages never flash. To follow the visitor's system setting on a first visit, add a check of
window.matchMedia('(prefers-color-scheme: dark)') to that script.
Language and right-to-left
The language picker is interface only: it stores the choice, sets lang and dir on the root element and, for right-to-left languages, swaps in Bootstrap's RTL
stylesheet. The text itself is not translated. The template's own styles use logical properties (margin-inline, inset-inline-start, …), so layouts mirror
correctly. Languages are listed in data/site.json.
Currencies
Each hotel has its own currency and all of its prices are stored in it. The currency picker only converts prices for display, using the rates in
data/site.json (currencies[].rate, per 1 USD), and marks converted prices with "≈". The checkout always shows the hotel's own currency.
The admin "Currency rates" page edits the same rates.
Use a real API
All data access goes through one small module, so you can move from dummy JSON to a real back end without touching the pages.
| Version | Data module | Function that loads a collection |
|---|---|---|
| HTML | assets/js/core/app.js (HT.db) | fetchJson(name) |
| Vue / React | src/lib/db.js | loadFile(name) |
| Next.js | src/lib/db.js + app/api/data/[name]/route.js | loadFile(name) and the route handler |
Step 1: load from your API
Point the loader at your endpoints and keep the shapes of the JSON files (or map your fields to them in one place):
// before
function fetchJson(name) {
return fetch(HT.root + 'data/' + name + '.json').then(function (r) { return r.json(); });
}
// after
function fetchJson(name) {
return fetch('https://api.example.com/v1/' + name, { headers: { Authorization: 'Bearer ' + token } })
.then(function (r) { if (!r.ok) { throw new Error(name); } return r.json(); });
}
The demo store loads every collection once per page view (the list of names is at the top of the data module). With a real API, load only what each page needs and add paging to the list requests.
Step 2: write through your API
add, update and remove change the in-memory rows and then call save(name), which writes to localStorage.
Replace the body of those three functions with POST, PATCH and DELETE requests and update the in-memory row from the response. Remove
save, the date shifting (it only keeps demo dates fresh) and "Reset demo data".
Step 3: real sign-in
Replace signIn, register, signOut and user in the auth part of the same module. The route guard only asks "is there a user for this role?".
Data files
| File | Holds |
|---|---|
site.json | Brand, support contact, currencies and rates, languages, demo accounts, baseDate |
hotels.json | Hotels with rooms, photos, amenities, deal state, contact, owner, status |
destinations.json, categories.json, amenities.json, banners.json, faqs.json, pages.json | Catalogue and content |
bookings.json, payments.json, payouts.json, coupons.json, deals.json, complaints.json, reviews.json | Trade |
customers.json, owners.json, admins.json, roles.json | People and access |
notifications.json, wallet.json | The signed-in customer's alerts, wallet and referrals |
units.json | Physical rooms of the first hotel (room board and timeline) |
hr.json | Departments, staff, attendance, leave, payroll, tasks, shifts, holidays, awards |
stats.json, settings.json | Chart series and admin settings |
Dates. The dummy data was written for the day in site.baseDate. On load every date is shifted by the number of days between that day and today, so
"arrivals today" always has arrivals. Remove shiftDates when you use real data.
List and form screens
About thirty panel screens (customers, hotels, payouts, vouchers, staff, departments, …) are not hand-written. Each is an entry in screens.js, keyed by the page name:
S['admin-customers'] = {
kind: 'list', collection: 'customers', noun: 'customer', sort: 'name',
kpis: [{ label: 'Customers', icon: 'users' }, { label: 'Blocked', where: { status: 'blocked' }, icon: 'prohibit' }],
columns: [{ key: 'name', label: 'Customer', type: 'ident', meta: 'email' },
{ key: 'wallet', label: 'Wallet', type: 'money', currencyKey: 'walletCurrency' },
{ key: 'status', label: 'Status', type: 'pill' },
{ key: 'lastSeen', label: 'Last seen', type: 'datetime', hidden: true }],
search: ['name', 'email', 'phone'],
filters: [{ key: 'status', label: 'Status', options: ['active', 'blocked'] }],
fields: [{ name: 'name', label: 'Full name', required: true, width: 6 }, …], // add / edit dialog
view: [{ label: 'E-mail', key: 'email' }, …], // details dialog
actions: [{ label: 'Block', icon: 'prohibit', danger: true, when: { status: 'active' },
set: { status: 'blocked' }, toast: 'Customer blocked', confirm: '…' }]
};
From that description the engine gives you: KPI cards, search, filter selects, sortable headers, a column menu that remembers hidden columns, pagination with page size, CSV export, a row menu (view, edit, your actions, delete with a confirm dialog), an add / edit dialog with validation, and stacked rows on phones.
| Key | Meaning |
|---|---|
collection | Name of the data set; dotted for nested sets ('hr.staff') |
where | Fixed filter; '$hotel' means the hotel chosen in the owner panel's switcher |
columns[].type | text, ident (avatar + name + small line), money, date, datetime, pill, percent, number, stars, bool, list, lookup (name from another collection), ref |
fields[].type | text, email, tel, number, money, date, time, select, textarea, switch, checks, password; plus required, min, max, minlength, pattern, help, error, width (3, 4, 6, 8 of 12 columns), addon |
fields[].options | A list, or { from: 'categories', value: 'id', label: 'name' } to read another collection |
formHref | Use a separate form page instead of a dialog; that page is an entry with kind: 'form' and sections |
detailHref | Link to a detail page, for example 'booking.html?id={id}' |
canAdd, canDelete, defaults, stamp | Switch off add / delete; values for new rows; field that gets today's date on create |
To add a list screen: add an entry, create the page (HTML: copy admin/customers.html and change data-page; frameworks: add a route that renders
ListScreen with the entry) and add a sidebar link.
Components and behaviour
| Feature | Where (HTML version) | Notes |
|---|---|---|
| Hotel card | HT.hotelCard in js/site/site.js | Save (heart), share, compare, discount badge, deal ribbon, price with currency code |
| Results with filters | js/site/listing.js | Filter drawer (offcanvas), quick chips, applied-filter chips, sort menu, grid / list view, pagination |
| Search form | HT.initSearchForm | Destination suggestions, range calendar, guests; the chosen stay is remembered across pages |
| Range calendar | HT.rangeCal in js/core/ui.js | Two months on desktop, one on phones; keyboard: Tab and Escape |
| Booking flow | js/site/checkout.js | Room hold countdown, guest form, payment method, voucher code, price breakdown, mocked confirmation, printable |
| Data table | HT.table | Used by every list; see "List and form screens" |
| Forms and validation | HT.fields, HT.validate, HT.formModal | HTML5 constraint validation with Bootstrap's styles; first invalid field gets focus; success and error toasts |
| Charts | HT.chart | Chart.js; colours come from the tokens and are redrawn when the theme changes |
| Month calendar | owner/bookings.html | Arrivals per day, day agenda, list / calendar switch, walk-in booking dialog |
| Room board | js/panel/board.js | Room tiles by floor, housekeeping state, drag an arrival onto a room (or use the tile menu) |
| Timeline | js/panel/board.js | Rooms × days; drag a booking bar to another room or day, with clash checks; click a bar for a move dialog |
| Task board | js/panel/staff.js | Three columns, drag cards between them (or use the card menu) |
| Photos | owner/photos.html | Upload (kept in the browser), drop zone, drag to reorder, cover photo |
| Staff and HR | js/panel/staff.js | Roster grid, attendance day sheet and month grid, leave approvals, payroll with printable payslip, awards, reports with CSV |
| Toasts and confirm dialog | HT.toast, HT.confirm | HT.confirm(…) returns a promise |
Drag and drop uses the browser's native drag events. Touch devices and keyboards use the menus and dialogs that every draggable item also has.
Maps. No map provider is bundled (they need keys and have their own terms). The hotel and destination pages show a drawn placeholder with pins placed by
latitude and longitude; swap HT.drawMap for your provider.
Accessibility. Landmarks, a skip link, labelled controls, visible focus, aria-pressed / aria-current / aria-sort states,
reduced-motion support and status text next to every colour-coded pill. Bootstrap handles focus inside dialogs and drawers.
Browsers. Current Chrome, Edge, Firefox and Safari. The layout works from 360 px wide.
Credits and licences
Everything third-party in the package, with its version and licence. Each library's licence file is next to it in assets/vendor/ (HTML version) or in
node_modules after npm install (framework versions). All of them allow use in a paid product.
| Asset | Version | Licence | Source | Used in |
|---|---|---|---|---|
| Bootstrap | 5.3.3 | MIT | getbootstrap.com | Layout utilities, modal, dropdown, offcanvas, collapse, carousel. All versions. |
| Phosphor Icons (web font, bold and fill) | 2.1.1 | MIT | phosphoricons.com | All icons. All versions. |
| Inter (variable font) | 4.0 | SIL Open Font License 1.1 | rsms.me/inter/ | Body font, self-hosted. All versions. |
| Chart.js | 4.4.7 | MIT | www.chartjs.org | Charts on the dashboards and reports. All versions. |
| Vue | 3.5.13 | MIT | vuejs.org | Vue version only. |
| Vue Router | 4.5.0 | MIT | router.vuejs.org | Vue version only. |
| React and React DOM | 18.3.1 (React version), 19.1.0 (Next.js version) | MIT | react.dev | React and Next.js versions. |
| React Router | 6.28.0 | MIT | reactrouter.com | React version only. |
| Next.js | 15.5.29 | MIT | nextjs.org | Next.js version only. |
| Vite and its framework plugins | 6.0.5 | MIT | vite.dev | Build tool (development only). Vue and React versions. |
- Photos: 56 photographs under CC0 1.0 or in the public domain (Wikimedia Commons, WordPress Photo Directory), free to redistribute and use commercially; each one with its author and source in
assets/img/photos/CREDITS.md. The logo is the theme's own. - Styles and scripts: the design system (
assets/css/ds/),template.css,panel.cssand all JavaScript outsidevendor/are original work for this template. - Not included: no jQuery, no icon fonts other than Phosphor, no map tiles, no analytics or tracking scripts, no fonts or scripts loaded from other sites.
Changelog and support
1.0.0
- First release: 90 pages in four versions (HTML, Vue 3, React, Next.js).
- Customer site: home, search with filters, destinations, hotel page, tonight's deals, compare, checkout, account, wallet, referrals, alerts, static and error pages.
- Hotel-owner panel: dashboard, bookings with calendar, room board, timeline, rooms and rates, photos, deals, payments, revenue report, profile, policies, staff and HR.
- Admin panel: dashboard, reports, people, hotels, bookings, transactions, payouts, vouchers, complaints, content, roles and permissions, settings, backups.
- Light and dark themes, right-to-left support, multi-currency display, mock sign-in for three roles.
Support
Questions about using the template, or a problem with your download? Contact us through mycreativetemplates.com/contact and include your order number. You can download your files again at any time from My account → Downloads on mycreativetemplates.com.