Add a stage simulator that draws the rig from Art-Net.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
jimmyandCursor committed 2026-10-21 17:39:13 +13:00
1 parent 9b5f6b5bdd
commit 24f9ca300e
10 files changed
+2237

No files matched your search

+158
View File
@@ -0,0 +1,158 @@
:root {
color-scheme: dark;
--bg: #0e0e10;
--panel: #141418;
--line: #2c2c34;
--text: #eee;
--muted: #8d8d96;
--live: #3dd68c;
--idle: #d7a13a;
}
* { box-sizing: border-box; }
html, body {
margin: 0;
height: 100%;
background: var(--bg);
color: var(--text);
font-family: system-ui, sans-serif;
}
body {
display: grid;
grid-template-rows: auto 1fr;
min-height: 100%;
}
header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 12px 16px;
border-bottom: 1px solid var(--line);
}
h1, h2 {
margin: 0;
font-size: 16px;
font-weight: 600;
}
h2 { font-size: 14px; }
.titles p, .meta {
margin: 2px 0 0;
color: var(--muted);
font-size: 12px;
}
.pill {
margin: 0;
padding: 4px 10px;
border-radius: 999px;
background: #2a2418;
color: var(--idle);
font-size: 12px;
font-variant-numeric: tabular-nums;
}
.pill.live {
background: #14281e;
color: var(--live);
}
main {
display: grid;
grid-template-columns: 1fr 300px;
min-height: 0;
}
canvas {
width: 100%;
height: 100%;
display: block;
background: #121216;
touch-action: none;
}
aside {
border-left: 1px solid var(--line);
background: var(--panel);
overflow: auto;
padding: 12px 14px 24px;
}
ul {
list-style: none;
margin: 10px 0 0;
padding: 0;
}
li {
display: grid;
grid-template-columns: 18px 1fr auto;
gap: 8px;
align-items: center;
padding: 7px 6px;
border-radius: 6px;
cursor: pointer;
}
li:hover, li.selected { background: #22222a; }
.swatch {
width: 18px;
height: 18px;
border-radius: 50%;
border: 1px solid #555;
background: #222;
}
li.mover .swatch { border-radius: 3px; }
.name { font-size: 13px; font-weight: 600; }
.addr { color: var(--muted); font-size: 11px; }
#detail { margin-top: 16px; }
#channels {
display: grid;
gap: 3px;
margin-top: 8px;
}
.channel {
display: grid;
grid-template-columns: 22px minmax(72px, 1.2fr) 1fr 28px;
gap: 6px;
align-items: center;
font-size: 11px;
color: var(--muted);
font-variant-numeric: tabular-nums;
}
.ch-name {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.bar {
height: 6px;
background: #2a2a32;
border-radius: 99px;
overflow: hidden;
}
.bar span {
display: block;
height: 100%;
background: #d0d0d8;
}
@media (max-width: 800px) {
main { grid-template-columns: 1fr; grid-template-rows: minmax(280px, 1fr) auto; }
aside { border-left: 0; border-top: 1px solid var(--line); max-height: 42vh; }
}