A dark one-page website for a freediving school where scrolling is the dive: a diver sinks down the line past depth-tagged sections as live water darkens around them.
React + HTML
$69
Адрес страницы: /
Ещё ниже ↓
Уже внутри
Что вы получаете
Только тёмнаяСделано для тёмной страницы
ПК, планшет и телефонЭкраны, для которых сделано
Пакеты…
Размер кода…
Бережёт батарею30 кадров/с, в покое простаивает
Пауза в фонеВне экрана или в другой вкладке
Меньше анимацииСпокойно для тех, кто просит
Проверяется при каждом изменении
Проверка типовСтрогий TypeScript
Линтер и форматESLint · Prettier
Тесты и сборкаСкриншоты в светлой и тёмной теме
Аудит безопасностиНет уязвимостей высокого и критического уровня
Возраст пакетовКаждая версия опубликована 7+ дней назад
Загрузка в покоеМеньше половины ядра в покое, ≤ 30 кадров/с
Код
Что-то не так с этим шаблоном? Отправить отзыв ›
freedive-descentHTML
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.csssectionThe school at 5 m: what it is and how it teaches, then three numbers that count up.
breath.csssectionThe pause at 20 m, where free fall begins: a lone diver sinking through a shaft of light, and a quote about letting the water take over.
contact.csssectionThe last stop, at 38 m, just above the bottom plate: the bay as a sea chart with how to reach us, and the booking form.
contact.jssectionThe booking form: checks name and email on send, sends with send.js, then shows what happens next or the couldn't-send line.
courses.csssectionThe courses at 10 m: every level in a carousel, the chosen one centered and lit, its neighbours dimmed on either side.
courses.jssectionThe course carousel: arrows, the dots, arrow keys, a swipe or a click on a dimmed card moves along.
faq.csssectionThe questions people ask before their first dive, at 32 m: an accordion, one answer open at a time.
faq.jssectionThe questions as an accordion: one answer open at a time, sliding open and shut.
footer.csssectionThe footer, below the bottom plate: the school, the section links and a way back up.
hero.csssectionThe first screen, at 0 m: the giant headline set on the water under the buoy, sinking into place word by word on load.
nav.csssectionThe top bar: frosted water that 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.
team.csssectionThe instructors at 26 m: a drawn portrait each, ringed by their deepest dive, which counts up as the ring draws.
trips.csssectionThe trips at 15 m, set like a tide table: one row per trip with its dates, place, length, price and the places still free.
partspartsWhat several sections share.
count-up.jspartCounts every [data-count-up] number up from zero the first time it scrolls into view (About, Team).
descent.csspartThe dive: the water behind the page, the line from the buoy to the bottom plate, the diver, the depth gauge, the pause button and the fade-in of each section.
descent.jspartThe dive: moves the diver down the line as you scroll, works out the depth for the gauge and the water, fades sections in and runs the pause button.
motion.jspartThe motion helpers the other scripts share, as the page's one global: window.freediveDescent.
page.csspartWhat every section shares: the reset, the page column, section titles and stops, the buttons, links and the focus ring.
water.jspartThe water behind the page: the WebGL2 shader on the fixed canvas, darkening as the diver goes deeper.
index.html
The page and all its text, one marked block per section.
Загрузка…
Подходит для
Freediving and scuba schools, dive centres and other ocean businesses that sell courses, trips and a team.
Как это работает
As you scroll, a diver swims down a line, a gauge counts the meters and the shader water darkens. Courses slide, answers open.
Как использовать
Откройте index.html или положите папку на любой статический сервер. Тексты лежат в index.html, цвета и шрифты в theme.css, функция отправки формы в send.js. Остальное смотрите в части Plain HTML файла README.md.