Website: one static page in the launcher's design, for Railway
website/ holds Horizon's site: the horizon-theme tokens and bundled fonts, the launcher's sidebar, rows, buttons and segmented control, over Horizon's own frozen landscape. The parity table, harness count and roadmap are generated from the README at build time; releases, patch notes, the roadmap and links.json are refreshed in the browser from GitHub, with the build's copy as fallback. The download button picks the newest launcher-v* asset for the visitor's OS. Legal: the Minecraft disclaimer in the hero, footer and 404; no Minecraft logo or wordmark; no game files; the launcher's background (licence unconfirmed) and the screenshots showing it are left out; LEGAL.md lists every asset and its licence. No cookies, analytics or third-party assets. Railway: root directory website, Dockerfile (Node build, Caddy on $PORT with a strict CSP). Checked with Playwright at 360-1920 px and 1250x700 (docs/widths/); Lighthouse 96/100/96/92 on mobile, 100/100/96/92 on desktop. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@@ -0,0 +1,2 @@
|
||||
node_modules/
|
||||
dist/
|
||||
@@ -0,0 +1,37 @@
|
||||
# Serves dist/ on Railway's $PORT. Fingerprinted CSS and JS are cached for a year,
|
||||
# media for a week, and the page itself is always revalidated.
|
||||
{
|
||||
admin off
|
||||
auto_https off
|
||||
persist_config off
|
||||
}
|
||||
|
||||
:{$PORT:8080} {
|
||||
root * /srv
|
||||
encode zstd gzip
|
||||
|
||||
header {
|
||||
X-Content-Type-Options nosniff
|
||||
Referrer-Policy strict-origin-when-cross-origin
|
||||
X-Frame-Options DENY
|
||||
Permissions-Policy "interest-cohort=(), browsing-topics=(), camera=(), microphone=(), geolocation=()"
|
||||
Content-Security-Policy "default-src 'self'; script-src 'self' {$CSP_SCRIPT}; style-src 'self' {$CSP_STYLE}; img-src 'self' data:; font-src 'self'; connect-src https://api.github.com https://raw.githubusercontent.com; frame-ancestors 'none'; base-uri 'self'; form-action 'self'"
|
||||
-Server
|
||||
}
|
||||
@assets path /assets/*
|
||||
header @assets Cache-Control "public, max-age=31536000, immutable"
|
||||
@media path /media/* /fonts/* /background.webp /og.png /favicon* /apple-touch-icon.png
|
||||
header @media Cache-Control "public, max-age=604800"
|
||||
@pages path / /index.html /404.html
|
||||
header @pages Cache-Control "no-cache"
|
||||
@legal path /LEGAL.md /fonts/*.txt
|
||||
header @legal Content-Type "text/plain; charset=utf-8"
|
||||
|
||||
file_server {
|
||||
hide .csp-script .csp-style og.html
|
||||
}
|
||||
handle_errors {
|
||||
rewrite * /404.html
|
||||
file_server
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
# Railway builds this with the service's root directory set to `website`.
|
||||
# Stage 1 renders dist/ from src/ and the README on main (no npm dependencies needed).
|
||||
FROM node:22-alpine AS build
|
||||
WORKDIR /site
|
||||
COPY build.mjs ./
|
||||
COPY src ./src
|
||||
COPY public ./public
|
||||
COPY LEGAL.md ./
|
||||
ARG GITHUB_TOKEN
|
||||
RUN node build.mjs
|
||||
|
||||
# Stage 2 serves it with Caddy on $PORT.
|
||||
FROM caddy:2-alpine
|
||||
COPY Caddyfile /etc/caddy/Caddyfile
|
||||
COPY --from=build /site/dist /srv
|
||||
ENV PORT=8080
|
||||
# The Content-Security-Policy allows the page's inline script and style by the hashes the build wrote.
|
||||
CMD ["sh", "-c", "CSP_SCRIPT=\"$(cat /srv/.csp-script)\" CSP_STYLE=\"$(cat /srv/.csp-style)\" exec caddy run --config /etc/caddy/Caddyfile --adapter caddyfile"]
|
||||
@@ -0,0 +1,74 @@
|
||||
# The website's assets and their licences
|
||||
|
||||
Every file the site serves, where it comes from and the terms it is used under. The build
|
||||
copies this file to `/LEGAL.md` on the site.
|
||||
|
||||
Horizon is not an official Minecraft product. It is not approved by or associated with
|
||||
Mojang or Microsoft. Minecraft is a trademark of Mojang Synergies AB.
|
||||
|
||||
## Code
|
||||
|
||||
| File | Source | Licence |
|
||||
| --- | --- | --- |
|
||||
| `src/*.html`, `src/*.css`, `src/*.js`, `build.mjs`, `serve.mjs`, `scripts/*`, `Caddyfile`, `Dockerfile` | Written for this site | MIT, as the rest of Horizon ([LICENSE](https://github.com/ludovic111/horizon/blob/main/LICENSE)) |
|
||||
|
||||
The site loads no third-party code at runtime: no frameworks, CDNs, analytics, trackers or
|
||||
cookies. The only requests to other hosts are the browser's calls to `api.github.com`
|
||||
(releases and patch notes) and `raw.githubusercontent.com` (the README's roadmap and
|
||||
`launcher/links.json`), both on Horizon's own repository.
|
||||
|
||||
## Fonts
|
||||
|
||||
| File | Source | Licence |
|
||||
| --- | --- | --- |
|
||||
| `public/fonts/Geist-Regular.woff2`, `Geist-Medium.woff2`, `Geist-SemiBold.woff2`, `GeistMono-Regular.woff2` | Geist and Geist Mono, from `crates/horizon-theme/fonts` (converted from TTF to WOFF2) | SIL Open Font License 1.1, shipped as `public/fonts/OFL-Geist.txt` |
|
||||
| `public/fonts/InstrumentSerif-Regular.woff2` | Instrument Serif, from `crates/horizon-theme/fonts` (converted from TTF to WOFF2) | SIL Open Font License 1.1, shipped as `public/fonts/OFL-InstrumentSerif.txt` |
|
||||
|
||||
The fonts are self-hosted; nothing is fetched from a font service.
|
||||
|
||||
## Icons and the social preview
|
||||
|
||||
| File | Source | Licence |
|
||||
| --- | --- | --- |
|
||||
| `public/favicon.svg`, `public/favicon-32.png`, `public/apple-touch-icon.png` | Horizon's logo, `docs/media/logo.svg` (an original drawing of a sunset over blocks) | MIT, Horizon's original work |
|
||||
| `public/og.png` | Rendered by `scripts/shots.mjs` from `public/og.html`: the Instrument Serif wordmark over `public/background.webp` | MIT for the layout; the fonts and background as listed here |
|
||||
|
||||
No Minecraft logo or wordmark appears anywhere on the site, in images or as text styling.
|
||||
GitHub and Discord appear only as plain text links, without their logos.
|
||||
|
||||
## Background
|
||||
|
||||
| File | Source | Licence |
|
||||
| --- | --- | --- |
|
||||
| `public/background.webp` | A crop of the frozen landscape Horizon renders behind its own title screen, cut from the interface-free part of `docs/media/menu-title.png` and blurred further (`scripts/assets.mjs`) | Horizon's rendering of a world generated by Horizon; the textures it draws are Mojang's, from the player's own copy of the game (see Screenshots) |
|
||||
|
||||
The launcher's own background (`launcher/assets/background.jpg`, from backgrounds.supply) is
|
||||
**not** used: its licence is unconfirmed. For the same reason the launcher's screenshots,
|
||||
which show it, are not on the site. To use another background, replace
|
||||
`public/background.webp` (one file; `og.png` is rendered from it).
|
||||
|
||||
## Screenshots
|
||||
|
||||
All captured in Horizon's Rust client, with vanilla resources prepared from the maintainer's
|
||||
own copy of Minecraft: Java Edition 26.3, and no mods or shaders. Converted to WebP at 1600
|
||||
and 800 pixels wide by `scripts/assets.mjs`.
|
||||
|
||||
| Files in `public/media/` | Source | What it shows |
|
||||
| --- | --- | --- |
|
||||
| `menu-title*.webp` | `docs/media/menu-title.png` | Horizon's own title screen (no Minecraft logo or splash text) |
|
||||
| `menu-worlds*.webp` | `docs/media/menu-worlds.png` | Horizon's own world list |
|
||||
| `menu-options*.webp` | `docs/media/menu-options.png` | Horizon's own options screen |
|
||||
| `menu-pause*.webp` | `docs/media/menu-pause.png` | Horizon's own pause screen |
|
||||
| `sunset*.webp`, `village*.webp`, `survival*.webp`, `nether*.webp`, `night*.webp`, `underwater*.webp` | `docs/media/*.jpg` | In-game views; none shows a Mojang logo or splash text |
|
||||
|
||||
Horizon's interface in these images is Horizon's original work (MIT). The block, mob and
|
||||
item textures and the HUD sprites drawn in them belong to Mojang and Microsoft; they are
|
||||
shown as screenshots of the game, as the
|
||||
[Minecraft Usage Guidelines](https://www.minecraft.net/en-us/usage-guidelines) allow for
|
||||
fan websites about the game, with the disclaimer they require. The site offers no game
|
||||
files: players need their own legally obtained copy of Minecraft: Java Edition.
|
||||
|
||||
## Text
|
||||
|
||||
The parity table and the roadmap are generated from Horizon's README, and the patch notes
|
||||
come from Horizon's GitHub releases: Horizon's own text, MIT.
|
||||
@@ -0,0 +1,82 @@
|
||||
# Horizon's website
|
||||
|
||||
One static page in the launcher's design: the tokens of `crates/horizon-theme` (palette,
|
||||
spacing, radii, motion), its bundled fonts, and the launcher's sidebar, rows and buttons.
|
||||
Plain HTML, CSS and JavaScript; no framework and no runtime dependencies.
|
||||
|
||||
## Layout
|
||||
|
||||
```
|
||||
build.mjs renders dist/ (no dependencies)
|
||||
serve.mjs a tiny static server for local checks
|
||||
src/index.html the page, with {{placeholders}} build.mjs fills
|
||||
src/404.html the not-found page
|
||||
src/style.css the design tokens and every style
|
||||
src/main.js download button, patch notes, roadmap, links, nav, tabs, lightbox
|
||||
src/markdown.js a small Markdown renderer (escapes everything), shared by build and page
|
||||
public/ fonts, screenshots, background, icons, og.png: copied as is
|
||||
scripts/assets.mjs rebuilds public/ from the repo (fonts to WOFF2, images to WebP)
|
||||
scripts/shots.mjs Playwright screenshots at every width, and og.png
|
||||
Dockerfile, Caddyfile, railway.json the Railway service
|
||||
LEGAL.md every asset, its source and licence
|
||||
docs/widths/ full-page screenshots at 360–1920 px, a 1250×700 window and the open phone menu
|
||||
```
|
||||
|
||||
## What comes from where
|
||||
|
||||
- **Built in** (`build.mjs`): the parity table, its score, harness count and audit date,
|
||||
and the roadmap, all from `README.md`; the Discord and Sponsor links from
|
||||
`launcher/links.json`; the latest releases, when GitHub answers. Locally these come from
|
||||
the checkout; on Railway, which builds only this folder, from `main` on GitHub. The build
|
||||
fails if the README has no parity table or roadmap, so a broken README never deploys.
|
||||
- **Fetched by the page**: the releases (the download button picks the newest
|
||||
`launcher-v*` release's asset for the visitor's OS, and the three latest game releases'
|
||||
notes are rendered), the roadmap from the raw README on `main`, and `links.json`. Each
|
||||
falls back to what was built in, and the download button to the releases page.
|
||||
|
||||
## Run it locally
|
||||
|
||||
```sh
|
||||
cd website
|
||||
node build.mjs && node serve.mjs # http://localhost:4173
|
||||
```
|
||||
|
||||
Asset and screenshot scripts need the dev dependencies (sharp, wawoff2, Playwright):
|
||||
|
||||
```sh
|
||||
npm install
|
||||
GITHUB_TOKEN=$(gh auth token) node build.mjs # optional token: bakes the releases past the API rate limit
|
||||
npm run assets # after a font, screenshot or logo changes in the repo
|
||||
npm run shots # docs/widths/*.png and public/og.png
|
||||
```
|
||||
|
||||
Line lengths stay between 45 and 80 characters a line from 430 px up; on 360 and 390 px
|
||||
phones the narrowest paragraphs (the roadmap's) fall to about 36–40, which is what 15 px text
|
||||
allows in that width. `npm run shots` also reports horizontal overflow, tap targets under 44 px on touch widths
|
||||
and characters per line, for 360 to 1920 px wide and a 1250×700 window.
|
||||
|
||||
## Railway
|
||||
|
||||
Create a service from the GitHub repo with **root directory `website`**. `railway.json`
|
||||
selects the Dockerfile: a Node stage runs `build.mjs` (reading the README from `main`), and
|
||||
a Caddy stage serves `dist/` on `$PORT` with compression, cache headers, a strict
|
||||
Content-Security-Policy and the 404 page. Its watch patterns also redeploy when the README
|
||||
or `launcher/links.json` change on main. No variables are needed; an optional
|
||||
`GITHUB_TOKEN` (read-only, public repos) lets the build bake the releases even when
|
||||
GitHub's anonymous rate limit is hit.
|
||||
|
||||
## The background
|
||||
|
||||
`public/background.webp` is Horizon's own frozen landscape, cut from the interface-free part
|
||||
of `docs/media/menu-title.png`. The launcher's prismal background is not used, and the
|
||||
launcher's screenshots are left out because they show it: its licence (backgrounds.supply)
|
||||
is unconfirmed. The atmosphere is one replaceable file; see LEGAL.md.
|
||||
|
||||
## Rules the site keeps
|
||||
|
||||
- The disclaimer, "Not an official Minecraft product. Not approved by or associated with
|
||||
Mojang or Microsoft.", is in the hero, the footer and the 404 page.
|
||||
- No Minecraft logo or wordmark; "Minecraft" appears only descriptively ("for Minecraft:
|
||||
Java Edition 26.3"). No game files are offered or linked.
|
||||
- Parity is worded as the README words it: 100% of what the harnesses compare.
|
||||
- No cookies, analytics, trackers or third-party fonts and scripts.
|
||||
@@ -0,0 +1,185 @@
|
||||
// Builds the site into dist/: src/index.html with the README's parity table, roadmap and
|
||||
// the community links baked in, plus public/ and fingerprinted CSS and JS. No dependencies.
|
||||
//
|
||||
// Railway builds only website/, so the README and links.json come from the repo when they
|
||||
// are next to it (a local checkout) and from main on GitHub otherwise. The latest releases
|
||||
// are baked in when GitHub answers, so the page reads well before (or without) JavaScript.
|
||||
import { readFile, writeFile, mkdir, rm, cp } from "node:fs/promises";
|
||||
import { existsSync } from "node:fs";
|
||||
import { createHash } from "node:crypto";
|
||||
import { join, dirname } from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { markdown, inline, section, escape } from "./src/markdown.js";
|
||||
|
||||
const site = dirname(fileURLToPath(import.meta.url));
|
||||
const dist = join(site, "dist");
|
||||
const REPO = "ludovic111/horizon";
|
||||
const RAW = `https://raw.githubusercontent.com/${REPO}/main/`;
|
||||
const DEFAULT_LINKS = { discord: "https://discord.gg/HcTeMZxe5E", sponsor: "https://github.com/sponsors/ludovic111" };
|
||||
|
||||
async function repoFile(path) {
|
||||
const local = join(site, "..", path);
|
||||
if (existsSync(local)) return [await readFile(local, "utf8"), "the checkout"];
|
||||
const res = await fetch(RAW + path, { signal: AbortSignal.timeout(15000) });
|
||||
if (!res.ok) throw new Error(`${path}: ${res.status} from GitHub`);
|
||||
return [await res.text(), "main on GitHub"];
|
||||
}
|
||||
|
||||
// The README: required, a site with a stale or missing parity table is worse than no deploy.
|
||||
const [readme, readmeFrom] = await repoFile("README.md");
|
||||
|
||||
let links = { ...DEFAULT_LINKS };
|
||||
try {
|
||||
const parsed = JSON.parse((await repoFile("launcher/links.json"))[0]);
|
||||
for (const key of Object.keys(links)) if (typeof parsed[key] === "string") links[key] = parsed[key].trim();
|
||||
} catch (e) {
|
||||
console.warn(`links.json: ${e.message}; using the built-in links`);
|
||||
}
|
||||
|
||||
let releases = [];
|
||||
try {
|
||||
const res = await fetch(`https://api.github.com/repos/${REPO}/releases?per_page=30`, {
|
||||
// An optional token (a Railway variable, or `gh auth token` locally) lifts the rate limit.
|
||||
headers: { Accept: "application/vnd.github+json", ...(process.env.GITHUB_TOKEN ? { Authorization: `Bearer ${process.env.GITHUB_TOKEN}` } : {}) },
|
||||
signal: AbortSignal.timeout(15000),
|
||||
});
|
||||
if (res.ok) releases = (await res.json()).filter((r) => !r.draft);
|
||||
else console.warn(`releases: ${res.status} from GitHub; the page will load them itself`);
|
||||
} catch (e) {
|
||||
console.warn(`releases: ${e.message}; the page will load them itself`);
|
||||
}
|
||||
|
||||
// --- The parity table ------------------------------------------------------------------
|
||||
|
||||
const status = section(readme, "Project status") ?? "";
|
||||
const parityHeading = (status.match(/^###\s+(Java parity:\s*[\d.]+%)/m) || [])[1];
|
||||
if (!parityHeading) throw new Error("README: no '### Java parity: N%' heading under 'Project status'");
|
||||
const percent = parityHeading.match(/[\d.]+%/)[0];
|
||||
const parityBody = section(readme, parityHeading) ?? "";
|
||||
const rows = parityBody
|
||||
.split("\n")
|
||||
.filter((l) => /^\|/.test(l) && !/^\|\s*-/.test(l))
|
||||
.map((l) =>
|
||||
l
|
||||
.replace(/^\|/, "")
|
||||
.replace(/\|\s*$/, "")
|
||||
.split("|")
|
||||
.map((c) => c.trim()),
|
||||
);
|
||||
const [, ...body] = rows; // the first row is the header
|
||||
if (body.length < 5) throw new Error("README: the parity table has fewer than five rows");
|
||||
const harnesses = (readme.match(/all (\d[\d,]*) (?:parity )?harnesses/) || [])[1];
|
||||
if (!harnesses) throw new Error("README: no 'all N harnesses' count");
|
||||
const audited = (parityBody.match(/Last audited\s+(\d{4}-\d{2}-\d{2})/) || [])[1] ?? "";
|
||||
const intro = status.split(/^###/m)[0].trim();
|
||||
|
||||
const scoreLabel = (s) => ({ 0: "Absent", 0.25: "Started", 0.5: "Playable", 0.75: "Mostly complete", 1: "Complete" })[Number(s)] ?? s;
|
||||
const parityRows = body
|
||||
.map(([name, score, gaps]) => {
|
||||
// "None: what matches" reads as the evidence; anything else is a gap and says so.
|
||||
const none = gaps.match(/^None:\s*(.*)$/);
|
||||
const detail = none
|
||||
? `<span class="gap-none">No known gaps.</span> ${inline(none[1].charAt(0).toUpperCase() + none[1].slice(1))}`
|
||||
: inline(gaps);
|
||||
return `<tr>
|
||||
<th scope="row">${inline(name)}</th>
|
||||
<td class="score"><span class="pill${Number(score) === 1 ? " is-full" : ""}">${escape(score)}</span><span class="score-label">${escape(scoreLabel(score))}</span></td>
|
||||
<td>${detail}</td>
|
||||
</tr>`;
|
||||
})
|
||||
.join("\n");
|
||||
|
||||
// --- The roadmap and the latest notes -------------------------------------------------
|
||||
|
||||
const roadmap = section(readme, "Roadmap");
|
||||
if (!roadmap) throw new Error("README: no Roadmap section");
|
||||
|
||||
const isGame = (tag) => /^v\d{4}\.\d{1,2}\.\d{1,2}/.test(tag);
|
||||
const isLauncher = (tag) => tag.startsWith("launcher-v");
|
||||
const game = releases.filter((r) => isGame(r.tag_name)).slice(0, 3);
|
||||
const launcher = releases.find((r) => isLauncher(r.tag_name) && !r.prerelease);
|
||||
|
||||
// --- The page --------------------------------------------------------------------------
|
||||
|
||||
const fingerprint = (text) => createHash("sha256").update(text).digest("hex").slice(0, 10);
|
||||
|
||||
await rm(dist, { recursive: true, force: true });
|
||||
await mkdir(join(dist, "assets"), { recursive: true });
|
||||
await cp(join(site, "public"), dist, { recursive: true });
|
||||
await cp(join(site, "LEGAL.md"), join(dist, "LEGAL.md"));
|
||||
|
||||
const md = await readFile(join(site, "src/markdown.js"), "utf8");
|
||||
const mdName = `markdown.${fingerprint(md)}.js`;
|
||||
await writeFile(join(dist, "assets", mdName), md);
|
||||
const js = (await readFile(join(site, "src/main.js"), "utf8")).replace("./markdown.js", `./${mdName}`);
|
||||
const jsName = `main.${fingerprint(js)}.js`;
|
||||
await writeFile(join(dist, "assets", jsName), js);
|
||||
const css = await readFile(join(site, "src/style.css"), "utf8");
|
||||
// The stylesheet is inlined into the page, so the first paint needs no second request.
|
||||
const cssName = `style.${fingerprint(css)}.css`;
|
||||
await writeFile(join(dist, "assets", cssName), css);
|
||||
const inlineCss = css.replace(/\/\*[\s\S]*?\*\//g, "").replace(/\s*\n\s*/g, "\n").trim();
|
||||
|
||||
const baked = {
|
||||
links,
|
||||
releases: releases.slice(0, 12).map((r) => ({
|
||||
tag_name: r.tag_name,
|
||||
name: r.name,
|
||||
published_at: r.published_at,
|
||||
html_url: r.html_url,
|
||||
prerelease: r.prerelease,
|
||||
body: isGame(r.tag_name) ? r.body : "",
|
||||
assets: r.assets.map((a) => ({ name: a.name, browser_download_url: a.browser_download_url, size: a.size })),
|
||||
})),
|
||||
};
|
||||
|
||||
const notesHtml = game.length
|
||||
? game.map((r, i) => releaseHtml(r, i === 0)).join("\n")
|
||||
: `<p class="section-lede">The release notes could not be loaded here.</p><a class="button secondary" href="https://github.com/${REPO}/releases">Read them on GitHub</a>`;
|
||||
|
||||
function releaseHtml(r, open) {
|
||||
const date = (r.published_at || "").slice(0, 10);
|
||||
return `<details class="release"${open ? " open" : ""}>
|
||||
<summary><span class="release-title">${escape(r.name || r.tag_name)}</span><time datetime="${date}">${date}</time></summary>
|
||||
<div class="prose">${markdown(r.body || "")}<p><a href="${escape(r.html_url)}">Downloads and full notes on GitHub</a></p></div>
|
||||
</details>`;
|
||||
}
|
||||
|
||||
const values = {
|
||||
CSS: `/assets/${cssName}`,
|
||||
STYLE: inlineCss,
|
||||
JS: `/assets/${jsName}`,
|
||||
PERCENT: percent,
|
||||
HARNESSES: harnesses,
|
||||
AUDITED: audited,
|
||||
PARITY_INTRO: markdown(intro),
|
||||
PARITY_ROWS: parityRows,
|
||||
ROADMAP: markdown(roadmap, { shift: 1 }),
|
||||
NOTES: notesHtml,
|
||||
LAUNCHER_VERSION: launcher ? escape(launcher.tag_name.replace("launcher-v", "")) : "",
|
||||
DISCORD: escape(links.discord || DEFAULT_LINKS.discord),
|
||||
SPONSOR: escape(links.sponsor || DEFAULT_LINKS.sponsor),
|
||||
BAKED: JSON.stringify(baked).replace(/</g, "\\u003c"),
|
||||
YEAR: String(new Date().getUTCFullYear()),
|
||||
};
|
||||
|
||||
for (const page of ["index.html", "404.html"]) {
|
||||
let html = await readFile(join(site, "src", page), "utf8");
|
||||
html = html.replace(/\{\{(\w+)\}\}/g, (all, key) => {
|
||||
if (!(key in values)) throw new Error(`${page}: unknown placeholder ${all}`);
|
||||
return values[key];
|
||||
});
|
||||
await writeFile(join(dist, page), html);
|
||||
}
|
||||
|
||||
// The page's inline script (it marks the page as scripted before CSS applies) and its
|
||||
// inlined stylesheet: the Content-Security-Policy in the Caddyfile allows them by hash.
|
||||
const indexHtml = await readFile(join(dist, "index.html"), "utf8");
|
||||
const hashes = (re) => [...new Set([...indexHtml.matchAll(re)].map((m) => `'sha256-${createHash("sha256").update(m[1]).digest("base64")}'`))].join(" ");
|
||||
await writeFile(join(dist, ".csp-script"), hashes(/<script>([\s\S]*?)<\/script>/g));
|
||||
await writeFile(join(dist, ".csp-style"), hashes(/<style>([\s\S]*?)<\/style>/g));
|
||||
|
||||
console.log(
|
||||
`built dist/ from ${readmeFrom}: ${body.length} subsystems, ${percent}, ${harnesses} harnesses, ` +
|
||||
`${game.length} game releases baked${launcher ? `, launcher ${launcher.tag_name}` : ""}`,
|
||||
);
|
||||
|
After Width: | Height: | Size: 1.3 MiB |
|
After Width: | Height: | Size: 1.4 MiB |
|
After Width: | Height: | Size: 1.5 MiB |
|
After Width: | Height: | Size: 405 KiB |
|
After Width: | Height: | Size: 1.5 MiB |
|
After Width: | Height: | Size: 1.5 MiB |
|
After Width: | Height: | Size: 1.6 MiB |
|
After Width: | Height: | Size: 1.7 MiB |
|
After Width: | Height: | Size: 1.7 MiB |
|
After Width: | Height: | Size: 899 KiB |
|
After Width: | Height: | Size: 88 KiB |
|
After Width: | Height: | Size: 932 KiB |
|
After Width: | Height: | Size: 957 KiB |
|
After Width: | Height: | Size: 1.4 MiB |
@@ -0,0 +1,642 @@
|
||||
{
|
||||
"name": "horizon-website",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "horizon-website",
|
||||
"devDependencies": {
|
||||
"playwright": "^1.56.0",
|
||||
"sharp": "^0.34.4",
|
||||
"wawoff2": "^2.0.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@emnapi/runtime": {
|
||||
"version": "1.11.3",
|
||||
"resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.3.tgz",
|
||||
"integrity": "sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"dependencies": {
|
||||
"tslib": "^2.4.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/colour": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/@img/colour/-/colour-1.1.0.tgz",
|
||||
"integrity": "sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-darwin-arm64": {
|
||||
"version": "0.34.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.34.5.tgz",
|
||||
"integrity": "sha512-imtQ3WMJXbMY4fxb/Ndp6HBTNVtWCUI0WdobyheGf5+ad6xX8VIDO8u2xE4qc/fr08CKG/7dDseFtn6M6g/r3w==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"darwin"
|
||||
],
|
||||
"engines": {
|
||||
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-libvips-darwin-arm64": "1.2.4"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-darwin-x64": {
|
||||
"version": "0.34.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.34.5.tgz",
|
||||
"integrity": "sha512-YNEFAF/4KQ/PeW0N+r+aVVsoIY0/qxxikF2SWdp+NRkmMB7y9LBZAVqQ4yhGCm/H3H270OSykqmQMKLBhBJDEw==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"darwin"
|
||||
],
|
||||
"engines": {
|
||||
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-libvips-darwin-x64": "1.2.4"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-libvips-darwin-arm64": {
|
||||
"version": "1.2.4",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.2.4.tgz",
|
||||
"integrity": "sha512-zqjjo7RatFfFoP0MkQ51jfuFZBnVE2pRiaydKJ1G/rHZvnsrHAOcQALIi9sA5co5xenQdTugCvtb1cuf78Vf4g==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "LGPL-3.0-or-later",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"darwin"
|
||||
],
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-libvips-darwin-x64": {
|
||||
"version": "1.2.4",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.2.4.tgz",
|
||||
"integrity": "sha512-1IOd5xfVhlGwX+zXv2N93k0yMONvUlANylbJw1eTah8K/Jtpi15KC+WSiaX/nBmbm2HxRM1gZ0nSdjSsrZbGKg==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "LGPL-3.0-or-later",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"darwin"
|
||||
],
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-libvips-linux-arm": {
|
||||
"version": "1.2.4",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.2.4.tgz",
|
||||
"integrity": "sha512-bFI7xcKFELdiNCVov8e44Ia4u2byA+l3XtsAj+Q8tfCwO6BQ8iDojYdvoPMqsKDkuoOo+X6HZA0s0q11ANMQ8A==",
|
||||
"cpu": [
|
||||
"arm"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "LGPL-3.0-or-later",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-libvips-linux-arm64": {
|
||||
"version": "1.2.4",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.2.4.tgz",
|
||||
"integrity": "sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "LGPL-3.0-or-later",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-libvips-linux-ppc64": {
|
||||
"version": "1.2.4",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.2.4.tgz",
|
||||
"integrity": "sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA==",
|
||||
"cpu": [
|
||||
"ppc64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "LGPL-3.0-or-later",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-libvips-linux-riscv64": {
|
||||
"version": "1.2.4",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.2.4.tgz",
|
||||
"integrity": "sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA==",
|
||||
"cpu": [
|
||||
"riscv64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "LGPL-3.0-or-later",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-libvips-linux-s390x": {
|
||||
"version": "1.2.4",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.2.4.tgz",
|
||||
"integrity": "sha512-qmp9VrzgPgMoGZyPvrQHqk02uyjA0/QrTO26Tqk6l4ZV0MPWIW6LTkqOIov+J1yEu7MbFQaDpwdwJKhbJvuRxQ==",
|
||||
"cpu": [
|
||||
"s390x"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "LGPL-3.0-or-later",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-libvips-linux-x64": {
|
||||
"version": "1.2.4",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.2.4.tgz",
|
||||
"integrity": "sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "LGPL-3.0-or-later",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-libvips-linuxmusl-arm64": {
|
||||
"version": "1.2.4",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.2.4.tgz",
|
||||
"integrity": "sha512-FVQHuwx1IIuNow9QAbYUzJ+En8KcVm9Lk5+uGUQJHaZmMECZmOlix9HnH7n1TRkXMS0pGxIJokIVB9SuqZGGXw==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "LGPL-3.0-or-later",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-libvips-linuxmusl-x64": {
|
||||
"version": "1.2.4",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.2.4.tgz",
|
||||
"integrity": "sha512-+LpyBk7L44ZIXwz/VYfglaX/okxezESc6UxDSoyo2Ks6Jxc4Y7sGjpgU9s4PMgqgjj1gZCylTieNamqA1MF7Dg==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "LGPL-3.0-or-later",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-linux-arm": {
|
||||
"version": "0.34.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.34.5.tgz",
|
||||
"integrity": "sha512-9dLqsvwtg1uuXBGZKsxem9595+ujv0sJ6Vi8wcTANSFpwV/GONat5eCkzQo/1O6zRIkh0m/8+5BjrRr7jDUSZw==",
|
||||
"cpu": [
|
||||
"arm"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"engines": {
|
||||
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-libvips-linux-arm": "1.2.4"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-linux-arm64": {
|
||||
"version": "0.34.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.34.5.tgz",
|
||||
"integrity": "sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"engines": {
|
||||
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-libvips-linux-arm64": "1.2.4"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-linux-ppc64": {
|
||||
"version": "0.34.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.34.5.tgz",
|
||||
"integrity": "sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA==",
|
||||
"cpu": [
|
||||
"ppc64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"engines": {
|
||||
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-libvips-linux-ppc64": "1.2.4"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-linux-riscv64": {
|
||||
"version": "0.34.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.34.5.tgz",
|
||||
"integrity": "sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw==",
|
||||
"cpu": [
|
||||
"riscv64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"engines": {
|
||||
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-libvips-linux-riscv64": "1.2.4"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-linux-s390x": {
|
||||
"version": "0.34.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.34.5.tgz",
|
||||
"integrity": "sha512-nQtCk0PdKfho3eC5MrbQoigJ2gd1CgddUMkabUj+rBevs8tZ2cULOx46E7oyX+04WGfABgIwmMC0VqieTiR4jg==",
|
||||
"cpu": [
|
||||
"s390x"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"engines": {
|
||||
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-libvips-linux-s390x": "1.2.4"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-linux-x64": {
|
||||
"version": "0.34.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.34.5.tgz",
|
||||
"integrity": "sha512-MEzd8HPKxVxVenwAa+JRPwEC7QFjoPWuS5NZnBt6B3pu7EG2Ge0id1oLHZpPJdn3OQK+BQDiw9zStiHBTJQQQQ==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"engines": {
|
||||
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-libvips-linux-x64": "1.2.4"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-linuxmusl-arm64": {
|
||||
"version": "0.34.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.34.5.tgz",
|
||||
"integrity": "sha512-fprJR6GtRsMt6Kyfq44IsChVZeGN97gTD331weR1ex1c1rypDEABN6Tm2xa1wE6lYb5DdEnk03NZPqA7Id21yg==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"engines": {
|
||||
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-libvips-linuxmusl-arm64": "1.2.4"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-linuxmusl-x64": {
|
||||
"version": "0.34.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.34.5.tgz",
|
||||
"integrity": "sha512-Jg8wNT1MUzIvhBFxViqrEhWDGzqymo3sV7z7ZsaWbZNDLXRJZoRGrjulp60YYtV4wfY8VIKcWidjojlLcWrd8Q==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"engines": {
|
||||
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-libvips-linuxmusl-x64": "1.2.4"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-wasm32": {
|
||||
"version": "0.34.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.34.5.tgz",
|
||||
"integrity": "sha512-OdWTEiVkY2PHwqkbBI8frFxQQFekHaSSkUIJkwzclWZe64O1X4UlUjqqqLaPbUpMOQk6FBu/HtlGXNblIs0huw==",
|
||||
"cpu": [
|
||||
"wasm32"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT",
|
||||
"optional": true,
|
||||
"dependencies": {
|
||||
"@emnapi/runtime": "^1.7.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-win32-arm64": {
|
||||
"version": "0.34.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.34.5.tgz",
|
||||
"integrity": "sha512-WQ3AgWCWYSb2yt+IG8mnC6Jdk9Whs7O0gxphblsLvdhSpSTtmu69ZG1Gkb6NuvxsNACwiPV6cNSZNzt0KPsw7g==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "Apache-2.0 AND LGPL-3.0-or-later",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"win32"
|
||||
],
|
||||
"engines": {
|
||||
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-win32-ia32": {
|
||||
"version": "0.34.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.34.5.tgz",
|
||||
"integrity": "sha512-FV9m/7NmeCmSHDD5j4+4pNI8Cp3aW+JvLoXcTUo0IqyjSfAZJ8dIUmijx1qaJsIiU+Hosw6xM5KijAWRJCSgNg==",
|
||||
"cpu": [
|
||||
"ia32"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "Apache-2.0 AND LGPL-3.0-or-later",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"win32"
|
||||
],
|
||||
"engines": {
|
||||
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-win32-x64": {
|
||||
"version": "0.34.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.34.5.tgz",
|
||||
"integrity": "sha512-+29YMsqY2/9eFEiW93eqWnuLcWcufowXewwSNIT6UwZdUUCrM3oFjMWH/Z6/TMmb4hlFenmfAVbpWeup2jryCw==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "Apache-2.0 AND LGPL-3.0-or-later",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"win32"
|
||||
],
|
||||
"engines": {
|
||||
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
}
|
||||
},
|
||||
"node_modules/argparse": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
|
||||
"integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
|
||||
"dev": true,
|
||||
"license": "Python-2.0"
|
||||
},
|
||||
"node_modules/detect-libc": {
|
||||
"version": "2.1.2",
|
||||
"resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",
|
||||
"integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"engines": {
|
||||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/playwright": {
|
||||
"version": "1.64.0",
|
||||
"resolved": "https://registry.npmjs.org/playwright/-/playwright-1.64.0.tgz",
|
||||
"integrity": "sha512-kVzTnYFYEyQ9RGzBjNCd2+yEqWmVbxl3AHPynv3qQ6JTjv4a+kwRcnqQwIpuP3NnrnIrE/Q6wWAIAvMfIE2/Yg==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"playwright-core": "1.64.0"
|
||||
},
|
||||
"bin": {
|
||||
"playwright": "cli.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20"
|
||||
}
|
||||
},
|
||||
"node_modules/playwright-core": {
|
||||
"version": "1.64.0",
|
||||
"resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.64.0.tgz",
|
||||
"integrity": "sha512-T9r+MZkTECl2+oUcZ26YgZzTrYidTsIhYYkJix+6iDOymOb1FB2RLLSOxRGnZGv5DStt+aduIVbt+E8WygXYpg==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"bin": {
|
||||
"playwright-core": "cli.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20"
|
||||
}
|
||||
},
|
||||
"node_modules/semver": {
|
||||
"version": "7.8.5",
|
||||
"resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",
|
||||
"integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",
|
||||
"dev": true,
|
||||
"license": "ISC",
|
||||
"bin": {
|
||||
"semver": "bin/semver.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=10"
|
||||
}
|
||||
},
|
||||
"node_modules/sharp": {
|
||||
"version": "0.34.5",
|
||||
"resolved": "https://registry.npmjs.org/sharp/-/sharp-0.34.5.tgz",
|
||||
"integrity": "sha512-Ou9I5Ft9WNcCbXrU9cMgPBcCK8LiwLqcbywW3t4oDV37n1pzpuNLsYiAV8eODnjbtQlSDwZ2cUEeQz4E54Hltg==",
|
||||
"dev": true,
|
||||
"hasInstallScript": true,
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@img/colour": "^1.0.0",
|
||||
"detect-libc": "^2.1.2",
|
||||
"semver": "^7.7.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-darwin-arm64": "0.34.5",
|
||||
"@img/sharp-darwin-x64": "0.34.5",
|
||||
"@img/sharp-libvips-darwin-arm64": "1.2.4",
|
||||
"@img/sharp-libvips-darwin-x64": "1.2.4",
|
||||
"@img/sharp-libvips-linux-arm": "1.2.4",
|
||||
"@img/sharp-libvips-linux-arm64": "1.2.4",
|
||||
"@img/sharp-libvips-linux-ppc64": "1.2.4",
|
||||
"@img/sharp-libvips-linux-riscv64": "1.2.4",
|
||||
"@img/sharp-libvips-linux-s390x": "1.2.4",
|
||||
"@img/sharp-libvips-linux-x64": "1.2.4",
|
||||
"@img/sharp-libvips-linuxmusl-arm64": "1.2.4",
|
||||
"@img/sharp-libvips-linuxmusl-x64": "1.2.4",
|
||||
"@img/sharp-linux-arm": "0.34.5",
|
||||
"@img/sharp-linux-arm64": "0.34.5",
|
||||
"@img/sharp-linux-ppc64": "0.34.5",
|
||||
"@img/sharp-linux-riscv64": "0.34.5",
|
||||
"@img/sharp-linux-s390x": "0.34.5",
|
||||
"@img/sharp-linux-x64": "0.34.5",
|
||||
"@img/sharp-linuxmusl-arm64": "0.34.5",
|
||||
"@img/sharp-linuxmusl-x64": "0.34.5",
|
||||
"@img/sharp-wasm32": "0.34.5",
|
||||
"@img/sharp-win32-arm64": "0.34.5",
|
||||
"@img/sharp-win32-ia32": "0.34.5",
|
||||
"@img/sharp-win32-x64": "0.34.5"
|
||||
}
|
||||
},
|
||||
"node_modules/tslib": {
|
||||
"version": "2.8.1",
|
||||
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
|
||||
"integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
|
||||
"dev": true,
|
||||
"license": "0BSD",
|
||||
"optional": true
|
||||
},
|
||||
"node_modules/wawoff2": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/wawoff2/-/wawoff2-2.0.1.tgz",
|
||||
"integrity": "sha512-r0CEmvpH63r4T15ebFqeOjGqU4+EgTx4I510NtK35EMciSdcTxCw3Byy3JnBonz7iyIFZ0AbVo0bbFpEVuhCYA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"argparse": "^2.0.1"
|
||||
},
|
||||
"bin": {
|
||||
"woff2_compress.js": "bin/woff2_compress.js",
|
||||
"woff2_decompress.js": "bin/woff2_decompress.js"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "horizon-website",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"description": "horizon's website: a static page in the launcher's design",
|
||||
"scripts": {
|
||||
"build": "node build.mjs",
|
||||
"start": "node serve.mjs",
|
||||
"dev": "node build.mjs && node serve.mjs",
|
||||
"assets": "node scripts/assets.mjs",
|
||||
"shots": "node scripts/shots.mjs"
|
||||
},
|
||||
"devDependencies": {
|
||||
"sharp": "^0.34.4",
|
||||
"wawoff2": "^2.0.1",
|
||||
"playwright": "^1.56.0"
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 7.6 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
@@ -0,0 +1,62 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
|
||||
<title>Horizon</title>
|
||||
<defs>
|
||||
<linearGradient id="sky" x1="0" y1="0" x2="0" y2="1">
|
||||
<stop offset="0" stop-color="#0A0F2C"/>
|
||||
<stop offset="0.38" stop-color="#26206A"/>
|
||||
<stop offset="0.62" stop-color="#7C3A88"/>
|
||||
<stop offset="0.78" stop-color="#EE6E5A"/>
|
||||
<stop offset="0.9" stop-color="#FFB25E"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="sun" x1="0" y1="0" x2="0" y2="1">
|
||||
<stop offset="0" stop-color="#FFF6CF"/>
|
||||
<stop offset="0.5" stop-color="#FFD272"/>
|
||||
<stop offset="1" stop-color="#FF9A44"/>
|
||||
</linearGradient>
|
||||
<radialGradient id="glow" cx="0.5" cy="0.6" r="0.55">
|
||||
<stop offset="0" stop-color="#FFC874" stop-opacity="0.6"/>
|
||||
<stop offset="0.6" stop-color="#FF8A5C" stop-opacity="0.12"/>
|
||||
<stop offset="1" stop-color="#FF8A5C" stop-opacity="0"/>
|
||||
</radialGradient>
|
||||
<linearGradient id="far" x1="0" y1="0" x2="0" y2="1">
|
||||
<stop offset="0" stop-color="#4A2F7E"/>
|
||||
<stop offset="1" stop-color="#2B1F5E"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="near" x1="0" y1="0" x2="0" y2="1">
|
||||
<stop offset="0" stop-color="#151A45"/>
|
||||
<stop offset="1" stop-color="#080B22"/>
|
||||
</linearGradient>
|
||||
<clipPath id="tile"><rect width="512" height="512" rx="112"/></clipPath>
|
||||
<clipPath id="sunCut"><rect x="0" y="0" width="512" height="352"/></clipPath>
|
||||
<clipPath id="sunDisc"><circle cx="256" cy="300" r="136"/></clipPath>
|
||||
</defs>
|
||||
<g clip-path="url(#tile)">
|
||||
<rect width="512" height="512" fill="url(#sky)"/>
|
||||
<ellipse cx="256" cy="320" rx="300" ry="230" fill="url(#glow)"/>
|
||||
<g clip-path="url(#sunCut)">
|
||||
<circle cx="256" cy="300" r="136" fill="url(#sun)"/>
|
||||
<g clip-path="url(#sunDisc)">
|
||||
<rect x="100" y="262" width="312" height="8" fill="#EE6E5A" opacity="0.5"/>
|
||||
<rect x="100" y="284" width="312" height="11" fill="#EE6E5A" opacity="0.62"/>
|
||||
<rect x="100" y="310" width="312" height="14" fill="#EE6E5A" opacity="0.74"/>
|
||||
</g>
|
||||
</g>
|
||||
<path fill="url(#far)" d="M0 320H64V288H128V320H352V288H416V256H512V512H0Z"/>
|
||||
<path fill="url(#near)" d="M0 384H64V352H192V384H320V352H384V320H448V352H512V512H0Z"/>
|
||||
<g fill="#FFFFFF" opacity="0.07">
|
||||
<rect x="64" y="352" width="4" height="160"/>
|
||||
<rect x="192" y="352" width="4" height="160"/>
|
||||
<rect x="320" y="352" width="4" height="160"/>
|
||||
<rect x="384" y="320" width="4" height="192"/>
|
||||
<rect x="448" y="320" width="4" height="192"/>
|
||||
<rect x="0" y="448" width="512" height="4"/>
|
||||
</g>
|
||||
<rect x="0" y="384" width="64" height="4" fill="#FFB25E" opacity="0.25"/>
|
||||
<rect x="64" y="352" width="128" height="4" fill="#FFB25E" opacity="0.35"/>
|
||||
<rect x="192" y="384" width="128" height="4" fill="#FFB25E" opacity="0.25"/>
|
||||
<rect x="320" y="352" width="64" height="4" fill="#FFB25E" opacity="0.35"/>
|
||||
<rect x="384" y="320" width="64" height="4" fill="#FFB25E" opacity="0.45"/>
|
||||
<rect x="448" y="352" width="64" height="4" fill="#FFB25E" opacity="0.35"/>
|
||||
</g>
|
||||
<rect x="2" y="2" width="508" height="508" rx="110" fill="none" stroke="#FFFFFF" stroke-opacity="0.1" stroke-width="4"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.2 KiB |
@@ -0,0 +1,93 @@
|
||||
Copyright 2024 The Geist Project Authors (https://github.com/vercel/geist-font)
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
This license is copied below, and is also available with a FAQ at:
|
||||
https://openfontlicense.org
|
||||
|
||||
|
||||
-----------------------------------------------------------
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
-----------------------------------------------------------
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||
@@ -0,0 +1,93 @@
|
||||
Copyright 2022 The Instrument Serif Project Authors (https://github.com/Instrument/instrument-serif)
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
This license is copied below, and is also available with a FAQ at:
|
||||
https://scripts.sil.org/OFL
|
||||
|
||||
|
||||
-----------------------------------------------------------
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
-----------------------------------------------------------
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||
|
After Width: | Height: | Size: 9.5 KiB |
|
After Width: | Height: | Size: 27 KiB |
|
After Width: | Height: | Size: 9.3 KiB |
|
After Width: | Height: | Size: 26 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 28 KiB |
|
After Width: | Height: | Size: 9.0 KiB |
|
After Width: | Height: | Size: 26 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 63 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 39 KiB |
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 82 KiB |
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 89 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 56 KiB |
|
After Width: | Height: | Size: 45 KiB |
|
After Width: | Height: | Size: 195 KiB |
@@ -0,0 +1,33 @@
|
||||
<!doctype html>
|
||||
<!-- The social preview, rendered to og.png by scripts/shots.mjs. -->
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="robots" content="noindex">
|
||||
<style>
|
||||
@font-face { font-family: "Instrument Serif"; src: url("/fonts/InstrumentSerif-Regular.woff2"); }
|
||||
@font-face { font-family: "Geist"; src: url("/fonts/Geist-Regular.woff2"); }
|
||||
html, body { margin: 0; width: 1200px; height: 630px; overflow: hidden; background: #111113; color: #e8e8ea; font-family: "Geist"; }
|
||||
.bg { position: absolute; inset: 0; background:
|
||||
linear-gradient(90deg, rgba(17,17,19,.92) 0%, rgba(17,17,19,0) 75%),
|
||||
linear-gradient(180deg, rgba(17,17,19,0) 30%, rgba(17,17,19,.9) 100%),
|
||||
linear-gradient(rgba(17,17,19,.45), rgba(17,17,19,.45)),
|
||||
url("/background.webp") center / cover; }
|
||||
.side { position: absolute; inset: 0 auto 0 0; width: 8px; background: #7c5cc4; }
|
||||
main { position: absolute; left: 96px; top: 150px; right: 96px; }
|
||||
p.eyebrow { margin: 0 0 18px; font-size: 22px; color: #7a7a82; }
|
||||
h1 { margin: 0; font: 400 168px/0.95 "Instrument Serif"; letter-spacing: -0.02em; }
|
||||
p.line { margin: 30px 0 0; font-size: 30px; line-height: 1.4; color: #9a9aa1; max-width: 860px; }
|
||||
footer { position: absolute; left: 96px; right: 96px; bottom: 52px; display: flex; justify-content: space-between; font-size: 18px; color: #7a7a82; border-top: 1px solid #26262a; padding-top: 20px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="bg"></div>
|
||||
<main>
|
||||
<p class="eyebrow">For Minecraft: Java Edition 26.3 · Written in Rust</p>
|
||||
<h1>Horizon</h1>
|
||||
<p class="line">Checked against vanilla by differential harnesses.</p>
|
||||
</main>
|
||||
<footer><span>Not an official Minecraft product. Not approved by or associated with Mojang or Microsoft.</span><span>github.com/ludovic111/horizon</span></footer>
|
||||
</body>
|
||||
</html>
|
||||
|
After Width: | Height: | Size: 409 KiB |
@@ -0,0 +1,2 @@
|
||||
User-agent: *
|
||||
Allow: /
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"$schema": "https://railway.com/railway.schema.json",
|
||||
"build": {
|
||||
"builder": "DOCKERFILE",
|
||||
"dockerfilePath": "Dockerfile",
|
||||
"watchPatterns": ["/website/**", "/README.md", "/launcher/links.json"]
|
||||
},
|
||||
"deploy": {
|
||||
"healthcheckPath": "/",
|
||||
"healthcheckTimeout": 60,
|
||||
"restartPolicyType": "ON_FAILURE",
|
||||
"restartPolicyMaxRetries": 5
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
// Copies the launcher's fonts, background and the repo's screenshots into public/,
|
||||
// converted for the web (woff2, webp in two widths). Run it after any of them change:
|
||||
// `npm run assets`. Its output is committed, because Railway builds only website/.
|
||||
import { mkdir, readFile, writeFile, copyFile } from "node:fs/promises";
|
||||
import { join, dirname } from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import sharp from "sharp";
|
||||
import wawoff2 from "wawoff2";
|
||||
|
||||
const site = join(dirname(fileURLToPath(import.meta.url)), "..");
|
||||
const repo = join(site, "..");
|
||||
const pub = join(site, "public");
|
||||
|
||||
const fonts = [
|
||||
"Geist-Regular.ttf",
|
||||
"Geist-Medium.ttf",
|
||||
"Geist-SemiBold.ttf",
|
||||
"GeistMono-Regular.ttf",
|
||||
"InstrumentSerif-Regular.ttf",
|
||||
];
|
||||
|
||||
// The launcher's screenshots are left out: they show its background, whose licence is
|
||||
// unconfirmed (see LEGAL.md). [source, name]; every image becomes media/<name>.webp and media/<name>-800.webp.
|
||||
export const images = [
|
||||
["docs/media/sunset.jpg", "sunset"],
|
||||
["docs/media/village.jpg", "village"],
|
||||
["docs/media/survival.jpg", "survival"],
|
||||
["docs/media/nether.jpg", "nether"],
|
||||
["docs/media/night.jpg", "night"],
|
||||
["docs/media/underwater.jpg", "underwater"],
|
||||
["docs/media/menu-title.png", "menu-title"],
|
||||
["docs/media/menu-worlds.png", "menu-worlds"],
|
||||
["docs/media/menu-options.png", "menu-options"],
|
||||
["docs/media/menu-pause.png", "menu-pause"],
|
||||
];
|
||||
|
||||
await mkdir(join(pub, "fonts"), { recursive: true });
|
||||
await mkdir(join(pub, "media"), { recursive: true });
|
||||
|
||||
for (const font of fonts) {
|
||||
const ttf = await readFile(join(repo, "crates/horizon-theme/fonts", font));
|
||||
await writeFile(join(pub, "fonts", font.replace(".ttf", ".woff2")), await wawoff2.compress(ttf));
|
||||
}
|
||||
for (const licence of ["OFL-Geist.txt", "OFL-InstrumentSerif.txt"]) {
|
||||
await copyFile(join(repo, "crates/horizon-theme/fonts", licence), join(pub, "fonts", licence));
|
||||
}
|
||||
|
||||
for (const [source, name] of images) {
|
||||
const input = join(repo, source);
|
||||
await sharp(input).resize({ width: 1600, withoutEnlargement: true }).webp({ quality: 82 }).toFile(join(pub, "media", `${name}.webp`));
|
||||
await sharp(input).resize({ width: 800 }).webp({ quality: 78 }).toFile(join(pub, "media", `${name}-800.webp`));
|
||||
}
|
||||
|
||||
// The atmosphere: the frozen landscape Horizon renders behind its own title screen, cut from
|
||||
// the part of docs/media/menu-title.png that has no interface on it and blurred further.
|
||||
// One file, so it can be replaced.
|
||||
await sharp(join(repo, "docs/media/menu-title.png"))
|
||||
.extract({ left: 600, top: 545, width: 1000, height: 400 })
|
||||
.resize(1600, 900, { fit: "cover" })
|
||||
.blur(10)
|
||||
.webp({ quality: 78 })
|
||||
.toFile(join(pub, "background.webp"));
|
||||
|
||||
// Icons from the project's logo.
|
||||
await copyFile(join(repo, "docs/media/logo.svg"), join(pub, "favicon.svg"));
|
||||
await sharp(join(repo, "docs/media/logo.svg")).resize(180).png().toFile(join(pub, "apple-touch-icon.png"));
|
||||
await sharp(join(repo, "docs/media/logo.svg")).resize(32).png().toFile(join(pub, "favicon-32.png"));
|
||||
|
||||
console.log("assets written to public/");
|
||||
@@ -0,0 +1,109 @@
|
||||
// Full-page screenshots of the built site at every width that matters, plus the social
|
||||
// preview image. Run `npm run build` first; `npm run shots` serves dist/ and writes
|
||||
// docs/widths/*.png (and 390-menu.png, the open menu) and public/og.png (rebuild after).
|
||||
// It also checks each width for horizontal scroll and small tap targets.
|
||||
import { chromium } from "playwright";
|
||||
import { spawn } from "node:child_process";
|
||||
import { mkdir, readdir, readFile, writeFile } from "node:fs/promises";
|
||||
import sharp from "sharp";
|
||||
import { join, dirname } from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
const site = join(dirname(fileURLToPath(import.meta.url)), "..");
|
||||
const port = 4199;
|
||||
const url = `http://localhost:${port}/`;
|
||||
const server = spawn(process.execPath, [join(site, "serve.mjs")], { env: { ...process.env, PORT: String(port) }, stdio: "ignore" });
|
||||
await new Promise((r) => setTimeout(r, 400));
|
||||
|
||||
const widths = [360, 390, 430, 768, 1024, 1180, 1250, 1280, 1366, 1440, 1680, 1920];
|
||||
const sizes = [...widths.map((w) => [w, w < 900 ? 800 : 900]), [1250, 700]];
|
||||
const only = process.argv.slice(2);
|
||||
|
||||
await mkdir(join(site, "docs/widths"), { recursive: true });
|
||||
const browser = await chromium.launch();
|
||||
let problems = 0;
|
||||
|
||||
for (const [width, height] of sizes) {
|
||||
const name = height === 700 ? `${width}x${height}` : `${width}`;
|
||||
if (only.length && !only.includes(name)) continue;
|
||||
const touch = width < 900;
|
||||
const page = await browser.newPage({ viewport: { width, height }, deviceScaleFactor: 1, hasTouch: touch, isMobile: touch });
|
||||
await page.goto(url, { waitUntil: "networkidle" });
|
||||
// Reveal every section, as scrolling would, and let the fades finish.
|
||||
await page.evaluate(async () => {
|
||||
for (let y = 0; y < document.body.scrollHeight; y += 400) {
|
||||
scrollTo({ top: y, behavior: "instant" });
|
||||
await new Promise((r) => setTimeout(r, 30));
|
||||
}
|
||||
scrollTo({ top: 0, behavior: "instant" });
|
||||
});
|
||||
await page.waitForTimeout(800);
|
||||
// A full-page capture draws fixed elements once, at the top; pin the sidebar to the whole
|
||||
// page so the picture shows what a reader sees at every scroll position.
|
||||
if (height !== 700 && !touch) {
|
||||
await page.addStyleTag({ content: `.sidebar { position: absolute; bottom: auto; height: ${await page.evaluate(() => document.documentElement.scrollHeight)}px; }` });
|
||||
}
|
||||
const report = await page.evaluate((touch) => {
|
||||
const out = [];
|
||||
const doc = document.documentElement;
|
||||
if (doc.scrollWidth > innerWidth) out.push(`horizontal scroll: ${doc.scrollWidth} > ${innerWidth}`);
|
||||
for (const el of document.querySelectorAll("body *")) {
|
||||
const r = el.getBoundingClientRect();
|
||||
if (r.width && r.right > innerWidth + 1 && !el.closest(".table-scroll, .lightbox, .sidebar:not(.is-open)")) {
|
||||
out.push(`overflows: ${el.tagName.toLowerCase()}.${el.className} right ${Math.round(r.right)}`);
|
||||
}
|
||||
}
|
||||
if (touch) {
|
||||
for (const el of document.querySelectorAll("a, button, summary")) {
|
||||
if (el.closest(".sidebar:not(.is-open), .lightbox, .skip") || el.closest(".prose, .footer p:not(.footer-links), .row dd:not(.row-action), .table-meta, .parity")) continue;
|
||||
const r = el.getBoundingClientRect();
|
||||
if (r.width && r.height < 44) out.push(`small target: ${el.textContent.trim().slice(0, 30)} (${Math.round(r.height)}px)`);
|
||||
}
|
||||
}
|
||||
// Characters per line of the longest running-text paragraphs.
|
||||
const lengths = [...document.querySelectorAll(".prose p, .lede, .section-lede, .footer p")]
|
||||
.filter((p) => p.textContent.length > 160)
|
||||
.map((p) => {
|
||||
const lh = parseFloat(getComputedStyle(p).lineHeight);
|
||||
const n = Math.round(p.textContent.length / Math.max(1, Math.round(p.getBoundingClientRect().height / lh)));
|
||||
return [n, `${p.parentElement.id || p.parentElement.className}>${p.className || p.tagName}`];
|
||||
})
|
||||
.sort((a, b) => a[0] - b[0]);
|
||||
const [lo, hi] = [lengths[0], lengths[lengths.length - 1]];
|
||||
out.push(`chars per line: ${lo[0]} (${lo[1]})–${hi[0]} (${hi[1]})`);
|
||||
return out.slice(0, 12);
|
||||
}, touch);
|
||||
const issues = report.filter((l) => !l.startsWith("chars"));
|
||||
problems += issues.length;
|
||||
console.log(`${name}: ${issues.length ? issues.join("; ") : "ok"} · ${report.find((l) => l.startsWith("chars"))}`);
|
||||
await page.screenshot({ path: join(site, `docs/widths/${name}.png`), fullPage: height !== 700 });
|
||||
if (width === 390) {
|
||||
await page.click(".menu-button");
|
||||
await page.waitForTimeout(700);
|
||||
await page.screenshot({ path: join(site, "docs/widths/390-menu.png") });
|
||||
}
|
||||
await page.close();
|
||||
}
|
||||
|
||||
if (!only.length || only.includes("og")) {
|
||||
const page = await browser.newPage({ viewport: { width: 1200, height: 630 } });
|
||||
await page.goto(`${url}og.html`, { waitUntil: "networkidle" });
|
||||
await page.waitForTimeout(700);
|
||||
await page.screenshot({ path: join(site, "public/og.png") });
|
||||
await page.close();
|
||||
}
|
||||
|
||||
await browser.close();
|
||||
server.kill();
|
||||
|
||||
// Keep the committed screenshots small: losslessly recompressed (a palette loses the 1px dividers).
|
||||
for (const dir of ["docs/widths"]) {
|
||||
for (const file of (await readdir(join(site, dir))).filter((f) => f.endsWith(".png"))) {
|
||||
const path = join(site, dir, file);
|
||||
await writeFile(path, await sharp(await readFile(path)).png({ compressionLevel: 9, adaptiveFiltering: true }).toBuffer());
|
||||
}
|
||||
}
|
||||
if (problems) {
|
||||
console.log(`${problems} problems`);
|
||||
process.exitCode = 1;
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
// A dependency-free static server for dist/, for local checks (`npm run dev`).
|
||||
// Railway uses Caddy instead (see Dockerfile).
|
||||
import { createServer } from "node:http";
|
||||
import { readFile, stat } from "node:fs/promises";
|
||||
import { join, extname, normalize } from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
const root = join(fileURLToPath(new URL(".", import.meta.url)), "dist");
|
||||
const types = { ".html": "text/html; charset=utf-8", ".css": "text/css", ".js": "text/javascript", ".webp": "image/webp", ".png": "image/png", ".svg": "image/svg+xml", ".woff2": "font/woff2", ".txt": "text/plain; charset=utf-8", ".md": "text/plain; charset=utf-8", ".json": "application/json" };
|
||||
const port = Number(process.env.PORT) || 4173;
|
||||
|
||||
createServer(async (req, res) => {
|
||||
let path = normalize(decodeURIComponent(new URL(req.url, "http://x").pathname)).replace(/^(\.\.[/\\])+/, "");
|
||||
if (path.endsWith("/")) path += "index.html";
|
||||
let file = join(root, path);
|
||||
let status = 200;
|
||||
try {
|
||||
if (!(await stat(file)).isFile()) throw 0;
|
||||
} catch {
|
||||
file = join(root, "404.html");
|
||||
status = 404;
|
||||
}
|
||||
res.writeHead(status, { "Content-Type": types[extname(file)] || "application/octet-stream" });
|
||||
res.end(await readFile(file));
|
||||
}).listen(port, () => console.log(`http://localhost:${port}`));
|
||||
@@ -0,0 +1,22 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Not found · Horizon</title>
|
||||
<meta name="robots" content="noindex">
|
||||
<meta name="theme-color" content="#111113">
|
||||
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
||||
<link rel="stylesheet" href="{{CSS}}">
|
||||
</head>
|
||||
<body class="lost">
|
||||
<div class="atmosphere" aria-hidden="true"></div>
|
||||
<main id="main" class="lost-main">
|
||||
<p class="eyebrow">404</p>
|
||||
<h1>Not here</h1>
|
||||
<p class="lede">This page doesn't exist. The rest of Horizon is one page away.</p>
|
||||
<div class="actions"><a class="button primary large" href="/">Back to Horizon</a></div>
|
||||
<p class="disclaimer-strong">Not an official Minecraft product. Not approved by or associated with Mojang or Microsoft.</p>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,203 @@
|
||||
<!doctype html>
|
||||
<html lang="en" class="no-js">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
||||
<title>Horizon: a Rust rewrite for Minecraft: Java Edition 26.3</title>
|
||||
<meta name="description" content="Horizon is an unofficial Rust rewrite of the Minecraft: Java Edition 26.3 client and game logic, checked against vanilla by {{HARNESSES}} differential harnesses. Not an official Minecraft product.">
|
||||
<meta name="theme-color" content="#111113">
|
||||
<meta name="color-scheme" content="dark">
|
||||
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
||||
<link rel="icon" href="/favicon-32.png" sizes="32x32" type="image/png">
|
||||
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:site_name" content="Horizon">
|
||||
<meta property="og:title" content="Horizon">
|
||||
<meta property="og:description" content="An unofficial Rust rewrite for Minecraft: Java Edition 26.3, checked against vanilla by {{HARNESSES}} differential harnesses.">
|
||||
<meta property="og:image" content="/og.png">
|
||||
<meta property="og:image:width" content="1200">
|
||||
<meta property="og:image:height" content="630">
|
||||
<meta property="og:image:alt" content="Horizon, in Instrument Serif, over a dark frozen landscape">
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<link rel="preload" href="/fonts/InstrumentSerif-Regular.woff2" as="font" type="font/woff2" crossorigin>
|
||||
<link rel="preload" href="/fonts/Geist-Regular.woff2" as="font" type="font/woff2" crossorigin>
|
||||
<link rel="preload" href="/media/menu-title.webp" as="image" type="image/webp" imagesrcset="/media/menu-title-800.webp 800w, /media/menu-title.webp 1600w" imagesizes="(min-width: 1100px) 980px, 92vw">
|
||||
<style>{{STYLE}}</style>
|
||||
<script>document.documentElement.classList.replace("no-js", "js")</script>
|
||||
<script type="module" src="{{JS}}"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="atmosphere" aria-hidden="true"></div>
|
||||
<a class="skip" href="#main">Skip to the content</a>
|
||||
|
||||
<header class="topbar">
|
||||
<a class="wordmark" href="#overview">Horizon</a>
|
||||
<button class="menu-button" type="button" aria-expanded="false" aria-controls="nav">Menu</button>
|
||||
</header>
|
||||
|
||||
<aside class="sidebar">
|
||||
<a class="wordmark" href="#overview">Horizon</a>
|
||||
<nav id="nav" aria-label="Sections">
|
||||
<span class="nav-selection" aria-hidden="true"></span>
|
||||
<a href="#overview">Overview</a>
|
||||
<a href="#about">What it is</a>
|
||||
<a href="#screenshots">Screenshots</a>
|
||||
<a href="#parity">Parity</a>
|
||||
<a href="#patch-notes">Patch notes</a>
|
||||
<a href="#next">What's next</a>
|
||||
<a href="#community">Community</a>
|
||||
</nav>
|
||||
<div class="sidebar-foot">
|
||||
<a href="https://github.com/ludovic111/horizon">GitHub</a>
|
||||
<span data-launcher-version>{{LAUNCHER_VERSION}}</span>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<main id="main">
|
||||
<section id="overview" class="hero" aria-labelledby="hero-title">
|
||||
<p class="eyebrow">For Minecraft: Java Edition 26.3 <span aria-hidden="true">·</span> Written in Rust</p>
|
||||
<h1 id="hero-title">Horizon</h1>
|
||||
<p class="lede">A rewrite of the Java Edition client and its game logic in Rust, checked against the game itself with differential tests.</p>
|
||||
<div class="actions">
|
||||
<a class="button primary large" id="download" href="https://github.com/ludovic111/horizon/releases?q=launcher-v&expanded=true">Download the launcher</a>
|
||||
<a class="button secondary large" href="https://github.com/ludovic111/horizon">GitHub</a>
|
||||
</div>
|
||||
<p class="download-meta" id="download-meta">Linux x86-64, macOS on Apple Silicon and Windows x64. The launcher installs and updates Horizon.</p>
|
||||
|
||||
<dl class="rows">
|
||||
<div class="row">
|
||||
<dt>Parity</dt>
|
||||
<dd>Every subsystem matches vanilla in all {{HARNESSES}} harnesses: {{PERCENT}} of what the harnesses compare.</dd>
|
||||
</div>
|
||||
<div class="row">
|
||||
<dt>You need</dt>
|
||||
<dd>Your own, legally obtained copy of Minecraft: Java Edition 26.3. Horizon contains no Minecraft code, assets or data.</dd>
|
||||
</div>
|
||||
<div class="row">
|
||||
<dt>Not official</dt>
|
||||
<dd class="disclaimer">Not an official Minecraft product. Not approved by or associated with Mojang or Microsoft.</dd>
|
||||
</div>
|
||||
</dl>
|
||||
|
||||
<figure class="shot hero-shot">
|
||||
<img src="/media/menu-title.webp" srcset="/media/menu-title-800.webp 800w, /media/menu-title.webp 1600w" sizes="(min-width: 1100px) 980px, 92vw" width="1600" height="1000" alt="Horizon's title screen: a sidebar, the Horizon title, Singleplayer and Multiplayer buttons and the last world played, over a blurred frozen landscape" fetchpriority="high">
|
||||
</figure>
|
||||
</section>
|
||||
|
||||
<section id="about" class="reveal" aria-labelledby="about-title">
|
||||
<h2 id="about-title">What it is</h2>
|
||||
<div class="prose">
|
||||
<p>Horizon reimplements the Minecraft: Java Edition 26.3 client and its game logic in Rust, one subsystem at a time, and compares each piece with the vanilla game. Each of its {{HARNESSES}} differential harnesses drives the same inputs through Horizon and through the vanilla client and server, from your own copy of the game, and checks that the outputs are identical.</p>
|
||||
<p>Every subsystem now matches vanilla in every harness that compares it. That is {{PERCENT}} of what the harnesses compare, not proof that nothing else differs: the remaining known differences are listed under <a href="#next">What's next</a>.</p>
|
||||
<p>The native client runs on Linux, macOS on Apple Silicon and Windows. It opens on its own title screen, generates worlds with a Rust port of the vanilla generators and draws them with vanilla's block models, lighting, sky and fog.</p>
|
||||
</div>
|
||||
<dl class="rows">
|
||||
<div class="row">
|
||||
<dt>Your own copy</dt>
|
||||
<dd>Install Java Edition with the official launcher and play 26.3 once. Horizon builds its resources from those files on your machine and never downloads or shares game files.</dd>
|
||||
</div>
|
||||
<div class="row">
|
||||
<dt>For the setup</dt>
|
||||
<dd>Python 3.10 or newer and Java 25 for the one-time resource preparation; a GPU with Vulkan on Linux and Windows, or any Apple Silicon Mac.</dd>
|
||||
</div>
|
||||
<div class="row">
|
||||
<dt>Licence</dt>
|
||||
<dd>Horizon's own code is <a href="https://github.com/ludovic111/horizon/blob/main/LICENSE">MIT</a>. Minecraft is a trademark of Mojang Synergies AB; its code and assets belong to Mojang and Microsoft and are covered by the <a href="https://www.minecraft.net/en-us/eula">Minecraft EULA</a>.</dd>
|
||||
</div>
|
||||
</dl>
|
||||
</section>
|
||||
|
||||
<section id="screenshots" class="reveal wide" aria-labelledby="screenshots-title">
|
||||
<h2 id="screenshots-title">Screenshots</h2>
|
||||
<p class="section-lede">Captured in the Rust client itself, with vanilla assets from the player's own copy and no mods or shaders.</p>
|
||||
<div class="segmented" role="tablist" aria-label="Screenshots">
|
||||
<span class="segment-selection" aria-hidden="true"></span>
|
||||
<button type="button" role="tab" id="tab-menus" aria-controls="panel-menus" aria-selected="true">Menus</button>
|
||||
<button type="button" role="tab" id="tab-world" aria-controls="panel-world" aria-selected="false" tabindex="-1">In game</button>
|
||||
</div>
|
||||
<div class="gallery" id="panel-menus" role="tabpanel" aria-labelledby="tab-menus">
|
||||
<figure class="shot"><button type="button" class="zoom" aria-label="Enlarge: the world list"><img loading="lazy" src="/media/menu-worlds-800.webp" srcset="/media/menu-worlds-800.webp 800w, /media/menu-worlds.webp 1600w" sizes="(min-width: 1100px) 480px, 92vw" width="1600" height="1000" alt="The Singleplayer page: three worlds with their dates and game modes, and Create world and Play buttons"></button><figcaption>Singleplayer</figcaption></figure>
|
||||
<figure class="shot"><button type="button" class="zoom" aria-label="Enlarge: the video options"><img loading="lazy" src="/media/menu-options-800.webp" srcset="/media/menu-options-800.webp 800w, /media/menu-options.webp 1600w" sizes="(min-width: 1100px) 480px, 92vw" width="1600" height="1000" alt="The Video options: fullscreen and VSync switches, and sliders for framerate, GUI scale, brightness and render distance"></button><figcaption>Options</figcaption></figure>
|
||||
<figure class="shot"><button type="button" class="zoom" aria-label="Enlarge: the pause screen"><img loading="lazy" src="/media/menu-pause-800.webp" srcset="/media/menu-pause-800.webp 800w, /media/menu-pause.webp 1600w" sizes="(min-width: 1100px) 480px, 92vw" width="1600" height="1000" alt="The pause screen of the world Glacier Pass, with Back to game, Open to LAN and Save and quit"></button><figcaption>Pause</figcaption></figure>
|
||||
<figure class="shot"><button type="button" class="zoom" aria-label="Enlarge: the title screen"><img loading="lazy" src="/media/menu-title-800.webp" srcset="/media/menu-title-800.webp 800w, /media/menu-title.webp 1600w" sizes="(min-width: 1100px) 480px, 92vw" width="1600" height="1000" alt="Horizon's title screen with the last world played"></button><figcaption>Title screen</figcaption></figure>
|
||||
</div>
|
||||
<div class="gallery" id="panel-world" role="tabpanel" aria-labelledby="tab-world" hidden>
|
||||
<figure class="shot span"><button type="button" class="zoom" aria-label="Enlarge: sunset over a river valley"><img loading="lazy" src="/media/sunset-800.webp" srcset="/media/sunset-800.webp 800w, /media/sunset.webp 1600w" sizes="(min-width: 1100px) 980px, 92vw" width="1600" height="900" alt="Sunset over a savanna river valley and a plains village"></button><figcaption>Sunset over a savanna river valley</figcaption></figure>
|
||||
<figure class="shot"><button type="button" class="zoom" aria-label="Enlarge: a plains village"><img loading="lazy" src="/media/village-800.webp" srcset="/media/village-800.webp 800w, /media/village.webp 1600w" sizes="(min-width: 1100px) 480px, 92vw" width="1600" height="900" alt="A plains village with farms, an iron golem and animals"></button><figcaption>A plains village</figcaption></figure>
|
||||
<figure class="shot"><button type="button" class="zoom" aria-label="Enlarge: survival at dusk"><img loading="lazy" src="/media/survival-800.webp" srcset="/media/survival-800.webp 800w, /media/survival.webp 1600w" sizes="(min-width: 1100px) 480px, 92vw" width="1600" height="900" alt="Survival at dusk: a zombie attacks near the village, with the hotbar and chat"></button><figcaption>Survival at dusk</figcaption></figure>
|
||||
<figure class="shot"><button type="button" class="zoom" aria-label="Enlarge: a crimson forest"><img loading="lazy" src="/media/nether-800.webp" srcset="/media/nether-800.webp 800w, /media/nether.webp 1600w" sizes="(min-width: 1100px) 480px, 92vw" width="1600" height="900" alt="A crimson forest in the Nether with a zombified piglin"></button><figcaption>A crimson forest in the Nether</figcaption></figure>
|
||||
<figure class="shot"><button type="button" class="zoom" aria-label="Enlarge: moonrise over a village"><img loading="lazy" src="/media/night-800.webp" srcset="/media/night-800.webp 800w, /media/night.webp 1600w" sizes="(min-width: 1100px) 480px, 92vw" width="1600" height="900" alt="Moonrise over a torch-lit village and river"></button><figcaption>Moonrise over a village</figcaption></figure>
|
||||
<figure class="shot span"><button type="button" class="zoom" aria-label="Enlarge: salmon in a river"><img loading="lazy" src="/media/underwater-800.webp" srcset="/media/underwater-800.webp 800w, /media/underwater.webp 1600w" sizes="(min-width: 1100px) 980px, 92vw" width="1600" height="900" alt="Salmon swimming in a river"></button><figcaption>Salmon in a river</figcaption></figure>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="parity" class="reveal wide" aria-labelledby="parity-title">
|
||||
<h2 id="parity-title">Parity</h2>
|
||||
<div class="prose section-lede">{{PARITY_INTRO}}</div>
|
||||
<p class="table-meta">From the README on main<span aria-hidden="true"> · </span>last audited {{AUDITED}}<span aria-hidden="true"> · </span>{{PERCENT}} of what the harnesses compare</p>
|
||||
<div class="table-scroll" tabindex="0" role="region" aria-labelledby="parity-title">
|
||||
<table class="parity">
|
||||
<thead>
|
||||
<tr><th scope="col">Subsystem</th><th scope="col">Score</th><th scope="col">What the harnesses check</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{PARITY_ROWS}}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<p class="table-meta">Each subsystem scores 0 (absent), 0.25 (started), 0.5 (playable, major features missing), 0.75 (mostly complete) or 1 (complete and verified against vanilla by differential tests).</p>
|
||||
</section>
|
||||
|
||||
<section id="patch-notes" class="reveal" aria-labelledby="notes-title">
|
||||
<h2 id="notes-title">Patch notes</h2>
|
||||
<p class="section-lede">What changed in each release, newest first.</p>
|
||||
<div class="releases" id="releases" aria-live="polite">
|
||||
{{NOTES}}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="next" class="reveal" aria-labelledby="next-title">
|
||||
<h2 id="next-title">What's next</h2>
|
||||
<p class="section-lede">The roadmap from the README, as it stands on main.</p>
|
||||
<div class="prose" id="roadmap">{{ROADMAP}}</div>
|
||||
</section>
|
||||
|
||||
<section id="community" class="reveal" aria-labelledby="community-title">
|
||||
<h2 id="community-title">Community</h2>
|
||||
<dl class="rows">
|
||||
<div class="row">
|
||||
<dt>Discord</dt>
|
||||
<dd>Questions, bug reports and screenshots.</dd>
|
||||
<dd class="row-action"><a class="button secondary" data-link="discord" href="{{DISCORD}}">Join the Discord</a></dd>
|
||||
</div>
|
||||
<div class="row">
|
||||
<dt>Sponsor</dt>
|
||||
<dd>Horizon is built in the open. Sponsors fund the next release.</dd>
|
||||
<dd class="row-action"><a class="button secondary" data-link="sponsor" href="{{SPONSOR}}">Sponsor on GitHub</a></dd>
|
||||
</div>
|
||||
<div class="row">
|
||||
<dt>Source</dt>
|
||||
<dd>Issues and pull requests are welcome.</dd>
|
||||
<dd class="row-action"><a class="button secondary" href="https://github.com/ludovic111/horizon">Open on GitHub</a></dd>
|
||||
</div>
|
||||
</dl>
|
||||
</section>
|
||||
|
||||
<footer class="footer">
|
||||
<p class="disclaimer-strong">Not an official Minecraft product. Not approved by or associated with Mojang or Microsoft.</p>
|
||||
<p>Horizon is made by <a href="https://lu4ovic.com">Ludovic Marie</a>, who is responsible for it and for this site; reach him through <a href="https://lu4ovic.com/#contact">lu4ovic.com</a>. Horizon contains no Minecraft code, assets or data, and this site offers no game files: you need your own legally obtained copy of Minecraft: Java Edition. Minecraft is a trademark of Mojang Synergies AB.</p>
|
||||
<p>Horizon's original work is under the <a href="https://github.com/ludovic111/horizon/blob/main/LICENSE">MIT licence</a>. The fonts are Geist and Instrument Serif, under the SIL Open Font License (<a href="/fonts/OFL-Geist.txt">Geist</a>, <a href="/fonts/OFL-InstrumentSerif.txt">Instrument Serif</a>). Every asset on this site is listed in <a href="/LEGAL.md">LEGAL.md</a>.</p>
|
||||
<p>Privacy: this site sets no cookies, has no analytics or trackers and loads nothing from third parties except GitHub. To show the latest releases, patch notes, roadmap and links, your browser asks <code>api.github.com</code> and <code>raw.githubusercontent.com</code> for them; <a href="https://docs.github.com/site-policy/privacy-policies/github-general-privacy-statement">GitHub's privacy statement</a> covers those requests.</p>
|
||||
<p class="footer-links"><a href="https://github.com/ludovic111/horizon">GitHub</a><a href="https://github.com/ludovic111/horizon/blob/main/LICENSE">Licence</a><a href="https://github.com/ludovic111/horizon/releases">Releases</a></p>
|
||||
</footer>
|
||||
</main>
|
||||
|
||||
<dialog class="lightbox" aria-label="Screenshot">
|
||||
<form method="dialog"><button class="button secondary close" type="submit">Close</button></form>
|
||||
<img alt="">
|
||||
<p class="lightbox-caption"></p>
|
||||
</dialog>
|
||||
|
||||
<script type="application/json" id="baked">{{BAKED}}</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,259 @@
|
||||
// The page's behaviour: the download button for this platform, the latest releases, the
|
||||
// roadmap and links from main, the sidebar's selection, the screenshot tabs and lightbox.
|
||||
// Everything degrades to the baked-in content when GitHub can't be reached.
|
||||
import { markdown, escape, section } from "./markdown.js";
|
||||
|
||||
const REPO = "ludovic111/horizon";
|
||||
const RELEASES_PAGE = `https://github.com/${REPO}/releases?q=launcher-v&expanded=true`;
|
||||
const baked = JSON.parse(document.getElementById("baked").textContent);
|
||||
const reducedMotion = matchMedia("(prefers-reduced-motion: reduce)").matches;
|
||||
|
||||
// --- GitHub --------------------------------------------------------------------------
|
||||
|
||||
async function cached(key, load) {
|
||||
try {
|
||||
const hit = JSON.parse(sessionStorage.getItem(key) || "null");
|
||||
if (hit && Date.now() - hit.at < 10 * 60 * 1000) return hit.value;
|
||||
} catch {}
|
||||
const value = await load();
|
||||
try {
|
||||
sessionStorage.setItem(key, JSON.stringify({ at: Date.now(), value }));
|
||||
} catch {}
|
||||
return value;
|
||||
}
|
||||
|
||||
async function get(url, as = "json") {
|
||||
const res = await fetch(url, { headers: as === "json" ? { Accept: "application/vnd.github+json" } : {} });
|
||||
if (!res.ok) throw new Error(`${res.status}`);
|
||||
return as === "json" ? res.json() : res.text();
|
||||
}
|
||||
|
||||
const releases = cached("horizon:releases", () =>
|
||||
get(`https://api.github.com/repos/${REPO}/releases?per_page=30`).then((list) =>
|
||||
list
|
||||
.filter((r) => !r.draft)
|
||||
.map((r) => ({
|
||||
tag_name: r.tag_name,
|
||||
name: r.name,
|
||||
published_at: r.published_at,
|
||||
html_url: r.html_url,
|
||||
prerelease: r.prerelease,
|
||||
body: r.body || "",
|
||||
assets: r.assets.map((a) => ({ name: a.name, browser_download_url: a.browser_download_url, size: a.size })),
|
||||
})),
|
||||
),
|
||||
).catch(() => baked.releases);
|
||||
|
||||
// --- Download ------------------------------------------------------------------------
|
||||
|
||||
function platform() {
|
||||
const ua = navigator.userAgent;
|
||||
const hint = (navigator.userAgentData && navigator.userAgentData.platform) || navigator.platform || "";
|
||||
if (/iPhone|iPad|iPod|Android/i.test(ua) || (navigator.maxTouchPoints > 1 && /Mac/.test(hint))) return null;
|
||||
if (/Win/i.test(hint) || /Windows/.test(ua)) return { key: "windows-x64", label: "Windows x64" };
|
||||
if (/Mac/i.test(hint) || /Mac OS X/.test(ua)) return { key: "macos-arm64", label: "macOS on Apple Silicon" };
|
||||
if (/Linux|X11/i.test(hint) || /Linux/.test(ua)) return { key: "linux-x86_64", label: "Linux x86-64" };
|
||||
return null;
|
||||
}
|
||||
|
||||
async function setUpDownload() {
|
||||
const button = document.getElementById("download");
|
||||
const meta = document.getElementById("download-meta");
|
||||
const os = platform();
|
||||
const list = await releases;
|
||||
const launcher = list.find((r) => r.tag_name.startsWith("launcher-v") && !r.prerelease);
|
||||
if (!launcher) return;
|
||||
const version = launcher.tag_name.replace("launcher-v", "");
|
||||
document.querySelectorAll("[data-launcher-version]").forEach((el) => (el.textContent = `Launcher ${version}`));
|
||||
const asset = os && launcher.assets.find((a) => a.name.includes(os.key));
|
||||
const others = `<a href="${escape(launcher.html_url)}">Other platforms</a>`;
|
||||
if (asset) {
|
||||
button.href = asset.browser_download_url;
|
||||
button.textContent = "Download the launcher";
|
||||
const mb = asset.size ? ` · ${(asset.size / 1e6).toFixed(0)} MB` : "";
|
||||
meta.innerHTML = `For ${escape(os.label)} · version ${escape(version)}${mb} · ${others}`;
|
||||
} else {
|
||||
button.href = launcher.html_url || RELEASES_PAGE;
|
||||
meta.innerHTML = `Launcher ${escape(version)} for Linux x86-64, macOS on Apple Silicon and Windows x64. It runs on a computer, not on phones or tablets.`;
|
||||
}
|
||||
}
|
||||
|
||||
// --- Patch notes ---------------------------------------------------------------------
|
||||
|
||||
const isGame = (tag) => /^v\d{4}\.\d{1,2}\.\d{1,2}/.test(tag);
|
||||
|
||||
async function setUpNotes() {
|
||||
const list = (await releases).filter((r) => isGame(r.tag_name));
|
||||
if (!list.length) return;
|
||||
const box = document.getElementById("releases");
|
||||
const shown = list.slice(0, 3);
|
||||
box.innerHTML =
|
||||
shown
|
||||
.map((r, i) => {
|
||||
const date = (r.published_at || "").slice(0, 10);
|
||||
return `<details class="release"${i === 0 ? " open" : ""}>
|
||||
<summary><span class="release-title">${escape(r.name || r.tag_name)}</span><time datetime="${date}">${date}</time></summary>
|
||||
<div class="prose">${markdown(r.body)}<p><a href="${escape(r.html_url)}">Downloads and full notes on GitHub</a></p></div>
|
||||
</details>`;
|
||||
})
|
||||
.join("") +
|
||||
(list.length > shown.length
|
||||
? `<p class="release-more"><a href="https://github.com/${REPO}/releases">Older releases on GitHub</a></p>`
|
||||
: "");
|
||||
}
|
||||
|
||||
// --- The roadmap and the links from main ---------------------------------------------
|
||||
|
||||
async function setUpRoadmap() {
|
||||
try {
|
||||
const readme = await cached("horizon:readme", () => get(`https://raw.githubusercontent.com/${REPO}/main/README.md`, "text"));
|
||||
const roadmap = section(readme, "Roadmap");
|
||||
if (roadmap) document.getElementById("roadmap").innerHTML = markdown(roadmap, { shift: 1 });
|
||||
} catch {}
|
||||
}
|
||||
|
||||
async function setUpLinks() {
|
||||
let links = baked.links;
|
||||
try {
|
||||
const remote = await cached("horizon:links", () => get(`https://raw.githubusercontent.com/${REPO}/main/launcher/links.json`, "text").then(JSON.parse));
|
||||
links = { ...links };
|
||||
for (const key of Object.keys(links)) if (typeof remote[key] === "string") links[key] = remote[key].trim();
|
||||
} catch {}
|
||||
document.querySelectorAll("[data-link]").forEach((a) => {
|
||||
const url = links[a.dataset.link];
|
||||
// An empty address hides its row, as in the launcher.
|
||||
if (!url) a.closest(".row").hidden = true;
|
||||
else if (/^https:\/\//.test(url)) a.href = url;
|
||||
});
|
||||
}
|
||||
|
||||
// --- The sidebar ---------------------------------------------------------------------
|
||||
|
||||
function setUpNav() {
|
||||
const nav = document.getElementById("nav");
|
||||
const sidebar = document.querySelector(".sidebar");
|
||||
const menu = document.querySelector(".menu-button");
|
||||
const selection = nav.querySelector(".nav-selection");
|
||||
const links = [...nav.querySelectorAll("a")];
|
||||
const sections = links.map((a) => document.querySelector(a.getAttribute("href")));
|
||||
|
||||
const select = (index) => {
|
||||
links.forEach((a, i) => (i === index ? a.setAttribute("aria-current", "true") : a.removeAttribute("aria-current")));
|
||||
const a = links[index];
|
||||
selection.style.height = `${a.offsetHeight}px`;
|
||||
selection.style.transform = `translateY(${a.offsetTop}px)`;
|
||||
nav.classList.add("has-selection");
|
||||
};
|
||||
|
||||
let current = -1;
|
||||
const update = () => {
|
||||
const line = innerHeight * 0.35;
|
||||
let index = 0;
|
||||
sections.forEach((s, i) => {
|
||||
if (s.getBoundingClientRect().top <= line) index = i;
|
||||
});
|
||||
if (innerHeight + scrollY >= document.documentElement.scrollHeight - 2) index = sections.length - 1;
|
||||
if (index !== current) select((current = index));
|
||||
};
|
||||
let queued = false;
|
||||
addEventListener("scroll", () => {
|
||||
if (!queued) requestAnimationFrame(() => ((queued = false), update()));
|
||||
queued = true;
|
||||
}, { passive: true });
|
||||
addEventListener("resize", () => select(Math.max(current, 0)));
|
||||
update();
|
||||
|
||||
const setOpen = (open) => {
|
||||
sidebar.classList.toggle("is-open", open);
|
||||
menu.setAttribute("aria-expanded", String(open));
|
||||
menu.textContent = open ? "Close" : "Menu";
|
||||
if (open) select(Math.max(current, 0));
|
||||
};
|
||||
menu.addEventListener("click", () => setOpen(!sidebar.classList.contains("is-open")));
|
||||
links.forEach((a) => a.addEventListener("click", () => setOpen(false)));
|
||||
addEventListener("keydown", (e) => {
|
||||
if (e.key === "Escape" && sidebar.classList.contains("is-open")) {
|
||||
setOpen(false);
|
||||
menu.focus();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// --- Screenshots ---------------------------------------------------------------------
|
||||
|
||||
function setUpTabs() {
|
||||
const list = document.querySelector(".segmented");
|
||||
const tabs = [...list.querySelectorAll('[role="tab"]')];
|
||||
const selection = list.querySelector(".segment-selection");
|
||||
const place = (tab) => {
|
||||
selection.style.width = `${tab.offsetWidth}px`;
|
||||
selection.style.height = `${tab.offsetHeight}px`;
|
||||
selection.style.transform = `translate(${tab.offsetLeft}px, ${tab.offsetTop - 2}px)`;
|
||||
};
|
||||
const choose = (tab, focus) => {
|
||||
tabs.forEach((t) => {
|
||||
const on = t === tab;
|
||||
t.setAttribute("aria-selected", String(on));
|
||||
t.tabIndex = on ? 0 : -1;
|
||||
document.getElementById(t.getAttribute("aria-controls")).hidden = !on;
|
||||
});
|
||||
place(tab);
|
||||
if (focus) tab.focus();
|
||||
};
|
||||
tabs.forEach((tab, i) => {
|
||||
tab.addEventListener("click", () => choose(tab));
|
||||
tab.addEventListener("keydown", (e) => {
|
||||
const step = { ArrowRight: 1, ArrowLeft: -1 }[e.key];
|
||||
if (step) choose(tabs[(i + step + tabs.length) % tabs.length], true);
|
||||
});
|
||||
});
|
||||
place(tabs.find((t) => t.getAttribute("aria-selected") === "true"));
|
||||
addEventListener("resize", () => place(tabs.find((t) => t.getAttribute("aria-selected") === "true")));
|
||||
document.fonts?.ready.then(() => place(tabs.find((t) => t.getAttribute("aria-selected") === "true")));
|
||||
}
|
||||
|
||||
function setUpLightbox() {
|
||||
const dialog = document.querySelector(".lightbox");
|
||||
const big = dialog.querySelector("img");
|
||||
const caption = dialog.querySelector(".lightbox-caption");
|
||||
document.querySelectorAll(".zoom").forEach((button) => {
|
||||
button.addEventListener("click", () => {
|
||||
const img = button.querySelector("img");
|
||||
big.src = img.currentSrc.replace("-800.webp", ".webp");
|
||||
big.alt = img.alt;
|
||||
caption.textContent = img.alt;
|
||||
dialog.showModal();
|
||||
});
|
||||
});
|
||||
dialog.addEventListener("click", (e) => {
|
||||
if (e.target === dialog) dialog.close();
|
||||
});
|
||||
}
|
||||
|
||||
function setUpReveal() {
|
||||
const items = document.querySelectorAll(".reveal");
|
||||
if (reducedMotion || !("IntersectionObserver" in window)) {
|
||||
items.forEach((el) => el.classList.add("is-visible"));
|
||||
return;
|
||||
}
|
||||
const observer = new IntersectionObserver(
|
||||
(entries) =>
|
||||
entries.forEach((e) => {
|
||||
if (e.isIntersecting) {
|
||||
e.target.classList.add("is-visible");
|
||||
observer.unobserve(e.target);
|
||||
}
|
||||
}),
|
||||
{ rootMargin: "0px 0px -8% 0px" },
|
||||
);
|
||||
items.forEach((el) => observer.observe(el));
|
||||
}
|
||||
|
||||
setUpReveal();
|
||||
setUpNav();
|
||||
setUpTabs();
|
||||
setUpLightbox();
|
||||
setUpDownload();
|
||||
setUpNotes();
|
||||
setUpRoadmap();
|
||||
setUpLinks();
|
||||
@@ -0,0 +1,146 @@
|
||||
// A small Markdown renderer for release notes and the README: headings, paragraphs,
|
||||
// lists (nested by indentation), fenced code, quotes, rules, and inline code, bold,
|
||||
// italic and links. Everything is escaped first, so its output never carries raw HTML.
|
||||
// Shared by build.mjs (Node) and main.js (browser).
|
||||
|
||||
const REPO_BLOB = "https://github.com/ludovic111/horizon/blob/main/";
|
||||
|
||||
export function escape(text) {
|
||||
return text.replace(/[&<>"']/g, (c) => ({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" })[c]);
|
||||
}
|
||||
|
||||
function href(url) {
|
||||
url = url.trim();
|
||||
if (/^(https?:|mailto:)/i.test(url)) return url;
|
||||
if (url.startsWith("#")) return null; // README anchors have no target here
|
||||
if (/^[a-z]+:/i.test(url)) return null; // javascript: and the like
|
||||
return REPO_BLOB + url.replace(/^\.?\//, "");
|
||||
}
|
||||
|
||||
export function inline(text) {
|
||||
const codes = [];
|
||||
let out = text.replace(/`([^`]+)`/g, (_, code) => {
|
||||
codes.push(code);
|
||||
return `\u0000${codes.length - 1}\u0000`;
|
||||
});
|
||||
const links = [];
|
||||
out = out.replace(/\[([^\]]+)\]\(([^)\s]+)\)/g, (_, label, url) => {
|
||||
links.push([label, url]);
|
||||
return `\u0001${links.length - 1}\u0001`;
|
||||
});
|
||||
out = escape(out)
|
||||
.replace(/\*\*([^*]+)\*\*/g, "<strong>$1</strong>")
|
||||
.replace(/(^|[^\w*])\*([^*\s][^*]*)\*/g, "$1<em>$2</em>")
|
||||
.replace(/(^|[^\w])_([^_\s][^_]*)_(?!\w)/g, "$1<em>$2</em>")
|
||||
.replace(/<(https?:\/\/[^\s&]+)>/g, (_, u) => `<a href="${u}">${u}</a>`);
|
||||
out = out.replace(/\u0001(\d+)\u0001/g, (_, i) => {
|
||||
const [label, url] = links[i];
|
||||
const target = href(url);
|
||||
const body = inline(label);
|
||||
return target ? `<a href="${escape(target)}">${body}</a>` : body;
|
||||
});
|
||||
return out.replace(/\u0000(\d+)\u0000/g, (_, i) => `<code>${escape(codes[i])}</code>`);
|
||||
}
|
||||
|
||||
const indentOf = (line) => line.match(/^ */)[0].length;
|
||||
const ITEM = /^(\s*)([-*+]|\d+[.)])\s+(.*)$/;
|
||||
|
||||
function list(lines, start) {
|
||||
// Collects the items at this list's indentation; deeper lines belong to the item above.
|
||||
const base = indentOf(lines[start]);
|
||||
const ordered = /\d/.test(lines[start].match(ITEM)[2]);
|
||||
const items = [];
|
||||
let i = start;
|
||||
while (i < lines.length) {
|
||||
const line = lines[i];
|
||||
if (!line.trim()) {
|
||||
const next = lines.slice(i + 1).find((l) => l.trim());
|
||||
if (next && ITEM.test(next) && indentOf(next) >= base) {
|
||||
i++;
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
}
|
||||
const m = line.match(ITEM);
|
||||
if (m && indentOf(line) === base) {
|
||||
items.push({ text: [m[3]], children: [] });
|
||||
} else if (m && indentOf(line) > base) {
|
||||
const [html, end] = list(lines, i);
|
||||
items[items.length - 1].children.push(html);
|
||||
i = end;
|
||||
continue;
|
||||
} else if (indentOf(line) > base && items.length) {
|
||||
items[items.length - 1].text.push(line.trim());
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
const tag = ordered ? "ol" : "ul";
|
||||
const body = items.map((it) => `<li>${inline(it.text.join(" "))}${it.children.join("")}</li>`).join("");
|
||||
return [`<${tag}>${body}</${tag}>`, i];
|
||||
}
|
||||
|
||||
/** Renders Markdown; `shift` moves headings down (a `#` becomes `h{1 + shift}`). */
|
||||
export function markdown(source, { shift = 0 } = {}) {
|
||||
const lines = source.replace(/\r\n?/g, "\n").split("\n");
|
||||
const out = [];
|
||||
let i = 0;
|
||||
while (i < lines.length) {
|
||||
const line = lines[i];
|
||||
if (!line.trim() || /^\s*<\/?[a-z][^>]*>\s*$/i.test(line)) {
|
||||
i++; // blank lines and lone HTML tags (the README's layout tables) are skipped
|
||||
continue;
|
||||
}
|
||||
let m;
|
||||
if ((m = line.match(/^(#{1,6})\s+(.*?)\s*#*$/))) {
|
||||
const level = Math.min(6, m[1].length + shift);
|
||||
out.push(`<h${level}>${inline(m[2])}</h${level}>`);
|
||||
i++;
|
||||
} else if ((m = line.match(/^\s*(```|~~~)/))) {
|
||||
const fence = m[1];
|
||||
const code = [];
|
||||
i++;
|
||||
while (i < lines.length && !lines[i].trim().startsWith(fence)) code.push(lines[i++]);
|
||||
i++;
|
||||
out.push(`<pre><code>${escape(code.join("\n"))}</code></pre>`);
|
||||
} else if (/^\s*([-*_])(\s*\1){2,}\s*$/.test(line)) {
|
||||
out.push("<hr>");
|
||||
i++;
|
||||
} else if (ITEM.test(line)) {
|
||||
const [html, end] = list(lines, i);
|
||||
out.push(html);
|
||||
i = end;
|
||||
} else if (line.startsWith(">")) {
|
||||
const quote = [];
|
||||
while (i < lines.length && lines[i].startsWith(">")) quote.push(lines[i++].replace(/^>\s?/, ""));
|
||||
out.push(`<blockquote>${markdown(quote.join("\n"), { shift })}</blockquote>`);
|
||||
} else {
|
||||
const para = [];
|
||||
while (
|
||||
i < lines.length &&
|
||||
lines[i].trim() &&
|
||||
!/^(#{1,6}\s|>|\s*```|\s*~~~)/.test(lines[i]) &&
|
||||
!ITEM.test(lines[i])
|
||||
) {
|
||||
para.push(lines[i++].trim());
|
||||
}
|
||||
out.push(`<p>${inline(para.join(" "))}</p>`);
|
||||
}
|
||||
}
|
||||
return out.join("\n");
|
||||
}
|
||||
|
||||
/** The body of the section titled `title` (any heading level), up to the next heading at its level or above. */
|
||||
export function section(source, title) {
|
||||
const lines = source.replace(/\r\n?/g, "\n").split("\n");
|
||||
const level = (l) => (l.match(/^(#{1,6})\s/) || [, ""])[1].length;
|
||||
const start = lines.findIndex((l) => level(l) > 0 && l.replace(/^#+/, "").trim() === title);
|
||||
if (start < 0) return null;
|
||||
const depth = level(lines[start]);
|
||||
const end = lines.findIndex((l, i) => i > start && level(l) > 0 && level(l) <= depth);
|
||||
return lines
|
||||
.slice(start + 1, end < 0 ? undefined : end)
|
||||
.join("\n")
|
||||
.trim();
|
||||
}
|
||||
@@ -0,0 +1,450 @@
|
||||
/* Horizon's design tokens (crates/horizon-theme), the dark appearance the launcher draws:
|
||||
one neutral palette and one violet accent, spacing 4/8/12/16/24/32, 1px dividers,
|
||||
Geist for the interface, Instrument Serif for titles, Geist Mono for code. */
|
||||
|
||||
@font-face { font-family: "Geist"; src: url("/fonts/Geist-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
|
||||
@font-face { font-family: "Geist"; src: url("/fonts/Geist-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
|
||||
@font-face { font-family: "Geist"; src: url("/fonts/Geist-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
|
||||
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
|
||||
@font-face { font-family: "Instrument Serif"; src: url("/fonts/InstrumentSerif-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
|
||||
|
||||
:root {
|
||||
--bg: #111113;
|
||||
--sidebar: #0c0c0d;
|
||||
--raised: #1a1a1d;
|
||||
--hover: #202024;
|
||||
--border: #26262a;
|
||||
--text: #e8e8ea;
|
||||
--muted: #9a9aa1;
|
||||
--faint: #8a8a92; /* the token's #626269, lifted to pass WCAG AA for small text, on raised surfaces too */
|
||||
--accent: #7c5cc4;
|
||||
--accent-text: #a48ae6; /* the accent as link text, readable on --bg */
|
||||
--on-accent: #ffffff;
|
||||
|
||||
--font: "Geist", ui-sans-serif, system-ui, sans-serif;
|
||||
--display: "Instrument Serif", ui-serif, Georgia, serif;
|
||||
--mono: "Geist Mono", ui-monospace, monospace;
|
||||
|
||||
--s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
|
||||
--radius: 6px; --radius-segment: 5px; --radius-group: 7px; --radius-card: 8px;
|
||||
--control: 30px; --segment: 26px; --control-large: 40px;
|
||||
--sidebar-w: 200px; --row-label: 150px;
|
||||
|
||||
/* Motion: short and eased out, never bouncy (GPUI's ease_out_quint). */
|
||||
--quick: 160ms; --move: 240ms;
|
||||
--ease: cubic-bezier(0.22, 1, 0.36, 1);
|
||||
|
||||
--content: 760px;
|
||||
--wide: 980px;
|
||||
}
|
||||
|
||||
*, *::before, *::after { box-sizing: border-box; }
|
||||
|
||||
html {
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
font: 400 15px/1.6 var(--font);
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
text-rendering: optimizeLegibility;
|
||||
scroll-behavior: smooth;
|
||||
scroll-padding-top: var(--s6);
|
||||
}
|
||||
body { margin: 0; min-height: 100vh; }
|
||||
img { display: block; max-width: 100%; height: auto; }
|
||||
::selection { background: rgba(124, 92, 196, 0.45); color: #fff; }
|
||||
|
||||
a { color: var(--accent-text); text-decoration: none; transition: color var(--quick) var(--ease); }
|
||||
a:hover { color: var(--text); }
|
||||
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 3px; }
|
||||
|
||||
code {
|
||||
font: 13px/1.5 var(--mono);
|
||||
background: var(--raised);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 4px;
|
||||
padding: 1px 5px;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.skip {
|
||||
position: fixed; left: var(--s4); top: var(--s4); z-index: 20;
|
||||
padding: var(--s2) var(--s3); border-radius: var(--radius);
|
||||
background: var(--raised); color: var(--text); border: 1px solid var(--border);
|
||||
transform: translateY(-200%); transition: transform var(--quick) var(--ease);
|
||||
}
|
||||
.skip:focus { transform: none; }
|
||||
|
||||
/* The atmosphere: Horizon's frozen landscape, veiled the way the launcher veils its background. */
|
||||
.atmosphere {
|
||||
position: fixed; inset: 0; z-index: -1; pointer-events: none;
|
||||
background:
|
||||
linear-gradient(90deg, rgba(17, 17, 19, 0.9) 0%, rgba(17, 17, 19, 0) 70%),
|
||||
linear-gradient(180deg, rgba(17, 17, 19, 0) 25%, rgba(17, 17, 19, 0.95) 100%),
|
||||
linear-gradient(rgba(17, 17, 19, 0.55), rgba(17, 17, 19, 0.55)),
|
||||
url("/background.webp") center / cover no-repeat,
|
||||
var(--bg);
|
||||
}
|
||||
|
||||
/* --- The sidebar, as in the launcher ------------------------------------------------- */
|
||||
|
||||
.sidebar {
|
||||
position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w);
|
||||
display: flex; flex-direction: column;
|
||||
padding: var(--s5) var(--s3) var(--s5);
|
||||
background: var(--sidebar);
|
||||
border-right: 1px solid var(--border);
|
||||
z-index: 10;
|
||||
}
|
||||
.wordmark {
|
||||
font: 400 24px/1 var(--display);
|
||||
color: var(--text);
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
.sidebar > .wordmark { padding: var(--s2) 10px var(--s6); }
|
||||
.wordmark:hover { color: var(--text); }
|
||||
|
||||
nav { position: relative; display: flex; flex-direction: column; gap: 2px; }
|
||||
nav a {
|
||||
position: relative; z-index: 1;
|
||||
height: var(--control); display: flex; align-items: center;
|
||||
padding: 0 10px; border-radius: var(--radius);
|
||||
color: var(--muted); font-size: 14px;
|
||||
transition: color var(--quick) var(--ease), background-color var(--quick) var(--ease);
|
||||
}
|
||||
nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.03); }
|
||||
nav a[aria-current="true"] { color: var(--text); }
|
||||
.no-js nav a[aria-current="true"], nav:not(.has-selection) a[aria-current="true"] { background: var(--raised); }
|
||||
.nav-selection {
|
||||
position: absolute; left: 0; right: 0; top: 0; height: var(--control);
|
||||
background: var(--raised); border: 1px solid var(--border); border-radius: var(--radius);
|
||||
opacity: 0;
|
||||
transition: transform var(--move) var(--ease), opacity var(--quick) var(--ease);
|
||||
}
|
||||
nav.has-selection .nav-selection { opacity: 1; }
|
||||
|
||||
.sidebar-foot {
|
||||
margin-top: auto; padding: 0 10px;
|
||||
display: flex; flex-direction: column; gap: var(--s2);
|
||||
font-size: 13px; color: var(--faint);
|
||||
}
|
||||
.sidebar-foot a { color: var(--muted); }
|
||||
.sidebar-foot a:hover { color: var(--text); }
|
||||
.sidebar-foot span:empty { display: none; }
|
||||
|
||||
.topbar { display: none; }
|
||||
|
||||
/* --- Content ------------------------------------------------------------------------ */
|
||||
|
||||
main {
|
||||
margin-left: var(--sidebar-w);
|
||||
padding: 0 clamp(var(--s5), 6vw, 72px);
|
||||
}
|
||||
main > section, .footer { max-width: var(--content); }
|
||||
main > section.wide { max-width: var(--wide); }
|
||||
main > section { padding: 96px 0 0; }
|
||||
|
||||
.hero { padding-top: 88px; }
|
||||
.eyebrow { margin: 0 0 var(--s3); color: var(--faint); font-size: 13px; letter-spacing: 0.01em; }
|
||||
.eyebrow span { margin: 0 6px; }
|
||||
h1 {
|
||||
margin: 0;
|
||||
font: 400 clamp(64px, 9vw, 112px)/0.95 var(--display);
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
.lede { margin: var(--s5) 0 0; max-width: 34em; font-size: 18px; line-height: 1.55; color: var(--muted); }
|
||||
|
||||
h2 {
|
||||
margin: 0 0 var(--s3);
|
||||
font: 400 44px/1.05 var(--display);
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
.section-lede { margin: 0 0 var(--s5); color: var(--muted); }
|
||||
.section-lede p { margin: 0 0 var(--s3); }
|
||||
.muted { color: var(--muted); }
|
||||
|
||||
/* Buttons: primary is the accent, secondary is raised with a hairline. */
|
||||
.actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s6); }
|
||||
.button {
|
||||
display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
|
||||
height: var(--control); padding: 0 var(--s3);
|
||||
border-radius: var(--radius); border: 1px solid transparent;
|
||||
font: 500 13px/1 var(--font); white-space: nowrap; cursor: pointer;
|
||||
transition: background-color var(--quick) var(--ease), border-color var(--quick) var(--ease), opacity var(--quick) var(--ease), color var(--quick) var(--ease);
|
||||
}
|
||||
.button.large { height: var(--control-large); padding: 0 var(--s5); font-size: 15px; border-radius: var(--radius-group); }
|
||||
.button.primary { background: var(--accent); color: var(--on-accent); box-shadow: inset 0 0 0 100px rgba(255, 255, 255, 0); }
|
||||
.button.primary:hover { color: var(--on-accent); box-shadow: inset 0 0 0 100px rgba(255, 255, 255, 0.1); }
|
||||
.button.primary:active { opacity: 0.82; }
|
||||
.button.secondary { background: var(--raised); color: var(--text); border-color: var(--border); }
|
||||
.button.secondary:hover { background: var(--hover); color: var(--text); }
|
||||
.button.secondary:active { opacity: 0.8; }
|
||||
|
||||
.download-meta { margin: var(--s3) 0 0; font-size: 13px; color: var(--faint); min-height: 1.6em; }
|
||||
.download-meta a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
|
||||
.download-meta a:hover { color: var(--text); }
|
||||
|
||||
/* Rows: label, value and an optional action, between 1px dividers. */
|
||||
.rows { margin: 40px 0 0; border-top: 1px solid var(--border); }
|
||||
.row {
|
||||
display: grid; grid-template-columns: var(--row-label) 1fr auto; gap: var(--s5);
|
||||
align-items: center;
|
||||
padding: var(--s4) 0;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.row dt { color: var(--muted); font-size: 14px; }
|
||||
.row dd { margin: 0; }
|
||||
.row-action { justify-self: end; }
|
||||
.disclaimer { color: var(--text); }
|
||||
|
||||
.shot { margin: 0; }
|
||||
.shot img, .shot .zoom {
|
||||
border-radius: var(--radius-card);
|
||||
}
|
||||
.shot img {
|
||||
width: 100%;
|
||||
border: 1px solid var(--border);
|
||||
background: var(--raised);
|
||||
}
|
||||
.hero-shot { margin-top: 56px; }
|
||||
.shot figcaption { margin-top: var(--s2); font-size: 13px; color: var(--faint); }
|
||||
.zoom {
|
||||
display: block; width: 100%; padding: 0; margin: 0;
|
||||
border: 0; background: none; cursor: zoom-in;
|
||||
}
|
||||
.zoom img { transition: border-color var(--quick) var(--ease), opacity var(--quick) var(--ease); }
|
||||
.zoom:hover img { border-color: #3a3a40; }
|
||||
|
||||
/* Prose: release notes, the roadmap and running text. */
|
||||
.prose { color: var(--muted); }
|
||||
.prose p, .prose ul, .prose ol, .prose pre, .prose blockquote { margin: 0 0 var(--s4); }
|
||||
.prose strong { color: var(--text); font-weight: 600; }
|
||||
.prose h3, .prose h4, .prose h5 { margin: var(--s5) 0 var(--s2); color: var(--text); font: 600 15px/1.4 var(--font); }
|
||||
.prose ul { list-style: none; padding: 0; }
|
||||
.prose ul > li { position: relative; padding-left: var(--s5); margin-bottom: var(--s2); }
|
||||
.prose ul > li::before { content: "–"; position: absolute; left: 0; color: var(--faint); }
|
||||
.prose ol { padding-left: var(--s5); }
|
||||
.prose pre { background: var(--raised); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s3); overflow-x: auto; }
|
||||
.prose pre code { background: none; border: 0; padding: 0; }
|
||||
.prose a { text-decoration: underline; text-decoration-color: rgba(164, 138, 230, 0.35); text-underline-offset: 3px; }
|
||||
.prose > :last-child { margin-bottom: 0; }
|
||||
#about .prose p { color: var(--text); opacity: 0.86; }
|
||||
|
||||
/* The segmented control, as the launcher's Client / Server switch. */
|
||||
.segmented {
|
||||
position: relative; display: inline-flex; gap: 2px; padding: 2px;
|
||||
background: var(--sidebar); border: 1px solid var(--border); border-radius: var(--radius-group);
|
||||
margin-bottom: var(--s5);
|
||||
}
|
||||
.segmented button {
|
||||
position: relative; z-index: 1;
|
||||
height: var(--segment); padding: 0 var(--s3);
|
||||
border: 0; border-radius: var(--radius-segment); background: none;
|
||||
font: 500 13px/1 var(--font); color: var(--muted); cursor: pointer;
|
||||
transition: color var(--quick) var(--ease);
|
||||
}
|
||||
.segmented button[aria-selected="true"] { color: var(--text); }
|
||||
.segmented button:hover { color: var(--text); }
|
||||
.segment-selection {
|
||||
position: absolute; top: 2px; left: 0; height: var(--segment); width: 0;
|
||||
background: var(--hover); border-radius: var(--radius-segment);
|
||||
transition: transform var(--move) var(--ease), width var(--move) var(--ease);
|
||||
}
|
||||
.no-js .segmented { display: none; }
|
||||
.no-js .gallery[hidden] { display: grid; margin-top: var(--s5); }
|
||||
|
||||
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s4); }
|
||||
.gallery .span { grid-column: 1 / -1; }
|
||||
.gallery:not([hidden]) { animation: fade var(--move) var(--ease); }
|
||||
|
||||
/* The parity table. */
|
||||
.table-meta { margin: 0 0 var(--s3); font-size: 13px; color: var(--faint); }
|
||||
.table-meta + .table-scroll { margin-top: var(--s2); }
|
||||
.table-scroll + .table-meta { margin-top: var(--s4); }
|
||||
.table-scroll { overflow-x: auto; border-top: 1px solid var(--border); }
|
||||
.parity { width: 100%; border-collapse: collapse; font-size: 14px; }
|
||||
.parity th, .parity td { text-align: left; vertical-align: top; padding: var(--s4) var(--s4) var(--s4) 0; border-bottom: 1px solid var(--border); }
|
||||
.parity thead th { padding-top: var(--s3); padding-bottom: var(--s3); font-weight: 400; font-size: 13px; color: var(--faint); }
|
||||
.parity tbody th { width: 30%; font-weight: 500; color: var(--text); }
|
||||
.parity td { color: var(--muted); }
|
||||
.parity td:last-child { padding-right: 0; }
|
||||
.parity .score { width: 150px; white-space: nowrap; }
|
||||
.pill {
|
||||
display: inline-block; min-width: 26px; padding: 1px 7px; margin-right: var(--s2);
|
||||
border: 1px solid var(--border); border-radius: 999px;
|
||||
font: 12px/1.5 var(--mono); text-align: center; color: var(--muted);
|
||||
}
|
||||
.pill.is-full { border-color: rgba(124, 92, 196, 0.55); color: var(--accent-text); }
|
||||
.score-label { font-size: 13px; color: var(--faint); }
|
||||
.gap-none { color: var(--text); }
|
||||
|
||||
/* Releases. */
|
||||
.releases { border-top: 1px solid var(--border); }
|
||||
.release { border-bottom: 1px solid var(--border); }
|
||||
.release summary {
|
||||
display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4);
|
||||
padding: var(--s4) 0; cursor: pointer; list-style: none;
|
||||
}
|
||||
.release summary::-webkit-details-marker { display: none; }
|
||||
.release-title { font-weight: 600; color: var(--text); }
|
||||
.release summary::before {
|
||||
content: ""; flex: none; align-self: center; width: 6px; height: 6px; margin-right: -4px;
|
||||
border-right: 1.5px solid var(--faint); border-bottom: 1.5px solid var(--faint);
|
||||
transform: rotate(-45deg); transition: transform var(--quick) var(--ease);
|
||||
}
|
||||
.release[open] summary::before { transform: rotate(45deg); }
|
||||
.release summary .release-title { flex: 1; }
|
||||
.release time { color: var(--faint); font-size: 13px; white-space: nowrap; }
|
||||
.release .prose { padding: 0 0 var(--s5) 18px; animation: slide var(--move) var(--ease); }
|
||||
.release-more { margin-top: var(--s4); font-size: 13px; }
|
||||
|
||||
#roadmap h2, #roadmap h3 { margin-top: 0; }
|
||||
#roadmap p { margin-bottom: var(--s4); }
|
||||
|
||||
/* Footer. */
|
||||
.footer {
|
||||
margin-top: 120px; padding: var(--s6) 0 48px;
|
||||
border-top: 1px solid var(--border);
|
||||
font-size: 13px; color: var(--faint);
|
||||
}
|
||||
.footer p { margin: 0 0 var(--s3); max-width: 46em; }
|
||||
.footer a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
|
||||
.footer a:hover { color: var(--text); }
|
||||
.footer code { font-size: 12px; }
|
||||
.disclaimer-strong { color: var(--text) !important; font-size: 14px; }
|
||||
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s5); margin-top: var(--s5) !important; }
|
||||
.footer-links a { text-decoration: none; }
|
||||
|
||||
/* The lightbox. */
|
||||
.lightbox {
|
||||
width: min(1400px, 94vw); max-width: none; max-height: 94vh; padding: var(--s4);
|
||||
background: var(--bg); color: var(--text);
|
||||
border: 1px solid var(--border); border-radius: var(--radius-card);
|
||||
}
|
||||
.lightbox::backdrop { background: rgba(8, 8, 9, 0.82); }
|
||||
.lightbox[open] { animation: fade var(--move) var(--ease); }
|
||||
.lightbox img { width: 100%; max-height: calc(94vh - 110px); object-fit: contain; border-radius: var(--radius); }
|
||||
.lightbox form { display: flex; justify-content: flex-end; margin-bottom: var(--s3); }
|
||||
.lightbox-caption { margin: var(--s3) 0 0; font-size: 13px; color: var(--muted); }
|
||||
|
||||
/* Motion: sections fade and rise once; nothing moves for those who ask for less. */
|
||||
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
|
||||
.js .reveal.is-visible { opacity: 1; transform: none; }
|
||||
.hero > * { animation: rise 600ms var(--ease) both; }
|
||||
.hero > :nth-child(2) { animation-delay: 40ms; }
|
||||
.hero > :nth-child(3) { animation-delay: 80ms; }
|
||||
.hero > :nth-child(4), .hero > :nth-child(5) { animation-delay: 120ms; }
|
||||
.hero > :nth-child(n + 6) { animation-delay: 180ms; }
|
||||
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
|
||||
@keyframes fade { from { opacity: 0; } }
|
||||
@keyframes slide { from { opacity: 0; transform: translateY(-4px); } }
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
html { scroll-behavior: auto; }
|
||||
*, *::before, *::after { animation: none !important; transition: none !important; }
|
||||
.js .reveal { opacity: 1; transform: none; }
|
||||
}
|
||||
|
||||
/* The 404 page. */
|
||||
.lost-main { margin: 0; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; max-width: 720px; padding: 48px clamp(24px, 8vw, 96px); }
|
||||
.lost-main .disclaimer-strong { margin-top: 64px; color: var(--faint) !important; font-size: 13px; }
|
||||
|
||||
/* --- Phones and narrow windows ------------------------------------------------------ */
|
||||
|
||||
@media (max-width: 900px) {
|
||||
html { scroll-padding-top: 72px; }
|
||||
.topbar {
|
||||
position: sticky; top: 0; z-index: 11;
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
height: 56px; padding: 0 var(--s4);
|
||||
background: rgba(12, 12, 13, 0.86);
|
||||
-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.topbar .wordmark { font-size: 24px; }
|
||||
.menu-button {
|
||||
height: var(--control); padding: 0 var(--s3);
|
||||
background: var(--raised); color: var(--text);
|
||||
border: 1px solid var(--border); border-radius: var(--radius);
|
||||
font: 500 13px/1 var(--font); cursor: pointer;
|
||||
}
|
||||
.no-js .menu-button { display: none; }
|
||||
.sidebar {
|
||||
inset: 56px 0 auto 0; width: auto; padding: var(--s3) var(--s4) var(--s4);
|
||||
border-right: 0; border-bottom: 1px solid var(--border);
|
||||
background: rgba(12, 12, 13, 0.97);
|
||||
opacity: 0; transform: translateY(-6px); visibility: hidden;
|
||||
transition: opacity var(--quick) var(--ease), transform var(--quick) var(--ease), visibility 0s linear var(--quick);
|
||||
}
|
||||
.sidebar.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
|
||||
.no-js .sidebar { position: static; opacity: 1; transform: none; visibility: visible; }
|
||||
.sidebar > .wordmark { display: none; }
|
||||
.sidebar-foot { flex-direction: row; justify-content: space-between; margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--border); }
|
||||
nav a { height: 40px; font-size: 15px; }
|
||||
.nav-selection { height: 40px; }
|
||||
|
||||
main { margin-left: 0; padding: 0 20px; }
|
||||
main > section { padding-top: 72px; }
|
||||
.hero { padding-top: 48px; }
|
||||
.lede { font-size: 17px; }
|
||||
h2 { font-size: 38px; }
|
||||
.row { grid-template-columns: 1fr; gap: var(--s1); }
|
||||
.row-action { justify-self: start; margin-top: var(--s2) !important; }
|
||||
.gallery { grid-template-columns: 1fr; }
|
||||
.actions .button.large { flex: 1 1 auto; }
|
||||
.parity, .parity tbody, .parity tr, .parity th, .parity td { display: block; width: auto !important; }
|
||||
.parity thead { display: none; }
|
||||
.parity tr { padding: var(--s4) 0; border-bottom: 1px solid var(--border); }
|
||||
.parity th, .parity td { border: 0; padding: 0; }
|
||||
.parity tbody th { margin-bottom: var(--s2); }
|
||||
.parity .score { margin-bottom: var(--s2); }
|
||||
.release .prose { padding-left: 0; }
|
||||
.footer { margin-top: 88px; }
|
||||
}
|
||||
|
||||
/* Line lengths: running text stays between about 45 and 80 characters a line. */
|
||||
.prose p, .prose li, .section-lede, .lede, .row dd, .footer p, .table-meta { max-width: 68ch; }
|
||||
.parity td { max-width: 60ch; }
|
||||
|
||||
/* Touch: every control is at least 44px tall, whatever the width. */
|
||||
@media (pointer: coarse), (max-width: 900px) {
|
||||
.button, .button.large, .menu-button, nav a, .segmented button { min-height: 44px; }
|
||||
.nav-selection { height: 44px; }
|
||||
.segmented button { padding: 0 var(--s4); }
|
||||
.release summary { min-height: 44px; align-items: center; }
|
||||
.zoom { min-height: 44px; }
|
||||
.footer-links a, .sidebar-foot a, .download-meta a { display: inline-flex; align-items: center; min-height: 44px; }
|
||||
.footer-links { gap: var(--s4); }
|
||||
}
|
||||
|
||||
/* Short windows: the hero keeps its title, line and buttons in view. */
|
||||
@media (max-height: 760px) and (min-width: 901px) {
|
||||
.hero { padding-top: 48px; }
|
||||
h1 { font-size: clamp(56px, 12vh, 96px); }
|
||||
.lede { margin-top: var(--s4); }
|
||||
.actions { margin-top: var(--s5); }
|
||||
.rows { margin-top: var(--s6); }
|
||||
.sidebar > .wordmark { padding-bottom: var(--s5); }
|
||||
}
|
||||
|
||||
@media (max-width: 420px) {
|
||||
main { padding: 0 16px; }
|
||||
h1 { font-size: 64px; }
|
||||
h2 { font-size: 34px; }
|
||||
}
|
||||
|
||||
.footer p { max-width: 36em; }
|
||||
.topbar .wordmark { display: inline-flex; align-items: center; min-height: 44px; }
|
||||
@media (max-width: 420px) {
|
||||
html { font-size: 14.5px; }
|
||||
.prose, .row dd { letter-spacing: -0.003em; }
|
||||
}
|
||||
.js .gallery[hidden] { display: none; }
|
||||
.prose p, .prose li, .section-lede, .row dd { max-width: 56ch; }
|
||||
.hero { max-width: var(--wide) !important; }
|
||||
.hero > .rows, .hero > .download-meta { max-width: var(--content); }
|
||||
.hero > .lede { max-width: 34em; }
|
||||
main { position: relative; z-index: 0; }
|
||||
@media (max-width: 900px) {
|
||||
.sidebar { background: var(--sidebar); z-index: 12; }
|
||||
}
|
||||