# hanthebot.com — landing page

A single static page that explains what `hanthebot.com` is and sends visitors to
[`hanthebot.dev`](https://hanthebot.dev). Built with Astro, same visual system as
the public site, no content collections, no runtime dependencies.

This replaces the old nginx `301` redirect at the apex. The page is intentionally
small: one landing page plus a custom 404.

**Start here: [`MANUAL.md`](MANUAL.md)** — local workflow, editing rules, first
deployment, the nginx cutover, rollback and troubleshooting.

Quick reference:

```bash
npm install            # once
npm run dev            # live reload on 127.0.0.1:4321
npm run build          # deploy-ready output → dist/ (absolute URLs)
npm run build:preview  # relative URLs, for the mgmt directory viewer
npm run preview        # serve dist/ locally
```

Preview through the directory viewer after `npm run build:preview`:

```text
https://mgmt.hanthebot.com/s/webpage/hanthebot-com/dist/
```

**Live:** nginx serves this repo's `dist/` directly at `https://hanthebot.com`.
Run `npm run build` and the live page is updated; no copy step and no nginx
reload for content changes. See `MANUAL.md` §0 for the exact paths.

What is here:

```text
hanthebot-com/
├── astro.config.mjs                  # canonical site URL
├── src/config.ts                     # name, title, public links
├── src/layouts/Base.astro            # head, nav, footer, theme toggle
├── src/pages/index.astro             # the landing page
├── src/pages/404.astro               # custom not-found page
├── src/styles/global.css             # the whole look
├── public/                           # favicon.svg, robots.txt
├── scripts/make-relative.mjs         # preview-build path rewriting
├── deploy/nginx-hanthebot.com.conf.example
└── MANUAL.md
```

This project is deliberately separate from `../hanthebot-dev/`. They share a
design language, not a build: different domain, different deploy target, and no
need for collections, RSS or a sitemap here.
