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
Адрес страницы: /
Ещё ниже ↓
Уже внутри
Что вы получаете
Только тёмнаяСделано для тёмной страницы
ПК, планшет и телефонЭкраны, для которых сделано
Пакеты…
Размер кода…
Бережёт батарею30 кадров/с, в покое простаивает
Пауза в фонеВне экрана или в другой вкладке
Меньше анимацииСпокойно для тех, кто просит
Проверяется при каждом изменении
Проверка типовСтрогий TypeScript
Линтер и форматESLint · Prettier
Тесты и сборкаСкриншоты в светлой и тёмной теме
Аудит безопасностиНет уязвимостей высокого и критического уровня
Возраст пакетовКаждая версия опубликована 7+ дней назад
Загрузка в покоеМеньше половины ядра в покое, ≤ 30 кадров/с
Код
Что-то не так с этим шаблоном? Отправить отзыв ›
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.
Загрузка…
Подходит для
Tour operators, van rentals and guided road trips that want a full website: the trip, places, route, dates and a newsletter.
Как это работает
Scrolling drives a van along the dashed route and lights each stop, while the sky turns to sunset and then stars by the footer.
Как использовать
Откройте index.html или положите папку на любой статический сервер. Тексты лежат в index.html, цвета и шрифты в theme.css, функция отправки формы в send.js. Остальное смотрите в части Plain HTML файла README.md.