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>
133 lines
2.8 KiB
Plaintext
133 lines
2.8 KiB
Plaintext
---
|
|
import logoUrl from '../../assets/logo.svg?url';
|
|
import GraphMotif from '../GraphMotif.astro';
|
|
---
|
|
|
|
<section class="hero">
|
|
<div class="wrap hero__grid">
|
|
<div class="hero__content">
|
|
<div class="hero__lockup" aria-hidden="true">
|
|
<img class="hero__logo" src={logoUrl} alt="" width="36" height="36" />
|
|
<span class="hero__wordmark">Green Tea<span class="hero__dot">.</span></span>
|
|
</div>
|
|
|
|
<h1>Your API is a graph, not a middleware chain.</h1>
|
|
|
|
<p class="hero__subhead">
|
|
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>
|
|
|
|
<div class="btn-row hero__ctas">
|
|
<a class="btn btn--primary" href="https://green-tea.expressive-tea.io/docs" target="_blank" rel="noopener noreferrer">
|
|
Get started
|
|
</a>
|
|
<a class="btn btn--ghost" href="https://github.com/Expressive-Tea/green-tea" target="_blank" rel="noopener noreferrer">
|
|
GitHub
|
|
</a>
|
|
<a class="btn btn--ghost" href="https://www.npmjs.com/package/@green-tea/core" target="_blank" rel="noopener noreferrer">
|
|
npm
|
|
</a>
|
|
</div>
|
|
|
|
<p class="hero__micro">Beta · calm by design</p>
|
|
</div>
|
|
|
|
<GraphMotif class="hero__motif" width={460} height={400} opacity={0.55} />
|
|
</div>
|
|
</section>
|
|
|
|
<style>
|
|
.hero {
|
|
padding-block: clamp(3.5rem, 10vw, 7rem) clamp(2.5rem, 6vw, 4rem);
|
|
}
|
|
|
|
.hero__grid {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
|
|
align-items: center;
|
|
gap: clamp(2rem, 6vw, 4rem);
|
|
}
|
|
|
|
.hero__content {
|
|
min-width: 0;
|
|
max-width: 46ch;
|
|
}
|
|
|
|
.hero__lockup {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.6rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.hero__logo {
|
|
width: 2rem;
|
|
height: 2rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.hero__wordmark {
|
|
font-family: var(--font-heading);
|
|
font-weight: 700;
|
|
font-size: 1.05rem;
|
|
letter-spacing: 0.02em;
|
|
color: var(--matcha);
|
|
}
|
|
|
|
.hero__dot {
|
|
color: var(--violet);
|
|
}
|
|
|
|
.hero h1 {
|
|
margin-bottom: 0.6em;
|
|
}
|
|
|
|
.hero__subhead {
|
|
color: var(--dim);
|
|
font-size: 1.1rem;
|
|
line-height: 1.7;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.hero__ctas {
|
|
margin-bottom: 1.4rem;
|
|
}
|
|
|
|
.hero__micro {
|
|
margin: 0;
|
|
color: var(--dim);
|
|
font-size: 0.85rem;
|
|
letter-spacing: 0.03em;
|
|
}
|
|
|
|
:global(.hero__motif) {
|
|
justify-self: center;
|
|
width: 100%;
|
|
max-width: 420px;
|
|
height: auto;
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.hero__grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.hero__content {
|
|
max-width: none;
|
|
}
|
|
|
|
:global(.hero__motif) {
|
|
max-width: 280px;
|
|
margin: 0 auto;
|
|
opacity: 0.35;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
:global(.hero__motif) {
|
|
max-width: 220px;
|
|
}
|
|
}
|
|
</style>
|