feat: add consolidated Übersicht (Overview) dashboard tab with real-time mini-cards
All checks were successful
Build & Push Docker Image to Gitea Registry / build-and-push (push) Successful in 13s

This commit is contained in:
Kroonk
2026-05-21 18:41:11 +02:00
parent 32bed2d65e
commit 6ff401ad74
3 changed files with 292 additions and 3 deletions

169
style.css
View File

@@ -1268,3 +1268,172 @@ main {
transform: translateY(0);
}
}
/* ==========================================================================
Dashboard Overview Cards & Grid
========================================================================== */
.overview-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 16px;
margin-bottom: 24px;
}
@media (max-width: 620px) {
.overview-grid {
grid-template-columns: 1fr;
}
}
.overview-mini-card {
background: rgba(17, 22, 36, 0.45);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 20px;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
display: flex;
flex-direction: column;
gap: 14px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.overview-mini-card:hover {
background: rgba(23, 29, 45, 0.65);
border-color: rgba(103, 232, 249, 0.3);
transform: translateY(-3px);
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35), 0 0 15px rgba(103, 232, 249, 0.08);
}
.mini-card-head {
display: flex;
align-items: center;
gap: 10px;
}
.mini-card-icon {
font-size: 1.3rem;
}
.mini-card-head h4 {
margin: 0;
font-size: 1.05rem;
font-weight: 700;
color: #fff;
letter-spacing: -0.01em;
}
.mini-card-body {
display: flex;
flex-direction: column;
gap: 8px;
font-size: 0.92rem;
color: var(--text);
}
.mini-status-text {
display: flex;
align-items: baseline;
gap: 6px;
}
.mini-status-total {
color: var(--dim);
font-size: 0.8rem;
}
.mini-status-sub {
font-size: 0.8rem;
color: var(--dim);
margin-top: 2px;
}
/* LEDs for Services */
.mini-led-grid {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-top: 6px;
}
.mini-led {
width: 9px;
height: 9px;
border-radius: 50%;
display: inline-block;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mini-led:hover {
transform: scale(1.35);
}
.mini-led-ok {
background-color: var(--ok);
box-shadow: 0 0 6px rgba(52, 211, 153, 0.4);
}
.mini-led-down {
background-color: var(--down);
box-shadow: 0 0 6px rgba(251, 113, 133, 0.4);
}
/* Disks Mini Rows */
.mini-disk-row {
display: flex;
flex-direction: column;
gap: 6px;
margin-bottom: 2px;
}
.mini-disk-row:last-child {
margin-bottom: 0;
}
.mini-disk-row.is-error {
color: var(--down);
font-weight: 500;
}
.mini-disk-meta {
display: flex;
justify-content: space-between;
font-size: 0.82rem;
}
.mini-disk-meta strong {
color: #fff;
font-weight: 600;
}
/* Slim progress bars in Mini overview */
.usage-bar.mini-bar {
height: 5px;
background: rgba(255, 255, 255, 0.05);
border-radius: 99px;
overflow: hidden;
position: relative;
width: 100%;
}
.usage-bar.mini-bar span {
display: block;
height: 100%;
border-radius: 99px;
transition: width 0.4s ease;
}
.usage-bar.mini-bar[data-level="ok"] span {
background-color: var(--ok);
box-shadow: 0 0 4px rgba(52, 211, 153, 0.3);
}
.usage-bar.mini-bar[data-level="warn"] span {
background-color: var(--warn);
box-shadow: 0 0 4px rgba(251, 191, 36, 0.3);
}
.usage-bar.mini-bar[data-level="danger"] span {
background-color: var(--down);
box-shadow: 0 0 4px rgba(251, 113, 133, 0.3);
}