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
Địa chỉ trang: /
Xem thêm bên dưới ↓
Tích hợp sẵn
Bạn nhận được
Chỉ tốiLàm cho trang nền tối
Máy tính, máy tính bảng và điện thoạiCác màn hình mục này được thiết kế cho
Package…
Dung lượng mã…
Tiết kiệm pin30 fps, nghỉ khi đứng yên
Tạm dừng khi bị ẩnNgoài màn hình hoặc tab khác
Giảm chuyển độngÊm dịu cho người có yêu cầu
Được kiểm tra ở mỗi thay đổi
Kiểm tra kiểuTypeScript strict
Lint và định dạngESLint · Prettier
Test và buildẢnh chụp sáng và tối
Kiểm tra bảo mậtKhông có cảnh báo mức cao hoặc nghiêm trọng
Tuổi của packageMọi phiên bản công khai từ 7 ngày trở lên
CPU khi nghỉDưới nửa nhân khi đứng yên, ≤ 30 fps
Mã nguồn
Template này có gì không ổn? Gửi góp ý ›
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.
Đang tải…
Phù hợp cho
Freediving and scuba schools, dive centres and other ocean businesses that sell courses, trips and a team.
Cách hoạt động
As you scroll, a diver swims down a line, a gauge counts the meters and the shader water darkens. Courses slide, answers open.
Cách dùng
Mở index.html, hoặc đặt thư mục lên bất kỳ máy chủ tĩnh nào. Nội dung chữ nằm trong index.html, màu và font trong theme.css, hàm gửi của biểu mẫu trong send.js. Phần Plain HTML của README.md có phần còn lại.