Initial commit

This commit is contained in:
2026-07-21 16:30:52 +02:00
commit c2b67d8bb2
46 changed files with 8518 additions and 0 deletions
+479
View File
@@ -0,0 +1,479 @@
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");
:root {
--bg-void: #0d0f12;
--bg-panel: #16191d;
--bg-raised: #1e2227;
--border-hairline: #2a2f36;
--text-primary: #e8eaed;
--text-muted: #8b92a0;
--accent-brand: #5b8def;
--accent-live: #3ecf8e;
--accent-down: #ff5c5c;
--accent-connecting: #f5a623;
--font-ui: "Inter", -apple-system, "Segoe UI", sans-serif;
--font-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
}
* {
box-sizing: border-box;
}
html,
body,
#root {
height: 100%;
}
body {
margin: 0;
background: var(--bg-void);
color: var(--text-primary);
font-family: var(--font-ui);
}
.mono {
font-family: var(--font-mono);
}
.app {
display: flex;
flex-direction: column;
height: 100vh;
}
/* ---------- Top bar ---------- */
.topbar {
display: flex;
align-items: center;
gap: 20px;
padding: 0 16px;
height: 48px;
background: var(--bg-void);
border-bottom: 1px solid var(--border-hairline);
-webkit-app-region: drag;
}
.logo-slot {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
aspect-ratio: 1 / 1;
width: auto;
flex-shrink: 0;
overflow: hidden;
-webkit-app-region: no-drag;
}
.logo-slot > * {
width: 100%;
height: 100%;
}
.tabstrip {
display: flex;
align-items: flex-end;
gap: 2px;
height: 48px;
overflow-x: auto;
overflow-y: hidden;
-webkit-app-region: no-drag;
scrollbar-width: thin;
scrollbar-color: var(--border-hairline) transparent;
}
.tabstrip::-webkit-scrollbar {
height: 6px;
}
.tabstrip::-webkit-scrollbar-track {
background: transparent;
}
.tabstrip::-webkit-scrollbar-thumb {
background: var(--border-hairline);
border-radius: 6px;
}
.tabstrip::-webkit-scrollbar-thumb:hover {
background: var(--text-muted);
}
.tab {
display: flex;
align-items: center;
gap: 8px;
height: 36px;
margin-top: 8px;
padding: 0 12px;
border: 1px solid transparent;
border-bottom: none;
border-radius: 8px 8px 0 0;
background: transparent;
color: var(--text-muted);
font-family: var(--font-ui);
font-size: 13px;
cursor: pointer;
transition: background 0.12s ease, color 0.12s ease;
width: 160px;
flex: 0 0 auto;
}
.tab:hover {
background: var(--bg-raised);
color: var(--text-primary);
}
.tab--active {
background: var(--bg-panel);
border-color: var(--border-hairline);
color: var(--text-primary);
}
.tab--dimmed {
opacity: 0.55;
}
.tab-name {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.tab-close {
margin-left: 2px;
font-size: 15px;
line-height: 1;
color: var(--text-muted);
border-radius: 4px;
padding: 2px 4px;
}
.tab-close:hover {
background: rgba(255, 255, 255, 0.08);
color: var(--text-primary);
}
/* Quiet icon button — used once at least one tab exists */
.tab-add {
display: flex;
align-items: center;
justify-content: center;
width: 26px;
height: 26px;
align-self: flex-end;
margin-bottom: 5px; /* (tab height 36 - button height 26) / 2 */
margin-left: 6px;
border: none;
border-radius: 50%;
background: transparent;
color: var(--text-muted);
cursor: pointer;
flex-shrink: 0;
transition: background 0.12s ease, color 0.12s ease;
}
.tab-add:hover {
background: var(--bg-raised);
color: var(--text-primary);
}
.tab-add:active {
background: var(--border-hairline);
}
/* Clearer CTA — used when the bar has nothing else to anchor to */
.tab-add-empty {
display: flex;
align-items: center;
gap: 6px;
height: 30px;
align-self: flex-end;
margin-bottom: 3px; /* (tab height 36 - CTA height 30) / 2 */
padding: 0 12px 0 10px;
border: 1px dashed var(--border-hairline);
border-radius: 999px;
background: transparent;
color: var(--text-muted);
font-family: var(--font-ui);
font-size: 12px;
font-weight: 500;
cursor: pointer;
flex-shrink: 0;
transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.tab-add-empty:hover {
background: var(--bg-raised);
border-color: var(--accent-brand);
border-style: solid;
color: var(--text-primary);
}
/* ---------- LED status dot ---------- */
.led {
width: 8px;
height: 8px;
border-radius: 50%;
flex-shrink: 0;
background: var(--accent-down);
}
.led--connected {
background: var(--accent-live);
box-shadow: 0 0 6px 1px var(--accent-live);
}
.led--connecting {
background: var(--accent-connecting);
box-shadow: 0 0 6px 1px var(--accent-connecting);
animation: pulse 1s ease-in-out infinite;
}
.led--disconnected {
background: var(--accent-down);
box-shadow: 0 0 4px 0px var(--accent-down);
}
.led--lg {
width: 12px;
height: 12px;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.4; }
}
/* ---------- Stage / main area ---------- */
.stage {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
padding: 40px 24px;
background: var(--bg-panel);
overflow-y: auto;
}
.card {
width: 100%;
max-width: 480px;
background: var(--bg-raised);
border: 1px solid var(--border-hairline);
border-radius: 12px;
padding: 28px;
}
.empty {
display: flex;
flex-direction: column;
align-items: center;
gap: 14px;
color: var(--text-muted);
text-align: center;
}
.empty-mark {
font-size: 28px;
color: var(--border-hairline);
}
.empty p {
margin: 0;
font-size: 14px;
}
/* ---------- DSP panel ---------- */
.panel-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
margin-bottom: 24px;
}
.panel-title {
margin: 0;
font-size: 18px;
font-weight: 600;
}
.panel-type {
margin-top: 4px;
font-size: 12px;
color: var(--text-muted);
font-family: var(--font-mono);
letter-spacing: 0.03em;
}
.status-block {
display: flex;
align-items: center;
gap: 8px;
flex-shrink: 0;
}
.status-label {
font-size: 12px;
font-weight: 500;
}
.status-label--connected { color: var(--accent-live); }
.status-label--connecting { color: var(--accent-connecting); }
.status-label--disconnected { color: var(--text-muted); }
.specs {
display: flex;
flex-direction: column;
gap: 12px;
margin: 0 0 24px;
padding: 16px;
background: var(--bg-panel);
border: 1px solid var(--border-hairline);
border-radius: 8px;
}
.spec {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 13px;
}
.spec dt {
color: var(--text-muted);
}
.spec dd {
margin: 0;
color: var(--text-primary);
}
.panel-actions {
display: flex;
justify-content: flex-end;
}
/* ---------- Form ---------- */
.form-header {
margin-bottom: 20px;
}
.form-hint {
margin: 6px 0 0;
font-size: 13px;
color: var(--text-muted);
}
.field {
display: flex;
flex-direction: column;
gap: 6px;
margin-bottom: 16px;
flex: 1;
}
.field--grow {
flex: 2;
}
.field--narrow {
flex: 1;
}
.field-row {
display: flex;
gap: 12px;
}
.field label {
font-size: 12px;
color: var(--text-muted);
}
.field input,
.field select {
height: 36px;
padding: 0 10px;
background: var(--bg-panel);
border: 1px solid var(--border-hairline);
border-radius: 6px;
color: var(--text-primary);
font-family: var(--font-ui);
font-size: 13px;
outline: none;
transition: border-color 0.12s ease;
}
.field input.mono {
font-family: var(--font-mono);
}
.field input:focus,
.field select:focus {
border-color: var(--accent-brand);
}
.form-actions {
display: flex;
justify-content: flex-end;
gap: 10px;
margin-top: 8px;
}
/* ---------- Buttons ---------- */
.btn {
height: 36px;
padding: 0 16px;
border-radius: 6px;
font-family: var(--font-ui);
font-size: 13px;
font-weight: 500;
cursor: pointer;
border: 1px solid transparent;
transition: background 0.12s ease, border-color 0.12s ease, opacity 0.12s ease;
}
.btn:disabled {
opacity: 0.45;
cursor: not-allowed;
}
.btn-primary {
background: var(--accent-brand);
color: #0d0f12;
}
.btn-primary:hover:not(:disabled) {
background: #6f9bf2;
}
.btn-outline {
background: transparent;
border-color: var(--accent-down);
color: var(--accent-down);
}
.btn-outline:hover {
background: rgba(255, 92, 92, 0.1);
}
.btn-ghost {
background: transparent;
border-color: var(--border-hairline);
color: var(--text-muted);
}
.btn-ghost:hover {
color: var(--text-primary);
border-color: var(--text-muted);
}