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
Endereço da página: /
Mais abaixo ↓
Já incluído
O que você recebe
Só escuroFeito para uma página escura
Desktop, tablet e celularAs telas para as quais foi feito
Pacotes…
Tamanho do código…
Leve para a bateria30 fps, em repouso quando parado
Pausa quando ocultoFora da tela ou em outra aba
Reduzir movimentoCalmo para quem pede
Verificado a cada mudança
Verificação de tiposTypeScript strict
Lint e formataçãoESLint · Prettier
Testes e buildCapturas de tela claras e escuras
Auditoria de segurançaSem alertas de gravidade alta ou crítica
Idade dos pacotesToda versão pública há 7+ dias
CPU em repousoMenos de meio núcleo em repouso, ≤ 30 fps
Código
Algo errado com este modelo? Enviar feedback ›
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.
Carregando…
Ideal para
Freediving and scuba schools, dive centres and other ocean businesses that sell courses, trips and a team.
Como funciona
As you scroll, a diver swims down a line, a gauge counts the meters and the shader water darkens. Courses slide, answers open.
Como usar
Abra o index.html ou coloque a pasta em qualquer servidor estático. Os textos estão em index.html, as cores e fontes em theme.css e a função de envio do formulário em send.js. O restante está na parte Plain HTML do README.md.