Repository navigation
feat(home): CRA lab culture typewriter mottos - #102
Merged
Merged
Conversation
Cycle the three English culture slogans from legacy About/LAB_CULTURE with vanilla type/delete loop, blinking underscore cursor, and reduced-motion instant rotation. Placed below mission copy in #lab-introduction. Co-authored-by: SSU-WEI HUANG <stanley.yellow1@gmail.com>
Co-authored-by: SSU-WEI HUANG <stanley.yellow1@gmail.com>
swear01
marked this pull request as ready for review
October 1, 2026 10:38
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.
Summary
Restores the legacy CRA lab culture rotating typewriter from
About/index.js(typewriter-effectonLAB_CULTURE.SUBTITLEinfrontend.json).Placement
#lab-introduction(.home-mission), below the mission paragraphs and above NEWS & AWARDS — same narrative order as CRA About (intro text → culture motto → gallery; we omit the gallery carousel for now).Copy
home.{zh,en}.cultureMottosinsrc/data/page-copy.mjslang="en"on the typewriter line.Behavior
src/scripts/home-culture-typewriter.mjs— type (20ms/char) → pause → delete (30ms/char) → next, loop, cursor_with CSS blink (matches CRA options).prefers-reduced-motion: reduce: no typing; full strings rotate every 5s; cursor blink disabled (is-reduced-motionclass).Tests / docs
dist/index.html(zh + en).[data-culture-typewriter]visible +data-stringspayload.docs/content-guide.mdupdated.PUBLIC_SITE_URL=https://dvlab-ntu.github.io npm run verifypasses locally.Do not merge (per request).