A dark one-page website for a Nordic tour company under a live aurora: the lights mirror in a mountain lake, follow you down the page and shift color, and tours come as fanned card decks.
React + HTML
$69
Адрес страницы: /
Ещё ниже ↓
Уже внутри
Что вы получаете
Только тёмнаяСделано для тёмной страницы
ПК, планшет и телефонЭкраны, для которых сделано
Пакеты…
Размер кода…
Бережёт батарею30 кадров/с, в покое простаивает
Пауза в фонеВне экрана или в другой вкладке
Меньше анимацииСпокойно для тех, кто просит
Проверяется при каждом изменении
Проверка типовСтрогий TypeScript
Линтер и форматESLint · Prettier
Тесты и сборкаСкриншоты в светлой и тёмной теме
Аудит безопасностиНет уязвимостей высокого и критического уровня
Возраст пакетовКаждая версия опубликована 7+ дней назад
Загрузка в покоеМеньше половины ядра в покое, ≤ 30 кадров/с
Код
Что-то не так с этим шаблоном? Отправить отзыв ›
nordic-auroraHTML
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.
about.csssectionWho runs the tours: the story on the left, six facts in a grid beside it.
footer.csssectionThe footer: the forecast sign-up, then the brand and contact, three link groups and the legal line, on a night that deepens to the bottom.
footer.jssectionThe forecast sign-up: checks the address, shows "Signing up…" while it sends with send.js, then says where the next email goes, or that it didn't go through.
hero.csssectionThe first screen: the mountain lake under the live sky, the giant headline rising in word by word, and the tour finder on the water.
hero.jssectionThe hero: draws the mountains on the lake and its reflection, and sends the tour finder's search to the deck.
journal.csssectionThe blog: the three latest stories, side by side from tablet up and a row to swipe on phones.
nav.csssectionThe top bar: see-through over the hero's sky, frosted once the page scrolls; folds its links into a menu on narrow screens.
nav.jssectionThe top bar: frosts once the page scrolls, opens and closes the menu on narrow screens, and pauses or plays the sky.
quotes.csssectionWhat travellers said, one story at a time on a frosted panel, with the place they went drawn beside it.
quotes.jssectionThe stories panel: the arrows show the previous or next story and its drawn place, and say which one is showing.
routes.csssectionWhere the tours go: the travellers count and three numbers beside the map, whose routes draw in when it scrolls into view.
routes.jssectionThe map: draws the coasts, the routes and the pins from parts/map-shape.js, and holds the routes undrawn until the map scrolls into view.
tours.csssectionThe tours: tabs for each way to travel, and that way's tours as a fanned deck of cards with Previous and Next under it.
tours.jssectionThe tour deck: fans open on view; Next, Previous, a click on a side card or a swipe deals the cards; a tab or a finder search gathers and re-deals them.
trip.csssectionHow a trip runs: a numbered timeline whose line fills as you scroll, each step with its place drawn in a round window, on alternating sides from tablet up.
trip.jssectionThe timeline: the line fills as you scroll and lights each step's number as it passes; with reduced motion it is drawn in full, every step lit.
partspartsWhat several sections share.
art.jspartThe drawing kit: seeded ridges, snow, pines, stars and houses as SVG path data, and the sky, lights, glow and water every landscape is made of.
aurora-gl.jspartThe WebGL2 side of the sky: builds the shader program, sizes the canvas and reads the theme colors into it.
aurora-shader.jspartThe sky's GLSL, the same string as parts/aurora-shader.ts in the React version (bundled from aurora.glsl); keep the two in sync.
aurora.csspartThe sky behind the whole page: a canvas stuck to the top of the screen, over a soft CSS glow that shows without WebGL2.
aurora.jspartThe live northern lights behind the whole page: curtains over the hero's lake, mirrored in the water, then a band at the top of the screen in each section's color.
count-up.jspartCounts every [data-count-up] number up from zero the first time it scrolls into view (the map's numbers).
map-shape.jspartThe Nordic coastlines, simplified, as longitude and latitude, and the routes on them, turned into map paths (620 by 380 units).
motion.jspartThe motion helpers the other scripts share, as the page's one global: window.nordicAurora.
page.csspartWhat every section shares: the reset, the page column, titles, the buttons, the frosted panel, the focus ring and how blocks rise in.
reveal.jspartHolds back every [data-reveal] block below the first screen (data-hidden) until it scrolls into view; its CSS says how it arrives.
scenes-more.jspartSix of the drawn landscapes: glass cabins, Abisko, the Lapland road, Saimaa, the ice hotel and the valley.
scenes.jspartThe other six drawn landscapes (Lofoten, the fjord, Nordkapp, the islands, the glacier, Tromsø), then draws every <svg data-scene> on the page.
index.html
The page and all its text, one marked block per section.
Загрузка…
Подходит для
Tour operators and travel agencies selling small-group trips by ship, plane or coach, with a map, tours, steps, reviews and a blog.
Как это работает
The aurora moves over the lake and tints each section. The map draws its routes; the tour deck fans open and deals its cards.
Как использовать
Откройте index.html или положите папку на любой статический сервер. Тексты лежат в index.html, цвета и шрифты в theme.css, функция отправки формы в send.js. Остальное смотрите в части Plain HTML файла README.md.