A warm, elegant single-page site to showcase your rooms for rent: room photos, prices, video, shared spaces, floor plan, and a contact form. Pure HTML/CSS/JS — no build step — designed to host free on GitHub Pages.
index.html the page
css/style.css the look (warm & cozy theme)
js/config.js ← EDIT THIS: your rooms, prices, photos, contact
js/main.js site logic (you rarely touch this)
assets/images/ your photos go here
hero.svg big top photo
rooms/ room photos
public/ shared-area photos
floorplan.svg floor plan
Open js/config.js in any text editor. Change the text between the quotes,
the prices, and the image filenames. Save, then refresh the page.
- Add a room: copy one
{ ... }block insiderooms: [ ]and edit it. - Mark a room rented: set
status: "rented". - Set the price: e.g.
price: "$650",period: "/ month".
- Drop your photo files into the right folder, e.g.
assets/images/rooms/sunrise-1.jpg. - In
config.js, point to them, e.g.:The first photo is the cover. Add as many as you like.photos: [ "assets/images/rooms/sunrise-1.jpg", "assets/images/rooms/sunrise-2.jpg" ],
- For the big top image, set
heroImage: "assets/images/hero.jpg".
In a room, set video to either a YouTube link or a local file:
video: "https://www.youtube.com/watch?v=XXXXXXXX",
// or
video: "assets/videos/sunrise-tour.mp4",Leave it as "" for no video.
On GitHub Pages there's no server, so the form uses a free service:
- Go to https://formspree.io, sign up, create a form.
- Copy your form ID (looks like
xayzwkdb). - In
config.jssetformspreeId: "xayzwkdb".
Until you do that, the form falls back to opening the visitor's email app addressed to you — so it still works.
Just double-click index.html to open it in your browser. (Videos and the
form behave best when served — see below — but the page will display fine.)
To run a quick local server (optional):
cd bearhole
python3 -m http.server 8000
# then open http://localhost:8000- Create a GitHub account at https://github.com (if you don't have one).
- Create a new public repository. For a personal site at
https://YOURNAME.github.io, name it exactlyYOURNAME.github.io. (Any other repo name works too — the site will live athttps://YOURNAME.github.io/REPONAME/.) - Upload these files: click Add file → Upload files, drag in everything
from this folder (including the
assets,css,jsfolders), and commit. - Go to Settings → Pages. Under "Build and deployment", set
Source: Deploy from a branch, Branch:
main, folder/ (root). Save. - Wait ~1 minute, then visit your URL. Done! 🎉
cd bearhole
git init
git add .
git commit -m "Bear Hole rental site"
git branch -M main
git remote add origin https://github.com/YOURNAME/YOURNAME.github.io.git
git push -u origin mainThen enable Pages in Settings as in step 4 above.
In css/style.css, the palette lives at the top under :root. Change
--terracotta for a different accent color, --cream for the background, etc.