feat: give the listing its own header and footer

It read as a page of green-tea's site, closing with a breadcrumb back to a
parent. It is not one: it has its own review loop, its own contributors and its
own deploy day, so it closes itself instead of handing the reader off.

A sticky header with the wordmark "Green Tea. / plugins" — family name, then
what this one is — and a footer with its own columns and colophon. Both are
lifted from green-tea-site so the family is recognisable without this being a
subpage of it.

`.wrap` is horizontal padding only now. The header and footer share that
container, so vertical rhythm belongs to each section rather than to the box
they have in common.

Also adds the "Add your plugin" section the nav points at, which is what the
README described and the site never said out loud, and the favicon, which was
missing entirely.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
chrnx committed 2026-09-20 12:49:14 -05:00
1 parent 3ee6928d94
commit 3c4f1312c8
7 files changed
+593 -47

No files matched your search

+49 -24
View File
@@ -3,6 +3,8 @@ import { getCollection } from 'astro:content';
import { readEntry } from '../../scripts/registry.mjs';
// Remove this import together with scripts/preview.mjs once the seed plugins are published.
import { PREVIEW } from '../../scripts/preview.mjs';
import Header from '../components/Header.astro';
import Footer from '../components/Footer.astro';
import PluginCard from '../components/PluginCard.astro';
import '../styles/global.css';
@@ -35,41 +37,64 @@ plugins.sort((a, b) => a.name.localeCompare(b.name));
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>green-tea plugins</title>
<link rel="icon" href="/plugins/favicon.svg" type="image/svg+xml" />
<title>Green Tea. plugins</title>
<meta name="description" content="Plugins for green-tea, with the runtimes each one declares." />
<link rel="canonical" href="https://green-tea.expressive-tea.io/plugins" />
</head>
<body>
<div class="wrap">
<header>
<h1>green-tea <em>plugins</em></h1>
<p>
A plugin is a named object that adds steps and providers to your graph. It imports green-tea
as types only, so installing one never pulls a second copy of core.
</p>
<p>
<a href="https://github.com/Expressive-Tea/green-tea-marketplace/blob/main/CONTRIBUTING.md">
Add your plugin &rarr;
</a>
<Header />
<main>
<section class="hero wrap">
<h1>Plugins</h1>
<p class="hero__lead">
A plugin is a named object that adds steps and providers to your graph. It imports
green-tea as types only, so installing one never pulls a second copy of core.
</p>
<p class="requires">
Everything here needs <code>@green-tea/core@26.9.0-beta.2</code> or newer. That is the
release where a plugin became <code>&#123; name, mount &#125;</code> and <code>app.boot()</code>
went public; on anything older these will not mount.
release where a plugin became <code>&#123; name, mount &#125;</code> and
<code>app.boot()</code> went public; on anything older these will not mount.
</p>
</header>
</section>
<div class="grid">
{plugins.map((plugin) => <PluginCard {...plugin} />)}
</div>
<section class="wrap">
<div class="grid">
{plugins.map((plugin) => <PluginCard {...plugin} />)}
</div>
</section>
<footer>
<section class="contribute wrap" id="contribute">
<h2>Add your plugin</h2>
<p>
Part of <a href="https://expressive-tea.io">Expressive Tea</a> &middot;
<a href="https://green-tea.expressive-tea.io">green-tea</a> &middot;
<a href="https://github.com/Expressive-Tea/green-tea-marketplace">this listing on GitHub</a>
Fork the listing, add one file under <code>src/content/plugins/</code>, open a pull
request. There is no version and no runtimes field — both are read from the registry, so
your entry cannot go stale.
</p>
</footer>
</div>
<pre><code>npm: green-tea-foo # at least one of npm / jsr
jsr: "@acme/green-tea-foo"
repo: https://github.com/acme/green-tea-foo
description: "One sentence, 20–200 characters."</code></pre>
<p>
A check runs against npm and JSR: the package has to exist, depend on
<code>@green-tea/core</code>, and declare at least one runtime. Then a person reads it —
that it really is a factory returning <code>&#123; name, mount &#125;</code>, and that its
README lists all four runtimes with a reason beside each one it does not support.
</p>
<p class="contribute__cadence">
Merged entries go live on the next <strong>Friday</strong> cut.
</p>
<p>
<a class="button" href="https://github.com/Expressive-Tea/green-tea-marketplace">
Open the listing on GitHub &rarr;
</a>
</p>
</section>
</main>
<Footer />
</body>
</html>