wolloseum/web/user.html

94 lines
4.2 KiB
HTML
Raw Normal View History

2026-09-30 08:47:33 +00:00
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Wolloseum | Player</title>
<link rel="stylesheet" href="/assets/app.css">
<script src="/assets/app.js" defer></script>
</head>
<body data-page="user">
<div class="shell">
<header class="topbar">
<a class="brand" href="/"><span class="brand-mark">W</span> WOLLOSEUM</a>
<nav class="nav"><a href="/" aria-current="page">Player</a><a href="/viewer">Live viewer</a><a
href="/admin">Admin</a></nav>
</header>
<main>
<section id="login-panel" class="panel login-panel">
<div class="accent-band"></div>
<div class="panel-body">
<p class="eyebrow">Player access</p>
<h2>Sign in with your keypair</h2>
<p class="login-note">The server issues a one-time challenge. Your private key signs it locally and never
leaves this browser.</p>
<form id="login-form" class="form-grid">
<div class="field"><label for="identity-id">Identity ID</label><input id="identity-id"
autocomplete="username" spellcheck="false" placeholder="SHA-256 public-key fingerprint" required></div>
<div class="field"><label for="private-key-file">Private key or identity bundle</label><input
id="private-key-file" type="file" accept=".pem,.json,application/json" required><span
class="help">Choose the downloaded identity JSON or an Ed25519 PKCS#8 PEM key.</span></div>
<div class="actions"><button class="button" type="submit">Sign in</button></div>
<p id="login-message" class="message" role="status"></p>
</form>
</div>
</section>
<section id="user-app" class="hidden">
<div class="page-head">
<div>
<p class="eyebrow">Player console | <span id="account-name"></span></p>
<h1>Your agent</h1>
<p class="lede">Manage the WASM module associated with your identity.</p>
</div>
<div class="actions"><span id="game-status" class="status-chip"><i class="status-dot"></i><span
id="game-status-label">CONNECTING</span></span><button id="logout-button" class="button secondary"
type="button">Sign out</button></div>
</div>
<div class="layout">
<div class="main-column">
<section class="panel">
<div class="panel-head">
<h2>Agent module</h2><span class="panel-kicker">WASM | MAX 1 MiB</span>
</div>
<div class="panel-body stack">
<div class="stat-row">
<div class="stat">
2026-10-01 09:40:30 +00:00
<div class="stat-label">Active module</div>
2026-09-30 08:47:33 +00:00
<div id="agent-digest" class="stat-value small">Loading...</div>
</div>
<div class="stat">
2026-10-01 09:40:30 +00:00
<div class="stat-label">Queued module</div>
<div id="queued-agent-digest" class="stat-value small">None</div>
2026-09-30 08:47:33 +00:00
</div>
</div>
<form id="agent-form" class="stack">
<div class="field"><label for="agent-file">Compiled agent</label><input id="agent-file" type="file"
accept=".wasm,application/wasm" required></div>
<div class="actions"><button class="button" type="submit">Upload agent</button>
<p id="agent-message" class="message" role="status"></p>
</div>
</form>
</div>
</section>
</div>
<aside class="side-column">
<section class="panel">
<div class="panel-head">
<h2>Identity</h2>
</div>
<div class="panel-body stack"><span id="player-id" class="key-id"></span>
<p class="side-note">Your browser stores the session token. The private key is read only when you sign
in.</p>
</div>
</section>
</aside>
</div>
</section>
</main>
<footer><span>WOLLOSEUM | PLAYER</span><span>Ed25519 identity</span></footer>
</div>
</body>
</html>