Saltwind Cottages
What it is
A website for Saltwind Cottages, a made-up set of three holiday lets on a lane above a harbour: a one-bed hideaway, a two-bed cottage and a family house where dogs are welcome. Each cottage has an illustrated floor plan, a calendar with real-looking bookings and seasonal prices, and a booking enquiry that lands in the owner’s admin.
Why I built it
Most holiday cottage sites are a carousel of wide-angle photos and a booking widget bolted on underneath. The questions guests actually ask are smaller than that. Which bedroom has the king-size bed? Is the log burner in the room with the sofa? Does the dog have to walk through the kitchen to reach the garden? A floor plan answers all of that at a glance, so I made the floor plan the front door.
How it works
The plans are drawn in SVG from data: rooms as rectangles (or an outline for the odd L-shaped landing) in units of ten centimetres, furniture placed and rotated inside each room, and doors and windows cut into the walls. The walls are drawn twice, a thick line round every room with the floors laid over half of it, then a thin line on top, which gives thick outer walls and thin inner ones without ever working out the outline of the building.
Hover or tap a room and a copy of it lifts out of the plan. Each wall of the room casts a strip down to where it was sitting, and only the strips on the far side show, so it reads as a block rising out of the drawing. The panel beside it shows a drawing of the room until the owner adds a photo.
The calendar knows that a booking holds nights rather than days, so the day someone leaves is half free and shows as a changeover. Prices come from seasons that can overlap (Christmas sits on top of winter), and the shortest stay depends on the season you arrive in. The made-up bookings come from a seeded random sequence starting on a fixed date, so they look the same whichever day you visit.
There’s no server. The admin keeps every change in your own browser and lays it over the original content.
What I’d change
A buyer’s floor plans still need me to draw them. A simple room-dragging editor in the admin would let an owner do it themselves.
ReactTypeScriptViteReact RouterSVG
This one is for sale. The demo runs in your browser with made-up data, so try anything. There are two ways to have it:
Either way I can host it and look after it for a monthly fee, or hand everything over. Ask for a price.