From adca1c5bdf6a8851f8fec60c31d4e2f6ebb5b05f Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Fri, 10 Jul 2026 19:02:25 -0500 Subject: [PATCH] =?UTF-8?q?feat:=20landing=20page=20=E2=80=94=20the=20pitc?= =?UTF-8?q?h=20(graph,=20runtime-agnostic,=20real-time,=20batteries)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Diego Resendez --- src/components/sections/Batteries.astro | 86 ++++++++++++ src/components/sections/GraphNotChain.astro | 115 ++++++++++++++++ src/components/sections/Hero.astro | 130 +++++++++++++++++++ src/components/sections/HonestBeta.astro | 50 +++++++ src/components/sections/RealTime.astro | 37 ++++++ src/components/sections/RunsEverywhere.astro | 71 ++++++++++ src/components/sections/SeeIt.astro | 77 +++++++++++ src/pages/index.astro | 21 ++- src/styles/global.css | 67 ++++++++++ 9 files changed, 652 insertions(+), 2 deletions(-) create mode 100644 src/components/sections/Batteries.astro create mode 100644 src/components/sections/GraphNotChain.astro create mode 100644 src/components/sections/Hero.astro create mode 100644 src/components/sections/HonestBeta.astro create mode 100644 src/components/sections/RealTime.astro create mode 100644 src/components/sections/RunsEverywhere.astro create mode 100644 src/components/sections/SeeIt.astro diff --git a/src/components/sections/Batteries.astro b/src/components/sections/Batteries.astro new file mode 100644 index 0000000..5870420 --- /dev/null +++ b/src/components/sections/Batteries.astro @@ -0,0 +1,86 @@ +--- +const cards = [ + { title: 'Secure by default', body: 'Hardening headers, native TLS, CORS done right.' }, + { + title: 'Real validation', + body: 'Standard Schema; bring zod, valibot, or arktype. The core stays dependency-free.', + }, + { title: 'OpenAPI 3.1', body: 'Projected from the same graph. No extra decorators.' }, + { title: 'See the graph', body: 'Interactive, served by your app. Not behind a paywall.' }, + { title: 'Loud boot', body: 'A missing dependency fails at startup, not in production.' }, + { title: 'One dependency', body: "No Express, no Inversify. Maintenance is the framework's job, not yours." }, +]; +--- + +
+
+
+

Batteries, calm by design

+

Serious defaults. Zero ceremony.

+
+ +
    + { + cards.map((card) => ( +
  • +

    {card.title}

    +

    {card.body}

    +
  • + )) + } +
+
+
+ + diff --git a/src/components/sections/GraphNotChain.astro b/src/components/sections/GraphNotChain.astro new file mode 100644 index 0000000..e77a079 --- /dev/null +++ b/src/components/sections/GraphNotChain.astro @@ -0,0 +1,115 @@ +--- +import GraphMotif from '../GraphMotif.astro'; +--- + +
+ + +
+

The idea

+

A graph, not a chain.

+ +

+ Express-style frameworks make ordering your job — what runs here, what runs there, where you wire it. Green + Tea inverts it. You ask for the highest-level thing you need, and its dependencies resolve transitively. +

+ +
    +
  • + Need an ACL check on a user? The ACL is a step that itself needs the user. Ask for the ACL — the user is + pulled in for you. +
  • +
  • Add a friends provider, then ask for friends — and the user arrives with the friend list.
  • +
+ +

+ This is pure composition. No other framework shows it, because no one else has the graph. +

+
+
+ + diff --git a/src/components/sections/Hero.astro b/src/components/sections/Hero.astro new file mode 100644 index 0000000..64a0bc5 --- /dev/null +++ b/src/components/sections/Hero.astro @@ -0,0 +1,130 @@ +--- +import logoUrl from '../../assets/logo.svg?url'; +import GraphMotif from '../GraphMotif.astro'; +--- + +
+
+
+ + +

A zen, opinionated, type-safe framework.

+ +

+ Your API is a graph, not a middleware chain. You declare what each step needs — the framework computes the + order. One runtime dependency. Runs wherever JavaScript runs. +

+ + + +

Beta · calm by design

+
+ + +
+
+ + diff --git a/src/components/sections/HonestBeta.astro b/src/components/sections/HonestBeta.astro new file mode 100644 index 0000000..e66ec11 --- /dev/null +++ b/src/components/sections/HonestBeta.astro @@ -0,0 +1,50 @@ +--- +--- + +
+
+

Honest: it's beta.

+ +

+ Express and Fastify have a decade of ecosystem. Green Tea doesn't — yet. You come for the model and the + ergonomics. If you're tired of maintaining someone else's foundation, come try it. +

+ + + +

That's the tea. 🍵

+
+
+ + diff --git a/src/components/sections/RealTime.astro b/src/components/sections/RealTime.astro new file mode 100644 index 0000000..1111b0d --- /dev/null +++ b/src/components/sections/RealTime.astro @@ -0,0 +1,37 @@ +--- +--- + +
+
+

Real-time

+

One primitive for real-time.

+ +

+ SSE, ndjson, or a duplex WebSocket — return an AsyncIterable. One mental model, one line. No + separate gateway, no bolt-on package. +

+
+
+ + diff --git a/src/components/sections/RunsEverywhere.astro b/src/components/sections/RunsEverywhere.astro new file mode 100644 index 0000000..324ce07 --- /dev/null +++ b/src/components/sections/RunsEverywhere.astro @@ -0,0 +1,71 @@ +--- +const chips = ['app.listen(port)', 'serveDeno(app)', 'serveBun(app)', 'edgeHandler(app)']; +--- + +
+
+

Runtime-agnostic

+

Write it once. Run it everywhere.

+ +

+ Node, Deno, Bun — and the edge. The same src/ runs on all of them; the only line that changes is + how you serve it. +

+ +
    + {chips.map((chip) =>
  • {chip}
  • )} +
+ +

Built on web standards. Not hostage to a runtime's fate.

+
+
+ + diff --git a/src/components/sections/SeeIt.astro b/src/components/sections/SeeIt.astro new file mode 100644 index 0000000..7aba24e --- /dev/null +++ b/src/components/sections/SeeIt.astro @@ -0,0 +1,77 @@ +--- +import { Code } from 'astro:components'; + +const snippet = `import { createApp, Provider, Step, Route, Get, Module, needs } from '@green-tea/core'; + +@Provider({ provides: 'db' }) +class Database { + provide() { return { db: connect() }; } +} + +@Step({ provides: 'user', needs: ['db', 'req'] }) +class Authenticate { + run(ctx) { return { user: ctx.db.find(ctx.req.headers['x-token']) }; } +} + +@Route('/me') +class MeController { + @Get('/') + me(@needs('user') user) { + return user; // ask for \`user\` — the graph wires db + auth for you + } +}`; +--- + +
+
+
+

See it

+

The whole model, in one screen.

+
+ +
+ +
+ +

Declare what you need. The framework figures out the order.

+
+
+ + diff --git a/src/pages/index.astro b/src/pages/index.astro index 5f7237f..4206ec3 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,7 +1,24 @@ --- import Base from '../layouts/Base.astro'; +import Hero from '../components/sections/Hero.astro'; +import GraphNotChain from '../components/sections/GraphNotChain.astro'; +import RunsEverywhere from '../components/sections/RunsEverywhere.astro'; +import RealTime from '../components/sections/RealTime.astro'; +import Batteries from '../components/sections/Batteries.astro'; +import SeeIt from '../components/sections/SeeIt.astro'; +import HonestBeta from '../components/sections/HonestBeta.astro'; + +const title = 'Green Tea. — A zen, opinionated, type-safe framework'; +const description = + 'Your API is a graph, not a middleware chain. Declare what each step needs and Green Tea computes the order — one runtime dependency, type-safe, runtime-agnostic, calm by design.'; --- - -

Green Tea.

+ + + + + + + + diff --git a/src/styles/global.css b/src/styles/global.css index d7bc886..974b0ba 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -134,4 +134,71 @@ a:focus-visible { section { padding-block: clamp(3rem, 8vw, 6rem); + overflow-x: clip; +} + +/* Shared marketing primitives — used across landing sections */ +.section--panel { + background: var(--panel); +} + +.kicker { + display: inline-block; + font-size: 0.8rem; + font-weight: 600; + letter-spacing: 0.14em; + text-transform: uppercase; + color: var(--matcha); + margin: 0 0 0.85em; +} + +.btn { + display: inline-flex; + align-items: center; + gap: 0.4em; + padding: 0.7em 1.4em; + border-radius: 8px; + font-weight: 600; + font-size: 0.95rem; + border: 1px solid transparent; + line-height: 1.2; + transition: + background-color 0.15s ease, + border-color 0.15s ease, + color 0.15s ease; +} + +.btn:hover, +.btn:focus-visible { + text-decoration: none; +} + +.btn--primary { + background: var(--matcha); + color: var(--base); +} + +.btn--primary:hover, +.btn--primary:focus-visible { + background: var(--matcha-deep); + color: var(--base); +} + +.btn--ghost { + background: transparent; + border-color: color-mix(in srgb, var(--dim) 45%, transparent); + color: var(--ink); +} + +.btn--ghost:hover, +.btn--ghost:focus-visible { + border-color: var(--matcha); + color: var(--matcha); +} + +.btn-row { + display: flex; + flex-wrap: wrap; + align-items: center; + gap: 0.9rem; }