From 6c3ccf24969bc0f16f7e5ea76ff9235cd3692cbc Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Fri, 4 Sep 2026 13:41:12 -0500 Subject: [PATCH] feat(nav): reach the package where it is published, not only on npm MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/components/Footer.astro | 23 ++++++++++++-- src/components/Header.astro | 42 ++++++++++++++++++++++--- src/components/Icon.astro | 49 ++++++++++++++++++++++++++++++ src/components/sections/Hero.astro | 23 +++++++++++--- 4 files changed, 126 insertions(+), 11 deletions(-) create mode 100644 src/components/Icon.astro diff --git a/src/components/Footer.astro b/src/components/Footer.astro index d70b261..4b5aa15 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -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();