Der nächste Layer ist jetzt als echte gemeinsame Außenkante umgesetzt. Das neue API-Crate in [server.rs](</C:/Users/janni/Documents/RFP/Infinity_Vis _Rust/crates/infinity_host_api/src/server.rs>), [dto.rs](</C:/Users/janni/Documents/RFP/Infinity_Vis _Rust/crates/infinity_host_api/src/dto.rs>) und [main.rs](</C:/Users/janni/Documents/RFP/Infinity_Vis _Rust/crates/infinity_host_api/src/main.rs>) stellt die geforderten versionierten Endpunkte bereit: GET /api/v1/snapshot, GET /api/v1/catalog, GET /api/v1/presets, GET /api/v1/groups, POST /api/v1/command und WS /api/v1/stream. Die API trennt jetzt sauber zwischen Command-, State-, Preview- und Event-Modell, inklusive stabiler Außen-Enums und dokumentierten Fehlerobjekten statt eines unreflektierten 1:1-Core-Leaks.
Darauf sitzt die erste Web-UI V1 direkt gegen diese API in [index.html](</C:/Users/janni/Documents/RFP/Infinity_Vis _Rust/web/v1/index.html>), [app.js](</C:/Users/janni/Documents/RFP/Infinity_Vis _Rust/web/v1/app.js>) und [styles.css](</C:/Users/janni/Documents/RFP/Infinity_Vis _Rust/web/v1/styles.css>). Sie enthält Pattern-/Preset-Auswahl, globale Regler, Gruppenauswahl, Übergänge, Preview, Snapshot-Anzeige und Event-Feed. Die technische Desktop-GUI bleibt bewusst die Engineering-/Diagnoseoberfläche; die kreative Web-UI baut nicht an einer Parallelarchitektur vorbei. Contract-Tests liegen in [contract.rs](</C:/Users/janni/Documents/RFP/Infinity_Vis _Rust/crates/infinity_host_api/tests/contract.rs>), und die API ist mit Beispiel-Responses in [docs/host_api.md](</C:/Users/janni/Documents/RFP/Infinity_Vis _Rust/docs/host_api.md>) dokumentiert. Zusätzlich habe ich [README.md](</C:/Users/janni/Documents/RFP/Infinity_Vis _Rust/README.md>), [docs/build_and_deploy.md](</C:/Users/janni/Documents/RFP/Infinity_Vis _Rust/docs/build_and_deploy.md>) und [docs/architecture.md](</C:/Users/janni/Documents/RFP/Infinity_Vis _Rust/docs/architecture.md>) auf den neuen Stand gebracht. Verifiziert habe ich: - `cargo check -p infinity_host_api` - `cargo test -p infinity_host_api` - `cargo test -q` Nicht verifiziert habe ich eine separate JS-Syntaxprüfung mit `node --check`, weil `node` in dieser Umgebung nicht installiert ist.
This commit is contained in:
490
web/v1/styles.css
Normal file
490
web/v1/styles.css
Normal file
@@ -0,0 +1,490 @@
|
||||
:root {
|
||||
--bg: #f3ede2;
|
||||
--bg-secondary: #efe2cd;
|
||||
--surface: rgba(255, 251, 244, 0.82);
|
||||
--surface-strong: rgba(255, 248, 238, 0.94);
|
||||
--line: rgba(56, 63, 61, 0.12);
|
||||
--text: #1f2424;
|
||||
--muted: #596463;
|
||||
--accent: #ea6a36;
|
||||
--accent-strong: #c34d1c;
|
||||
--accent-cool: #198c8f;
|
||||
--danger: #bc2f2f;
|
||||
--shadow: 0 24px 60px rgba(91, 63, 38, 0.12);
|
||||
--radius-xl: 28px;
|
||||
--radius-lg: 22px;
|
||||
--radius-md: 16px;
|
||||
--radius-sm: 12px;
|
||||
--font-sans: "Segoe UI Variable", "Aptos", "Trebuchet MS", sans-serif;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
margin: 0;
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
background:
|
||||
radial-gradient(circle at 10% 15%, rgba(234, 106, 54, 0.22), transparent 28%),
|
||||
radial-gradient(circle at 88% 12%, rgba(25, 140, 143, 0.16), transparent 24%),
|
||||
radial-gradient(circle at 84% 78%, rgba(239, 202, 130, 0.24), transparent 22%),
|
||||
linear-gradient(160deg, var(--bg) 0%, var(--bg-secondary) 52%, #f6f2ea 100%);
|
||||
color: var(--text);
|
||||
font-family: var(--font-sans);
|
||||
}
|
||||
|
||||
body::before,
|
||||
body::after {
|
||||
content: "";
|
||||
position: fixed;
|
||||
inset: auto;
|
||||
pointer-events: none;
|
||||
border-radius: 999px;
|
||||
filter: blur(32px);
|
||||
opacity: 0.55;
|
||||
}
|
||||
|
||||
body::before {
|
||||
width: 280px;
|
||||
height: 280px;
|
||||
top: 18%;
|
||||
right: -80px;
|
||||
background: rgba(234, 106, 54, 0.16);
|
||||
}
|
||||
|
||||
body::after {
|
||||
width: 320px;
|
||||
height: 320px;
|
||||
bottom: -120px;
|
||||
left: -60px;
|
||||
background: rgba(25, 140, 143, 0.12);
|
||||
}
|
||||
|
||||
.page-shell {
|
||||
width: min(1440px, calc(100vw - 32px));
|
||||
margin: 0 auto;
|
||||
padding: 28px 0 40px;
|
||||
}
|
||||
|
||||
.hero,
|
||||
.panel {
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--line);
|
||||
box-shadow: var(--shadow);
|
||||
backdrop-filter: blur(18px);
|
||||
}
|
||||
|
||||
.hero {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
|
||||
gap: 24px;
|
||||
padding: 28px;
|
||||
border-radius: var(--radius-xl);
|
||||
animation: rise-in 520ms ease-out;
|
||||
}
|
||||
|
||||
.hero-copy h1,
|
||||
.section-heading h2,
|
||||
.subsection-heading h3 {
|
||||
margin: 0;
|
||||
letter-spacing: -0.03em;
|
||||
}
|
||||
|
||||
.hero-copy h1 {
|
||||
font-size: clamp(2rem, 3vw, 3.6rem);
|
||||
line-height: 0.95;
|
||||
}
|
||||
|
||||
.eyebrow {
|
||||
margin: 0 0 10px;
|
||||
color: var(--accent-strong);
|
||||
font-size: 0.82rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.18em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.hero-subtitle,
|
||||
.section-heading p,
|
||||
.subsection-heading p,
|
||||
.field span,
|
||||
.event-meta,
|
||||
.status-label,
|
||||
.preview-meta,
|
||||
.pill-subtext {
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.hero-status {
|
||||
display: grid;
|
||||
gap: 14px;
|
||||
align-content: start;
|
||||
}
|
||||
|
||||
.status-card {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 14px 16px;
|
||||
background: var(--surface-strong);
|
||||
border-radius: var(--radius-md);
|
||||
border: 1px solid rgba(56, 63, 61, 0.08);
|
||||
}
|
||||
|
||||
.pill {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-width: 98px;
|
||||
padding: 8px 12px;
|
||||
border-radius: 999px;
|
||||
font-size: 0.82rem;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
}
|
||||
|
||||
.pill-online {
|
||||
background: rgba(25, 140, 143, 0.14);
|
||||
color: #0f6c6d;
|
||||
}
|
||||
|
||||
.pill-offline {
|
||||
background: rgba(188, 47, 47, 0.14);
|
||||
color: var(--danger);
|
||||
}
|
||||
|
||||
.pill-warning {
|
||||
background: rgba(234, 106, 54, 0.14);
|
||||
color: var(--accent-strong);
|
||||
}
|
||||
|
||||
.layout {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
|
||||
gap: 20px;
|
||||
margin-top: 22px;
|
||||
}
|
||||
|
||||
.panel {
|
||||
border-radius: var(--radius-lg);
|
||||
padding: 22px;
|
||||
}
|
||||
|
||||
.controls-panel,
|
||||
.summary-panel {
|
||||
grid-column: span 1;
|
||||
}
|
||||
|
||||
.preview-panel,
|
||||
.event-panel {
|
||||
grid-column: span 1;
|
||||
}
|
||||
|
||||
.section-heading {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: end;
|
||||
gap: 18px;
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
|
||||
.section-heading p,
|
||||
.subsection-heading p {
|
||||
margin: 0;
|
||||
max-width: 34rem;
|
||||
}
|
||||
|
||||
.control-grid,
|
||||
.parameter-grid,
|
||||
.summary-cards {
|
||||
display: grid;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.control-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.parameter-grid,
|
||||
.summary-cards {
|
||||
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
||||
}
|
||||
|
||||
.field,
|
||||
.parameter-card,
|
||||
.summary-card,
|
||||
.preview-card,
|
||||
.event-item {
|
||||
background: var(--surface-strong);
|
||||
border: 1px solid rgba(56, 63, 61, 0.08);
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
|
||||
.field {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
padding: 14px;
|
||||
}
|
||||
|
||||
.field strong {
|
||||
color: var(--accent-strong);
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.subsection {
|
||||
margin-top: 24px;
|
||||
}
|
||||
|
||||
.subsection-heading {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 18px;
|
||||
align-items: baseline;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.pill-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
button,
|
||||
select,
|
||||
input,
|
||||
textarea {
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
button,
|
||||
select {
|
||||
border: 1px solid transparent;
|
||||
border-radius: var(--radius-sm);
|
||||
}
|
||||
|
||||
button {
|
||||
cursor: pointer;
|
||||
transition:
|
||||
transform 140ms ease,
|
||||
box-shadow 140ms ease,
|
||||
background-color 140ms ease,
|
||||
border-color 140ms ease;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
button:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
select,
|
||||
input[type="text"] {
|
||||
width: 100%;
|
||||
padding: 12px 14px;
|
||||
background: #fffdfa;
|
||||
border: 1px solid rgba(56, 63, 61, 0.14);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
input[type="range"] {
|
||||
width: 100%;
|
||||
accent-color: var(--accent);
|
||||
}
|
||||
|
||||
.ghost-button,
|
||||
.preset-button,
|
||||
.group-button {
|
||||
padding: 11px 14px;
|
||||
background: #fff9f1;
|
||||
border-color: rgba(56, 63, 61, 0.12);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.preset-button.active,
|
||||
.group-button.active {
|
||||
background: linear-gradient(135deg, rgba(234, 106, 54, 0.16), rgba(25, 140, 143, 0.16));
|
||||
border-color: rgba(234, 106, 54, 0.35);
|
||||
}
|
||||
|
||||
.danger-button {
|
||||
padding: 12px 16px;
|
||||
background: rgba(188, 47, 47, 0.1);
|
||||
color: var(--danger);
|
||||
border-color: rgba(188, 47, 47, 0.18);
|
||||
}
|
||||
|
||||
.danger-button.is-active {
|
||||
background: var(--danger);
|
||||
color: #fff8f5;
|
||||
box-shadow: 0 16px 30px rgba(188, 47, 47, 0.24);
|
||||
}
|
||||
|
||||
.preview-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.preview-card {
|
||||
padding: 14px;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
animation: rise-in 380ms ease-out;
|
||||
}
|
||||
|
||||
.preview-card::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0 auto 0 0;
|
||||
width: 8px;
|
||||
background: var(--preview-color, #999999);
|
||||
}
|
||||
|
||||
.preview-card-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
align-items: baseline;
|
||||
}
|
||||
|
||||
.preview-card h3 {
|
||||
margin: 0;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.preview-meta {
|
||||
margin-top: 2px;
|
||||
font-size: 0.86rem;
|
||||
}
|
||||
|
||||
.preview-swatch {
|
||||
height: 56px;
|
||||
margin-top: 14px;
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--preview-color, #999999);
|
||||
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
|
||||
}
|
||||
|
||||
.sample-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
.sample-dot {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
border-radius: 50%;
|
||||
background: var(--sample-color, #999999);
|
||||
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.48);
|
||||
}
|
||||
|
||||
.parameter-card,
|
||||
.summary-card,
|
||||
.event-item {
|
||||
padding: 14px;
|
||||
}
|
||||
|
||||
.parameter-card label {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.parameter-card strong,
|
||||
.summary-card strong {
|
||||
display: block;
|
||||
margin-bottom: 4px;
|
||||
font-size: 1.04rem;
|
||||
}
|
||||
|
||||
.summary-card span {
|
||||
color: var(--muted);
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.snapshot-json {
|
||||
margin: 18px 0 0;
|
||||
max-height: 360px;
|
||||
overflow: auto;
|
||||
padding: 18px;
|
||||
border-radius: var(--radius-md);
|
||||
background: #1d2222;
|
||||
color: #e8eceb;
|
||||
font-size: 0.86rem;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.event-list {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.event-item {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.event-item strong {
|
||||
color: var(--accent-strong);
|
||||
}
|
||||
|
||||
.empty-state {
|
||||
padding: 18px;
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(255, 255, 255, 0.42);
|
||||
color: var(--muted);
|
||||
border: 1px dashed rgba(56, 63, 61, 0.16);
|
||||
}
|
||||
|
||||
@keyframes rise-in {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(12px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1080px) {
|
||||
.layout,
|
||||
.hero,
|
||||
.control-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.section-heading,
|
||||
.subsection-heading {
|
||||
align-items: start;
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.page-shell {
|
||||
width: min(100vw - 18px, 100%);
|
||||
padding-top: 18px;
|
||||
}
|
||||
|
||||
.hero,
|
||||
.panel {
|
||||
padding: 18px;
|
||||
}
|
||||
|
||||
.preview-grid,
|
||||
.parameter-grid,
|
||||
.summary-cards {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user