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:
7 files changed
+590
-44
No files matched your search
@@ -0,0 +1,16 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 611 620" fill="none">
|
||||||
|
<path d="M0 0 C6.4 4.22 7.06 11.7 8.6 18.74 C9.17 21.55 9.71 24.37 10.23 27.2 C10.43 28.25 10.63 29.3 10.84 30.39 C11.48 33.82 12.12 37.25 12.75 40.69 C12.86 41.28 12.86 41.28 13.41 44.27 C19.74 78.61 25.24 113.17 28 148 C28.1 149.25 28.2 150.5 28.31 151.78 C33.71 219.69 29.07 297.74 -17 352 C-37.58 376.04 -63.34 393.66 -92.79 405.14 C-94.83 405.93 -96.85 406.75 -98.87 407.58 C-119.07 415.67 -140.54 420.66 -162 424 C-163.26 424.2 -164.52 424.4 -165.82 424.6 C-213.88 431.88 -265.63 431.11 -313 420 C-313.8 419.81 -314.6 419.63 -315.42 419.43 C-321.96 417.87 -328.02 416.17 -334 413 C-333.4 408.16 -331.32 404.45 -329 400.25 C-328.63 399.57 -328.26 398.88 -327.88 398.18 C-325.16 393.16 -325.16 393.16 -324 392 C-316.45 391.5 -309.28 393.04 -301.88 394.38 C-266.77 400.41 -230.41 401.2 -195 397 C-193.89 396.88 -192.78 396.75 -191.63 396.63 C-143.03 391.12 -90.07 376.55 -53 343 C-52.13 342.26 -51.26 341.53 -50.37 340.77 C-13.69 309.26 -0.6 260.49 3 214 C6.89 162.68 1.22 110.21 -9.66 60.01 C-10 58 -10 58 -10 54 C-10.66 54 -11.32 54 -12 54 C-12.08 54.65 -12.16 55.3 -12.24 55.98 C-13.28 60.13 -15.18 63.61 -17.19 67.38 C-17.63 68.2 -18.06 69.02 -18.51 69.87 C-27.46 86.43 -37.3 102.24 -49 117 C-49.73 117.94 -50.46 118.88 -51.21 119.85 C-55.22 124.97 -59.47 129.83 -63.85 134.63 C-65.75 136.73 -67.6 138.85 -69.44 141 C-76.06 148.56 -83.19 155.34 -91.04 161.6 C-93.13 163.29 -95.16 165 -97.18 166.77 C-122.17 188.79 -151.25 205.29 -180.04 221.76 C-192.95 229.14 -205.58 236.83 -218 245 C-218.85 245.56 -219.7 246.12 -220.58 246.7 C-229.87 252.82 -238.77 259.13 -247.12 266.49 C-249.7 268.74 -252.35 270.84 -255.06 272.94 C-267.05 282.7 -278.61 294.17 -288.03 306.45 C-289.89 308.86 -291.81 311.22 -293.74 313.57 C-298.14 319.07 -302.07 324.81 -305.94 330.69 C-306.64 331.75 -307.34 332.82 -308.07 333.91 C-310.06 336.94 -312.03 339.97 -314 343 C-314.45 343.69 -314.9 344.38 -315.36 345.1 C-333.78 373.72 -347.37 405.97 -360.01 437.47 C-367.19 455.23 -367.19 455.23 -373 459 C-381.02 461.67 -388.52 459.36 -396 456 C-400.94 452.9 -406.06 449.11 -409 444 C-409.81 440.26 -409.56 438.01 -407.71 434.64 C-404.3 429.62 -400.39 425.15 -396.3 420.68 C-391.69 415.32 -387.56 409.58 -383.38 403.88 C-382.15 402.21 -380.9 400.55 -379.64 398.89 C-379 398.02 -378.35 397.15 -377.69 396.25 C-377.13 395.51 -376.58 394.78 -376.01 394.02 C-375 392 -375 392 -375.3 390.07 C-376.44 386.69 -378.78 384.1 -380.94 381.31 C-403.08 351.79 -416.04 315.59 -420 279 C-420.11 278.07 -420.22 277.14 -420.34 276.18 C-425.19 227.03 -413.92 174.12 -382.44 135.12 C-380.97 133.41 -379.49 131.7 -378 130 C-377.28 129.17 -376.56 128.34 -375.82 127.49 C-358.11 107.42 -337.64 91.46 -314 79 C-313.38 78.67 -312.76 78.33 -312.12 77.99 C-300.18 71.58 -287.7 66.68 -275 62 C-274.14 61.68 -273.29 61.36 -272.4 61.03 C-234.24 47.03 -193.39 42.56 -153.28 37.74 C-131.4 35.11 -109.62 32.33 -88 28 C-87.42 27.89 -87.42 27.89 -84.51 27.32 C-61.65 22.81 -40.27 14.77 -19.21 4.91 C-6.48 -0.98 -6.48 -0.98 0 0 Z M-36.19 37.49 C-71.76 55.45 -113.52 58.93 -152.55 63.46 C-196.61 68.6 -196.61 68.6 -216 73 C-217 73.22 -218 73.43 -219.03 73.65 C-264.38 83.45 -306.87 101.06 -341 133 C-341.95 133.88 -342.9 134.77 -343.88 135.68 C-373.91 164.27 -390.12 205.53 -391.38 246.65 C-392.35 288.29 -383.46 327.6 -361 363 C-358.84 360.25 -357.1 357.49 -355.47 354.39 C-354.99 353.5 -354.52 352.61 -354.03 351.69 C-353.78 351.21 -353.78 351.21 -352.5 348.81 C-342.16 329.63 -330.05 311.66 -316 295 C-315.08 293.89 -314.16 292.78 -313.24 291.68 C-308.88 286.45 -304.51 281.32 -299.6 276.6 C-297.85 274.85 -296.28 273.01 -294.69 271.12 C-278.78 252.73 -256.54 237.48 -235.78 225.07 C-233.06 223.44 -230.38 221.74 -227.69 220.06 C-219.23 214.87 -210.61 209.95 -202 205 C-193.33 200.01 -184.66 195.01 -176 190 C-174.99 189.42 -173.99 188.84 -172.95 188.24 C-161.6 181.67 -150.51 174.92 -139.83 167.3 C-137.99 165.99 -136.14 164.7 -134.29 163.41 C-123.48 155.83 -113.46 147.55 -103.79 138.57 C-101.47 136.44 -99.13 134.36 -96.75 132.31 C-89.94 126.39 -83.79 119.91 -78 113 C-77.55 112.46 -77.1 111.93 -76.64 111.38 C-57.15 88.05 -39.86 63.1 -28 35 C-31.34 35 -33.25 36 -36.19 37.49 Z " fill="#5FB88A" transform="translate(501,80)"/>
|
||||||
|
|
||||||
|
<g stroke="#5FB88A" stroke-width="12" stroke-linecap="round" fill="none">
|
||||||
|
<path d="M277 312 Q255 263 221 247"/>
|
||||||
|
<path d="M338 276 Q382 305 393 340"/>
|
||||||
|
<path d="M366 258 Q348 214 317 200"/>
|
||||||
|
<path d="M443 186 Q469 204 475 224"/>
|
||||||
|
</g>
|
||||||
|
<g fill="#5FB88A">
|
||||||
|
<circle cx="221" cy="247" r="13"/>
|
||||||
|
<circle cx="393" cy="340" r="13"/>
|
||||||
|
<circle cx="475" cy="224" r="11"/>
|
||||||
|
</g>
|
||||||
|
<circle cx="317" cy="200" r="18" fill="#7C6CF0"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 4.6 KiB |
@@ -0,0 +1,16 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 611 620" fill="none">
|
||||||
|
<path d="M0 0 C6.4 4.22 7.06 11.7 8.6 18.74 C9.17 21.55 9.71 24.37 10.23 27.2 C10.43 28.25 10.63 29.3 10.84 30.39 C11.48 33.82 12.12 37.25 12.75 40.69 C12.86 41.28 12.86 41.28 13.41 44.27 C19.74 78.61 25.24 113.17 28 148 C28.1 149.25 28.2 150.5 28.31 151.78 C33.71 219.69 29.07 297.74 -17 352 C-37.58 376.04 -63.34 393.66 -92.79 405.14 C-94.83 405.93 -96.85 406.75 -98.87 407.58 C-119.07 415.67 -140.54 420.66 -162 424 C-163.26 424.2 -164.52 424.4 -165.82 424.6 C-213.88 431.88 -265.63 431.11 -313 420 C-313.8 419.81 -314.6 419.63 -315.42 419.43 C-321.96 417.87 -328.02 416.17 -334 413 C-333.4 408.16 -331.32 404.45 -329 400.25 C-328.63 399.57 -328.26 398.88 -327.88 398.18 C-325.16 393.16 -325.16 393.16 -324 392 C-316.45 391.5 -309.28 393.04 -301.88 394.38 C-266.77 400.41 -230.41 401.2 -195 397 C-193.89 396.88 -192.78 396.75 -191.63 396.63 C-143.03 391.12 -90.07 376.55 -53 343 C-52.13 342.26 -51.26 341.53 -50.37 340.77 C-13.69 309.26 -0.6 260.49 3 214 C6.89 162.68 1.22 110.21 -9.66 60.01 C-10 58 -10 58 -10 54 C-10.66 54 -11.32 54 -12 54 C-12.08 54.65 -12.16 55.3 -12.24 55.98 C-13.28 60.13 -15.18 63.61 -17.19 67.38 C-17.63 68.2 -18.06 69.02 -18.51 69.87 C-27.46 86.43 -37.3 102.24 -49 117 C-49.73 117.94 -50.46 118.88 -51.21 119.85 C-55.22 124.97 -59.47 129.83 -63.85 134.63 C-65.75 136.73 -67.6 138.85 -69.44 141 C-76.06 148.56 -83.19 155.34 -91.04 161.6 C-93.13 163.29 -95.16 165 -97.18 166.77 C-122.17 188.79 -151.25 205.29 -180.04 221.76 C-192.95 229.14 -205.58 236.83 -218 245 C-218.85 245.56 -219.7 246.12 -220.58 246.7 C-229.87 252.82 -238.77 259.13 -247.12 266.49 C-249.7 268.74 -252.35 270.84 -255.06 272.94 C-267.05 282.7 -278.61 294.17 -288.03 306.45 C-289.89 308.86 -291.81 311.22 -293.74 313.57 C-298.14 319.07 -302.07 324.81 -305.94 330.69 C-306.64 331.75 -307.34 332.82 -308.07 333.91 C-310.06 336.94 -312.03 339.97 -314 343 C-314.45 343.69 -314.9 344.38 -315.36 345.1 C-333.78 373.72 -347.37 405.97 -360.01 437.47 C-367.19 455.23 -367.19 455.23 -373 459 C-381.02 461.67 -388.52 459.36 -396 456 C-400.94 452.9 -406.06 449.11 -409 444 C-409.81 440.26 -409.56 438.01 -407.71 434.64 C-404.3 429.62 -400.39 425.15 -396.3 420.68 C-391.69 415.32 -387.56 409.58 -383.38 403.88 C-382.15 402.21 -380.9 400.55 -379.64 398.89 C-379 398.02 -378.35 397.15 -377.69 396.25 C-377.13 395.51 -376.58 394.78 -376.01 394.02 C-375 392 -375 392 -375.3 390.07 C-376.44 386.69 -378.78 384.1 -380.94 381.31 C-403.08 351.79 -416.04 315.59 -420 279 C-420.11 278.07 -420.22 277.14 -420.34 276.18 C-425.19 227.03 -413.92 174.12 -382.44 135.12 C-380.97 133.41 -379.49 131.7 -378 130 C-377.28 129.17 -376.56 128.34 -375.82 127.49 C-358.11 107.42 -337.64 91.46 -314 79 C-313.38 78.67 -312.76 78.33 -312.12 77.99 C-300.18 71.58 -287.7 66.68 -275 62 C-274.14 61.68 -273.29 61.36 -272.4 61.03 C-234.24 47.03 -193.39 42.56 -153.28 37.74 C-131.4 35.11 -109.62 32.33 -88 28 C-87.42 27.89 -87.42 27.89 -84.51 27.32 C-61.65 22.81 -40.27 14.77 -19.21 4.91 C-6.48 -0.98 -6.48 -0.98 0 0 Z M-36.19 37.49 C-71.76 55.45 -113.52 58.93 -152.55 63.46 C-196.61 68.6 -196.61 68.6 -216 73 C-217 73.22 -218 73.43 -219.03 73.65 C-264.38 83.45 -306.87 101.06 -341 133 C-341.95 133.88 -342.9 134.77 -343.88 135.68 C-373.91 164.27 -390.12 205.53 -391.38 246.65 C-392.35 288.29 -383.46 327.6 -361 363 C-358.84 360.25 -357.1 357.49 -355.47 354.39 C-354.99 353.5 -354.52 352.61 -354.03 351.69 C-353.78 351.21 -353.78 351.21 -352.5 348.81 C-342.16 329.63 -330.05 311.66 -316 295 C-315.08 293.89 -314.16 292.78 -313.24 291.68 C-308.88 286.45 -304.51 281.32 -299.6 276.6 C-297.85 274.85 -296.28 273.01 -294.69 271.12 C-278.78 252.73 -256.54 237.48 -235.78 225.07 C-233.06 223.44 -230.38 221.74 -227.69 220.06 C-219.23 214.87 -210.61 209.95 -202 205 C-193.33 200.01 -184.66 195.01 -176 190 C-174.99 189.42 -173.99 188.84 -172.95 188.24 C-161.6 181.67 -150.51 174.92 -139.83 167.3 C-137.99 165.99 -136.14 164.7 -134.29 163.41 C-123.48 155.83 -113.46 147.55 -103.79 138.57 C-101.47 136.44 -99.13 134.36 -96.75 132.31 C-89.94 126.39 -83.79 119.91 -78 113 C-77.55 112.46 -77.1 111.93 -76.64 111.38 C-57.15 88.05 -39.86 63.1 -28 35 C-31.34 35 -33.25 36 -36.19 37.49 Z " fill="#5FB88A" transform="translate(501,80)"/>
|
||||||
|
|
||||||
|
<g stroke="#5FB88A" stroke-width="12" stroke-linecap="round" fill="none">
|
||||||
|
<path d="M277 312 Q255 263 221 247"/>
|
||||||
|
<path d="M338 276 Q382 305 393 340"/>
|
||||||
|
<path d="M366 258 Q348 214 317 200"/>
|
||||||
|
<path d="M443 186 Q469 204 475 224"/>
|
||||||
|
</g>
|
||||||
|
<g fill="#5FB88A">
|
||||||
|
<circle cx="221" cy="247" r="13"/>
|
||||||
|
<circle cx="393" cy="340" r="13"/>
|
||||||
|
<circle cx="475" cy="224" r="11"/>
|
||||||
|
</g>
|
||||||
|
<circle cx="317" cy="200" r="18" fill="#7C6CF0"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 4.6 KiB |
@@ -0,0 +1,182 @@
|
|||||||
|
---
|
||||||
|
import Icon from './Icon.astro';
|
||||||
|
|
||||||
|
// A footer of its own, not a breadcrumb back to a parent site. This listing is a separate process
|
||||||
|
// with its own review loop and its own deploy day, so it closes itself rather than handing the
|
||||||
|
// reader off mid-sentence.
|
||||||
|
const linkColumns = [
|
||||||
|
{
|
||||||
|
heading: 'This listing',
|
||||||
|
links: [
|
||||||
|
{ label: 'Add your plugin', href: '#contribute', external: false },
|
||||||
|
{
|
||||||
|
label: 'Source',
|
||||||
|
href: 'https://github.com/Expressive-Tea/green-tea-marketplace',
|
||||||
|
external: true,
|
||||||
|
icon: 'github' as const,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
heading: 'Green Tea',
|
||||||
|
links: [
|
||||||
|
{ label: 'Site', href: 'https://green-tea.expressive-tea.io', external: true },
|
||||||
|
{ label: 'Docs', href: 'https://green-tea.expressive-tea.io/docs', external: true },
|
||||||
|
{ 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 },
|
||||||
|
],
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
const year = new Date().getFullYear();
|
||||||
|
---
|
||||||
|
|
||||||
|
<footer class="site-footer">
|
||||||
|
<div class="wrap site-footer__inner">
|
||||||
|
<div class="site-footer__brand">
|
||||||
|
<span class="site-footer__wordmark">
|
||||||
|
Green Tea<span class="site-footer__dot">.</span>
|
||||||
|
<span class="site-footer__section">plugins</span>
|
||||||
|
</span>
|
||||||
|
<p class="site-footer__tagline">
|
||||||
|
Every version and runtime here is read from npm and JSR, never typed in.
|
||||||
|
</p>
|
||||||
|
<p class="site-footer__byline">by the Expressive Tea Team</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<nav class="site-footer__columns" aria-label="Footer">
|
||||||
|
{
|
||||||
|
linkColumns.map((column) => (
|
||||||
|
<div class="site-footer__column">
|
||||||
|
<p class="site-footer__heading">{column.heading}</p>
|
||||||
|
<ul>
|
||||||
|
{column.links.map((link) => (
|
||||||
|
<li>
|
||||||
|
<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>
|
||||||
|
))}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
))
|
||||||
|
}
|
||||||
|
</nav>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="wrap site-footer__bottom">
|
||||||
|
<p>© {year} Expressive Tea Team · MIT · That's the tea. 🍵</p>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.site-footer {
|
||||||
|
border-top: 1px solid color-mix(in srgb, var(--panel) 80%, var(--base));
|
||||||
|
background: var(--panel);
|
||||||
|
padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem;
|
||||||
|
margin-top: clamp(3rem, 8vw, 6rem);
|
||||||
|
}
|
||||||
|
|
||||||
|
.site-footer__inner {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: 2.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.site-footer__wordmark {
|
||||||
|
font-family: var(--font-heading);
|
||||||
|
font-weight: 700;
|
||||||
|
font-size: 1.15rem;
|
||||||
|
color: var(--matcha);
|
||||||
|
}
|
||||||
|
|
||||||
|
.site-footer__dot {
|
||||||
|
color: var(--violet);
|
||||||
|
}
|
||||||
|
|
||||||
|
.site-footer__section {
|
||||||
|
font-weight: 500;
|
||||||
|
color: var(--ink);
|
||||||
|
}
|
||||||
|
|
||||||
|
.site-footer__tagline {
|
||||||
|
color: var(--dim);
|
||||||
|
margin: 0.6em 0 0;
|
||||||
|
max-width: 30ch;
|
||||||
|
}
|
||||||
|
|
||||||
|
.site-footer__byline {
|
||||||
|
color: var(--matcha);
|
||||||
|
margin: 0.35em 0 0;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
.site-footer__columns {
|
||||||
|
display: flex;
|
||||||
|
gap: 3.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.site-footer__heading {
|
||||||
|
color: var(--ink);
|
||||||
|
font-weight: 600;
|
||||||
|
margin: 0 0 0.75em;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
letter-spacing: 0.02em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
opacity: 0.75;
|
||||||
|
}
|
||||||
|
|
||||||
|
.site-footer__column ul {
|
||||||
|
list-style: none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 0.6em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.site-footer__column a {
|
||||||
|
color: var(--dim);
|
||||||
|
font-size: 0.95rem;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.site-footer__column a:hover,
|
||||||
|
.site-footer__column a:focus-visible {
|
||||||
|
color: var(--matcha);
|
||||||
|
}
|
||||||
|
|
||||||
|
.site-footer__bottom {
|
||||||
|
margin-top: 2.5rem;
|
||||||
|
padding-top: 1.5rem;
|
||||||
|
border-top: 1px solid color-mix(in srgb, var(--base) 60%, var(--panel));
|
||||||
|
}
|
||||||
|
|
||||||
|
.site-footer__bottom p {
|
||||||
|
margin: 0;
|
||||||
|
color: var(--dim);
|
||||||
|
font-size: 0.875rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 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;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 560px) {
|
||||||
|
.site-footer__columns {
|
||||||
|
gap: 2rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,206 @@
|
|||||||
|
---
|
||||||
|
import logoUrl from '../assets/logo.svg?url';
|
||||||
|
import Icon from './Icon.astro';
|
||||||
|
|
||||||
|
// This is its own site, not a page of green-tea's. The wordmark says so: the family name, then
|
||||||
|
// what this one is. The logo links out to green-tea rather than to `/`, because a reader who
|
||||||
|
// clicks a brand mark is asking for the project, and the project lives elsewhere.
|
||||||
|
const navLinks = [
|
||||||
|
{ label: 'Add your plugin', href: '#contribute', external: false },
|
||||||
|
{ label: 'Docs', href: 'https://green-tea.expressive-tea.io/docs', external: true },
|
||||||
|
{ label: 'green-tea', href: 'https://green-tea.expressive-tea.io', external: true },
|
||||||
|
{
|
||||||
|
label: 'GitHub',
|
||||||
|
href: 'https://github.com/Expressive-Tea/green-tea-marketplace',
|
||||||
|
external: true,
|
||||||
|
icon: 'github' as const,
|
||||||
|
},
|
||||||
|
];
|
||||||
|
---
|
||||||
|
|
||||||
|
<header class="site-header">
|
||||||
|
<div class="wrap site-header__inner">
|
||||||
|
<a class="wordmark" href="/plugins" aria-label="Green Tea. plugins — home">
|
||||||
|
<img class="wordmark__logo" src={logoUrl} alt="" width="24" height="24" />
|
||||||
|
<span class="wordmark__text">Green Tea<span class="wordmark__dot">.</span></span>
|
||||||
|
<span class="wordmark__sep" aria-hidden="true">/</span>
|
||||||
|
<span class="wordmark__section">plugins</span>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<input type="checkbox" id="nav-toggle" class="nav-toggle" aria-hidden="true" />
|
||||||
|
<label for="nav-toggle" class="nav-toggle__label" aria-label="Toggle navigation menu">
|
||||||
|
<span></span>
|
||||||
|
<span></span>
|
||||||
|
<span></span>
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<nav class="site-nav" aria-label="Primary">
|
||||||
|
<ul>
|
||||||
|
{
|
||||||
|
navLinks.map((link) => (
|
||||||
|
<li>
|
||||||
|
<a
|
||||||
|
href={link.href}
|
||||||
|
target={link.external ? '_blank' : undefined}
|
||||||
|
rel={link.external ? 'noopener noreferrer' : undefined}
|
||||||
|
aria-label={link.icon ? link.label : undefined}
|
||||||
|
class={link.icon ? 'site-nav__mark' : undefined}
|
||||||
|
>
|
||||||
|
{link.icon && <Icon name={link.icon} />}
|
||||||
|
<span class={link.icon ? 'site-nav__mark-text' : undefined}>{link.label}</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
))
|
||||||
|
}
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.site-header {
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
z-index: 40;
|
||||||
|
background: color-mix(in srgb, var(--base) 88%, transparent);
|
||||||
|
backdrop-filter: blur(8px);
|
||||||
|
border-bottom: 1px solid color-mix(in srgb, var(--panel) 80%, var(--base));
|
||||||
|
}
|
||||||
|
|
||||||
|
.site-header__inner {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: 1.5rem;
|
||||||
|
padding-block: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wordmark {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: baseline;
|
||||||
|
gap: 0.5rem;
|
||||||
|
color: var(--ink);
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wordmark__logo {
|
||||||
|
width: 1.6rem;
|
||||||
|
height: 1.6rem;
|
||||||
|
flex-shrink: 0;
|
||||||
|
align-self: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wordmark__text {
|
||||||
|
font-family: var(--font-heading);
|
||||||
|
font-weight: 700;
|
||||||
|
font-size: 1.15rem;
|
||||||
|
color: var(--matcha);
|
||||||
|
letter-spacing: 0.01em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wordmark__dot {
|
||||||
|
color: var(--violet);
|
||||||
|
}
|
||||||
|
|
||||||
|
.wordmark__sep {
|
||||||
|
color: var(--dim);
|
||||||
|
font-weight: 300;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wordmark__section {
|
||||||
|
font-family: var(--font-heading);
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 1.05rem;
|
||||||
|
color: var(--ink);
|
||||||
|
}
|
||||||
|
|
||||||
|
.site-nav ul {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 1.75rem;
|
||||||
|
list-style: none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.site-nav a {
|
||||||
|
color: var(--dim);
|
||||||
|
font-size: 0.95rem;
|
||||||
|
font-weight: 500;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.site-nav a:hover,
|
||||||
|
.site-nav a:focus-visible {
|
||||||
|
color: var(--matcha);
|
||||||
|
}
|
||||||
|
|
||||||
|
.site-nav__mark {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* The mark carries the meaning on desktop, where the row is short. The label stays in the DOM:
|
||||||
|
it is the accessible name, and the collapsed menu shows it back. */
|
||||||
|
.site-nav__mark-text {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-toggle {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-toggle__label {
|
||||||
|
display: none;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 5px;
|
||||||
|
width: 2rem;
|
||||||
|
height: 2rem;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-toggle__label span {
|
||||||
|
display: block;
|
||||||
|
height: 2px;
|
||||||
|
background: var(--ink);
|
||||||
|
border-radius: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 720px) {
|
||||||
|
.nav-toggle__label {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.site-nav {
|
||||||
|
display: none;
|
||||||
|
width: 100%;
|
||||||
|
order: 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
.site-nav ul {
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-start;
|
||||||
|
gap: 1rem;
|
||||||
|
padding-block: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.site-nav__mark-text {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-toggle:checked ~ .site-nav {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.site-header__inner {
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wordmark__sep,
|
||||||
|
.wordmark__section {
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,49 @@
|
|||||||
|
---
|
||||||
|
// Inline marks for the three places a package of ours can be reached. Three icons did not
|
||||||
|
// justify an icon library: `astro-icon` and friends pull a resolver and a set to ship what
|
||||||
|
// fits in this file, and every one of them ends up inlining the same paths anyway.
|
||||||
|
//
|
||||||
|
// `currentColor` rather than a fixed fill, so a mark takes the colour of the link it sits in
|
||||||
|
// and needs no separate rule per surface — the header, the hero's ghost buttons and the
|
||||||
|
// footer all tint it differently today.
|
||||||
|
//
|
||||||
|
// The SVG is `aria-hidden`: the accessible name belongs to the anchor, which knows where it
|
||||||
|
// goes. A `<title>` here would announce "GitHub" twice on a link already labelled GitHub.
|
||||||
|
interface Props {
|
||||||
|
name: 'github' | 'npm' | 'jsr';
|
||||||
|
size?: number;
|
||||||
|
class?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
const { name, size = 18, class: className } = Astro.props;
|
||||||
|
|
||||||
|
// Optical sizing, not geometric. GitHub and npm fill their 24×24 box; JSR's wordmark is wide
|
||||||
|
// and short and covers about half its height, so at an equal `size` it reads as the small one
|
||||||
|
// of the three. The multiplier matches apparent weight, which is what a row of marks is judged
|
||||||
|
// on — nobody measures them, they just notice one looks wrong.
|
||||||
|
const scale: Record<Props['name'], number> = { github: 1, npm: 1, jsr: 1.4 };
|
||||||
|
const box = Math.round(size * scale[name]);
|
||||||
|
|
||||||
|
// The marks are the official ones, taken from simple-icons rather than redrawn. Hand-drawn
|
||||||
|
// approximations of npm and JSR were tried first and rendered as illegible shapes: a
|
||||||
|
// third-party mark is either theirs or it is noise.
|
||||||
|
const paths: Record<Props['name'], string> = {
|
||||||
|
github:
|
||||||
|
'M12 .5C5.37.5 0 5.87 0 12.5c0 5.3 3.44 9.8 8.21 11.39.6.11.82-.26.82-.58 0-.29-.01-1.24-.02-2.25-3.34.73-4.04-1.42-4.04-1.42-.55-1.39-1.34-1.76-1.34-1.76-1.09-.75.08-.73.08-.73 1.2.08 1.84 1.24 1.84 1.24 1.07 1.83 2.81 1.3 3.5.99.11-.78.42-1.3.76-1.6-2.67-.3-5.47-1.33-5.47-5.93 0-1.31.47-2.38 1.24-3.22-.13-.3-.54-1.52.11-3.18 0 0 1.01-.32 3.3 1.23a11.5 11.5 0 0 1 6.01 0c2.29-1.55 3.3-1.23 3.3-1.23.65 1.66.24 2.88.12 3.18.77.84 1.23 1.91 1.23 3.22 0 4.61-2.8 5.62-5.48 5.92.43.37.81 1.1.81 2.22 0 1.6-.01 2.9-.01 3.29 0 .32.21.7.82.58A12 12 0 0 0 24 12.5C24 5.87 18.63.5 12 .5Z',
|
||||||
|
npm: 'M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z',
|
||||||
|
// the others rather than carrying its own viewBox.
|
||||||
|
jsr: 'M3.692 5.538v3.693H0v7.384h7.385v1.847h12.923v-3.693H24V7.385h-7.385V5.538Zm1.846 1.847h1.847v7.384H1.846v-3.692h1.846v1.846h1.846zm3.693 0h5.538V9.23h-3.692v1.846h3.692v5.538H9.231V14.77h3.692v-1.846H9.231Zm7.384 1.846h5.539v3.692h-1.846v-1.846h-1.846v5.538h-1.847z',
|
||||||
|
};
|
||||||
|
---
|
||||||
|
|
||||||
|
<svg
|
||||||
|
class={className}
|
||||||
|
width={box}
|
||||||
|
height={box}
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
fill="currentColor"
|
||||||
|
aria-hidden="true"
|
||||||
|
focusable="false"
|
||||||
|
>
|
||||||
|
<path d={paths[name]} />
|
||||||
|
</svg>
|
||||||
+46
-21
@@ -3,6 +3,8 @@ import { getCollection } from 'astro:content';
|
|||||||
import { readEntry } from '../../scripts/registry.mjs';
|
import { readEntry } from '../../scripts/registry.mjs';
|
||||||
// Remove this import together with scripts/preview.mjs once the seed plugins are published.
|
// Remove this import together with scripts/preview.mjs once the seed plugins are published.
|
||||||
import { PREVIEW } from '../../scripts/preview.mjs';
|
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 PluginCard from '../components/PluginCard.astro';
|
||||||
import '../styles/global.css';
|
import '../styles/global.css';
|
||||||
|
|
||||||
@@ -35,41 +37,64 @@ plugins.sort((a, b) => a.name.localeCompare(b.name));
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width" />
|
<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." />
|
<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" />
|
<link rel="canonical" href="https://green-tea.expressive-tea.io/plugins" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="wrap">
|
<Header />
|
||||||
<header>
|
|
||||||
<h1>green-tea <em>plugins</em></h1>
|
<main>
|
||||||
<p>
|
<section class="hero wrap">
|
||||||
A plugin is a named object that adds steps and providers to your graph. It imports green-tea
|
<h1>Plugins</h1>
|
||||||
as types only, so installing one never pulls a second copy of core.
|
<p class="hero__lead">
|
||||||
</p>
|
A plugin is a named object that adds steps and providers to your graph. It imports
|
||||||
<p>
|
green-tea as types only, so installing one never pulls a second copy of core.
|
||||||
<a href="https://github.com/Expressive-Tea/green-tea-marketplace/blob/main/CONTRIBUTING.md">
|
|
||||||
Add your plugin →
|
|
||||||
</a>
|
|
||||||
</p>
|
</p>
|
||||||
<p class="requires">
|
<p class="requires">
|
||||||
Everything here needs <code>@green-tea/core@26.9.0-beta.2</code> or newer. That is the
|
Everything here needs <code>@green-tea/core@26.9.0-beta.2</code> or newer. That is the
|
||||||
release where a plugin became <code>{ name, mount }</code> and <code>app.boot()</code>
|
release where a plugin became <code>{ name, mount }</code> and
|
||||||
went public; on anything older these will not mount.
|
<code>app.boot()</code> went public; on anything older these will not mount.
|
||||||
</p>
|
</p>
|
||||||
</header>
|
</section>
|
||||||
|
|
||||||
|
<section class="wrap">
|
||||||
<div class="grid">
|
<div class="grid">
|
||||||
{plugins.map((plugin) => <PluginCard {...plugin} />)}
|
{plugins.map((plugin) => <PluginCard {...plugin} />)}
|
||||||
</div>
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
<footer>
|
<section class="contribute wrap" id="contribute">
|
||||||
|
<h2>Add your plugin</h2>
|
||||||
<p>
|
<p>
|
||||||
Part of <a href="https://expressive-tea.io">Expressive Tea</a> ·
|
Fork the listing, add one file under <code>src/content/plugins/</code>, open a pull
|
||||||
<a href="https://green-tea.expressive-tea.io">green-tea</a> ·
|
request. There is no version and no runtimes field — both are read from the registry, so
|
||||||
<a href="https://github.com/Expressive-Tea/green-tea-marketplace">this listing on GitHub</a>
|
your entry cannot go stale.
|
||||||
</p>
|
</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>{ name, mount }</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 →
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<Footer />
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
+75
-23
@@ -60,33 +60,96 @@ h3 {
|
|||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Horizontal only. The header and footer use `.wrap` too, so vertical rhythm belongs to each
|
||||||
|
section rather than to the container they share. */
|
||||||
.wrap {
|
.wrap {
|
||||||
max-width: var(--max-width);
|
max-width: var(--max-width);
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: 64px var(--gutter) 96px;
|
padding-inline: var(--gutter);
|
||||||
}
|
}
|
||||||
|
|
||||||
header h1 {
|
main {
|
||||||
font-size: clamp(2rem, 5vw, 3rem);
|
display: block;
|
||||||
margin: 0 0 12px;
|
}
|
||||||
|
|
||||||
|
.hero {
|
||||||
|
padding-top: clamp(3rem, 7vw, 5rem);
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero h1 {
|
||||||
|
font-size: clamp(2.2rem, 6vw, 3.4rem);
|
||||||
|
margin: 0 0 16px;
|
||||||
letter-spacing: -0.01em;
|
letter-spacing: -0.01em;
|
||||||
}
|
}
|
||||||
|
|
||||||
header h1 em {
|
.hero__lead {
|
||||||
color: var(--matcha);
|
|
||||||
font-style: normal;
|
|
||||||
}
|
|
||||||
|
|
||||||
header p {
|
|
||||||
color: var(--dim);
|
color: var(--dim);
|
||||||
max-width: 62ch;
|
max-width: 62ch;
|
||||||
|
margin: 0;
|
||||||
|
font-size: 1.05rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contribute {
|
||||||
|
padding-top: clamp(3rem, 7vw, 4.5rem);
|
||||||
|
max-width: min(var(--max-width), 760px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.contribute h2 {
|
||||||
|
font-size: clamp(1.5rem, 4vw, 2rem);
|
||||||
margin: 0 0 16px;
|
margin: 0 0 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
header a {
|
.contribute p {
|
||||||
|
color: var(--dim);
|
||||||
|
margin: 0 0 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contribute code {
|
||||||
|
font-family: var(--font-mono);
|
||||||
|
font-size: 0.9em;
|
||||||
|
color: var(--ink);
|
||||||
|
}
|
||||||
|
|
||||||
|
.contribute pre {
|
||||||
|
background: var(--panel);
|
||||||
|
border: 1px solid var(--line);
|
||||||
|
border-radius: 10px;
|
||||||
|
padding: 16px 18px;
|
||||||
|
overflow-x: auto;
|
||||||
|
margin: 0 0 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contribute pre code {
|
||||||
|
font-size: 0.82rem;
|
||||||
|
line-height: 1.7;
|
||||||
|
color: var(--ink);
|
||||||
|
}
|
||||||
|
|
||||||
|
.contribute__cadence {
|
||||||
|
border-left: 3px solid var(--matcha);
|
||||||
|
padding-left: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contribute__cadence strong {
|
||||||
color: var(--matcha);
|
color: var(--matcha);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.button {
|
||||||
|
display: inline-block;
|
||||||
|
padding: 10px 18px;
|
||||||
|
border-radius: 8px;
|
||||||
|
border: 1px solid rgba(95, 184, 138, 0.4);
|
||||||
|
background: rgba(95, 184, 138, 0.1);
|
||||||
|
color: var(--matcha);
|
||||||
|
text-decoration: none;
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 0.95rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button:hover {
|
||||||
|
border-color: var(--matcha);
|
||||||
|
}
|
||||||
|
|
||||||
/* The one thing a reader has to know before installing anything here. */
|
/* The one thing a reader has to know before installing anything here. */
|
||||||
.requires {
|
.requires {
|
||||||
margin: 24px 0 0;
|
margin: 24px 0 0;
|
||||||
@@ -106,7 +169,7 @@ header a {
|
|||||||
display: grid;
|
display: grid;
|
||||||
gap: 20px;
|
gap: 20px;
|
||||||
grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
|
grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
|
||||||
margin-top: 40px;
|
margin-top: clamp(2rem, 5vw, 3rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
.card {
|
.card {
|
||||||
@@ -314,14 +377,3 @@ header a {
|
|||||||
color: var(--matcha);
|
color: var(--matcha);
|
||||||
}
|
}
|
||||||
|
|
||||||
footer {
|
|
||||||
margin-top: 64px;
|
|
||||||
padding-top: 24px;
|
|
||||||
border-top: 1px solid var(--line);
|
|
||||||
color: var(--dim);
|
|
||||||
font-size: 0.85rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
footer a {
|
|
||||||
color: var(--matcha);
|
|
||||||
}
|
|
||||||
Reference in new issue
Block a user