docs: site design + implementation plan
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
3 files changed
+348
No files matched your search
@@ -0,0 +1,69 @@
|
||||
# Green Tea — marketing site + blog — Design
|
||||
|
||||
**Date:** 2026-07-10
|
||||
**Repo:** `green-tea-site` (own repo; separate from the framework repo and its Starlight docs)
|
||||
**Goal:** A serious landing site that convinces, sells, and informs what Green Tea is — plus a small git-based blog. Docs stay at `docs.green-tea.dev` (existing Starlight, untouched).
|
||||
|
||||
## Positioning (what the copy must land)
|
||||
|
||||
Drawn from the locked positioning:
|
||||
|
||||
- **The killer feature is COMPOSITION (order-free).** Express-philosophy frameworks make *order* the developer's job. Green Tea inverts it: you declare the *what*, the framework computes the *order*. Ask for the highest-level thing; its dependencies resolve transitively. This is the under-sold headline — lead with it.
|
||||
- **Runtime-agnostic** — the graph framework that runs everywhere: Node, Deno, Bun, edge. Same `src/`, only the serve line changes.
|
||||
- **Calm / immutable / one dependency** — in an ecosystem that reinvents itself every ~18 months, Green Tea stays still: the pipeline doesn't mutate, the graph is declared not patched, one runtime dependency, not hostage to a runtime's fate.
|
||||
- **Honest beta** — come for the model and ergonomics, not a decade of ecosystem yet.
|
||||
- Brand voice: **calm, zen, confident, not hypey.** Tagline: *"A zen, opinionated, type-safe framework."* Sign-off: *"That's the tea." 🍵*
|
||||
|
||||
## Language
|
||||
|
||||
**English primary** (matches docs, global dev reach). ES/i18n is a later add, not v1.
|
||||
|
||||
## Stack
|
||||
|
||||
- **Astro** (v5+, same family as the docs; latest stable). Static output.
|
||||
- Integrations: `@astrojs/mdx`, `@astrojs/sitemap`, `@astrojs/rss`.
|
||||
- Content collections for the blog (Markdown/MDX in git, zod-typed frontmatter). **No CMS, no DB.**
|
||||
- Brand reused: copy `brand.css`, `logo.svg`, `favicon.svg` from the docs `website/` into this repo (separate project — copy, don't share a package for v1).
|
||||
- Palette (locked): base `#0D1117`, panel `#161B22`, matcha `#5FB88A` / deep `#3FA873`, violet accent `#7C6CF0` (graph only), ink `#E6EDF3`, dim `#8B949E`. Wordmark font Zen Maru Gothic; body Zen Kaku Gothic New (or system fallback).
|
||||
- **No deploy automation** — the user deploys manually (Cloudflare Pages). Ship a README with the build command + CF Pages settings.
|
||||
|
||||
## Site map
|
||||
|
||||
```
|
||||
/ landing (the pitch)
|
||||
/blog blog index (posts by date)
|
||||
/blog/<slug> post
|
||||
/rss.xml RSS feed
|
||||
/404 branded not-found
|
||||
sitemap-*.xml generated
|
||||
```
|
||||
Docs live at `docs.green-tea.dev` (external link in nav/footer). Canonical site URL `https://green-tea.dev` (one-line config; user points DNS).
|
||||
|
||||
## Landing sections (order matters — sell the model, not features)
|
||||
|
||||
1. **Hero** — logo + `Green Tea.` wordmark + tagline + anti-churn subhead + CTAs (Get started → docs, GitHub, npm). A calm graph/terminal visual.
|
||||
2. **A graph, not a chain** — the composition/order-free pitch. The ACL-needs-user and friends-provider examples. "No other framework shows this, because no one else has the graph."
|
||||
3. **Runs everywhere** — Node · Deno · Bun · edge; same `src/`, one line changes; web standards.
|
||||
4. **One primitive for real-time** — SSE / ndjson / WebSocket from one `AsyncIterable`; no separate gateway.
|
||||
5. **Batteries, calm by design** — secure by default, Standard Schema validation, OpenAPI 3.1 from the graph, visible interactive graph, loud boot, one runtime dependency.
|
||||
6. **See it** — a short real code snippet (the composition example).
|
||||
7. **Honest beta** — the beta reality + final CTA.
|
||||
8. **Footer** — docs · blog · GitHub · npm · "That's the tea." 🍵
|
||||
|
||||
Each section: a heading, 1–3 short calm sentences, generous negative space (zen). Reuse the slide-background motif language (subtle graph venation, matcha, one violet node) for section visuals — consistent with the video assets.
|
||||
|
||||
## Blog system
|
||||
|
||||
- `src/content/blog/*.mdx`; schema: `title` (string), `description` (string), `pubDate` (date), `updatedDate` (date, optional), `author` (string, default "Diego Reséndez"), `tags` (string[], optional), `draft` (boolean, default false), `heroImage` (string, optional).
|
||||
- `/blog` index: non-draft posts, newest first — card list (title, date, description, tags).
|
||||
- `/blog/[...slug]`: post layout — title, date, author, reading time, brand-styled prose, back-to-blog link. Prev/next optional (v1 can skip).
|
||||
- RSS at `/rss.xml` via `@astrojs/rss`; posts in sitemap.
|
||||
- **One real launch post ships in v1:** *"Why I rebuilt my framework from scratch"* — the founder story (Expressive Tea on Express + Inversify → foundation kept shifting: Express 5 migration, Inversify 6 hard-deprecation → v7 refactor, middleware ordering, bolt-on real-time → rebuilt in-house as a graph). This post is the cornerstone that "informs + convinces". Reuses the YT script narrative.
|
||||
|
||||
## Non-goals (v1)
|
||||
|
||||
Comments, search, i18n/ES, newsletter signup, author pages, pagination (few posts), analytics, deploy CI, dark/light toggle (site is dark-only, on-brand). Add when there's a real need.
|
||||
|
||||
## Success criteria
|
||||
|
||||
`npm run build` produces a static site; landing reads as serious and on-brand and lands the composition pitch above the fold; blog index + the launch post render with valid RSS; Lighthouse-clean (static, no heavy JS); nav links to docs/GitHub/npm work; README documents manual CF Pages deploy.
|
||||
Reference in new issue
Block a user