Files
hemx/examples/techdemo/templates/control_center.heml
T
slhx agent e788c31688 feat(examples): add flagship techdemo
req: examples/001

req: dx/008

req: form/002

req: page_swap/002

req: push/003
2026-05-11 00:06:42 +02:00

66 lines
2.7 KiB
Plaintext

<main data-slhx-root="techdemo" data-slhx-sse="/events">
<section class="hero-shell">
<div class="hero-copy">
<p class="eyebrow">Semantic, Laterally HX</p>
<h1>Rust owns the interaction graph. The browser executes tiny typed effects.</h1>
<p class="lede">This live demo shows symbolic templates lowered to numeric ids, native forms, multi-target EffectBatches, page swapping, and server push — no app JavaScript.</p>
</div>
<div class="hero-panel" data-slhx-slot="hero_metrics">__HERO__</div>
</section>
<nav class="topology" data-slhx-slot="nav">
<a href="/" data-slhx-nav="">Live system</a>
<a href="/architecture" data-slhx-nav="">Architecture</a>
</nav>
<section class="workspace">
<aside class="command-card">
<h2>Launch typed work</h2>
<form data-slhx-handle="launch_work" data-slhx-form="launch_work" data-slhx-disable-while-pending>
<label>Title <input name="title" required="required" value="Ship typed effects"></label>
<label>Lane
<select name="lane" required="required">
<option value="compiler">Compiler</option>
<option value="runtime">Runtime</option>
<option value="product">Product</option>
</select>
</label>
<label>Impact <input name="impact" type="number" min="1" max="9" value="7"></label>
<button type="submit">Launch work</button>
</form>
<div class="quick-actions">
<button type="button" data-slhx-handle="simulate_push">Simulate server push</button>
<button type="button" data-slhx-handle="reset_demo">Reset demo</button>
</div>
<p data-slhx-slot="notice" class="notice">Every control posts a numeric handle id and receives an EffectBatch.</p>
</aside>
<section class="board-card">
<div class="section-heading">
<span>Generated slots + keyed cards</span>
<strong>no selectors, no VDOM</strong>
</div>
<div data-slhx-slot="board">__BOARD__</div>
</section>
</section>
<section class="insight-grid">
<article class="glass-card">
<h2>Effect inspector</h2>
<div data-slhx-slot="inspector">__INSPECTOR__</div>
</article>
<article class="glass-card">
<h2>Activity stream</h2>
<div data-slhx-slot="activity">__ACTIVITY__</div>
</article>
<article class="glass-card glow">
<h2>Server push</h2>
<div data-slhx-slot="live_feed">Waiting for SSE heartbeat…</div>
</article>
</section>
<button type="button" data-slhx-handle="advance_work" hidden="hidden">Advance</button>
<button type="button" data-slhx-handle="delete_work" hidden="hidden">Delete</button>
<button type="button" data-slhx-handle="spotlight_work" hidden="hidden">Spotlight</button>
</main>