Skip to content

feat(website): hero i18n IP detection, layout stabilization, and copy redesign - #161

Merged
Xuepoo merged 1 commit into
mainfrom
ctx-0068/feat-hero-i18n-layout
Oct 17, 2026
Merged

Xuepoo merged 1 commit into
mainfrom
ctx-0068/feat-hero-i18n-layout

Conversation

@Xuepoo

@Xuepoo Xuepoo commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Priority: P1 | Area: website | Labels: feat, P1, area:website | Milestone: v0.1.0 | Task: CTX-0068

Closes #160

Summary of Changes

  • Mascot Card Decoupled: Removed the mascot card and associated mood cycling logic to balance the hero columns.
  • CTA Decoupled: Decoupled version number from Get Bitty ⚡ CTA button.
  • Zero CLS Cartridge:
    • Hidden scrollbars (.no-scrollbar).
    • Added min-w-0 flex-1 truncate to status hint row.
    • Added minmax(0, 7fr) minmax(0, 5fr) grid bounding.
    • Measured across all 4 tabs (unix, win, pkg, cargo) with 0.000px height/width variance.
  • Copy Cleaned: Replaced noisy/Japanese text with clean technical copy in stickers, install header, and bento cards.
  • Bilingual i18n & IP Detection:
    • Dictionary in src/lib/translations.ts for English (en) and Simplified Chinese (zh-CN).
    • Automatic IP geolocation detection via /cdn-cgi/trace, browser locale fallback, and dynamic in-place language switching via header [🌐 EN / 中] button.

Verification

  • Local quality gates (bun run check): Prettier, Markdownlint, TypeScript, 371 Vitest tests, Dist validation, Pa11y audit (0 failures), Wrangler dry-run all PASS.
  • Puppeteer automated bounding box measurement: maxHDiff: 0, maxWDiff: 0, maxContainerHDiff: 0.

@Xuepoo Xuepoo added this to the v0.1.0 milestone Oct 17, 2026
@Xuepoo Xuepoo added feat Feature area:website Area: website P1 Priority P1 labels Oct 17, 2026
@Xuepoo
Xuepoo merged commit 0fc9940 into main Oct 17, 2026
4 checks passed
@Xuepoo
Xuepoo deleted the ctx-0068/feat-hero-i18n-layout branch October 17, 2026 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:website Area: website feat Feature P1 Priority P1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(website): hero i18n IP detection, layout stabilization, and hero copy redesign

1 participant