feat: landing page — the pitch (graph, runtime-agnostic, real-time, batteries)
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
1 parent
6e1888b8ff
commit
adca1c5bdf
9 files changed
+652
-2
No files matched your search
@@ -0,0 +1,130 @@
|
||||
---
|
||||
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>A zen, opinionated, type-safe framework.</h1>
|
||||
|
||||
<p class="hero__subhead">
|
||||
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.
|
||||
</p>
|
||||
|
||||
<div class="btn-row hero__ctas">
|
||||
<a class="btn btn--primary" href="https://docs.green-tea.dev">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>
|
||||
Reference in new issue
Block a user