First frontend

This commit is contained in:
2026-04-30 21:37:21 +02:00
parent c3e98af5b6
commit ac48e03404
16 changed files with 1764 additions and 5 deletions
+279
View File
@@ -0,0 +1,279 @@
:root {
color-scheme: light;
--bg: #f4f6f8;
--band: #ffffff;
--line: #d7dde5;
--line-strong: #b9c3d0;
--text: #17212f;
--muted: #647084;
--accent: #0f766e;
--accent-dark: #115e59;
--warn-bg: #fff4e5;
--warn-line: #f3b562;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
background: var(--bg);
color: var(--text);
font-family: Arial, Helvetica, sans-serif;
}
button,
input,
select {
font: inherit;
}
.workspace {
min-height: 100vh;
padding: 20px;
display: grid;
gap: 14px;
}
.topbar,
.toolbarBand,
.entryBand,
.tableBand {
background: var(--band);
border: 1px solid var(--line);
}
.topbar {
min-height: 82px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 18px;
}
.eyebrow {
margin: 0 0 4px;
color: var(--muted);
font-size: 12px;
text-transform: uppercase;
}
h1,
h2 {
margin: 0;
letter-spacing: 0;
}
h1 {
font-size: 28px;
}
h2 {
font-size: 19px;
}
.iconButton,
.primaryButton {
border: 1px solid var(--accent);
background: var(--accent);
color: #ffffff;
min-height: 36px;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
cursor: pointer;
}
.iconButton {
width: 38px;
border-radius: 6px;
}
.primaryButton {
border-radius: 6px;
padding: 0 12px;
white-space: nowrap;
}
.primaryButton:hover,
.iconButton:hover {
background: var(--accent-dark);
}
.primaryButton:disabled {
cursor: not-allowed;
opacity: 0.55;
}
.alert {
margin: 0;
padding: 10px 12px;
border: 1px solid var(--warn-line);
background: var(--warn-bg);
}
.toolbarBand {
display: grid;
grid-template-columns: minmax(360px, 1.25fr) minmax(320px, 1fr);
gap: 14px;
padding: 14px;
}
.projectForm,
.consumerForm {
display: grid;
gap: 10px;
align-items: end;
}
.projectForm {
grid-template-columns: minmax(180px, 1fr) minmax(220px, 1fr) auto;
}
.consumerForm {
grid-template-columns: minmax(210px, 1.6fr) minmax(150px, 1fr) 90px 140px 150px 110px 110px 100px minmax(180px, 1.4fr) auto;
}
label {
min-width: 0;
display: grid;
gap: 5px;
color: var(--muted);
font-size: 12px;
}
input,
select {
width: 100%;
min-height: 36px;
border: 1px solid var(--line-strong);
border-radius: 6px;
padding: 6px 9px;
color: var(--text);
background: #ffffff;
}
.summaryStrip {
display: grid;
grid-template-columns: repeat(3, minmax(120px, 1fr));
border: 1px solid var(--line);
}
.summaryStrip div {
padding: 11px 12px;
border-right: 1px solid var(--line);
display: grid;
gap: 4px;
}
.summaryStrip div:last-child {
border-right: 0;
}
.summaryStrip span,
.statusPill {
color: var(--muted);
font-size: 12px;
}
.summaryStrip strong {
font-size: 18px;
}
.entryBand,
.tableBand {
padding: 14px;
}
.tableHeader {
display: flex;
align-items: center;
justify-content: space-between;
gap: 14px;
margin-bottom: 12px;
}
.statusPill,
.nameCell {
display: inline-flex;
align-items: center;
gap: 7px;
}
.statusPill {
min-height: 30px;
border: 1px solid var(--line);
border-radius: 6px;
padding: 0 9px;
}
.tableScroll {
overflow-x: auto;
border: 1px solid var(--line);
}
table {
width: 100%;
min-width: 1020px;
border-collapse: collapse;
font-size: 13px;
}
th,
td {
border-bottom: 1px solid var(--line);
padding: 9px 10px;
text-align: left;
vertical-align: middle;
}
th {
background: #edf1f5;
color: #344054;
font-weight: 700;
}
tbody tr:hover {
background: #f8fafc;
}
.emptyState {
height: 92px;
color: var(--muted);
text-align: center;
}
@media (max-width: 1180px) {
.toolbarBand,
.projectForm,
.consumerForm {
grid-template-columns: 1fr 1fr;
}
.summaryStrip,
.wideField,
.consumerForm .primaryButton {
grid-column: 1 / -1;
}
}
@media (max-width: 720px) {
.workspace {
padding: 10px;
}
.topbar,
.tableHeader {
align-items: flex-start;
flex-direction: column;
}
.toolbarBand,
.projectForm,
.consumerForm,
.summaryStrip {
grid-template-columns: 1fr;
}
}