Repository navigation
Conversation
The hero now types each line of the home page's `hero` front matter, holds it, backspaces it and moves on, with a 35-70 ms jitter a key. The tagline is the h1's aria-label and what reduced motion and no-JS get; a return visit in the same tab picks up at it. Every line sits invisibly in the h1's grid cell, so the typing never moves the page. A `‖ pause` toggle in the headline's bottom margin stops it (WCAG 2.2.2); it also holds while the mouse is over the line, the toggle has keyboard focus, the tab is hidden or the hero is scrolled away. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The home page's headline now works like the NMSii hero (rdlu/nms-items-interface#25). It types each line, holds it, backspaces it and moves on to the next, round and round, with a 35-70 ms jitter between keys.
Lines
The lines are in the
herofront matter ofsite/content/_index.md, each written as{ text, hold }. Adding, dropping or retiming a line changes one line there.layouts/_shortcodes/hero-typed.htmlrenders them.plugii: a live USB port monitor for LinuxKnow what every USB port is really doing10G capable, linked at 5G. It's the cable.USB-C: the C is for Could be anything.Behaviour
sessionStorage). Coming back to the home page picks up at the tagline, already typed.>prompt and the cursor are on each line, so they all wrap the same way.‖ pause/▶ resume. It is a 24 px button positioned absolutely in the headline's bottom margin, with anaria-labelthat changes with its state and a focus ring.aria-label). With reduced motion or without JS, the tagline shows still and there is no toggle.The NMSii PR's Enter-key fix doesn't apply here, because the docs site has no page-wide key handler that takes Enter.
Checks
These ran in headless chromium against
hugo server:🤖 Generated with Claude Code