Files
materialcraft/apps/materialcraft-web/index.html
T
bflatasticandClaude Opus 5.5 54fc5b9571 README, AGENTS, ATTRIBUTION, roadmap and docs; web app; icons
The README in the Crafting Apps frame with real screenshots and renders made
by MaterialCraft, the agent guide with the asset and clean-room rules, the
attribution list, the parity assessment, gaps, roadmap, architecture,
control protocol, localization and file format docs. Adds the browser build
(trunk), the .ico/.icns icons and centers the 3D camera on the mesh bounds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 04:04:13 +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: #1ea7c4; accent-color: #1ea7c4; }
#materialcraft_progress::-webkit-progress-bar { background: #333; border-radius: 2px; }
#materialcraft_progress::-webkit-progress-value { background: #1ea7c4; border-radius: 2px; }
#materialcraft_progress::-moz-progress-bar { background: #1ea7c4; 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%, #1ea7c4 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>