ui creation

This commit is contained in:
Первов Артем
2026-06-17 09:46:52 +03:00
commit 2c4aef1185
41 changed files with 6251 additions and 0 deletions

57
src/styles/base.css Normal file
View File

@@ -0,0 +1,57 @@
* {
box-sizing: border-box;
}
body {
margin: 0;
min-width: 320px;
min-height: 100vh;
background:
radial-gradient(circle at 8% 6%, rgba(201, 122, 61, 0.14), transparent 34%),
radial-gradient(circle at 90% 80%, rgba(139, 90, 43, 0.14), transparent 38%),
var(--bg);
}
button,
input,
select {
font: inherit;
}
button {
color: inherit;
}
h1,
h2 {
margin: 0;
letter-spacing: 0;
}
h1 {
margin-top: 4px;
font-size: 1.9rem;
font-weight: 650;
}
h2 {
font-size: 1.18rem;
}
label {
display: inline-flex;
align-items: center;
gap: 8px;
color: var(--muted);
font-size: 0.84rem;
}
input,
select {
min-height: 38px;
border: 1px solid rgba(148, 163, 184, 0.18);
border-radius: var(--radius);
background: rgba(15, 23, 42, 0.72);
color: var(--text);
padding: 0 10px;
}

33
src/styles/charts.css Normal file
View File

@@ -0,0 +1,33 @@
.history-chart {
width: 100%;
height: 440px;
}
.chart-section--archive .history-chart {
flex: 1;
min-height: 520px;
height: calc(100dvh - 280px);
}
.chart-placeholder {
min-height: 260px;
display: grid;
place-items: center;
color: var(--muted);
border: 1px dashed rgba(148, 163, 184, 0.2);
border-radius: var(--radius);
}
.chart-section--archive .chart-placeholder {
flex: 1;
min-height: 520px;
height: calc(100dvh - 280px);
}
@media (max-width: 680px) {
.chart-section--archive .history-chart,
.chart-section--archive .chart-placeholder {
min-height: 420px;
height: calc(100dvh - 340px);
}
}

529
src/styles/components.css Normal file
View File

@@ -0,0 +1,529 @@
.panel-eyebrow,
.page-kicker {
display: inline-flex;
align-items: center;
gap: 6px;
color: var(--accent-soft);
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.12em;
text-transform: uppercase;
}
.icon-button,
.segmented button,
.ghost-button {
min-height: 38px;
border: 1px solid var(--line);
border-radius: var(--radius);
background: rgba(201, 122, 61, 0.08);
cursor: pointer;
}
.icon-button {
width: 38px;
display: inline-flex;
align-items: center;
justify-content: center;
}
.ghost-button {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 0 12px;
color: #cbd5e1;
}
.segmented {
display: inline-flex;
padding: 3px;
border: 1px solid rgba(148, 163, 184, 0.16);
border-radius: var(--radius);
background: rgba(2, 6, 23, 0.35);
}
.view-switch {
display: inline-flex;
flex: 0 0 auto;
padding: 3px;
border: 1px solid rgba(148, 163, 184, 0.16);
border-radius: var(--radius);
background: rgba(2, 6, 23, 0.35);
}
.segmented button {
border-color: transparent;
padding: 0 10px;
}
.view-switch button {
min-height: 36px;
padding: 0 12px;
border: 1px solid transparent;
border-radius: calc(var(--radius) - 3px);
background: transparent;
color: var(--muted);
cursor: pointer;
}
.view-switch button:hover,
.view-switch__button--active {
border-color: rgba(212, 165, 116, 0.34);
background: rgba(201, 122, 61, 0.14);
color: #f8fafc;
}
.segmented button:hover,
.icon-button:hover {
border-color: var(--line-strong);
background: rgba(201, 122, 61, 0.18);
}
.source-chip,
.status-pill,
.metric-card__state {
display: inline-flex;
align-items: center;
gap: 6px;
min-height: 28px;
padding: 0 10px;
border-radius: 999px;
font-size: 0.78rem;
}
.source-chip {
border: 1px solid var(--line);
color: #cbd5e1;
}
.status-pill--ok {
border: 1px solid rgba(34, 197, 94, 0.36);
background: rgba(34, 197, 94, 0.12);
color: #86efac;
}
.status-pill--warn {
border: 1px solid rgba(245, 158, 11, 0.36);
background: rgba(245, 158, 11, 0.12);
color: #facc15;
}
.status-pill--error {
border: 1px solid rgba(239, 68, 68, 0.36);
background: rgba(239, 68, 68, 0.12);
color: #fca5a5;
}
.status-pill--muted {
border: 1px solid rgba(148, 163, 184, 0.22);
background: rgba(148, 163, 184, 0.08);
color: #cbd5e1;
}
.search-box {
min-width: min(320px, 100%);
padding-left: 10px;
border: 1px solid rgba(148, 163, 184, 0.18);
border-radius: var(--radius);
background: rgba(15, 23, 42, 0.72);
}
.search-box input {
flex: 1;
border: 0;
background: transparent;
padding-left: 0;
}
.empty-panel {
min-height: 260px;
display: grid;
place-items: center;
color: var(--muted);
border: 1px dashed rgba(148, 163, 184, 0.2);
border-radius: var(--radius);
}
.auth-screen {
min-height: 100dvh;
display: grid;
place-items: center;
padding: 24px;
background:
radial-gradient(circle at 50% 18%, rgba(201, 122, 61, 0.16), transparent 36%),
var(--bg);
}
.auth-screen-card {
width: min(420px, 100%);
padding: 24px;
border: 1px solid var(--line);
border-radius: var(--radius);
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 34%),
rgba(10, 13, 18, 0.88);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.07),
0 22px 44px rgba(0, 0, 0, 0.34);
}
.auth-screen-card h1 {
margin: 0 0 10px;
font-size: 1.4rem;
}
.auth-screen-card p {
margin: 0;
color: var(--muted);
}
.auth-screen-button {
min-height: 38px;
margin-top: 18px;
padding: 0 14px;
border: 1px solid var(--line);
border-radius: var(--radius);
background: rgba(201, 122, 61, 0.12);
color: var(--text);
cursor: pointer;
}
.metric-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
gap: 12px;
}
.metric-mosaic {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
gap: 7px;
}
.metric-tile {
position: relative;
isolation: isolate;
aspect-ratio: 1 / 0.86;
min-height: 76px;
min-width: 0;
display: grid;
align-content: space-between;
gap: 7px;
padding: 10px 9px 9px;
border: 1px solid rgba(88, 103, 121, 0.5);
border-radius: 6px;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 32%),
repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 9px),
linear-gradient(145deg, rgba(20, 27, 36, 0.96), rgba(5, 8, 13, 0.92));
cursor: pointer;
text-align: left;
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.08),
inset 0 -1px 0 rgba(0, 0, 0, 0.55),
0 8px 18px rgba(0, 0, 0, 0.18);
transition:
border-color 160ms ease,
background 160ms ease,
box-shadow 160ms ease,
transform 160ms ease;
}
.metric-tile::before {
content: "";
position: absolute;
inset: 0 auto 0 0;
z-index: -1;
width: 4px;
border-radius: 6px 0 0 6px;
background: currentColor;
box-shadow: 0 0 16px currentColor;
opacity: 0.94;
}
.metric-tile::after {
content: "";
position: absolute;
inset: 5px;
z-index: -1;
border: 1px solid rgba(255, 255, 255, 0.045);
border-radius: 4px;
pointer-events: none;
}
.metric-tile:hover,
.metric-tile--selected {
border-color: rgba(232, 201, 160, 0.58);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.1),
inset 0 -1px 0 rgba(0, 0, 0, 0.6),
0 10px 22px rgba(0, 0, 0, 0.26);
transform: translateY(-1px);
}
.metric-tile--normal {
color: #22c55e;
}
.metric-tile--warning {
color: #f59e0b;
}
.metric-tile--critical {
color: #ef4444;
}
.metric-tile__status {
width: 10px;
height: 10px;
border: 1px solid rgba(255, 255, 255, 0.28);
border-radius: 999px;
background: currentColor;
box-shadow:
0 0 0 3px color-mix(in srgb, currentColor 13%, transparent),
0 0 16px currentColor;
}
.metric-tile__tag,
.metric-tile strong {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.metric-tile__tag {
color: #cbd5e1;
font-family: "Segoe UI", Inter, system-ui, sans-serif;
font-size: 0.68rem;
font-weight: 700;
letter-spacing: 0.02em;
}
.metric-tile strong {
color: #f8fafc;
font-size: 0.88rem;
font-variant-numeric: tabular-nums;
line-height: 1;
}
.metric-card {
position: relative;
overflow: hidden;
min-height: 184px;
text-align: left;
padding: 16px 15px 15px 17px;
border: 1px solid rgba(88, 103, 121, 0.52);
border-radius: 8px;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 30%),
repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 11px),
linear-gradient(145deg, rgba(18, 25, 34, 0.95), rgba(5, 8, 13, 0.92));
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.08),
inset 0 -1px 0 rgba(0, 0, 0, 0.52),
0 14px 28px rgba(0, 0, 0, 0.2);
cursor: pointer;
transition:
border-color 160ms ease,
background 160ms ease,
box-shadow 160ms ease,
transform 160ms ease;
}
.metric-card::before {
content: "";
position: absolute;
inset: 0 auto 0 0;
width: 5px;
background: currentColor;
box-shadow: 0 0 18px currentColor;
}
.metric-card::after {
content: "";
position: absolute;
inset: 7px;
border: 1px solid rgba(255, 255, 255, 0.045);
border-radius: 5px;
pointer-events: none;
}
.metric-card:hover,
.metric-card--selected {
border-color: rgba(232, 201, 160, 0.58);
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 30%),
repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.032) 0 1px, transparent 1px 11px),
linear-gradient(145deg, rgba(27, 35, 46, 0.98), rgba(11, 14, 20, 0.94));
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.1),
inset 0 -1px 0 rgba(0, 0, 0, 0.58),
0 18px 32px rgba(0, 0, 0, 0.28);
transform: translateY(-1px);
}
.metric-card--normal {
color: #22c55e;
}
.metric-card--normal .metric-card__signal {
color: #86efac;
border-color: rgba(34, 197, 94, 0.24);
background: rgba(34, 197, 94, 0.08);
}
.metric-card--warning {
color: #f59e0b;
}
.metric-card--warning .metric-card__signal {
color: #facc15;
border-color: rgba(245, 158, 11, 0.28);
background: rgba(245, 158, 11, 0.08);
}
.metric-card--critical {
color: #ef4444;
}
.metric-card--critical .metric-card__signal {
color: #fca5a5;
border-color: rgba(239, 68, 68, 0.3);
background: rgba(239, 68, 68, 0.1);
}
.metric-card__header {
display: grid;
grid-template-columns: auto minmax(0, 1fr) auto;
align-items: start;
gap: 9px;
}
.metric-card__footer {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 10px;
}
.metric-card__signal {
width: 30px;
height: 30px;
display: inline-flex;
align-items: center;
justify-content: center;
border: 1px solid rgba(212, 165, 116, 0.24);
border-radius: 6px;
color: var(--accent-soft);
background:
repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 7px),
rgba(2, 6, 23, 0.42);
}
.metric-card__tag {
min-width: 0;
overflow: hidden;
color: #e5e7eb;
font-size: 0.86rem;
font-weight: 750;
letter-spacing: 0.025em;
text-overflow: ellipsis;
white-space: nowrap;
}
.metric-card__state {
flex: 0 0 auto;
padding: 0 8px;
}
.metric-card__corner {
display: inline-flex;
align-items: flex-end;
flex-direction: column;
gap: 6px;
}
.metric-card__age {
display: inline-flex;
align-items: center;
gap: 5px;
color: #9aa8ba;
font-size: 0.73rem;
font-variant-numeric: tabular-nums;
}
.metric-card__state.is-normal {
border-color: rgba(34, 197, 94, 0.24);
background: rgba(34, 197, 94, 0.1);
color: #86efac;
}
.metric-card__state.is-warning {
border-color: rgba(245, 158, 11, 0.28);
background: rgba(245, 158, 11, 0.1);
color: #facc15;
}
.metric-card__state.is-critical {
border-color: rgba(239, 68, 68, 0.3);
background: rgba(239, 68, 68, 0.12);
color: #fca5a5;
}
.metric-card__value {
margin: 22px 0 16px;
overflow: hidden;
font-size: clamp(1.85rem, 4vw, 2.7rem);
font-variant-numeric: tabular-nums;
font-weight: 760;
line-height: 1;
color: #f8fafc;
text-overflow: ellipsis;
white-space: nowrap;
text-shadow: 0 0 18px color-mix(in srgb, currentColor 18%, transparent);
}
.metric-card__footer {
margin-top: 18px;
padding-top: 12px;
border-top: 1px solid rgba(148, 163, 184, 0.12);
color: var(--muted);
font-size: 0.78rem;
}
.metric-card__footer span {
display: inline-flex;
align-items: center;
gap: 6px;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.metric-card__action {
flex: 0 0 auto;
color: var(--accent-soft);
font-weight: 700;
}
@media (max-width: 680px) {
.search-box {
width: 100%;
}
.segmented {
width: 100%;
overflow-x: auto;
}
.view-switch {
width: 100%;
}
.view-switch button {
flex: 1;
}
}

411
src/styles/dashboard.css Normal file
View File

@@ -0,0 +1,411 @@
.dashboard-shell {
width: min(1440px, 100%);
min-height: 100vh;
margin: 0 auto;
padding: 26px 24px 36px;
}
.dashboard-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
margin-bottom: 22px;
}
.dashboard-actions {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 12px;
flex-wrap: wrap;
}
.dashboard-search {
width: min(360px, 100%);
}
.dashboard-stats {
display: grid;
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: 12px;
margin-bottom: 22px;
}
.dashboard-stat {
min-height: 112px;
padding: 16px;
border: 1px solid rgba(148, 163, 184, 0.16);
border-radius: var(--radius);
background:
linear-gradient(145deg, rgba(17, 24, 39, 0.78), rgba(2, 6, 23, 0.62)),
rgba(2, 6, 23, 0.38);
}
.dashboard-stat span {
display: block;
min-height: 34px;
color: var(--muted);
font-size: 0.78rem;
line-height: 1.35;
}
.dashboard-stat strong {
display: block;
margin-top: 12px;
font-size: 2rem;
line-height: 1;
}
.dashboard-stat--success {
border-color: rgba(34, 197, 94, 0.28);
}
.dashboard-stat--success strong {
color: #86efac;
}
.dashboard-stat--danger {
border-color: rgba(239, 68, 68, 0.28);
}
.dashboard-stat--danger strong {
color: #fca5a5;
}
.dashboard-stat--warning {
border-color: rgba(245, 158, 11, 0.3);
}
.dashboard-stat--warning strong {
color: #facc15;
}
.dashboard-stat--accent {
border-color: rgba(212, 165, 116, 0.32);
}
.dashboard-stat--accent strong {
color: var(--accent-soft);
}
.edge-card-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
gap: 16px;
}
.edge-card {
min-height: 520px;
display: flex;
flex-direction: column;
padding: 18px;
border: 1px solid rgba(148, 163, 184, 0.18);
border-radius: 10px;
background:
radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.09), transparent 26%),
linear-gradient(145deg, rgba(23, 30, 42, 0.92), rgba(4, 9, 16, 0.84)),
var(--panel-strong);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.07),
0 18px 34px rgba(0, 0, 0, 0.22);
transition:
border-color 160ms ease,
transform 160ms ease,
box-shadow 160ms ease;
}
.edge-card:hover {
border-color: rgba(212, 165, 116, 0.42);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.08),
0 24px 44px rgba(0, 0, 0, 0.28);
transform: translateY(-1px);
}
.edge-card--ok {
border-color: rgba(34, 197, 94, 0.26);
}
.edge-card--warn {
border-color: rgba(245, 158, 11, 0.3);
}
.edge-card--empty {
border-color: rgba(148, 163, 184, 0.18);
}
.edge-card__header {
display: flex;
align-items: center;
gap: 12px;
min-width: 0;
}
.edge-card__logo {
flex: 0 0 auto;
width: 64px;
height: 64px;
display: grid;
place-items: center;
border: 1px solid rgba(212, 165, 116, 0.22);
border-radius: var(--radius);
background: rgba(2, 6, 23, 0.38);
}
.edge-card__logo img {
width: 46px;
height: 52px;
object-fit: contain;
filter:
sepia(1)
saturate(1.25)
hue-rotate(342deg)
brightness(0.86)
contrast(1.1);
}
.edge-card__title {
min-width: 0;
flex: 1;
}
.edge-card__title h2 {
margin: 0;
overflow: hidden;
font-size: 1.08rem;
font-weight: 650;
line-height: 1.2;
text-overflow: ellipsis;
white-space: nowrap;
}
.edge-card__title span {
display: block;
margin-top: 5px;
overflow: hidden;
color: var(--muted);
font-size: 0.77rem;
text-overflow: ellipsis;
white-space: nowrap;
}
.edge-state {
flex: 0 0 auto;
display: inline-flex;
align-items: center;
gap: 6px;
min-height: 28px;
padding: 0 9px;
border: 1px solid rgba(148, 163, 184, 0.22);
border-radius: 999px;
font-size: 0.68rem;
font-weight: 800;
letter-spacing: 0.06em;
text-transform: uppercase;
}
.edge-state--ok {
color: #22e27f;
}
.edge-state--warn,
.edge-state--empty {
color: #f2a23a;
}
.edge-card__meta {
margin: 18px 0 12px;
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
}
.edge-card__meta div {
min-height: 64px;
padding: 10px;
border: 1px solid rgba(148, 163, 184, 0.13);
border-radius: var(--radius);
background: rgba(2, 6, 23, 0.26);
}
.edge-card__meta div:last-child {
grid-column: 1 / -1;
min-height: 52px;
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
align-items: center;
column-gap: 12px;
}
.edge-card__meta dt {
display: flex;
align-items: center;
gap: 6px;
margin: 0;
color: var(--muted);
font-size: 0.74rem;
}
.edge-card__meta dd {
margin: 8px 0 0;
overflow: hidden;
color: #e5e7eb;
font-size: 1.02rem;
font-weight: 700;
text-overflow: ellipsis;
white-space: nowrap;
}
.edge-card__meta div:last-child dd {
margin: 0;
font-size: 0.92rem;
}
.edge-card__actions {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 8px;
margin-bottom: 14px;
}
.edge-card__actions button,
.edge-card__maintenance button {
min-width: 0;
border: 1px solid rgba(148, 163, 184, 0.16);
border-radius: var(--radius);
background: rgba(2, 6, 23, 0.24);
color: #cbd5e1;
cursor: pointer;
transition:
border-color 160ms ease,
background 160ms ease,
color 160ms ease;
}
.edge-card__actions button {
min-height: 40px;
display: flex;
align-items: center;
gap: 8px;
padding: 0 10px;
color: #b8c3d3;
font-size: 0.76rem;
text-align: left;
}
.edge-card__actions button:hover,
.edge-card__maintenance button:hover {
border-color: rgba(212, 165, 116, 0.42);
background: rgba(201, 122, 61, 0.1);
color: #f8fafc;
}
.edge-card__maintenance {
padding: 12px;
border: 1px solid rgba(148, 163, 184, 0.12);
border-radius: var(--radius);
background: rgba(2, 6, 23, 0.2);
}
.edge-card__maintenance > span {
display: block;
margin-bottom: 9px;
color: var(--muted);
font-size: 0.72rem;
font-weight: 800;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.edge-card__maintenance div {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 7px;
}
.edge-card__maintenance button {
min-height: 34px;
padding: 0 8px;
font-size: 0.72rem;
}
.edge-card__details {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
min-height: 44px;
margin-top: auto;
padding: 0 12px;
border: 1px solid rgba(212, 165, 116, 0.28);
border-radius: var(--radius);
background:
linear-gradient(135deg, rgba(201, 122, 61, 0.14), rgba(212, 165, 116, 0.06)),
rgba(201, 122, 61, 0.08);
color: #f8fafc;
cursor: pointer;
font-size: 0.76rem;
font-weight: 900;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.edge-card__details:hover {
border-color: var(--line-strong);
background: rgba(201, 122, 61, 0.16);
}
@media (max-width: 1100px) {
.dashboard-stats {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.edge-card-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 680px) {
.dashboard-shell {
padding: 16px;
}
.dashboard-header {
align-items: stretch;
flex-direction: column;
}
.dashboard-actions,
.dashboard-search {
width: 100%;
}
.edge-card-grid {
gap: 16px;
grid-template-columns: 1fr;
}
.edge-card {
min-height: 0;
padding: 18px;
}
.edge-card__actions,
.edge-card__maintenance div {
grid-template-columns: 1fr;
}
.dashboard-stats {
grid-template-columns: 1fr;
}
.edge-card__header {
align-items: flex-start;
}
.edge-state {
margin-left: auto;
}
}

406
src/styles/detail.css Normal file
View File

@@ -0,0 +1,406 @@
.detail-overview {
display: grid;
gap: 18px;
}
.chart-section,
.tags-section {
border: 1px solid var(--line);
border-radius: var(--radius);
background:
radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.08), transparent 38%),
linear-gradient(145deg, rgba(17, 24, 39, 0.9), rgba(2, 6, 23, 0.78));
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.06),
0 18px 36px rgba(0, 0, 0, 0.28);
}
.summary-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 12px;
}
.summary-card {
min-height: 149px;
padding: 18px;
border: 1px solid var(--line);
border-radius: var(--radius);
background: rgba(10, 13, 18, 0.62);
}
.summary-card span {
display: block;
color: var(--muted);
font-size: 0.78rem;
text-transform: uppercase;
letter-spacing: 0.12em;
}
.summary-card strong {
display: block;
margin-top: 18px;
font-size: clamp(1.5rem, 3vw, 2.3rem);
line-height: 1.1;
}
.detail-action-panel {
padding: 18px;
border: 1px solid var(--line);
border-radius: var(--radius);
background: rgba(10, 13, 18, 0.58);
}
.detail-action-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 10px;
margin-top: 16px;
}
.detail-action-grid button {
min-height: 92px;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
gap: 10px;
border: 1px solid rgba(148, 163, 184, 0.16);
border-radius: var(--radius);
background: rgba(2, 6, 23, 0.28);
color: #cbd5e1;
cursor: pointer;
}
.detail-action-grid button:hover {
border-color: var(--line-strong);
background: rgba(201, 122, 61, 0.12);
color: var(--text);
}
.chart-section,
.tags-section {
padding: 18px;
margin-bottom: 18px;
}
.indicator-summary {
display: grid;
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: 10px;
margin-bottom: 14px;
}
.indicator-summary div {
position: relative;
overflow: hidden;
min-height: 76px;
padding: 13px;
border: 1px solid rgba(88, 103, 121, 0.46);
border-radius: 8px;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.052), transparent 34%),
repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.024) 0 1px, transparent 1px 10px),
rgba(2, 6, 23, 0.34);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.07),
inset 0 -1px 0 rgba(0, 0, 0, 0.48);
}
.indicator-summary div::before {
content: "";
position: absolute;
inset: 0 auto 0 0;
width: 3px;
background: rgba(212, 165, 116, 0.58);
}
.indicator-summary span {
display: block;
color: #9aa8ba;
font-size: 0.74rem;
font-weight: 750;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.indicator-summary strong {
display: block;
margin-top: 9px;
color: #f8fafc;
font-size: 1.65rem;
font-variant-numeric: tabular-nums;
line-height: 1;
}
.chart-section--archive {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
margin-bottom: 0;
}
.equipment-section {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
margin: 0;
}
.equipment-frame-shell {
position: relative;
flex: 1;
min-height: 0;
overflow: hidden;
border: 1px solid rgba(88, 103, 121, 0.5);
border-radius: 8px;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 32%),
repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 11px),
rgba(2, 6, 23, 0.58);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.08),
inset 0 -1px 0 rgba(0, 0, 0, 0.52);
}
.equipment-frame-loading {
position: absolute;
inset: 0;
z-index: 2;
display: grid;
place-items: center;
gap: 12px;
align-content: center;
color: #cbd5e1;
background: rgba(2, 6, 23, 0.74);
}
.equipment-frame-loading__ring {
width: 34px;
height: 34px;
border: 3px solid rgba(212, 165, 116, 0.22);
border-top-color: var(--accent-soft);
border-radius: 999px;
animation: equipmentFrameSpin 900ms linear infinite;
}
.equipment-frame {
width: 100%;
height: 100%;
border: 0;
background: #05080d;
}
@keyframes equipmentFrameSpin {
to {
transform: rotate(360deg);
}
}
.section-header {
justify-content: space-between;
margin-bottom: 16px;
}
.indicator-controls {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 10px;
min-width: min(560px, 100%);
}
.toolbar {
margin-bottom: 14px;
}
.archive-tag-panel {
margin-bottom: 14px;
}
.archive-tag-panel__toggle {
width: 100%;
min-height: 48px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 0 14px;
border: 1px solid rgba(148, 163, 184, 0.16);
border-radius: var(--radius);
background: rgba(2, 6, 23, 0.28);
color: #cbd5e1;
cursor: pointer;
text-align: left;
}
.archive-tag-panel__toggle span {
display: flex;
align-items: center;
gap: 10px;
min-width: 0;
}
.archive-tag-panel__toggle strong {
color: var(--accent-soft);
font-size: 0.78rem;
font-weight: 700;
}
.archive-tag-panel__toggle[aria-expanded="true"] svg {
transform: rotate(180deg);
}
.tag-selector {
display: flex;
flex-direction: column;
gap: 12px;
margin-top: 10px;
padding: 14px;
border: 1px solid rgba(148, 163, 184, 0.14);
border-radius: var(--radius);
background: rgba(2, 6, 23, 0.24);
}
.tag-selector__header {
display: grid;
grid-template-columns: minmax(280px, 1fr) minmax(420px, 0.9fr);
gap: 10px;
}
.tag-selector__header span,
.tag-selector__tools button,
.selected-tags span {
color: var(--muted);
font-size: 0.76rem;
}
.tag-selector__header strong {
color: var(--accent-soft);
font-size: 0.86rem;
}
.tag-selector__tools {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 8px;
}
.tag-selector__tools button {
min-height: 34px;
border: 1px solid rgba(148, 163, 184, 0.16);
border-radius: var(--radius);
background: rgba(15, 23, 42, 0.54);
cursor: pointer;
}
.tag-selector__tools button:hover,
.tag-select-item:hover,
.tag-select-item--selected {
border-color: var(--line-strong);
background: rgba(201, 122, 61, 0.12);
}
.selected-tags {
min-height: 38px;
display: flex;
align-items: center;
gap: 6px;
flex-wrap: wrap;
}
.selected-tags span {
max-width: 100%;
overflow: hidden;
padding: 5px 8px;
border: 1px solid rgba(148, 163, 184, 0.14);
border-radius: 999px;
text-overflow: ellipsis;
white-space: nowrap;
}
.tag-select-list {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 7px;
padding-right: 2px;
}
.tag-select-item {
min-height: 42px;
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
align-items: center;
gap: 10px;
padding: 0 10px;
border: 1px solid rgba(148, 163, 184, 0.12);
border-radius: var(--radius);
background: rgba(2, 6, 23, 0.22);
color: #cbd5e1;
cursor: pointer;
text-align: left;
}
.tag-select-item span {
overflow: hidden;
font-size: 0.78rem;
text-overflow: ellipsis;
white-space: nowrap;
}
.tag-select-item strong {
color: #e5e7eb;
font-size: 0.76rem;
}
.tag-select-item--selected span {
color: #f8fafc;
}
.archive-chart {
min-width: 0;
min-height: 0;
display: flex;
flex: 1;
flex-direction: column;
}
.chart-section--archive .toolbar {
flex: 0 0 auto;
}
@media (max-width: 1200px) {
.summary-grid,
.detail-action-grid,
.indicator-summary {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.tag-selector__header {
grid-template-columns: 1fr;
}
.indicator-controls {
min-width: 100%;
justify-content: flex-start;
}
}
@media (max-width: 680px) {
.summary-grid,
.detail-action-grid,
.indicator-summary {
grid-template-columns: 1fr;
}
.tag-selector__tools {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.indicator-controls {
flex-direction: column;
align-items: stretch;
}
}

7
src/styles/index.css Normal file
View File

@@ -0,0 +1,7 @@
@import './tokens.css';
@import './base.css';
@import './components.css';
@import './layout.css';
@import './dashboard.css';
@import './detail.css';
@import './charts.css';

235
src/styles/layout.css Normal file
View File

@@ -0,0 +1,235 @@
.app-shell {
min-height: 100dvh;
display: grid;
grid-template-columns: 264px minmax(0, calc(100dvw - 264px));
}
.app-shell--sidebar-collapsed {
grid-template-columns: 76px minmax(0, calc(100dvw - 76px));
}
.sidebar {
position: sticky;
top: 0;
height: 100dvh;
padding: 20px 16px;
border-right: 1px solid var(--line);
background:
linear-gradient(180deg, rgba(15, 17, 21, 0.96), rgba(10, 13, 18, 0.92)),
var(--panel-strong);
}
.brand {
display: flex;
align-items: center;
gap: 12px;
min-height: 56px;
margin-bottom: 24px;
}
.brand img {
width: 38px;
height: 38px;
object-fit: contain;
}
.brand strong,
.cloud-state strong {
display: block;
font-size: 0.96rem;
}
.brand span,
.cloud-state span {
display: block;
color: var(--muted);
font-size: 0.78rem;
}
.sidebar-toggle {
flex: 0 0 auto;
width: 34px;
height: 34px;
display: inline-flex;
align-items: center;
justify-content: center;
margin-left: auto;
border: 1px solid rgba(148, 163, 184, 0.16);
border-radius: var(--radius);
background: rgba(2, 6, 23, 0.28);
color: #cbd5e1;
cursor: pointer;
}
.sidebar-toggle:hover {
border-color: var(--line-strong);
background: rgba(201, 122, 61, 0.12);
}
.app-shell--sidebar-collapsed .sidebar {
padding: 20px 12px;
}
.app-shell--sidebar-collapsed .brand {
justify-content: center;
}
.app-shell--sidebar-collapsed .brand img {
display: none;
}
.app-shell--sidebar-collapsed .brand__text,
.app-shell--sidebar-collapsed .nav-label {
display: none;
}
.app-shell--sidebar-collapsed .sidebar-toggle {
margin-left: 0;
}
.app-shell--sidebar-collapsed .nav-item {
justify-content: center;
padding: 0;
}
.nav-list {
display: grid;
gap: 8px;
}
.nav-item {
display: flex;
align-items: center;
gap: 10px;
min-height: 42px;
padding: 0 12px;
border: 1px solid transparent;
border-radius: var(--radius);
color: #cbd5e1;
text-decoration: none;
}
.nav-item--button {
width: 100%;
border: 1px solid transparent;
background: transparent;
cursor: pointer;
}
.nav-item:hover,
.nav-item--active {
border-color: var(--line);
background: rgba(201, 122, 61, 0.11);
color: var(--text);
}
.sidebar-panel {
margin-top: 28px;
padding: 14px;
border: 1px solid var(--line);
border-radius: var(--radius);
background: rgba(201, 122, 61, 0.05);
}
.cloud-state {
display: flex;
align-items: center;
gap: 10px;
margin-top: 10px;
}
.workspace {
min-width: 0;
height: 100dvh;
overflow: auto;
padding: 24px;
}
.workspace--archive,
.workspace--equipment {
display: flex;
flex-direction: column;
overflow: auto;
}
.workspace--equipment {
overflow: hidden;
padding: 14px;
}
.workspace--equipment .topbar {
flex: 0 0 auto;
margin-bottom: 12px;
}
.topbar {
display: flex;
justify-content: space-between;
gap: 20px;
align-items: center;
margin-bottom: 22px;
}
.topbar-actions,
.toolbar,
.section-header {
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
}
.topbar-actions {
justify-content: flex-end;
}
.edge-input input {
width: 150px;
}
@media (max-width: 1100px) {
.app-shell {
grid-template-columns: 1fr;
}
.app-shell--sidebar-collapsed {
grid-template-columns: 1fr;
}
.sidebar {
position: static;
height: auto;
border-right: 0;
border-bottom: 1px solid var(--line);
}
.nav-list {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
}
@media (max-width: 680px) {
.workspace {
padding: 16px;
}
.topbar,
.section-header {
align-items: stretch;
flex-direction: column;
}
.topbar-actions,
.toolbar {
justify-content: stretch;
}
.edge-input,
.edge-input input {
width: 100%;
}
.nav-list {
grid-template-columns: 1fr;
}
}

22
src/styles/tokens.css Normal file
View File

@@ -0,0 +1,22 @@
:root {
font-family: Inter, "Segoe UI", system-ui, sans-serif;
color: #f8fafc;
background: #0a0d12;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
--bg: #0a0d12;
--panel: rgba(17, 24, 39, 0.88);
--panel-strong: rgba(10, 13, 18, 0.94);
--line: rgba(212, 165, 116, 0.22);
--line-strong: rgba(232, 201, 160, 0.48);
--accent: #c97a3d;
--accent-soft: #d4a574;
--text: #f8fafc;
--muted: #94a3b8;
--success: #22c55e;
--warning: #f59e0b;
--danger: #ef4444;
--radius: 8px;
}