Skip to content

fix(landing): zh hero grammar + language dropdown in nav - #717

Merged
lilyshen0722 merged 1 commit into
mainfrom
feat/landing-hero-zh-and-lang-dropdown
Jul 22, 2026
Merged

lilyshen0722 merged 1 commit into
mainfrom
feat/landing-hero-zh-and-lang-dropdown

Conversation

@lilyshen0722

Copy link
Copy Markdown
Contributor

Sam's design feedback on the live zh-CN landing:

  1. Hero grammar: rotating term moves INSIDE the sentence frame — zh now reads 「与你的[Claude Code…整个团队]对话」 via titlePrefix/titleSuffix keys (en: 'Chat with your ___', empty suffix). The previous shape stranded the term after a complete sentence.
  2. Switcher → dropdown: nav-option-styled trigger (active language + caret) opening a listbox; Escape/outside-click/selection close; rail variant opens leftward to stay on-screen.
  3. Nav order: language menu among the nav links; primary CTA restored as the rightmost element.

Tests: dropdown interaction, close-without-change, existing i18n/landing/invariants — 21 pass. Post-merge: live browser check EN + zh.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DMeWzgFxsfBcjoLVLewEES

…ightmost

Sam's design feedback on the live zh landing:
- Hero: the rotating term now sits INSIDE the sentence frame
  (titlePrefix/titleSuffix) so zh reads 「与你的[Claude Code]对话」 —
  previously 对话 was baked into the lead and the term dangled after it.
  en keeps 'Chat with your ___' (empty suffix).
- Language switcher: two-button pill → dropdown menu styled like a nav
  option (trigger shows active language + caret; listbox with check;
  Escape/outside-click close). Rail variant opens leftward.
- Nav order: language menu sits among nav links; the primary CTA is the
  rightmost element again.
- Tests: dropdown interaction + close-without-change coverage (21 pass).

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01DMeWzgFxsfBcjoLVLewEES
@lilyshen0722
lilyshen0722 merged commit 2a6e5a8 into main Jul 22, 2026
10 checks passed
@lilyshen0722
lilyshen0722 deleted the feat/landing-hero-zh-and-lang-dropdown branch July 22, 2026 18:19
lilyshen0722 added a commit that referenced this pull request Jul 22, 2026
#717 moved the rotating term inside the sentence frame so zh reads
「与你的___对话」. But the term slot was a fixed inline-grid sized to the
WIDEST term, so short terms (Codex, 整个团队) stranded 对话 far to the right.

Fix: an in-flow invisible sizer holds only the ACTIVE term, so the slot
width tracks it; animated terms are absolutely positioned over the sizer;
width transitions 350ms so the suffix glides as terms rotate. English has
no suffix, so this is visually inert there.


Claude-Session: https://claude.ai/code/session_01DMeWzgFxsfBcjoLVLewEES

Co-authored-by: Claude Fable 5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant