interplane.Get Omega
Read in your language

aienos.com

Source of www.aienos.com, served from my own hardware

Brought by drakestapleton

branch main Branches Tags History

aienos.com / crates / site-builder / src / components / terminal.rs

87 lines · 6961 bytes Raw Blame History
1use maud::{html, Markup};
2
3pub fn render_terminal() -> Markup {
4 html! {
5 section id="terminal" style="padding: 80px 0; border-bottom: 1px solid var(--border-subtle); background: var(--bg-surface);" {
6 div class="container" {
7 div style="margin-bottom: 32px;" {
8 div class="badge badge-green" style="margin-bottom: 12px;" {
9 "INTERACTIVE SIMULATION"
10 }
11 h2 style="font-size: 32px; font-weight: 700; letter-spacing: -0.02em; color: var(--text-primary);" {
12 "The syscall interface, simulated"
13 }
14 p style="color: var(--text-secondary); margin-top: 8px; max-width: 680px;" {
15 "A simulation that runs entirely in your browser. No live machine is attached to this page, and nothing you type leaves it. It shows the shape of the interface the real machine speaks. The real machine's proof is in the evidence section above, receipts and all."
16 }
17 }
18
19 div class="terminal-shell" style="border: 1px solid var(--border-subtle); border-radius: 8px; background: var(--bg-base); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); overflow: hidden;" {
20 div style="padding: 12px 16px; background: rgba(14, 18, 25, 0.95); border-bottom: 1px solid var(--border-subtle); display: flex; align-items: center; justify-content: space-between; gap: 16px;" {
21 div style="display: flex; align-items: center; gap: 8px;" {
22 span style="width: 10px; height: 10px; border-radius: 50%; background: #ef4444;" {}
23 span style="width: 10px; height: 10px; border-radius: 50%; background: #f59e0b;" {}
24 span style="width: 10px; height: 10px; border-radius: 50%; background: #10b981;" {}
25 span class="terminal-title" style="margin-left: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted);" {
26 "AienOS REPL v0.4.0 (sm_121a · aarch64 · 128GB LPDDR5x)"
27 }
28 }
29 div class="terminal-status" style="display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--accent-green);" {
30 span style="width: 6px; height: 6px; border-radius: 50%; background: var(--accent-green); box-shadow: 0 0 6px var(--accent-green);" {}
31 "COHERENT_ACTIVE"
32 }
33 }
34
35 div style="padding: 10px 16px; background: rgba(14, 18, 25, 0.6); border-bottom: 1px solid var(--border-subtle); display: flex; align-items: center; gap: 8px; flex-wrap: wrap;" {
36 span style="font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); text-transform: uppercase;" {
37 "Quick Triggers:"
38 }
39 button type="button" data-cmd="sys_telemetry" style="background: var(--bg-card); color: var(--text-secondary); border: 1px solid var(--border-subtle); border-radius: 4px; padding: 4px 10px; font-family: var(--font-mono); font-size: 12px; cursor: pointer;" {
40 "sys_telemetry"
41 }
42 button type="button" data-cmd="sys_alloc_kv" style="background: var(--bg-card); color: var(--text-secondary); border: 1px solid var(--border-subtle); border-radius: 4px; padding: 4px 10px; font-family: var(--font-mono); font-size: 12px; cursor: pointer;" {
43 "sys_alloc_kv"
44 }
45 button type="button" data-cmd="sys_vault" style="background: var(--bg-card); color: var(--text-secondary); border: 1px solid var(--border-subtle); border-radius: 4px; padding: 4px 10px; font-family: var(--font-mono); font-size: 12px; cursor: pointer;" {
46 "sys_vault"
47 }
48 button type="button" id="terminal-clear-btn" style="margin-left: auto; background: transparent; color: var(--text-muted); border: none; font-family: var(--font-mono); font-size: 11px; cursor: pointer;" {
49 "[clear]"
50 }
51 }
52
53 div id="terminal-output" style="padding: 20px; min-height: 280px; max-height: 440px; overflow-y: auto; font-family: var(--font-mono); font-size: 13px; line-height: 1.6;" {
54 div class="terminal-log-line sys" {
55 span class="sys-msg" style="color: var(--accent-blue);" {
56 "[*] AienOS Neural Kernel v0.4.0 initialized on GB10 (aarch64)."
57 }
58 }
59 div class="terminal-log-line sys" {
60 span class="sys-msg" style="color: var(--accent-blue);" {
61 "[*] Unified coherent address space: 128 GB LPDDR5x online."
62 }
63 }
64 div class="terminal-log-line sys" {
65 span class="sys-msg" style="color: var(--accent-blue);" {
66 "[*] Capability vault sealed. Zero disk secrets invariant active."
67 }
68 }
69 div class="terminal-log-line sys" {
70 span class="sys-msg" style="color: var(--text-muted);" {
71 "[*] Type a syscall below or click one of the quick trigger buttons above."
72 }
73 }
74 }
75
76 form id="terminal-form" style="padding: 12px 16px; background: rgba(14, 18, 25, 0.95); border-top: 1px solid var(--border-subtle); display: flex; align-items: center; gap: 8px;" {
77 span style="color: var(--accent-green); font-family: var(--font-mono); font-size: 14px; font-weight: 700;" { "$" }
78 input id="terminal-input" type="text" aria-label="Type a syscall (sys_telemetry, sys_alloc_kv, sys_vault, help)..." placeholder="Type a syscall (sys_telemetry, sys_alloc_kv, sys_vault, help)..." autocomplete="off" style="flex: 1; background: transparent; border: none; outline: none; color: var(--text-primary); font-family: var(--font-mono); font-size: 13px;" {}
79 button type="submit" style="background: var(--accent-green); color: var(--bg-base); border: none; border-radius: 4px; padding: 6px 14px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; cursor: pointer;" {
80 "RUN"
81 }
82 }
83 }
84 }
85 }
86 }
87}