Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 29 additions & 23 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,44 +3,50 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Not found | SpaceCorps</title>
<meta name="description" content="Page not found." />
<title>Page not found | SpaceCorps</title>
<meta name="description" content="This page does not exist. Head back to the SpaceCorps home page." />
<meta name="robots" content="noindex" />
<link rel="canonical" href="https://spacecorps.tech/404.html" />
<meta property="og:title" content="Not found | SpaceCorps" />
<meta property="og:description" content="Page not found." />
<meta name="theme-color" content="#04070a" />
<meta property="og:site_name" content="SpaceCorps" />
<meta property="og:title" content="Page not found | SpaceCorps" />
<meta property="og:description" content="This page does not exist. Head back to the SpaceCorps home page." />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://spacecorps.tech/404.html" />
<meta property="og:image" content="https://spacecorps.tech/og-image.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="https://spacecorps.tech/og-image.png" />
<link rel="icon" href="/favicon.ico" sizes="32x32" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<link rel="alternate" type="text/markdown" href="/index.md" />
<script src="/theme.js"></script>
<link rel="stylesheet" href="/site.css" />
<link rel="preload" href="/fonts/geist-latin.woff2" as="font" type="font/woff2" crossorigin />
<script>try{var t=localStorage.getItem("sc-theme");if(t?t==="dark":matchMedia("(prefers-color-scheme: dark)").matches)document.documentElement.classList.add("dark")}catch(e){}</script>
<script type="module" src="/src/main.js"></script>
</head>
<body>
<a class="skip" href="#main">Skip to content</a>
<header class="nav"><div class="wrap">
<a class="brand" href="/">Space<b>Corps</b></a>
<a class="l" href="/#products">Products</a>
<a class="l" href="/#open-source">Open source</a>
<a class="l" href="/#design-system">Design system</a>
<a class="l" href="/blog/">Blog</a>
<a class="l" href="/about.html">About</a>
<a class="l" href="/contact.html">Contact</a>
<a class="brand" href="/" aria-label="SpaceCorps home"><svg viewBox="0 0 64 64" aria-hidden="true"><defs><mask id="crescent"><rect width="64" height="64" fill="#fff"/><circle cx="39" cy="27" r="19" fill="#000"/></mask></defs><circle cx="29" cy="35" r="23" fill="#00cc92" mask="url(#crescent)"/><path d="M5 47C21 60 52 53 58 23" fill="none" stroke="#00cc92" stroke-width="3.4" stroke-linecap="round"/><circle cx="57" cy="17" r="5.6" fill="currentColor"/></svg><span>Space<b>Corps</b></span></a>
<nav class="nav-links" aria-label="Main"><a href="/#products">Products</a><a href="/#open-source">Open source</a><a href="/#design-system">Design system</a><a href="/blog/">Blog</a><a href="/about.html">About</a><a href="/contact.html">Contact</a></nav>
<a class="btn sm cta-sm" href="https://play.spacecorps.tech/">Play free</a>
<button class="icon-btn theme-btn" type="button" aria-label="Toggle dark mode"><svg class="sun" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" aria-hidden="true"><circle cx="12" cy="12" r="4"/><path d="M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"/></svg><svg class="moon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z"/></svg></button>
<details class="menu"><summary class="icon-btn" aria-label="Menu"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" aria-hidden="true"><path d="M4 7h16M4 12h16M4 17h16"/></svg></summary><nav class="panel" aria-label="Main (mobile)"><a href="/#products">Products</a><a href="/#open-source">Open source</a><a href="/#design-system">Design system</a><a href="/blog/">Blog</a><a href="/about.html">About</a><a href="/contact.html">Contact</a><a href="https://play.spacecorps.tech/">Play SpaceCorps 2027</a></nav></details>
</div></header>
<main id="main" class="wrap">
<section class="hero"><h1>Page not found</h1><p class="lead">That page does not exist. Try the <a href="/">home page</a>, the <a href="/blog/">blog</a> or <a href="https://github.com/SpaceCorps">our repositories</a>.</p></section>
<main id="main">
<div class="wrap notfound"><div class="code" aria-hidden="true">4<span>0</span>4</div><h1 style="font-size:clamp(1.6rem,3vw,2.4rem);letter-spacing:-.03em;margin:8px 0 12px">Lost in space.</h1><p class="lead" style="color:var(--muted-foreground);max-width:32em">That page is not here. It may have moved, or the link may be wrong.</p><div style="display:flex;flex-wrap:wrap;gap:12px;margin-top:28px"><a class="btn" href="/">Back to home</a><a class="btn o" href="/blog/">Read the blog</a><a class="btn o" href="/#open-source">Browse the tools</a></div></div>
</main>
<footer><div class="wrap">
<span class="sp">&copy; 2026 SpaceCorps Technology AB</span>
<a href="https://github.com/SpaceCorps">GitHub</a>
<a href="https://storybook.spacecorps.tech">Storybook</a>
<a href="/privacy.html">Privacy</a>
<a href="/contact.html">Contact</a>
<a href="mailto:hello@spacecorpstechnology.com">hello@spacecorpstechnology.com</a>
<footer class="site"><div class="wrap">
<div class="foot">
<div class="about"><a class="brand" href="/" aria-label="SpaceCorps home"><svg viewBox="0 0 64 64" aria-hidden="true"><defs><mask id="crescent"><rect width="64" height="64" fill="#fff"/><circle cx="39" cy="27" r="19" fill="#000"/></mask></defs><circle cx="29" cy="35" r="23" fill="#00cc92" mask="url(#crescent)"/><path d="M5 47C21 60 52 53 58 23" fill="none" stroke="#00cc92" stroke-width="3.4" stroke-linecap="round"/><circle cx="57" cy="17" r="5.6" fill="currentColor"/></svg><span>Space<b>Corps</b></span></a><p>SpaceCorps Technology AB. A small Swedish studio building games, a game engine, business software and developer tools in Rust.</p></div>
<div><p class="fh">Products</p><ul><li><a href="https://play.spacecorps.tech/">SpaceCorps 2027</a></li><li><a href="https://space3d.dev/">Space3d</a></li><li><a href="https://obop.dev/">obop</a></li><li><a href="https://github.com/SpaceCorps/swindle-releases/releases">Swindle</a></li></ul></div>
<div><p class="fh">Build</p><ul><li><a href="/#open-source">Rust CLI tools</a></li><li><a href="https://storybook.spacecorps.tech">Design system</a></li><li><a href="https://github.com/SpaceCorps">GitHub</a></li><li><a href="/blog/">Blog</a></li></ul></div>
<div><p class="fh">Company</p><ul><li><a href="/about.html">About</a></li><li><a href="/contact.html">Contact</a></li><li><a href="/privacy.html">Privacy</a></li></ul></div>
<div><p class="fh">Reach us</p><ul><li><a href="mailto:hello@spacecorpstechnology.com">hello@spacecorpstechnology.com</a></li><li><a href="mailto:security@spacecorpstechnology.com">security@spacecorpstechnology.com</a></li><li><a href="https://discord.gg/VjW67tkrTb">Discord</a></li></ul></div>
</div>
<div class="legal"><span>&copy; 2026 SpaceCorps Technology AB, Sweden</span><span>No cookies. No trackers. No third-party requests.</span></div>
</div></footer>
<script src="/wave.js" defer></script>
</body>
</html>
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,18 @@ The company site of SpaceCorps Technology AB: <https://spacecorps.tech>. Static

| Path | What |
| --- | --- |
| `index.html`, `about.html`, `contact.html`, `privacy.html`, `404.html` | The pages. Generated by `python scripts/_pages.py` (shared header/footer in `scripts/_gen.py`); edit there, regenerate, commit both. |
| `public/` | Copied to the site root as is: `blog/`, `site.css`, `site-base.css`, `tokens.css`, `theme.js`, `wave.js`, icons, and the **agent-facing files** below. `public/fonts/` is generated at build (Geist, from `@fontsource-variable`) and git-ignored. |
| `index.html`, `about.html`, `contact.html`, `privacy.html`, `404.html`, `blog/*.html` | The pages. **Generated** by `scripts/gen.mjs` (shell, home sections, inner pages) from `data/` and `content/blog/`; edit those, run `pnpm run gen`, commit both. Vite+ builds them as entry points. |
| `src/` | `main.js` (theme switch, CLI search, starfield, click wave) and `styles/` (`site.css`, vendored `tokens.css`). Bundled, minified and hashed by Vite+. |
| `data/` | `clis.json` (the 24 CLI directory entries) and `stats.json` (real GitHub numbers; refresh with `pnpm run stats`, needs the `gh` CLI). |
| `public/` | Copied to the site root as is: `img/` (game art as webp), `blog/media`, icons, og-image, and the **agent-facing files** below. `public/fonts/` is generated at build (Geist, from `@fontsource-variable`) and git-ignored. |
| `deploy/Caddyfile` | Caddy config: `/healthz`, text/markdown content types, caching, 404 page. |
| `Dockerfile` | Node 24 builds with `pnpm`, Caddy serves `dist/` on port 80. |
| `.github/workflows/docker.yml` | Builds the image on every PR and push to `main` and smoke-tests `/healthz`, `/`, `/llms.txt` and a 404. |
| `docs/REDIRECTS.md` | Plan for spacecorpstechnology.com, spacecorps.eu and spacecorps.online. |

## Design system

Colours, radii and type come from the SpaceCorps design system, `@spacecorps/components` ([SpaceCorps/storybook](https://github.com/SpaceCorps/storybook), Storybook at <https://storybook.spacecorps.tech>). `public/tokens.css` is its `:root` and `.dark` token blocks, vendored; refresh with `pnpm run sync-tokens`. Dark mode follows the visitor's system setting (`theme.js` toggles the `.dark` class).
Colours, radii and type come from the SpaceCorps design system, `@spacecorps/components` ([SpaceCorps/storybook](https://github.com/SpaceCorps/storybook), Storybook at <https://storybook.spacecorps.tech>). `src/styles/tokens.css` is its `:root` and `.dark` token blocks, vendored; refresh with `pnpm run sync-tokens`. Dark mode follows the visitor's system setting (`src/main.js` toggles the `.dark` class; a manual choice is kept in `localStorage`).

The site does not install the React package: it is a static site with no React components, and the package is `restricted` on GitHub Packages, which would put a token into every build. If a page ever needs a component, follow "Consuming from another SpaceCorps site" in the storybook README (`.npmrc` scope plus a Docker build secret).

Expand All @@ -28,7 +30,8 @@ All served from the site root and maintained only here: `llms.txt`, `index.md` (
```bash
pnpm install
pnpm run dev # vp dev
pnpm run build # fonts + vp build -> dist/
pnpm run build # fonts + gen + vp build -> dist/
pnpm run stats # refresh data/stats.json from GitHub, then regenerate pages
docker build -t spacecorps-tech .
docker run --rm -p 8080:80 spacecorps-tech # http://localhost:8080, health at /healthz
```
Expand Down
Loading
Loading