fix: make landing page footer reachable past scroll-snap (#1118)

scroll-snap-type: y mandatory (docs/index.html:28) forces the viewport to
always rest on a snap point. The footer is far shorter than a viewport, so
scrolling down past the last min-height:100vh section snaps back to that
section's start and the footer can never settle in view. Switch the snap
type to 'proximity' so sections still snap when the user is near them but
the footer (and any sub-viewport tail) is freely reachable.

Fixes #8

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Hayk Arzumanyan
2026-06-02 17:33:17 +04:00
committed by GitHub
parent 521848da75
commit 5236a62de1

View File

@@ -25,7 +25,7 @@
--radius: 8px; --radius: 8px;
} }
* { box-sizing: border-box; } * { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-snap-type: y mandatory; scroll-padding-top: 60px; } html { scroll-behavior: smooth; scroll-snap-type: y proximity; scroll-padding-top: 60px; }
/* Each section is a full-viewport "page" with its content centered, so only /* Each section is a full-viewport "page" with its content centered, so only
one shows at a time and the snap is obvious. */ one shows at a time and the snap is obvious. */
.hero, section { .hero, section {