Add Guardio web UI

This commit is contained in:
2026-05-22 19:42:08 +01:00
parent c6363dfa84
commit 82718e5e84
8 changed files with 810 additions and 1 deletions

284
static/guardio.css Normal file
View File

@@ -0,0 +1,284 @@
:root {
color-scheme: light;
--ink: #18211f;
--muted: #61706b;
--line: #d8e2dc;
--field: #f8fbf8;
--panel: #ffffff;
--accent: #0c7c59;
--accent-dark: #085f45;
--warn: #a24f00;
--page: #eef5f0;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-height: 100vh;
background: var(--page);
color: var(--ink);
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button,
input,
select {
font: inherit;
}
button {
border: 0;
border-radius: 6px;
background: var(--accent);
color: #fff;
cursor: pointer;
font-weight: 700;
min-height: 40px;
padding: 0 16px;
}
button:hover {
background: var(--accent-dark);
}
.shell {
width: min(1180px, calc(100% - 32px));
margin: 0 auto;
padding: 28px 0 42px;
}
.hero {
display: flex;
justify-content: space-between;
align-items: end;
gap: 24px;
padding: 18px 0 26px;
}
.eyebrow {
margin: 0 0 6px;
color: var(--accent);
font-size: 0.78rem;
font-weight: 800;
letter-spacing: 0;
text-transform: uppercase;
}
h1,
h2,
p {
margin-top: 0;
}
h1 {
margin-bottom: 8px;
font-size: clamp(2.2rem, 5vw, 4.4rem);
line-height: 0.95;
letter-spacing: 0;
}
h2 {
margin-bottom: 0;
font-size: 1rem;
}
.lede {
max-width: 660px;
margin-bottom: 0;
color: var(--muted);
font-size: 1.05rem;
}
.status-strip {
display: flex;
gap: 8px;
flex-wrap: wrap;
justify-content: flex-end;
}
.status-strip span,
.job-pill {
border: 1px solid var(--line);
border-radius: 999px;
background: rgba(255, 255, 255, 0.72);
color: var(--muted);
padding: 7px 12px;
font-size: 0.86rem;
font-weight: 700;
}
.workspace {
display: grid;
grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
gap: 18px;
align-items: start;
}
.panel,
.outputs {
border: 1px solid var(--line);
border-radius: 8px;
background: var(--panel);
box-shadow: 0 16px 40px rgba(32, 55, 45, 0.08);
}
.panel {
padding: 18px;
}
.panel-heading,
.section-heading {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 16px;
}
label {
display: grid;
gap: 7px;
color: var(--muted);
font-size: 0.86rem;
font-weight: 700;
}
input,
select {
width: 100%;
min-height: 42px;
border: 1px solid var(--line);
border-radius: 6px;
background: var(--field);
color: var(--ink);
padding: 0 11px;
}
input:focus,
select:focus {
border-color: var(--accent);
outline: 3px solid rgba(12, 124, 89, 0.16);
}
.grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
margin-top: 12px;
}
form > label,
details {
margin-top: 12px;
}
details {
border-top: 1px solid var(--line);
padding-top: 14px;
}
summary {
cursor: pointer;
color: var(--ink);
font-weight: 800;
}
.check {
display: flex;
align-items: center;
gap: 8px;
margin-top: 12px;
}
.check input {
width: 18px;
min-height: 18px;
}
.monitor {
min-height: 480px;
}
.jobs {
display: flex;
gap: 8px;
flex-wrap: wrap;
min-height: 32px;
margin-bottom: 12px;
}
.job-pill {
cursor: pointer;
}
.job-pill.active {
border-color: var(--accent);
color: var(--accent-dark);
}
pre {
min-height: 360px;
max-height: 560px;
overflow: auto;
margin: 0;
border: 1px solid var(--line);
border-radius: 6px;
background: #101816;
color: #d7eee4;
padding: 14px;
white-space: pre-wrap;
word-break: break-word;
}
.outputs {
margin-top: 18px;
padding: 18px;
}
.output-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 12px;
}
.output-card {
display: grid;
gap: 8px;
min-height: 88px;
border: 1px solid var(--line);
border-radius: 8px;
color: var(--ink);
padding: 14px;
text-decoration: none;
}
.output-card:hover {
border-color: var(--accent);
}
.output-card span,
.empty {
color: var(--muted);
}
@media (max-width: 820px) {
.hero,
.workspace {
display: grid;
}
.workspace {
grid-template-columns: 1fr;
}
.grid {
grid-template-columns: 1fr;
}
.status-strip {
justify-content: flex-start;
}
}