v1: hero buttons should skip past #navigate to the first content section
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 74/100
Direzione di ricerca
Inizia controllando il markup di hero-button e le sezioni di destinazione nelle pagine HTML elencate, quindi leggi assets/js/main.js per comprendere il comportamento del trigger di scrollex. Aggiorna ogni pagina elencata in modo che punti alla prima sezione di contenuto specificata, rivedi l'etichetta del pulsante di sitemap.html e verifica che la sezione animata venga visualizzata dopo il clic sia alla larghezza desktop sia a 360px.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
On every v1 content page, the hero button ("Tell Me More...", or "Read T&Cs" on the terms page) smooth-scrolls to #navigate, the grid of Navigate buttons. It should skip past that grid to the page's first real content section.
Why
The content sections animate in via scrollex in assets/js/main.js. .items and .gallery blocks (and the $wrapper.children() sections) have top: '30vh', bottom: '30vh', so they only lose is-inactive once they reach the middle band of the viewport. When the hero button lands on #navigate, the next section sits too low to trigger. Its content stays hidden until you scroll a little further by hand, which is the annoying bit. Landing on the content section itself should put it inside the trigger band straight away.
The Navigate grid stays where it is and is still reachable by scrolling up. Only the hero button's target changes.
Scope
None of these pages has a #pages anchor (only sitemap.html does), so each page needs its own target: the first section after #navigate.
| Page | Current | Proposed target |
|---|---|---|
bellringing.html |
#navigate |
#what-is-it |
cars.html |
#navigate |
#mx5 |
coffee.html |
#navigate |
#specialty |
engineer.html |
#navigate |
#explore |
engineer-ai.html |
#navigate |
#cyber-range |
engineer-devops.html |
#navigate |
#iac |
engineer-firmware.html |
#navigate |
#firmware |
leader.html |
#navigate |
#numbers |
photographer.html |
#navigate |
#event |
prod_tech.html |
#navigate |
#sound-engineer |
sitemap.html |
#navigate |
#pages |
terms-and-conditions.html |
#navigate |
#terms |
Out of scope: index.html already targets its first content section (#first), and travel.html / under_construction.html have no hero button.
Open question
Should the per-page anchors stay as they are, or should every page's first content section get a shared id (e.g. #content) so every hero button carries the same href? A shared id makes the pages uniform and future pages easier, but it means renaming ids that may already be deep-linked.
Acceptance
- Every hero button above targets the page's first content section.
- On each page, clicking the hero button reveals that section's animated content with no extra manual scroll, at desktop and at the 360px floor.
-
sitemap.html's button label is revisited once it targets#pages("Jump to Pages" becomes accurate again).
Follows from review on #68.
- Lingua principale
- HTML
- Stelle
- 0
- Fork
- 0
- Merge medio
- 8h 17m
- PR unite (30g)
- 58
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di laywill/laywill.github.io
-
design
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
laywill/laywill.github.io#186 ·
-
design
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
laywill/laywill.github.io#183 · 1 commento ·
-
Difficoltà 2/5 Mezza giornata Idoneità per principianti 74/100
laywill/laywill.github.io#135 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
laywill/laywill.github.io#106 ·
-
infra needs-william
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
laywill/laywill.github.io#35 · 1 commento ·
Tutte le issue di laywill/laywill.github.io
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
pastelsky/bundlephobia#1122 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
speaches-ai/speaches#678 ·
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
jellyfin/jellyfin-web#8540 ·