Repository navigation
design(site): self-host Inter Variable and restore calm, readable bilingual landing hierarchy - #313
Merged
Conversation
…ual product presentation
…ee bilingual landing
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
| { | ||
| var root = RepositoryRoot(); | ||
| var path = page.Replace('/', Path.DirectorySeparatorChar); | ||
| var html = File.ReadAllText(Path.Combine(root.FullName, "site", path)); |
| var root = RepositoryRoot(); | ||
| var path = page.Replace('/', Path.DirectorySeparatorChar); | ||
| var html = File.ReadAllText(Path.Combine(root.FullName, "site", path)); | ||
| Assert.Equal(html, File.ReadAllText(Path.Combine(root.FullName, "docs", path))); |
| public void InterIsBundledLocallyWithItsLicenseAndNoRemoteFontDependency() | ||
| { | ||
| var root = RepositoryRoot(); | ||
| var css = File.ReadAllText(Path.Combine(root.FullName, "site/styles.css")); |
| { | ||
| var root = RepositoryRoot(); | ||
| var css = File.ReadAllText(Path.Combine(root.FullName, "site/styles.css")); | ||
| Assert.Equal(css, File.ReadAllText(Path.Combine(root.FullName, "docs/styles.css"))); |
| Assert.DoesNotContain("fonts.gstatic.com", css); | ||
| Assert.DoesNotContain("font-family: Aptos, Inter", css); | ||
|
|
||
| var siteFont = File.ReadAllBytes(Path.Combine(root.FullName, "site/assets/fonts/InterVariable.woff2")); |
| Assert.DoesNotContain("font-family: Aptos, Inter", css); | ||
|
|
||
| var siteFont = File.ReadAllBytes(Path.Combine(root.FullName, "site/assets/fonts/InterVariable.woff2")); | ||
| var mirroredFont = File.ReadAllBytes(Path.Combine(root.FullName, "docs/assets/fonts/InterVariable.woff2")); |
| Assert.InRange(siteFont.Length, 100_000, 600_000); | ||
| Assert.Equal(new byte[] { (byte)'w', (byte)'O', (byte)'F', (byte)'2' }, siteFont[..4]); | ||
| Assert.Equal(siteFont, mirroredFont); | ||
| var license = File.ReadAllText(Path.Combine(root.FullName, "site/assets/fonts/OFL.txt")); |
| Assert.Equal(siteFont, mirroredFont); | ||
| var license = File.ReadAllText(Path.Combine(root.FullName, "site/assets/fonts/OFL.txt")); | ||
| Assert.Contains("SIL OPEN FONT LICENSE", license); | ||
| Assert.Equal(license, File.ReadAllText(Path.Combine(root.FullName, "docs/assets/fonts/OFL.txt"))); |
| public void HeroPrioritizesSoftwareAndReleasesWithoutDuplicatedBadgeTiles(string path) | ||
| { | ||
| var root = RepositoryRoot(); | ||
| var html = File.ReadAllText(Path.Combine(root.FullName, path.Replace('/', Path.DirectorySeparatorChar))); |
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.
UX regression addressed
PR #312 passed browser/CI gates but produced an overly bulky visual impression. The prior
styles.cssplaced Aptos ahead of an unbundledInter; heavy hero density, repeated microcopy/release pills, bloated screenshot cards and cascade overrides made the page hard to scan. The issue is perceptual/readability, not protocol runtime.Changes
rsms/inter, Git blob5a8d3e72ad7ffb62af3b146e1b1f54ab5813a212, exact upstream byte-for-byte; include upstream SIL OFL 1.1 license and mirroredsite/assets/fonts/docs/assets/fonts.@font-faceglobally withfont-display:swap, optical sizing and no CDN dependency. Preload in the six core EN/ID product/demo/download pages; all other public pages use the shared local CSS.Protected validation
Windows build+xUnit, Chromium/Firefox 7-width matrix, repository hygiene, dependency review and CodeQL must pass before merge. After approval, merge with expected SHA and verify GitHub Pages deployment.