fix(ui): flat readable document, ~3s pacing, skip + replay controls

Argon review of the live page (2026-11-13) called the current experience
unshippable on three counts: a ~1.5s blank start, the CV locked in a 70vh
inner-scroll box (77% hidden on desktop, ~11% visible on a phone), and no
way out of a ~10s animation. Changes:

- document scrolls normally: #content is a flex row with natural height and
  the code pane is position:sticky (verified sticky at scrollY 400/1200 and
  releasing at the container end); the resume has no nested scrollbar, so
  Ctrl+F, selection and native print work again
- mobile: the code pane is a 100px live strip instead of 47vh, so the CV
  starts at ~140px down the page (was ~450px)
- resume renders at ~1.2s (was 3.5s); the whole animation settles in ~2.8s
  (charsPerTick 5 -> 18) without gating the content
- "Skip animation" pill while typing, "Replay animation" afterwards, plus
  the existing prefers-reduced-motion short-circuit; repeat visitors get the
  finished page immediately via localStorage hoelee_cv_seen
- a11y: decorative code pane aria-hidden, resume pane tabindex=0 with
  aria-live off->polite, all typing loops honour a cancelled flag
- thank-you panel is content-sized (min-height 0) with a 68ch centred
  text block instead of a tall half-empty beige box
This commit is contained in:
hoelee committed 2026-11-14 00:35:11 +08:00
1 parent 5727ab0c8a
commit a20a79c855
6 files changed
+203 -24

No files matched your search

+1
View File
@@ -68,3 +68,4 @@ NUL
# .netlify/
# .vercel/
.codegraph/
YT-Banner-Hoelee/