A dark one-page website for a camper-van road-trip company: misty mountains drawn in layers, a sky that turns from day to night as you scroll, and a van that drives the route.
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 ›
camper-duskHTML
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.
dates.csssectionThe 2027 departures under a sunset: one row per date with its free vans drawn lit, the price and a way to ask about it.
footer.csssectionThe end of the road: night-black ridges against the starry page sky, the van parked for the night, then the sign-up form, links and the small print.
footer.jssectionThe footer's newsletter sign-up: checks the email, sends it with send.js, then thanks the person by address. A failed send keeps what they typed.
gallery.csssectionLast season's trip as a masonry wall of drawn snapshots, each with its caption, arriving one after another as you scroll.
hero.csssectionThe first screen: misty golden mountains drawn in layers, a lone hiker on the rock, and the giant headline on the dark ground beneath.
hero.jssectionThe hero's mountains: as you scroll, each layer slides at its own speed (its data-lag), the far ones slowest. Reduced motion: still.
nav.csssectionThe top bar: stays at the top while you scroll, folds its links into a menu on narrow screens, and carries the trip's road along its bottom.
nav.jssectionThe top bar: the menu on narrow screens (opens, closes, closes on Escape and when a link in it is picked), and the tiny van that drives the bar's road as you scroll.
places.csssectionThe destinations: a ring of arched cards with the centre one raised, and its arrows, dots and pause button.
places.jssectionThe ring of places: moves on by itself every few seconds while on screen (the pause button stops it), and arrows, dots or a swipe move it by hand. Reduced motion: it never moves by itself.
route.csssectionThe route, driven by scrolling: the map holds still while a camper van drives from Lisbon to Granada, each stop lighting up as it arrives, with the stop it reached in a card beside it.
route.jssectionThe route drive: as you scroll, a camper van drives the road on the visible map, lighting each pin as it arrives and showing that stop in the card. Reduced motion: the road driven, every pin lit and the van parked at the last stop.
story.csssectionThe trip, the route and the vans: text beside a rounded window onto the road, the side swapping each row. Each window opens from a slit as it scrolls into view while the view inside settles.
why.csssectionWhy people come back: four line drawings that draw themselves in, each over a number that counts up, side by side between thin rules.
partspartsWhat several sections share.
count-up.jspartCounts every [data-count-up] number up from zero the first time it scrolls into view (Why). Reduced motion shows it at once.
motion.jspartThe motion helpers the other scripts share, as the page's one global: window.camperDusk.
page.csspartWhat every section shares: the reset, the page column, section titles and heads, the three link styles, the focus ring and how an element arrives on scroll.
reveal.jspartHolds back every [data-reveal] element below the fold until it scrolls into view; each one's CSS says how it arrives.
sky.csspartThe page sky behind every section: it stays on screen while the page scrolls past, with the stars and moon of the night layer.
sky.jspartThe page sky: cross-fades day to sunset to night as you scroll down, and raises the moon by the footer. Reduced motion: the night sky from the start (sky.css).
index.html
The page and all its text, one marked block per section.
Chargement…
Idéal pour
Tour operators, van rentals and guided road trips that want a full website: the trip, places, route, dates and a newsletter.
Fonctionnement
Scrolling drives a van along the dashed route and lights each stop, while the sky turns to sunset and then stars by the footer.
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,8 ko gzippé · 29 fichiersLe téléchargement complet