feat(site): sharpen the hero, intent-keyword titles, and a beta FAQ
Hero H1 leads with the differentiator (a graph, not a middleware chain) instead of three adjectives; page titles carry search-intent keywords; a beta-scoped FAQ answers production-readiness, Express migration, performance and dependency questions; the footer credits the Expressive Tea Team. Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
1 parent
a92cc0f82f
commit
b978dacd4f
5 files changed
+165
-5
No files matched your search
@@ -24,6 +24,7 @@ const year = new Date().getFullYear();
|
||||
<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">
|
||||
@@ -47,7 +48,7 @@ const year = new Date().getFullYear();
|
||||
</div>
|
||||
|
||||
<div class="wrap site-footer__bottom">
|
||||
<p>© {year} · MIT · That's the tea. 🍵</p>
|
||||
<p>© {year} Expressive Tea Team · MIT · That's the tea. 🍵</p>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
@@ -82,6 +83,13 @@ const year = new Date().getFullYear();
|
||||
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;
|
||||
|
||||
@@ -0,0 +1,150 @@
|
||||
---
|
||||
// Beta-scoped objection handling. Answers stay honest: no benchmarks are
|
||||
// invented, and every claim here matches what the rest of the site already says.
|
||||
const items = [
|
||||
{
|
||||
q: 'Is Green Tea ready for production?',
|
||||
a: `It's beta, on the RC track — the API can still shift between releases. It fits greenfield services, internal tools, and side projects where you own the deploy and can pin versions. If you need a decade of third-party middleware today, stay on Express for now.`,
|
||||
},
|
||||
{
|
||||
q: 'Can I drop it into my existing Express app?',
|
||||
a: `No — and that's the point. Green Tea replaces the middleware chain with a dependency graph, so adopting it means rewriting the pipeline, not swapping a router. It shines on a new service or a bounded rewrite, not as an incremental Express patch.`,
|
||||
},
|
||||
{
|
||||
q: 'How does it perform against Express or Fastify?',
|
||||
a: `Performance isn't the pitch — the model is — but there's a reproducible benchmark in the core repo (BENCHMARKS.md), written to be hard on us, not flattering. On a single-box harness green-tea keeps pace with Fastify and runs several times faster than Express, behind only raw Node http. Read the caveats there: it's loopback on one machine, so trust the ratios between frameworks, not the absolute numbers. The graph is topologically sorted once at boot, not per request — you don't pay for it on the hot path.`,
|
||||
},
|
||||
{
|
||||
q: 'What will it add to my dependency tree?',
|
||||
a: `One runtime dependency: reflect-metadata. ws and busboy are optional peers you install only if you use WebSockets or uploads. Validation is bring-your-own via Standard Schema (zod, valibot, or arktype), so the core stays lean.`,
|
||||
},
|
||||
{
|
||||
q: 'Is mesh (multi-service) ready to use?',
|
||||
a: `Not yet — mesh is alpha and gated behind an explicit opt-in. Build on the single-service core for now, and treat mesh as a preview, not a foundation.`,
|
||||
},
|
||||
{
|
||||
q: 'What does "beta" mean for breaking changes?',
|
||||
a: `Expect occasional breaking changes on the RC track, called out in the changelog. Pin your version and read the release notes before upgrading, and you won't be surprised.`,
|
||||
},
|
||||
];
|
||||
---
|
||||
|
||||
<section class="faq section--panel">
|
||||
<div class="wrap faq__inner">
|
||||
<div class="faq__head">
|
||||
<p class="kicker">Straight answers</p>
|
||||
<h2>Questions worth asking about a beta.</h2>
|
||||
</div>
|
||||
|
||||
<ul class="faq__list">
|
||||
{
|
||||
items.map((item) => (
|
||||
<li class="faq__item">
|
||||
<details>
|
||||
<summary>
|
||||
<span>{item.q}</span>
|
||||
<span class="faq__mark" aria-hidden="true" />
|
||||
</summary>
|
||||
<p>{item.a}</p>
|
||||
</details>
|
||||
</li>
|
||||
))
|
||||
}
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<style>
|
||||
.faq__inner {
|
||||
max-width: 720px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.faq__head {
|
||||
max-width: 52ch;
|
||||
margin: 0 auto 2.5rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.faq__head h2 {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.faq__list {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.faq__item {
|
||||
border: 1px solid color-mix(in srgb, var(--dim) 18%, transparent);
|
||||
border-radius: 12px;
|
||||
background: var(--base);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.faq__item summary {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
padding: 1.15rem 1.4rem;
|
||||
cursor: pointer;
|
||||
color: var(--ink);
|
||||
font-weight: 600;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
/* kill the native disclosure triangle across engines */
|
||||
.faq__item summary::-webkit-details-marker {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.faq__item summary:focus-visible {
|
||||
outline: 2px solid var(--matcha);
|
||||
outline-offset: -2px;
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
/* a + that rotates into an × when open — no icon asset needed */
|
||||
.faq__mark {
|
||||
position: relative;
|
||||
flex-shrink: 0;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
.faq__mark::before,
|
||||
.faq__mark::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
margin: auto;
|
||||
background: var(--matcha);
|
||||
transition: transform 0.2s ease;
|
||||
}
|
||||
|
||||
.faq__mark::before {
|
||||
width: 14px;
|
||||
height: 2px;
|
||||
}
|
||||
|
||||
.faq__mark::after {
|
||||
width: 2px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
.faq__item details[open] .faq__mark::after {
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
|
||||
.faq__item details p {
|
||||
margin: 0;
|
||||
padding: 0 1.4rem 1.3rem;
|
||||
color: var(--dim);
|
||||
line-height: 1.7;
|
||||
}
|
||||
</style>
|
||||
@@ -11,10 +11,10 @@ import GraphMotif from '../GraphMotif.astro';
|
||||
<span class="hero__wordmark">Green Tea<span class="hero__dot">.</span></span>
|
||||
</div>
|
||||
|
||||
<h1>A zen, opinionated, type-safe framework.</h1>
|
||||
<h1>Your API is a graph, not a middleware chain.</h1>
|
||||
|
||||
<p class="hero__subhead">
|
||||
Your API is a graph, not a middleware chain. You declare what each step needs — the framework computes the
|
||||
Green Tea is a zen, opinionated, type-safe framework: you declare what each step needs — it computes the
|
||||
order. One runtime dependency. Runs wherever JavaScript runs.
|
||||
</p>
|
||||
|
||||
|
||||
Reference in new issue
Block a user