Documentation
Localist — Listing Directory Template
Version 1.0.0 · Vanilla HTML · 12 files · 65 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 12 files:
- LICENSE.txt1.7 KB
- README.md2.6 KB
- assets/css/style.css31 KB
- assets/fonts/figtree-LICENSE.txt4.4 KB
- assets/fonts/figtree-latin-wght-normal.woff220 KB
- assets/images/favicon.svg380 B
- assets/js/main.js49 KB
- documentation/index.html13 KB
- documentation/licenses/lucide-LICENSE.txt3.1 KB
- index.html15 KB
- listing.html12 KB
- listings.html9.4 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-ink#0f172a--color-ink-2#334155--color-muted#566478--color-line#e2e8f0--color-bg#ffffff--color-tint#f1f5f9--color-teal#0ea5a4--color-teal-dark#0f766e--color-teal-soft#d9f4f3--color-yellow#facc15--color-open#0f766e--color-soon#a16207--color-closed#b91c1c
Interactive features
Places data
Edit the PLACES array at the top of assets/js/main.js. Each place has a category, neighbourhood, price level (1-4), rating, pin position (x, y on the 640 by 520 map), amenities and seven opening-hours entries starting on Sunday.
Filters, sort and search
Controls on listings.html are wired in initListings() in main.js. Add a category by adding an entry to the CATS object; it appears in the menu and tiles automatically. Links such as listings.html?cat=cafe, ?hood=Fernhill and ?q=coffee pre-set the filters.
Map pins
Pins are drawn by drawMap() from each place’s x and y. Replace MAP_BASE with your own SVG streets, keeping the 640 by 520 viewBox, or swap the whole function for a mapping library.
Open now status
status() in main.js compares the visitor’s clock with the hours array, including places open past midnight. Times are local to the visitor, not the business; add a timezone offset there if needed.
Listing page
listing.html reads ?id= from the URL and falls back to the first place. Link to listing.html?id=your-place-id from anywhere.
Claim dialog
The form in listing.html is validated in initClaim(). Post the fields to your backend where the success state is shown.
Customisation notes
Replace the illustrations
art() in main.js draws four SVG scenes per place from the category colours in CATS. Edit those colours, rewrite the scenes, or replace the art() call in cardHTML() with an img tag pointing at your own photos.
Rename the city
Marlow Bay and the five neighbourhoods are set in the HOODS array, the map labels in MAP_BASE and a few strings in the HTML. Search for them to rebrand.
Tone of the palette
Teal and yellow are --color-teal-dark and --color-yellow in :root. The hero and footer use --color-ink; change it to shift the whole page mood.
Sample content
All businesses, reviews, phone numbers and addresses are fictional sample data for demonstration. Replace them before launch.
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.
- All places, reviews, phone numbers and addresses are invented sample data held in a JavaScript array.
- The claim-this-listing form validates in the browser and shows a confirmation; nothing is sent or stored.
- Search, filters and sorting run client-side over the sample array; there is no server or database.
- Open or closed status uses the visitor’s device clock.
Bundled components and licences
Everything the template needs is inside the download; nothing is loaded from the network.
- Figtree typeface — OFL-1.1 (
assets/fonts/figtree-LICENSE.txt) - Lucide icons (inlined SVG) — ISC (
documentation/licenses/lucide-LICENSE.txt)
Changelog
Version 1.0.0 · Nov 24, 2026
- Initial release.