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
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 ›
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.
Chargement…
Idéal pour
Freediving and scuba schools, dive centres and other ocean businesses that sell courses, trips and a team.
Fonctionnement
As you scroll, a diver swims down a line, a gauge counts the meters and the shader water darkens. Courses slide, answers open.
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
36,0 ko gzippé · 31 fichiersLe téléchargement complet