Files
hearth/docs/wowmine/DESIGN.md
T

129 lines
6.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# wowmine
## 1. Purpose
A Russian-language Minecraft server landing page at `/wowmine/`. The existing
Prism publication at `/minecraft/wowmine/` remains the source of downloads
and updates. This page never publishes or changes a client pack or server world.
Primary action: download the auto-updating Prism instance.
Information priorities: the Azeroth/Outland world, how to install, how to connect.
Required content: Prism ZIP, server address, Minecraft 1.21.1, NeoForge 21.1.250,
Java 21, 8 GiB instance allocation, permission for the pre-launch updater,
preserved options.txt, managed configuration updates, relaunch after a loader
update, manual mrpack and checksums.
Left out: invented player counts, fake live status, reviews, prices, account
forms, tracking, external JavaScript, and changes to the existing pack publisher.
## 2. Direction
Minecraft's tangible game-menu language: square controls, inset highlights,
block geometry, earthy stone surfaces, warm sunlight and a grassy green action.
The hero is an original fictional voxel illustration, not a server screenshot.
Russo One gives the Cyrillic display a block-built silhouette; Golos Text keeps
instructions readable. No official Minecraft logo or character art is used.
The alternatives were a generic launcher dashboard and a parchment fantasy
page. Both obscure the requested Minecraft identity; neither is used.
Material exceptions to the general frontend defaults are deliberate: square
bevels and small hard shadows evoke Minecraft controls, not SaaS cards.
## 3. Tokens
Both light and dark palettes and the deployed theme switch are retained.
Dark: background `#141a15`, raised `#202921`, inset `#101610`,
text `#f4f3e7`, muted `#bec9b8`, line `#394638`.
Shared: grass `#a7d754`, grass hover `#b9e66c`, action ink `#17250d`,
focus `#e8b86c`;
hero ink `#fffdf0`, hero muted `#e5e9d7`.
Type: Russo One 400 for display/headings, Golos Text 400/600 for UI/body;
system monospace only for the server address and filenames.
Display: 36–84px; h2: 32–48px; h3: 24–28px; body: 16–18px; small: 14px.
Space: 4, 8, 12, 16, 24, 32, 48, 64, 80, 96px.
Container: 1200px maximum, 24px mobile and 48px desktop gutters.
Controls: minimum 48px tall, square corners; focus outline 3px with 4px offset.
Motion: 140ms ease-out for press/hover feedback; no ambient loops.
## 4. Layout
Layout: wowmine page - a world introduction followed by installation and help ->
main-with-rail (https://github.com/changeroa/StyleGallery/blob/main/patterns/split-sidebar/main-with-rail.md);
scroll owner: document; anti-patterns: no fixed-height scroll panels, no hidden
mobile content, no visual reordering that changes keyboard order.
Layout: installation - sequential setup actions ->
step-nav (https://github.com/changeroa/StyleGallery/blob/main/patterns/stacking/step-nav.md);
scroll owner: document; anti-patterns: no horizontal step scroller and no
same-size feature-card grid.
The hero uses one scenic image and readable text over a dark scrim.
Below it, theme-aware stone surfaces hold the server address and setup
instructions. Desktop has a narrow requirements rail; mobile stacks in DOM
order. Footer stays in normal flow. The whole page reflows down to 320px.
## 5. Components and states
- Brand: original block mark plus wowmine, linked to the page start.
- Navigation: in-page links; no account or fake menu.
- Primary download: `wowmine-Prism.zip`, suggested filename `wowmine.zip`; one
prominent button with hover/pressed/focus states.
- Copy-address row: address always visible; stable-size icon button; polite,
reserved feedback for success or clipboard denial. Address remains selectable.
- Setup list: three numbered instructions with real destinations and named
files; no interaction required to read the instructions.
- Requirements list: semantic description list, not performance claims.
- FAQ: native details/summary, visible keyboard focus and open-state icon.
- Theme: light and dark appearances, with the existing theme switch preserved.
## 6. Content and assets
Verified existing source: `docs/minecraft-prism.md`, the public active page,
and `script/build-prism-pack.py`. Stable links stay under
`/minecraft/wowmine/`; Prism ZIP is not a plain mrpack import.
Fonts are self-hosted Google Fonts releases under OFL, with notices beside them.
Hero art is generated specifically for this page; original generation is
retained in task evidence, and the shipped asset is a compressed WebP.
All other graphics are small SVG interface glyphs and an original favicon.
## 7. Accessibility and browser surfaces
Semantic landmarks, one h1, ordered h2/h3 headings, skip link, native FAQ,
visible focus, text selection, themed scrollbars, no color-only instructions.
Target: WCAG 2.2 AA contrast and reflow; touch controls 44px or larger.
Reduced motion disables smooth scrolling and transforms. The static document
works without JavaScript: downloads, setup, FAQ, and selectable IP remain usable.
Both light and dark appearances are checked on mobile and desktop; the component state harness is
the real page, exercised through browser interactions.
## 8. Evidence and accepted debt
Before captures: `/tmp/wowmine-qa/before-{desktop,mobile}.png`.
After captures and checks: `/tmp/wowmine-qa/`.
Publication is separate from local implementation and must be reported honestly.
No visual debt accepted yet.
Verified locally in Chromium: 1440px and 390px, both themes, installation
layout, native FAQ expansion, clipboard success and permission denial,
visible keyboard focus, and no horizontal overflow at 320px.
Captures: `after-{desktop,mobile}-{light,dark}.png`, `mobile-install.png`,
and `reflow-320.png` in the evidence directory.
HTTP preview serves the redirect, document, scripts, fonts and image; the three
existing public download/checksum URLs return 200.
Nix parsing and isolated route evaluation pass. Bun browser bundling and the
frontend draft guard pass. Full NixOS deployment was not run.
The frontend detect renderer cannot run on installed Bun 1.2.13 because
`Bun.WebView` is unavailable; browser checks above were run directly instead.
TypeScript and editor language servers are not installed; browser bundling
checks JavaScript syntax, not a full TypeScript analysis.
## 9. Gap ledger
| ID | Before | Required improvement | Proof |
| --- | --- | --- | --- |
| G1 | `/wowmine` returns 404 | Add a Nix-owned static route | Route evaluation and HTTP preview |
| G2 | Bare browser-default text | Minecraft identity and readable hierarchy | Desktop/mobile screenshots |
| G3 | Instructions lack structure | Ordered setup, requirements and FAQ | Browser landmarks and links |
| G4 | IP is plain text | Copy action with accessible feedback | Keyboard and clipboard states |
| G5 | No responsive/theme system | 320px reflow and both themes | Reflow/contrast probes |