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.

Demo data only. There is no server, no database and no API in this package. Every list, form, chart and booking works in the browser on the JSON files in 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

FolderWhat it isNeeds
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 handlersNode.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.mdA 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?

ChooseWhen
HTMLYou 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.
VueYour team works in Vue 3. Builds to static files; any static host works.
ReactYour team works in React and wants a plain single-page app with Vite. Builds to static files.
Next.jsYou want React with file-based routing, route handlers for your API and a Node.js server (Vercel, Node hosting, Docker).
React TS / Next.js TSThe 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

AreaPageE-mailPassword
Customersign-in.htmlcustomer@example.comdemo1234
Hotel ownerowner/sign-in.htmlowner@example.comdemo1234
Adminadmin/sign-in.htmladmin@example.comdemo1234

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() and reset(). 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 generic ListScreen and FormScreen components. 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 base in vite.config.js; Next.js reads NEXT_PUBLIC_BASE_PATH (see next.config.mjs). Single-page versions need the server to answer unknown paths with index.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

PageFileWhat it is
Hotel deals worldwideindex.htmlHome: hero search, popular destinations, stay types, banner slider, hotel grid with filters, why-book tiles, guest reviews
Search hotelshotels.htmlSearch results: search bar, filter drawer, quick chips, sort menu, grid / list toggle, pagination
Hotels by destinationdestinations.htmlDestinations: countries and their cities
Hotels in the citydestination.htmlCity page: intro, hotel cards with filters, area map panel
Hotel detailshotel.htmlHotel page: gallery with photo viewer, section menu, rooms with dates and live totals, offers, amenities, reviews, location, FAQs, policies, booking card
Tonight's dealstonight.htmlTonight's deals: deals that start or end today, live countdown, filters and sort
Compare hotelscompare.htmlCompare: side-by-side table of up to four hotels
Checkoutcheckout.htmlCheckout: stay summary, guest details, payment method, voucher, wallet credit, price breakdown, hold countdown (payment mocked)
Booking confirmedbooking-confirmed.htmlBooking confirmed: reference, summary and print
Profileaccount.htmlProfile: personal details, password and document upload
Tripstrips.htmlTrips: upcoming, past and cancelled stays in tabs
Your staytrip.htmlStay details: summary, price breakdown, cancel, report a problem, print invoice
Saved hotelssaved.htmlSaved hotels with an empty state
Wallet and voucherswallet.htmlWallet and vouchers: balance, top-up dialog, voucher code, transactions
Invite friendsinvite.htmlInvite friends: referral code and link with copy buttons, how it works, friends list
Alertsnotifications.htmlAlerts: filter, list grouped by day, mark read and dismiss
Contact uscontact.htmlContact: contact details and a validated message form
Questions and answersfaq.htmlQuestions and answers: searchable accordion
About usabout.htmlAbout us: company page
Policypolicy.htmlPolicy pages: terms, privacy, refund and cancellation (one page, picked by address)
Log insign-in.htmlGuest sign in with a mocked phone code step
Create an accountsign-up.htmlCreate an account: details, then a 6-digit code step
Reset your passwordforgot-password.htmlReset password: request form with a success state
Page not found404.htmlError 404: page not found
No access403.htmlError 403: no access
Something went wrong500.htmlError 500: something went wrong
Back soon503.htmlError 503: maintenance

Hotel-owner panel 31 pages

PageFileWhat it is
Todayowner/index.htmlDashboard: needs action, KPIs, revenue chart with range switch, 14-night occupancy, arrivals, recent bookings
Bookingsowner/bookings.htmlBookings: arrivals and departures, month calendar, filterable list, walk-in form
Bookingowner/booking.htmlBooking file: stay, guest, check in / check out / no-show / cancel, guest bill with charges and desk payments
Room boardowner/room-board.htmlRoom board: rooms by floor with housekeeping status, drag an arrival onto a room, add rooms, latest changes
Timelineowner/timeline.htmlTimeline: room × date grid, drag-and-drop booking bars, waiting-for-a-room queue
Rooms and ratesowner/rooms.htmlRooms and rates: room types, price, guests, rooms for sale, booking rules, 14-night availability
Photosowner/photos.htmlPhotos: grid with upload, drag to reorder, set cover, delete
Hotel storyowner/content.htmlHotel story: about text, highlights, amenities, check-in and check-out times
Reviews and extrasowner/reviews.htmlReviews and extras: reply to reviews, awards, paid extras
Dealsowner/deals.htmlDeals: table with status actions
Dealowner/deal-form.htmlDeal form: create and edit with validation
Paymentsowner/payments.htmlPayments: KPI cards, filters, payment table, detail dialog
Revenue reportowner/revenue.htmlRevenue report: date range, revenue by room type (nights, occupancy, ADR, RevPAR), chart, CSV
Hotel profileowner/profile.htmlHotel profile: summary and sectioned edit form (basics, location, contact, payout details)
Policiesowner/policies.htmlPolicies: tabbed editor for terms, privacy and refund
Staff and HRowner/staff.htmlStaff and HR overview: attendance KPIs, 14-day chart, team by department, quick actions, approvals
Staffowner/staff-members.htmlStaff list with filters
Staff memberowner/staff-member.htmlStaff member: job, pay, contact, attendance, leave and awards in tabs
Staff memberowner/staff-member-form.htmlStaff member form: person, job and pay sections
Shifts and rosterowner/staff-roster.htmlShifts and roster: week grid per person, click a cell to plan a shift, copy last week
Attendanceowner/staff-attendance.htmlAttendance: day sheet with mark buttons and a month grid
Leaveowner/staff-leave.htmlLeave: approve / reject requests, enter leave, balances
Payrollowner/staff-payroll.htmlPayroll: pay period, basic, allowances, deductions, net, approve and mark paid
Payslipowner/payslip.htmlPayslip: printable
Performance and awardsowner/staff-performance.htmlPerformance and awards: review scores, quick feedback, award wall, give an award
Tasksowner/staff-tasks.htmlTasks: board with to do, in progress and done, drag and drop, add task
Reportsowner/staff-reports.htmlHR reports: report picker with tables and CSV export
Departmentsowner/staff-departments.htmlDepartments: list with add and edit
HR settingsowner/staff-settings.htmlHR settings: time zone, week start, late and absent rules, overtime, holidays
Hotel owner sign inowner/sign-in.htmlHotel owner sign in
Page not foundowner/404.htmlError 404 inside the panel

Admin panel 32 pages

PageFileWhat it is
Dashboardadmin/index.htmlDashboard: KPIs, revenue and bookings charts, revenue by country, payment mix, needs attention, top hotels, recent transactions
Reportsadmin/reports.htmlReports: report picker, date range, chart, table and CSV
Customersadmin/customers.htmlCustomers: table, detail dialog, block / unblock, add and edit
Hotel ownersadmin/owners.htmlHotel owners: table with KYC action
Admin staffadmin/team.htmlAdmin staff: list and add form
Roles and permissionsadmin/roles.htmlRoles and permissions: role list with a module × permission matrix
Activity logadmin/activity.htmlActivity log: filterable log with a details dialog
Hotelsadmin/hotels.htmlHotels: table with approve and suspend actions
Hoteladmin/hotel-form.htmlHotel form: sectioned create and edit form with validation
Reviewsadmin/reviews.htmlReviews: moderation queue
Stay typesadmin/categories.htmlStay types: list with add and edit dialog
Amenitiesadmin/amenities.htmlAmenities: list with add and edit
KYC documentsadmin/documents.htmlKYC documents: review queue with preview, approve, reject with reason
Bookingsadmin/bookings.htmlBookings: all bookings with filters
Bookingadmin/booking.htmlBooking: stay, night breakdown, payment, status timeline
Transactionsadmin/payments.htmlTransactions: KPI cards, table, status actions
Payoutsadmin/payouts.htmlPayouts: owner payout queue with mark paid / hold
Currency ratesadmin/currencies.htmlCurrency rates: editable rates and a converter
Vouchers and offersadmin/coupons.htmlVouchers and offers: list and forms
Hotel dealsadmin/deals.htmlHotel deals: oversight across hotels
Complaintsadmin/complaints.htmlComplaints: queue with status workflow
Notificationsadmin/notifications.htmlNotifications: list and send form
Bannersadmin/banners.htmlBanners: list and add form
Locationsadmin/destinations.htmlLocations: countries and cities with forms
Pages and policiesadmin/pages.htmlPages and policies: list with publish / unpublish
Pageadmin/page-form.htmlPage editor form
Questions and answersadmin/faqs.htmlQuestions and answers: keyed content
Settingsadmin/settings.htmlSettings: loyalty, vouchers, referrals, templates and tax in tabs
Backupsadmin/backups.htmlBackups: list with create, download (mock) and delete
Admin sign inadmin/sign-in.htmlAdmin sign in
Page not foundadmin/404.htmlError 404 inside the panel
No accessadmin/403.htmlError 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.

Where to edit. Each app has its own copy of the styles: 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.
TokenUsed forDefault palette (Midnight & Gold)
--ds-accentPrimary buttons, active statesNavy #0B2545
--ds-linkLinks and brand-coloured textBlue #1C467A
--ds-highlight, --ds-gold-*Deal badges, highlightsGold #C9A227
--ds-canvas, --ds-surface, --ds-sunkenPage, card and inset backgroundsIvory , white, sand
--ds-text, --ds-text-strong, --ds-text-mutedTextDark ink and greys
--ds-border, --ds-border-strongHairlines, control bordersSand, grey
--ds-success-*, --ds-warning-*, --ds-danger-*, --ds-info-*Status pills, alerts, validationGreen, amber, red, blue
--ds-c1 … --ds-c6Chart seriesBrand, accent and four supporting hues
--ds-fontFont stackInter (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

  1. Open the customizer, choose Your brand and pick your primary and accent colours.
  2. Press Copy palette CSS. You get two blocks: one for light mode and one for dark mode.
  3. Paste them into section 2 of theme.css and rename custom to your palette name, for example data-palette="seaside".
  4. To list it in the drawer, add one line to PALETTES at the top of theme.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.

TokenMeaning
--primary-color, --primary-hover-colorBrand fill for buttons and active states (white text on it)
--secondary-colorBrand colour for links and text
--accent-color, --on-accent-colorHighlight fill for offers and badges, and the text colour on it
--background-color, --surface-colorPage background and card background
--text-color, --heading-color, --muted-colorBody text, headings, secondary text
--border-colorHairlines
--success-color, --warning-color, --danger-color, --info-colorStatus colours
--primary-50 … --primary-900Brand shades, light to dark
--accent-50, -100, -300, -500, -700, -800Accent 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>ValuesEffect
data-fontinter, system, editorialInter everywhere, the device font, or serif headings with Inter body text (no font download)
data-radiussharp, roundSquarer or rounder buttons, inputs and cards
data-themedarkDark mode
data-hx-customizeroffHides 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.

Keep the copies in step. 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.

VersionData moduleFunction that loads a collection
HTMLassets/js/core/app.js (HT.db)fetchJson(name)
Vue / Reactsrc/lib/db.jsloadFile(name)
Next.jssrc/lib/db.js + app/api/data/[name]/route.jsloadFile(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

FileHolds
site.jsonBrand, support contact, currencies and rates, languages, demo accounts, baseDate
hotels.jsonHotels with rooms, photos, amenities, deal state, contact, owner, status
destinations.json, categories.json, amenities.json, banners.json, faqs.json, pages.jsonCatalogue and content
bookings.json, payments.json, payouts.json, coupons.json, deals.json, complaints.json, reviews.jsonTrade
customers.json, owners.json, admins.json, roles.jsonPeople and access
notifications.json, wallet.jsonThe signed-in customer's alerts, wallet and referrals
units.jsonPhysical rooms of the first hotel (room board and timeline)
hr.jsonDepartments, staff, attendance, leave, payroll, tasks, shifts, holidays, awards
stats.json, settings.jsonChart 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.

KeyMeaning
collectionName of the data set; dotted for nested sets ('hr.staff')
whereFixed filter; '$hotel' means the hotel chosen in the owner panel's switcher
columns[].typetext, ident (avatar + name + small line), money, date, datetime, pill, percent, number, stars, bool, list, lookup (name from another collection), ref
fields[].typetext, 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[].optionsA list, or { from: 'categories', value: 'id', label: 'name' } to read another collection
formHrefUse a separate form page instead of a dialog; that page is an entry with kind: 'form' and sections
detailHrefLink to a detail page, for example 'booking.html?id={id}'
canAdd, canDelete, defaults, stampSwitch 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

FeatureWhere (HTML version)Notes
Hotel cardHT.hotelCard in js/site/site.jsSave (heart), share, compare, discount badge, deal ribbon, price with currency code
Results with filtersjs/site/listing.jsFilter drawer (offcanvas), quick chips, applied-filter chips, sort menu, grid / list view, pagination
Search formHT.initSearchFormDestination suggestions, range calendar, guests; the chosen stay is remembered across pages
Range calendarHT.rangeCal in js/core/ui.jsTwo months on desktop, one on phones; keyboard: Tab and Escape
Booking flowjs/site/checkout.jsRoom hold countdown, guest form, payment method, voucher code, price breakdown, mocked confirmation, printable
Data tableHT.tableUsed by every list; see "List and form screens"
Forms and validationHT.fields, HT.validate, HT.formModalHTML5 constraint validation with Bootstrap's styles; first invalid field gets focus; success and error toasts
ChartsHT.chartChart.js; colours come from the tokens and are redrawn when the theme changes
Month calendarowner/bookings.htmlArrivals per day, day agenda, list / calendar switch, walk-in booking dialog
Room boardjs/panel/board.jsRoom tiles by floor, housekeeping state, drag an arrival onto a room (or use the tile menu)
Timelinejs/panel/board.jsRooms × days; drag a booking bar to another room or day, with clash checks; click a bar for a move dialog
Task boardjs/panel/staff.jsThree columns, drag cards between them (or use the card menu)
Photosowner/photos.htmlUpload (kept in the browser), drop zone, drag to reorder, cover photo
Staff and HRjs/panel/staff.jsRoster grid, attendance day sheet and month grid, leave approvals, payroll with printable payslip, awards, reports with CSV
Toasts and confirm dialogHT.toast, HT.confirmHT.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.

AssetVersionLicenceSourceUsed in
Bootstrap5.3.3MITgetbootstrap.comLayout utilities, modal, dropdown, offcanvas, collapse, carousel. All versions.
Phosphor Icons (web font, bold and fill)2.1.1MITphosphoricons.comAll icons. All versions.
Inter (variable font)4.0SIL Open Font License 1.1rsms.me/inter/Body font, self-hosted. All versions.
Chart.js4.4.7MITwww.chartjs.orgCharts on the dashboards and reports. All versions.
Vue3.5.13MITvuejs.orgVue version only.
Vue Router4.5.0MITrouter.vuejs.orgVue version only.
React and React DOM18.3.1 (React version), 19.1.0 (Next.js version)MITreact.devReact and Next.js versions.
React Router6.28.0MITreactrouter.comReact version only.
Next.js15.5.29MITnextjs.orgNext.js version only.
Vite and its framework plugins6.0.5MITvite.devBuild 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.css and all JavaScript outside vendor/ 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.