polish: 404 page, branded OG image, robots.txt, README
Rounds out the site for launch: a calm branded 404 (with the graph motif and a way back home), a proper 1200x630 OG/Twitter card so shared links look right, robots.txt pointing at the sitemap, and a README covering local dev and the manual Cloudflare Pages deploy flow (no deploy CI is configured). Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
4 files changed
+163
No files matched your search
@@ -0,0 +1,78 @@
|
||||
# Green Tea. — marketing site
|
||||
|
||||
The public marketing site for [Green Tea](https://green-tea.dev), a zen, opinionated, type-safe graph-pipeline HTTP
|
||||
framework. Built with [Astro](https://astro.build) — the landing page, blog, and brand shell live here. The
|
||||
framework's technical docs live in a separate repository and are only linked from this site, not rebuilt here.
|
||||
|
||||
## Stack
|
||||
|
||||
- [Astro](https://astro.build) (static output)
|
||||
- [MDX](https://docs.astro.build/en/guides/integrations-guide/mdx/) for blog content
|
||||
- [@astrojs/sitemap](https://docs.astro.build/en/guides/integrations-guide/sitemap/) for `sitemap-index.xml`
|
||||
- Plain CSS (custom properties for the brand palette), no CSS framework
|
||||
- No CMS, no client-side JS framework, no analytics
|
||||
|
||||
## Requirements
|
||||
|
||||
- Node.js >= 22.12.0
|
||||
|
||||
## Getting started
|
||||
|
||||
```bash
|
||||
npm install
|
||||
npm run dev
|
||||
```
|
||||
|
||||
The dev server runs at `http://localhost:4321`.
|
||||
|
||||
## Build
|
||||
|
||||
```bash
|
||||
npm run build
|
||||
```
|
||||
|
||||
Static output is written to `dist/`. Preview it locally with:
|
||||
|
||||
```bash
|
||||
npm run preview
|
||||
```
|
||||
|
||||
## Project structure
|
||||
|
||||
```
|
||||
src/
|
||||
components/ — Header, Footer, GraphMotif, and landing sections
|
||||
content/blog/ — MDX blog posts (content collection)
|
||||
layouts/ — Base.astro (shell, SEO/OG), Post.astro (blog post layout)
|
||||
pages/ — index, blog/, 404, rss.xml
|
||||
public/ — static assets (favicon, og.png, robots.txt)
|
||||
```
|
||||
|
||||
## Deployment (manual — Cloudflare Pages)
|
||||
|
||||
There is no deploy CI configured for this repo. Deploys are triggered manually from the Cloudflare Pages
|
||||
dashboard:
|
||||
|
||||
1. Create a new Pages project and connect this repository.
|
||||
2. **Framework preset:** Astro
|
||||
3. **Build command:** `npm run build`
|
||||
4. **Build output directory:** `dist`
|
||||
5. Deploy, then attach the custom domain `green-tea.dev` under the project's Custom Domains settings.
|
||||
|
||||
Re-run the same "Create deployment" flow from the dashboard for subsequent releases — pushes do not trigger an
|
||||
automatic build.
|
||||
|
||||
## Placeholder links
|
||||
|
||||
The repository (`https://github.com/green-tea-dev/green-tea`) and npm package (`@green-tea/core`) referenced
|
||||
throughout the site (Header, Footer, Hero, blog) are **placeholders** — the GitHub org/repo and the npm package are
|
||||
not public yet. Before launch:
|
||||
|
||||
- Confirm the real GitHub org/repo and update every reference in `src/` if it differs from
|
||||
`https://github.com/green-tea-dev/green-tea`.
|
||||
- Confirm `@green-tea/core` is the published npm package name and update links if it changes.
|
||||
- Confirm `https://docs.green-tea.dev` resolves once the docs site is live.
|
||||
|
||||
## License
|
||||
|
||||
MIT
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 221 KiB |
@@ -0,0 +1,4 @@
|
||||
User-agent: *
|
||||
Allow: /
|
||||
|
||||
Sitemap: https://green-tea.dev/sitemap-index.xml
|
||||
@@ -0,0 +1,81 @@
|
||||
---
|
||||
import Base from '../layouts/Base.astro';
|
||||
import GraphMotif from '../components/GraphMotif.astro';
|
||||
|
||||
const title = '404 — Green Tea.';
|
||||
const description = 'This page steeped too long. It’s gone — but the rest of the garden is right here.';
|
||||
---
|
||||
|
||||
<Base title={title} description={description}>
|
||||
<section class="notfound section">
|
||||
<div class="wrap notfound__inner">
|
||||
<div class="notfound__text">
|
||||
<p class="kicker">404</p>
|
||||
<h1>This page steeped too long.</h1>
|
||||
<p class="notfound__body">
|
||||
Whatever you were looking for isn’t here anymore — or never was. Let’s get you back to solid ground.
|
||||
</p>
|
||||
<div class="btn-row">
|
||||
<a class="btn btn--primary" href="/">Back home</a>
|
||||
<a class="btn btn--ghost" href="/blog">Read the blog</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<GraphMotif class="notfound__motif" width={320} height={280} opacity={0.4} />
|
||||
</div>
|
||||
</section>
|
||||
</Base>
|
||||
|
||||
<style>
|
||||
.notfound {
|
||||
min-height: 60vh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.notfound__inner {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
|
||||
align-items: center;
|
||||
gap: clamp(2rem, 6vw, 4rem);
|
||||
}
|
||||
|
||||
.notfound__text {
|
||||
max-width: 46ch;
|
||||
}
|
||||
|
||||
.notfound__body {
|
||||
color: var(--dim);
|
||||
font-size: 1.1rem;
|
||||
line-height: 1.7;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
:global(.notfound__motif) {
|
||||
justify-self: center;
|
||||
width: 100%;
|
||||
max-width: 280px;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
@media (max-width: 760px) {
|
||||
.notfound__inner {
|
||||
grid-template-columns: 1fr;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.notfound__text {
|
||||
max-width: none;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.btn-row {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
:global(.notfound__motif) {
|
||||
max-width: 200px;
|
||||
opacity: 0.3;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user