Files
website/src/components/Footer.astro
T
chrnx 739f0bf2a5
CI / build (pull_request) Successful in 14s
feat: point the site at the plugin listing
The listing went live at /plugins with nothing linking to it. The site
now carries it in the nav and the footer, and a Plugins section after
the foundation cards samples the three official plugins, each linked to
its page, with a way in for authors to list their own.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-24 11:25:53 -05:00

163 lines
3.9 KiB
Plaintext

---
import Icon from './Icon.astro';
const linkColumns = [
{
heading: 'Learn',
links: [
{ label: 'Docs', href: 'https://green-tea.expressive-tea.io/docs', external: true },
{ label: 'Plugins', href: '/plugins/', external: false },
{ label: 'Blog', href: '/blog', external: false },
],
},
{
heading: 'Code',
links: [
{ 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 },
],
},
];
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>
<p class="site-footer__tagline">A zen, opinionated, type-safe framework.</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;
}
.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__tagline {
color: var(--dim);
margin: 0.6em 0 0;
max-width: 26ch;
}
.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;
}
.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;
}
@media (max-width: 560px) {
.site-footer__columns {
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>