feat(nav): reach the package where it is published, not only on npm

The site linked to GitHub and npm and said nothing about JSR, which core has published to
since 26.8.0-beta.1. A reader on Deno had no way in from here.

The three become marks rather than words. In a header row of five items, three logos are read
faster than three nouns, and the words were carrying no information a logo does not — nobody
needs to be told what "GitHub" is. The footer keeps both, because a footer is scanned and a
column of bare glyphs makes the reader stop and decode where they were skimming.

Each mark is inline SVG in one component. Three icons did not justify an icon library: the
resolver and the set weigh more than the paths, and every one of them ends up inlining the
same paths anyway.

The paths are the official ones from simple-icons. Hand-drawn approximations were tried first
and rendered as illegible shapes — verified in a screenshot, not in the markup, because the
generated HTML was correct in both cases. A third-party mark is either theirs or it is noise.

JSR carries an optical multiplier: its wordmark is wide and short and covers about half the
viewBox height, so at an equal size it read as the small one of the three.

Icon-only links take the label as `aria-label`. Inside the collapsed mobile menu the label
comes back beside the mark, where the row is vertical and three unlabelled logos read as
decoration.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
chrnx committed 2026-09-04 13:41:22 -05:00
1 parent 4408710e85
commit 6c3ccf2496
4 files changed
+126 -11

No files matched your search

+19 -4
View File
@@ -1,5 +1,6 @@
---
import logoUrl from '../../assets/logo.svg?url';
import Icon from '../Icon.astro';
import GraphMotif from '../GraphMotif.astro';
---
@@ -25,11 +26,14 @@ import GraphMotif from '../GraphMotif.astro';
<a class="btn btn--primary" href="https://green-tea.expressive-tea.io/docs" target="_blank" rel="noopener noreferrer">
Get started
</a>
<a class="btn btn--ghost" href="https://github.com/Expressive-Tea/green-tea" target="_blank" rel="noopener noreferrer">
GitHub
<a class="btn btn--ghost btn--mark" href="https://github.com/Expressive-Tea/green-tea" target="_blank" rel="noopener noreferrer" aria-label="GitHub">
<Icon name="github" size={20} />
</a>
<a class="btn btn--ghost" href="https://www.npmjs.com/package/@green-tea/core" target="_blank" rel="noopener noreferrer">
npm
<a class="btn btn--ghost btn--mark" href="https://www.npmjs.com/package/@green-tea/core" target="_blank" rel="noopener noreferrer" aria-label="npm">
<Icon name="npm" size={20} />
</a>
<a class="btn btn--ghost btn--mark" href="https://jsr.io/@green-tea/core" target="_blank" rel="noopener noreferrer" aria-label="JSR">
<Icon name="jsr" size={20} />
</a>
</div>
@@ -101,6 +105,17 @@ import GraphMotif from '../GraphMotif.astro';
color: var(--ink);
}
/* Square rather than pill: with the text gone the ghost button's horizontal padding left a
wide box around a small mark. Equal padding keeps the three the same size whatever the
glyph's width. */
.btn--mark {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.65rem;
aspect-ratio: 1;
}
.hero__ctas {
margin-bottom: 1.4rem;
}