feat(ux): smooth-scroll hero CTA without updating URL hash

Add a data-scroll-to attribute to the hero 'Browse the List' anchor
and a JS handler that calls scrollIntoView instead of letting the
browser follow the href, so the URL hash is never written.
Respects prefers-reduced-motion.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Vinta Chen
2026-03-24 13:08:22 +08:00
parent 8e360e82b7
commit eb5b37daf5
2 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -36,7 +36,7 @@
</p>
<div class="hero-actions">
<a href="#library-index" class="hero-action hero-action-primary"
<a href="#library-index" class="hero-action hero-action-primary" data-scroll-to="library-index"
>Browse the List</a
>
<a