chore: scaffold Astro site + brand shell (header, footer, layout, motif)

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
chrnx committed 2026-07-10 18:52:47 -05:00
1 parent c064791675
commit 0969882f97
14 files changed
+7000

No files matched your search

+16
View File
@@ -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

+136
View File
@@ -0,0 +1,136 @@
---
const linkColumns = [
{
heading: 'Learn',
links: [
{ label: 'Docs', href: 'https://docs.green-tea.dev', external: true },
{ label: 'Blog', href: '/blog', external: false },
],
},
{
heading: 'Code',
links: [
{ label: 'GitHub', href: 'https://github.com/expressive-tea/green-tea', external: true },
{ label: 'npm', href: 'https://www.npmjs.com/package/@expressive-tea/core', external: true },
],
},
];
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>
</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 href={link.href} target={link.external ? '_blank' : undefined} rel={link.external ? 'noopener noreferrer' : undefined}>
{link.label}
</a>
</li>
))}
</ul>
</div>
))
}
</nav>
</div>
<div class="wrap site-footer__bottom">
<p>© {year} · 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__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;
}
}
</style>
+64
View File
@@ -0,0 +1,64 @@
---
/**
* GraphMotif — ambient section decoration.
*
* A subtle venation-graph: matcha lines fan out from a midrib to small
* matcha nodes, with a single violet node standing in for the "one
* dependency that matters" accent used across the brand's video assets.
*
* Purely decorative — hidden from assistive tech.
*/
interface Props {
class?: string;
width?: number;
height?: number;
opacity?: number;
}
const { class: className = '', width = 420, height = 360, opacity = 0.35 } = Astro.props;
---
<svg
class:list={['graph-motif', className]}
viewBox="0 0 420 360"
width={width}
height={height}
fill="none"
style={`opacity: ${opacity}`}
aria-hidden="true"
focusable="false"
>
<!-- midrib -->
<path d="M40 320 C 120 260 160 220 210 180 C 260 140 300 90 360 40" stroke="#5FB88A" stroke-width="2" stroke-linecap="round" opacity="0.7"></path>
<!-- branch veins -->
<g stroke="#5FB88A" stroke-width="1.5" stroke-linecap="round" opacity="0.55">
<path d="M90 288 Q 60 268 30 264"></path>
<path d="M130 254 Q 150 220 140 190"></path>
<path d="M180 210 Q 210 200 232 176"></path>
<path d="M235 165 Q 250 130 240 100"></path>
<path d="M285 118 Q 320 112 340 90"></path>
<path d="M310 95 Q 300 65 312 40"></path>
</g>
<!-- matcha nodes -->
<g fill="#5FB88A">
<circle cx="40" cy="320" r="5"></circle>
<circle cx="30" cy="264" r="4"></circle>
<circle cx="140" cy="190" r="4"></circle>
<circle cx="232" cy="176" r="4"></circle>
<circle cx="240" cy="100" r="4"></circle>
<circle cx="340" cy="90" r="4"></circle>
<circle cx="360" cy="40" r="5"></circle>
</g>
<!-- the one violet node -->
<circle cx="312" cy="40" r="6" fill="#7C6CF0"></circle>
</svg>
<style>
.graph-motif {
display: block;
pointer-events: none;
}
</style>
+159
View File
@@ -0,0 +1,159 @@
---
import logoUrl from '../assets/logo.svg?url';
const navLinks = [
{ label: 'Docs', href: 'https://docs.green-tea.dev', external: true },
{ label: 'Blog', href: '/blog', external: false },
{ label: 'GitHub', href: 'https://github.com/expressive-tea/green-tea', external: true },
{ label: 'npm', href: 'https://www.npmjs.com/package/@expressive-tea/core', external: true },
];
---
<header class="site-header">
<div class="wrap site-header__inner">
<a class="wordmark" href="/" aria-label="Green Tea. — home">
<img class="wordmark__logo" src={logoUrl} alt="" width="24" height="24" />
<span class="wordmark__text">Green Tea<span class="wordmark__dot">.</span></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}>
{link.label}
</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: center;
gap: 0.55rem;
color: var(--ink);
}
.wordmark:hover,
.wordmark:focus-visible {
text-decoration: none;
color: var(--ink);
}
.wordmark__logo {
width: 1.6rem;
height: 1.6rem;
flex-shrink: 0;
}
.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);
}
.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;
}
.site-nav a:hover,
.site-nav a:focus-visible {
color: var(--matcha);
text-decoration: 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: 640px) {
.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;
}
.nav-toggle:checked ~ .site-nav {
display: block;
}
.site-header__inner {
flex-wrap: wrap;
}
}
</style>
+63
View File
@@ -0,0 +1,63 @@
---
import Header from '../components/Header.astro';
import Footer from '../components/Footer.astro';
import '../styles/global.css';
interface Props {
title?: string;
description?: string;
image?: string;
}
const {
title = 'Green Tea. — A zen, opinionated, type-safe framework.',
description = 'Green Tea is a graph-pipeline HTTP framework: declare what you need, not the order to build it. Runtime-agnostic, type-safe, calm by design.',
image = '/og.png',
} = Astro.props;
const canonicalURL = new URL(Astro.url.pathname, Astro.site);
const ogImageURL = new URL(image, Astro.site);
---
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="canonical" href={canonicalURL} />
<title>{title}</title>
<meta name="description" content={description} />
<!-- Open Graph -->
<meta property="og:type" content="website" />
<meta property="og:url" content={canonicalURL} />
<meta property="og:title" content={title} />
<meta property="og:description" content={description} />
<meta property="og:image" content={ogImageURL} />
<!-- Twitter -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content={title} />
<meta name="twitter:description" content={description} />
<meta name="twitter:image" content={ogImageURL} />
<!-- RSS -->
<link rel="alternate" type="application/rss+xml" title="Green Tea. Blog" href="/rss.xml" />
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@500;700&display=swap" rel="stylesheet" />
<meta name="generator" content={Astro.generator} />
</head>
<body>
<Header />
<main>
<slot />
</main>
<Footer />
</body>
</html>
+7
View File
@@ -0,0 +1,7 @@
---
import Base from '../layouts/Base.astro';
---
<Base>
<h1>Green Tea.</h1>
</Base>
+32
View File
@@ -0,0 +1,32 @@
/* Green Tea. — brand theme for Starlight */
@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@500;700&display=swap');
/* Accent = matcha (dark theme in :root, light overridden below) */
:root {
--sl-color-accent-low: #14352a;
--sl-color-accent: #348a5f;
--sl-color-accent-high: #b9e8cf;
--sl-color-text-accent: #6fc599;
--gt-purple: #a78bfa;
}
:root[data-theme='light'] {
--sl-color-accent-low: #d3efe1;
--sl-color-accent: #2f8a5f;
--sl-color-accent-high: #123528;
--sl-color-text-accent: #2f8a5f;
--gt-purple: #7c6cf0;
}
/* Brand type: Zen Maru for the site title and headings */
.site-title,
h1, h2, h3 {
font-family: 'Zen Maru Gothic', var(--sl-font, sans-serif);
}
.site-title { font-weight: 700; }
.site-title img { height: 1.7rem; width: auto; }
/* Splash hero logo */
.hero img { max-height: 190px; width: auto; }
/* A little zen: soften the accent link underlines */
a { text-underline-offset: 0.15em; }
+137
View File
@@ -0,0 +1,137 @@
/* Green Tea. — marketing site global styles */
@import './brand.css';
:root {
--base: #0d1117;
--panel: #161b22;
--matcha: #5fb88a;
--matcha-deep: #3fa873;
--violet: #7c6cf0;
--ink: #e6edf3;
--dim: #8b949e;
--font-heading: 'Zen Maru Gothic', var(--font-body);
--font-body:
-apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
--max-width: 1120px;
--gutter: 24px;
}
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
color-scheme: dark;
}
body {
margin: 0;
background: var(--base);
color: var(--ink);
font-family: var(--font-body);
font-size: 1rem;
line-height: 1.7;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}
h1,
h2,
h3,
h4 {
font-family: var(--font-heading);
font-weight: 700;
line-height: 1.3;
color: var(--ink);
margin: 0 0 0.6em;
}
h1 {
font-size: clamp(2.25rem, 4vw, 3.25rem);
}
h2 {
font-size: clamp(1.75rem, 3vw, 2.25rem);
}
h3 {
font-size: 1.375rem;
}
p {
margin: 0 0 1.25em;
color: var(--ink);
}
a {
color: var(--matcha);
text-decoration: none;
text-underline-offset: 0.2em;
}
a:hover,
a:focus-visible {
color: var(--matcha-deep);
text-decoration: underline;
}
::selection {
background: var(--matcha-deep);
color: var(--base);
}
.wrap {
max-width: var(--max-width);
margin: 0 auto;
padding: 0 var(--gutter);
}
/* Prose defaults — used by blog posts and long-form content */
.prose {
max-width: 70ch;
}
.prose p,
.prose ul,
.prose ol {
margin-bottom: 1.4em;
}
.prose h2,
.prose h3 {
margin-top: 2em;
}
.prose code {
background: var(--panel);
border-radius: 4px;
padding: 0.15em 0.4em;
font-size: 0.9em;
}
.prose pre {
background: var(--panel);
border-radius: 8px;
padding: 1.25em;
overflow-x: auto;
}
.prose pre code {
background: none;
padding: 0;
}
.prose blockquote {
border-left: 3px solid var(--matcha-deep);
margin: 1.5em 0;
padding-left: 1.25em;
color: var(--dim);
}
section {
padding-block: clamp(3rem, 8vw, 6rem);
}