Add static homelab dashboard with Docker and nginx setup

This commit is contained in:
2026-09-04 11:22:17 +02:00
commit a168fb3b46
8 changed files with 839 additions and 0 deletions
+448
View File
@@ -0,0 +1,448 @@
:root {
--bg: #070b14;
--bg-soft: #0b1220;
--surface: rgba(255, 255, 255, 0.035);
--surface-hover: rgba(255, 255, 255, 0.06);
--border: rgba(255, 255, 255, 0.09);
--border-hover: rgba(255, 255, 255, 0.18);
--text: #e7ecf5;
--muted: #8a94a8;
--muted-2: #636e84;
--accent: #22d3ee;
--accent-2: #a855f7;
--online: #34d399;
--radius: 18px;
--radius-sm: 12px;
--shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.7);
}
* {
box-sizing: border-box;
}
html,
body {
margin: 0;
min-height: 100%;
}
body {
font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
background: var(--bg);
color: var(--text);
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
position: relative;
overflow-x: hidden;
}
/* ambient glow */
.bg-glow {
position: fixed;
inset: 0;
z-index: 0;
pointer-events: none;
background:
radial-gradient(60% 50% at 12% -5%, rgba(34, 211, 238, 0.14), transparent 60%),
radial-gradient(55% 45% at 95% 0%, rgba(168, 85, 247, 0.14), transparent 60%),
radial-gradient(70% 60% at 50% 120%, rgba(52, 211, 153, 0.08), transparent 60%);
}
.shell {
position: relative;
z-index: 1;
max-width: 1240px;
margin: 0 auto;
padding: clamp(20px, 4vw, 44px) clamp(16px, 4vw, 40px) 60px;
}
/* ---------- header ---------- */
.topbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
flex-wrap: wrap;
margin-bottom: 34px;
}
.brand {
display: flex;
align-items: center;
gap: 16px;
}
.logo-dot {
width: 46px;
height: 46px;
border-radius: 14px;
background: linear-gradient(135deg, var(--accent), var(--accent-2));
box-shadow: 0 10px 30px -8px rgba(34, 211, 238, 0.6);
position: relative;
flex: none;
}
.logo-dot::after {
content: "";
position: absolute;
inset: 10px;
border-radius: 8px;
background: rgba(7, 11, 20, 0.55);
backdrop-filter: blur(2px);
}
.brand-text h1 {
margin: 0;
font-size: clamp(22px, 3.2vw, 30px);
font-weight: 800;
letter-spacing: -0.02em;
line-height: 1.05;
}
.subtitle {
margin: 4px 0 0;
color: var(--muted);
font-size: 14px;
}
.top-right {
display: flex;
align-items: center;
gap: 16px;
flex-wrap: wrap;
}
.search {
display: flex;
align-items: center;
gap: 9px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 999px;
padding: 10px 16px;
min-width: 220px;
transition: border-color 0.2s ease, background 0.2s ease;
}
.search:focus-within {
border-color: var(--border-hover);
background: var(--surface-hover);
}
.search svg {
color: var(--muted);
flex: none;
}
.search input {
border: none;
background: transparent;
color: var(--text);
font: inherit;
font-size: 14px;
outline: none;
width: 100%;
}
.search input::placeholder {
color: var(--muted-2);
}
.clock {
text-align: right;
line-height: 1.15;
}
#clock-time {
display: block;
font-size: 20px;
font-weight: 700;
font-variant-numeric: tabular-nums;
letter-spacing: 0.01em;
}
#clock-date {
display: block;
font-size: 12.5px;
color: var(--muted);
}
/* ---------- sections ---------- */
main#app {
display: grid;
gap: 30px;
}
.section-title {
display: flex;
align-items: center;
gap: 12px;
margin: 0 0 16px;
font-size: 13px;
font-weight: 600;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--muted);
}
.section-title::after {
content: "";
height: 1px;
flex: 1;
background: linear-gradient(90deg, var(--border), transparent);
}
.section-title .count {
font-variant-numeric: tabular-nums;
color: var(--muted-2);
letter-spacing: 0;
}
/* ---------- grid ---------- */
.grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 16px;
}
/* ---------- card ---------- */
.card {
position: relative;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 18px 18px 16px;
display: flex;
flex-direction: column;
gap: 14px;
overflow: hidden;
transition:
transform 0.18s ease,
border-color 0.2s ease,
background 0.2s ease,
box-shadow 0.2s ease;
opacity: 0;
transform: translateY(10px);
animation: rise 0.5s ease forwards;
}
@keyframes rise {
to {
opacity: 1;
transform: translateY(0);
}
}
.card::before {
content: "";
position: absolute;
inset: 0 0 auto 0;
height: 3px;
background: linear-gradient(90deg, var(--cat, var(--accent)), transparent 70%);
opacity: 0;
transition: opacity 0.2s ease;
}
.card:hover {
transform: translateY(-4px);
border-color: var(--border-hover);
background: var(--surface-hover);
box-shadow: var(--shadow);
}
.card:hover::before {
opacity: 1;
}
.card.hidden {
display: none;
}
.card-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
}
.card-icon {
width: 46px;
height: 46px;
border-radius: var(--radius-sm);
display: grid;
place-items: center;
font-size: 22px;
background: color-mix(in srgb, var(--cat, var(--accent)) 16%, transparent);
border: 1px solid color-mix(in srgb, var(--cat, var(--accent)) 34%, transparent);
flex: none;
}
.status {
display: inline-flex;
align-items: center;
gap: 7px;
font-size: 12px;
font-weight: 500;
color: var(--muted);
padding: 5px 10px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.04);
border: 1px solid var(--border);
white-space: nowrap;
}
.status .dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--online);
box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18);
animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
0%,
100% {
box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18);
}
50% {
box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.05);
}
}
.card-body {
display: flex;
flex-direction: column;
gap: 6px;
min-width: 0;
}
.card-name {
font-size: 16.5px;
font-weight: 600;
letter-spacing: -0.01em;
}
.card-cat {
align-self: flex-start;
font-size: 11px;
font-weight: 600;
letter-spacing: 0.04em;
text-transform: uppercase;
color: color-mix(in srgb, var(--cat, var(--accent)) 80%, white);
}
.card-url {
font-size: 13px;
color: var(--muted);
font-variant-numeric: tabular-nums;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.card-actions {
display: flex;
gap: 8px;
margin-top: 2px;
}
.btn {
flex: 1;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 7px;
font: inherit;
font-size: 13.5px;
font-weight: 600;
padding: 10px 14px;
border-radius: var(--radius-sm);
border: 1px solid var(--border);
background: rgba(255, 255, 255, 0.03);
color: var(--text);
cursor: pointer;
text-decoration: none;
transition:
background 0.18s ease,
border-color 0.18s ease,
transform 0.12s ease;
}
.btn:hover {
background: var(--surface-hover);
border-color: var(--border-hover);
}
.btn:active {
transform: scale(0.98);
}
.btn-primary {
background: linear-gradient(135deg, var(--accent), var(--accent-2));
border-color: transparent;
color: #05070d;
}
.btn-primary:hover {
background: linear-gradient(135deg, #38dbf2, #b56bff);
}
.btn-ghost {
flex: 0 0 auto;
width: 42px;
padding: 10px;
}
.btn svg {
flex: none;
}
/* ---------- empty / footer ---------- */
.no-results {
color: var(--muted);
padding: 20px 4px;
font-size: 14px;
}
.footer {
margin-top: 40px;
text-align: center;
color: var(--muted-2);
font-size: 13px;
}
/* ---------- responsive ---------- */
@media (max-width: 640px) {
.topbar {
flex-direction: column;
align-items: stretch;
}
.top-right {
justify-content: space-between;
}
.search {
min-width: 0;
flex: 1;
}
.clock {
text-align: left;
}
#clock-time {
font-size: 18px;
}
}
@media (prefers-reduced-motion: reduce) {
.card {
animation: none;
opacity: 1;
transform: none;
}
.status .dot {
animation: none;
}
.card:hover {
transform: none;
}
}