mirror of
https://github.com/vinta/awesome-python.git
synced 2026-05-09 22:53:49 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user