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

+20 -3
View File
@@ -1,4 +1,6 @@
---
import Icon from './Icon.astro';
const linkColumns = [
{
heading: 'Learn',
@@ -10,8 +12,9 @@ const linkColumns = [
{
heading: 'Code',
links: [
{ label: 'GitHub', href: 'https://github.com/Expressive-Tea/green-tea', external: true },
{ label: 'npm', href: 'https://www.npmjs.com/package/@green-tea/core', external: true },
{ label: 'GitHub', href: 'https://github.com/Expressive-Tea/green-tea', external: true, icon: 'github' as const },
{ label: 'npm', href: 'https://www.npmjs.com/package/@green-tea/core', external: true, icon: 'npm' as const },
{ label: 'JSR', href: 'https://jsr.io/@green-tea/core', external: true, icon: 'jsr' as const },
],
},
];
@@ -35,7 +38,13 @@ const year = new Date().getFullYear();
<ul>
{column.links.map((link) => (
<li>
<a href={link.href} target={link.external ? '_blank' : undefined} rel={link.external ? 'noopener noreferrer' : undefined}>
<a
class={link.icon ? 'site-footer__link--mark' : undefined}
href={link.href}
target={link.external ? '_blank' : undefined}
rel={link.external ? 'noopener noreferrer' : undefined}
>
{link.icon && <Icon name={link.icon} size={15} />}
{link.label}
</a>
</li>
@@ -141,4 +150,12 @@ const year = new Date().getFullYear();
gap: 2rem;
}
}
/* Icon beside the word, never instead of it. A footer is scanned, and a column of bare
glyphs makes the reader stop and decode where they were skimming. */
.site-footer__link--mark {
display: inline-flex;
align-items: center;
gap: 0.45rem;
}
</style>