Repository navigation
feat: landing in four languages, author links and white icons - #4
Merged
Merged
Conversation
The landing follows the visitor's language. lang.js picks it before the first paint, from ?lang= (the new footer switcher), an earlier pick or the browser's languages, and i18n.js swaps the text in. English stays in the HTML; the recorder drawn in the hero stays English, like a screenshot. The 404 and brand pages are translated too. The footer gets the author's line with Telegram and X. Sprite icons had no fill and drew black on the dark page; they now take their text colour. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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
Three changes to the Marquee landing in
site/.lang.jspicks the language before the first paint, from?lang=(the new switcher in the footer), an earlier pick or the browser's languages. Theni18n.jsswaps the text in. English stays in the HTML. The recorder drawn in the hero stays in English, like a screenshot of the app. The 404 and/brandpages are translated too.t.me/likemiens) and X (x.com/a_varantsov).Details: Geist covers Cyrillic and Spanish, and Chinese falls back to the system font. The tagline marks its glowing words with
<em>instead of a hard-coded English list. Chinese is split into words withIntl.Segmenter. On phones, the Russian and Spanish hero lines shrink slightly so each one still fits on a single row.Related issue
None.
Type of change
Release impact
Desktop impact
Testing
i18n.jswarns about any missing key), nothing left hidden. Icons compute to white.ru-RUbrowser gets Russian,de-DEgets English,es-MXgets Spanish andzh-TWgets Simplified Chinese. A pick from the switcher is remembered on the next page./brandand the 404 page in Russian: titles and headings translated, no warnings.biome check sitepasses. The CSP is unchanged, since both new scripts are same-origin files.🤖 Generated with Claude Code