Documentation
Harborview — Hotel Website & Booking Template
Version 1.0.0 · Vanilla HTML · 16 files · 200 KB
Getting started
- Unzip the download and open index.html in a browser. No server, installation or build step is needed.
- Edit the text directly in the HTML files.
- Change colours, fonts and spacing through the CSS custom properties at the top of assets/css/style.css.
- Replace the artwork in assets/images/ with your own images.
- Upload the whole folder to any static host.
File structure
The download contains these 16 files:
- LICENSE.txt1.9 KB
- README.md3.1 KB
- assets/css/style.css33 KB
- assets/fonts/josefin-sans-LICENSE.txt4.5 KB
- assets/fonts/josefin-sans-latin-wght-normal.woff228 KB
- assets/fonts/newsreader-LICENSE.txt4.4 KB
- assets/fonts/newsreader-latin-wght-italic.woff263 KB
- assets/fonts/newsreader-latin-wght-normal.woff257 KB
- assets/images/favicon.svg422 B
- assets/js/main.js44 KB
- booking.html15 KB
- documentation/index.html13 KB
- documentation/licenses/lucide-LICENSE.txt3.1 KB
- documentation/licenses/simple-icons-LICENSE.txt6.4 KB
- index.html20 KB
- rooms.html11 KB
Colours
These custom properties are defined at the top of the stylesheet. Change a value once and it updates everywhere it is used.
--color-ivory#fdfbf7--color-mist#f1ece0--color-line#ddd5c0--color-navy#14213d--color-navy-2#1f3158--color-navy-deep#0b1328--color-gold#e5c07b--color-gold-ink#85651f--color-text#232b3d--color-muted#4d566a--color-danger#a8321f--color-ok#1f6b45
Interactive features
Rooms and rates
Edit the ROOMS array at the top of assets/js/main.js: name, type, view, size, capacity, nightly rate and perks. The home preview, rooms page and booking selector all update.
Availability search and dates
The date rules live in validateStay() in main.js; change MAX_NIGHTS for the longest allowed stay. On the home page a valid search opens rooms.html with the dates in the query string.
Price calculation
Set TAX_PERCENT and LEVY_PER_GUEST_NIGHT in main.js, and edit the EXTRAS array to add services priced per stay or per guest per night.
Booking confirmation
Replace confirmBooking() in main.js with a request to your booking engine. The demo only builds a reference and shows the confirmation panel.
Dining tabs
Each venue is a button with role=tab and a panel in index.html; copy a pair to add a venue.
Customisation notes
Recolour the artwork
The hero, rooms, dining room and map are drawn in main.js with the GOLD, NAVY and IVORY constants and the ROOM_PAL array. Change them together with the CSS tokens.
Use real photography
Replace the data-art and data-room elements with img tags, or change roomCard() and the preview tiles in main.js to output a photo from a field on each room.
Rename the hotel
The name, address, phone and email are plain text in the three HTML files and the footer; the map labels are in mapSvg() in main.js.
Currency and language
money() in main.js formats prices with a dollar sign; change the symbol there and the rate figures in the ROOMS array.
What is front-end only
This is a front-end template. The behaviours below are demonstrations that run in the browser; connect them to your own server or service before relying on them.
- The availability search and room filters run against bundled demo data; every room always shows as available.
- The booking form validates in the browser and shows a confirmation labelled as a demonstration; nothing is stored or sent and no payment is taken.
- Taxes, levy and extras are illustrative figures, not real pricing.
Bundled components and licences
Everything the template needs is inside the download; nothing is loaded from the network.
- Josefin Sans typeface — OFL-1.1 (
assets/fonts/josefin-sans-LICENSE.txt) - Newsreader typeface — OFL-1.1 (
assets/fonts/newsreader-LICENSE.txt) - Lucide icons (inlined SVG) — ISC (
documentation/licenses/lucide-LICENSE.txt) - Simple Icons brand marks (inlined SVG) — CC0-1.0 (
documentation/licenses/simple-icons-LICENSE.txt)
Changelog
Version 1.0.0 · Nov 23, 2026
- Initial release.