Files
bflatastic e34b2b0597 App icon: the owner's engraved rhino on MaterialCraft teal
Vectorised with craftrules vectorize_tile.py at the shared Crafting Apps
settings (512 tile, rx=112, ink/paper/#178a9c), with every PNG, .ico and
.icns regenerated by packaging/icons.sh. The README shows the icon, and
the UI accent and web loader use the new teal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 13:26:14 +07:00

50 lines
3.6 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="color-scheme" content="dark">
<title>MaterialCraft</title>
<link data-trunk rel="rust" data-bin="materialcraft-web" data-cargo-profile="wasm-release" data-wasm-opt="z" data-weak-refs />
<style>
html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; overscroll-behavior: none; background: #1c1c1c; }
/* Touch and pen strokes paint and orbit; the browser must not scroll, zoom or select. */
#materialcraft_canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none;
touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
#materialcraft_loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
gap: 12px; padding: 0 16px; text-align: center; color: #b8b8b8; font: 14px system-ui, sans-serif; pointer-events: none; background: #1c1c1c; }
#materialcraft_loading h1 { margin: 0; color: #f2f2f2; font-size: 20px; font-weight: 600; letter-spacing: 0.02em; }
#materialcraft_loading p { margin: 0; max-width: 420px; line-height: 1.5; }
#materialcraft_loading a { color: #e0e0e0; pointer-events: auto; }
/* Indeterminate while the WebAssembly downloads (the page has no script to measure it); the
app sets its value through the startup steps once it runs. */
#materialcraft_progress { width: min(280px, 70vw); height: 4px; border: 0; border-radius: 2px; background: #333; color: #178a9c; accent-color: #178a9c; }
#materialcraft_progress::-webkit-progress-bar { background: #333; border-radius: 2px; }
#materialcraft_progress::-webkit-progress-value { background: #178a9c; border-radius: 2px; }
#materialcraft_progress::-moz-progress-bar { background: #178a9c; border-radius: 2px; }
/* Styled progress bars lose the native "busy" animation: a sweep stands in while downloading. */
#materialcraft_progress:indeterminate { background: linear-gradient(90deg, #333 0%, #178a9c 50%, #333 100%) 0 0 / 300% 100%;
animation: materialcraft-busy 1.4s linear infinite; }
#materialcraft_progress:indeterminate::-webkit-progress-bar { background: transparent; }
#materialcraft_progress:indeterminate::-moz-progress-bar { background: transparent; }
@keyframes materialcraft-busy { from { background-position: 100% 0; } to { background-position: -50% 0; } }
#materialcraft_status { font-size: 12px; color: #969696; }
/* The app removes this element once it runs. If the WebAssembly never downloads or doesn't match
this page, no Rust runs to say so, so the page itself shows what to do after a while. */
#materialcraft_stalled { color: #8c8c8c; visibility: hidden; animation: materialcraft-stalled 0s 30s forwards; }
@keyframes materialcraft-stalled { to { visibility: visible; } }
</style>
</head>
<body>
<canvas id="materialcraft_canvas"></canvas>
<div id="materialcraft_loading" role="status" aria-live="polite">
<h1>MaterialCraft</h1>
<progress id="materialcraft_progress" max="1" aria-label="Loading MaterialCraft"></progress>
<p id="materialcraft_status">Downloading&hellip;</p>
<p id="materialcraft_stalled">This is taking longer than usual. If MaterialCraft doesn't start, its files may have failed to
download or come from a different version of this page. <a href="">Reload</a> to try again; the browser
console lists what failed.</p>
</div>
</body>
</html>