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
Adresse de la page : /
Suite plus bas ↓
Intégré
Ce que vous obtenez
Sombre uniquementConçu pour une page sombre
Ordinateur, tablette et téléphoneLes écrans pour lesquels il est conçu
Paquets…
Taille du code…
Économe en batterie30 i/s, au repos quand rien ne bouge
Pause quand masquéHors écran ou autre onglet
Mouvement réduitCalme pour ceux qui le demandent
Vérifié à chaque modification
Vérification des typesTypeScript strict
Lint et formatESLint · Prettier
Tests et buildCaptures claires et sombres
Audit de sécuritéAucune vulnérabilité élevée ou critique
Ancienneté des paquetsChaque version publique depuis 7 jours ou plus
CPU au reposMoins d’un demi-cœur au repos, ≤ 30 i/s
Code
Un problème avec ce template ? Envoyer un avis ›
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.
Chargement…
Idéal pour
Glamping sites, cabin rentals and small forest retreats that want a full website: the stay, cabins, activities, reviews and a booking ask.
Fonctionnement
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.
Utilisation
Ouvrez index.html, ou placez le dossier sur n’importe quel serveur statique. Les textes sont dans index.html, les couleurs et les polices dans theme.css, la fonction d’envoi du formulaire dans send.js. La partie HTML simple de README.md donne le reste.
Aucun paquet en plusReact seulement, rien d’autre
34,1 ko gzippé · 33 fichiersLe téléchargement complet