A dark one-page website for a forest glamping site: one hand-drawn peach thread winds through the page, and a season dial recolors every drawn cabin and tree.
React + HTML
$69
Pagina-adres: /
Meer hieronder ↓
Ingebouwd
Wat je krijgt
Alleen donkerGemaakt voor een donkere pagina
Desktop, tablet en telefoonDe schermen waarvoor het is gebouwd
Pakketten…
Codegrootte…
Zuinig voor de batterij30 fps, rust als er niets beweegt
Pauzeert als het verborgen isBuiten beeld of ander tabblad
Minder bewegingRustig voor wie erom vraagt
Bij elke wijziging gecheckt
TypecheckTypeScript strict
Lint en opmaakESLint · Prettier
Tests en buildScreenshots in licht en donker
BeveiligingsauditGeen hoge of kritieke advisories
Leeftijd van pakkettenElke versie al 7+ dagen openbaar
CPU in rustOnder een halve core in rust, ≤ 30 fps
Code
Klopt er iets niet met deze template? Feedback sturen ›
glamping-threadHTML
index.htmlpageThe page and all its text, one marked block per section.
theme.cssthemeThe colors and fonts in one place.
send.jsformThe one function the form calls: plug in your form endpoint here.
sectionssectionsOne file per page section.
booking.csssectionAsk for dates: the booking form or, once sent, what happens next, beside the campfire where the thread ends.
booking.jssectionThe booking form: checks each required field, sends with send.js, then shows what happens next or the couldn't-send line.
cabins.csssectionChoose your hideaway: three cabin cards, each drawing's windows warming up as the thread arrives.
facts.csssectionThe place in one sentence: its numbers count up in turn as the thread underlines it.
footer.csssectionThe footer: the brand, two columns of links and the legal line.
forest.csssectionDays in the forest: four things to do, strung on the thread like beads.
guestbook.csssectionNotes from the guestbook: three guests' words, the thread waving above them.
hero.csssectionThe first screen: the drawn night forest with its lit cabin, the weather, the giant headline and the season dial.
hero.jssectionThe hero: depth as you scroll, the season dial that recolors every drawing, and the pause switch.
nav.csssectionThe top bar: stays at the top while you scroll, folds its links into a menu on narrow screens.
nav.jssectionThe top bar's menu on narrow screens: opens and closes, closes on Escape and when a link in it is picked.
stay.csssectionThe stay: a title the thread loops around, then three drawings and their words in alternating rows.
partspartsWhat several sections share.
art.csspartThe drawings' shared parts: tree colors by season, snow, lit windows, flames, and how they change.
backdrop.csspartThe hero's ground from a background of yours (data-follow-background).
backdrop.jspartRests your background's drift while the hero's ground is off screen.
count-up.jspartNumbers that count up from zero when they scroll into view, each after its data-delay.
motion.jspartThe motion helpers the other scripts share, as the page's one global: window.glampingThread.
page.csspartWhat every section shares: the reset, the page column, titles, the two buttons, the focus ring, the reveals and the pause.
thread.csspartThe thread's layer over the sections it runs through: the peach line and the ember at its tip.
thread.jspartThe peach thread down the page: one line through every section's anchors, drawn as you scroll, waking each part it reaches.
index.html
The page and all its text, one marked block per section.
Laden…
Goed voor
Glamping sites, cabin rentals and small forest retreats that want a full website: the stay, cabins, activities, reviews and a booking ask.
Hoe het werkt
A thread draws itself down the page as you scroll and wakes each part it reaches. The hero's dial turns the season for every drawing.
Hoe je het gebruikt
Open index.html, of zet de map op een willekeurige statische server. De teksten staan in index.html, de kleuren en lettertypen in theme.css, de verstuurfunctie van het formulier in send.js. Het onderdeel Gewone HTML in README.md heeft de rest.