CI / build (pull_request) Successful in 12s
The homepage led with 'your API is a graph, not a middleware chain' — the origin problem stated as the whole product philosophy. Middleware ordering is what green-tea started from, not what it is for, and a visitor who has never felt that specific pain reads it as a framework defined by what it lacks. Reframes the page around what the framework takes off the application: it derives execution from declared dependencies, validates the wiring before traffic, runs only the slice a route asks for, and then shows its work. Two sections are new because nothing on the page carried the argument — an ownership list that ends at 'business rules: you', and the two route slices that make dependency-driven execution concrete rather than abstract. The dependency count moves from hero to evidence, with the nuance it was missing: reflect-metadata is the only runtime dependency, ws and busboy are optional peers. Beta honesty gains the API-stability caveat. Follows .specs/reports/green_tea_website_copy_strategy_zen.md, whose guardrails were re-checked against the built page — no zero-dependency claim, no compile-time overclaim, mesh still alpha, edge limits still stated. Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
183 lines
4.7 KiB
Plaintext
183 lines
4.7 KiB
Plaintext
---
|
|
---
|
|
|
|
<section class="honest">
|
|
<div class="wrap honest__inner">
|
|
<h2>Honest: it's beta.</h2>
|
|
|
|
<p class="honest__body">
|
|
Express and Fastify have a decade of ecosystem behind them; NestJS has mature enterprise tooling. Green Tea
|
|
doesn't pretend otherwise. Choose it today because the model fits your application — explicit dependencies,
|
|
derived execution, inspectable infrastructure, one real-time mental model, and a foundation you don't have to
|
|
assemble. If your team needs a large plugin catalogue today, that gap is real, and the API can still change
|
|
before stable.
|
|
</p>
|
|
|
|
<form class="subscribe" action="/subscribe.php" method="post">
|
|
<p class="subscribe__lead">Not ready yet? Get one email when 1.0 ships — nothing else.</p>
|
|
<div class="subscribe__row">
|
|
<label class="sr-only" for="sub-email">Email address</label>
|
|
<input
|
|
id="sub-email"
|
|
class="subscribe__input"
|
|
type="email"
|
|
name="email"
|
|
required
|
|
maxlength="254"
|
|
placeholder="you@company.com"
|
|
autocomplete="email"
|
|
/>
|
|
<!-- honeypot: real people never fill this -->
|
|
<input class="subscribe__hp" type="text" name="website" tabindex="-1" autocomplete="off" aria-hidden="true" />
|
|
<button class="btn btn--primary" type="submit">Notify me at 1.0</button>
|
|
</div>
|
|
<p class="subscribe__msg" role="status" aria-live="polite"></p>
|
|
</form>
|
|
|
|
<div class="btn-row honest__ctas">
|
|
<a class="btn btn--primary" href="https://green-tea.expressive-tea.io/docs" target="_blank" rel="noopener noreferrer">
|
|
Read the docs
|
|
</a>
|
|
<a class="btn btn--ghost" href="https://github.com/Expressive-Tea/green-tea" target="_blank" rel="noopener noreferrer">
|
|
Star on GitHub
|
|
</a>
|
|
</div>
|
|
|
|
<p class="honest__signoff">That's the tea. 🍵</p>
|
|
</div>
|
|
</section>
|
|
|
|
<style>
|
|
.honest__inner {
|
|
max-width: 60ch;
|
|
margin: 0 auto;
|
|
text-align: center;
|
|
}
|
|
|
|
.honest__body {
|
|
color: var(--dim);
|
|
font-size: 1.1rem;
|
|
margin: 0 auto 2rem;
|
|
max-width: 52ch;
|
|
}
|
|
|
|
.honest__ctas {
|
|
justify-content: center;
|
|
margin-bottom: 2.5rem;
|
|
}
|
|
|
|
.honest__signoff {
|
|
margin: 0;
|
|
font-family: var(--font-heading);
|
|
font-weight: 700;
|
|
font-size: 1.5rem;
|
|
color: var(--matcha);
|
|
}
|
|
|
|
.subscribe {
|
|
max-width: 30rem;
|
|
margin: 0 auto 2.5rem;
|
|
}
|
|
|
|
.subscribe__lead {
|
|
margin: 0 0 0.9rem;
|
|
color: var(--dim);
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.subscribe__row {
|
|
display: flex;
|
|
gap: 0.6rem;
|
|
}
|
|
|
|
.subscribe__input {
|
|
flex: 1;
|
|
min-width: 0;
|
|
padding: 0.7rem 0.9rem;
|
|
border-radius: 8px;
|
|
border: 1px solid color-mix(in srgb, var(--dim) 35%, transparent);
|
|
background: var(--base);
|
|
color: var(--ink);
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.subscribe__input:focus-visible {
|
|
outline: 2px solid var(--matcha);
|
|
outline-offset: 1px;
|
|
}
|
|
|
|
/* honeypot — kept in the layout for bots, off-screen for humans */
|
|
.subscribe__hp {
|
|
position: absolute;
|
|
left: -9999px;
|
|
width: 1px;
|
|
height: 1px;
|
|
opacity: 0;
|
|
}
|
|
|
|
.subscribe__msg {
|
|
margin: 0.75rem 0 0;
|
|
min-height: 1.2em;
|
|
font-size: 0.9rem;
|
|
color: var(--matcha);
|
|
}
|
|
|
|
.subscribe__msg[data-error] {
|
|
color: var(--violet);
|
|
}
|
|
|
|
.sr-only {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
white-space: nowrap;
|
|
border: 0;
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.subscribe__row {
|
|
flex-direction: column;
|
|
}
|
|
}
|
|
</style>
|
|
|
|
<script>
|
|
const form = document.querySelector('.subscribe');
|
|
if (form instanceof HTMLFormElement) {
|
|
const msg = form.querySelector('.subscribe__msg');
|
|
const button = form.querySelector('button');
|
|
form.addEventListener('submit', async (event) => {
|
|
event.preventDefault();
|
|
if (button) button.disabled = true;
|
|
if (msg) {
|
|
msg.textContent = '';
|
|
delete msg.dataset.error;
|
|
}
|
|
try {
|
|
const res = await fetch(form.action, {
|
|
method: 'POST',
|
|
headers: { 'X-Requested-With': 'fetch' },
|
|
body: new FormData(form),
|
|
});
|
|
const data = await res.json().catch(() => ({ ok: res.ok, message: '' }));
|
|
if (msg) {
|
|
msg.textContent = data.message || (data.ok ? "You're on the list." : 'Something went wrong.');
|
|
if (!data.ok) msg.dataset.error = 'true';
|
|
}
|
|
if (data.ok) form.reset();
|
|
} catch {
|
|
if (msg) {
|
|
msg.textContent = 'Network error — try again.';
|
|
msg.dataset.error = 'true';
|
|
}
|
|
} finally {
|
|
if (button) button.disabled = false;
|
|
}
|
|
});
|
|
}
|
|
</script>
|