Spaces:
Paused
Paused
Revert to dark glass theme (lightweight)
Browse files- public/index.html +118 -272
public/index.html
CHANGED
|
@@ -6,329 +6,204 @@
|
|
| 6 |
<title>Server Dashboard — Hedd</title>
|
| 7 |
<style>
|
| 8 |
* { margin: 0; padding: 0; box-sizing: border-box; }
|
| 9 |
-
|
| 10 |
body {
|
| 11 |
font-family: -apple-system, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
|
| 12 |
min-height: 100vh;
|
| 13 |
-
background: #
|
| 14 |
-
color: #
|
| 15 |
-
-
|
| 16 |
-
}
|
| 17 |
-
|
| 18 |
-
/* ===== SVG FILTERS ===== */
|
| 19 |
-
.svg-filters { position: absolute; width: 0; height: 0; }
|
| 20 |
-
|
| 21 |
-
/* ===== LIQUID BACKGROUND ===== */
|
| 22 |
-
.liquid-bg {
|
| 23 |
-
position: fixed; inset: 0; z-index: 0; overflow: hidden;
|
| 24 |
-
background: linear-gradient(160deg, #f8f8fc 0%, #eeeef5 40%, #f5f3ff 100%);
|
| 25 |
-
}
|
| 26 |
-
|
| 27 |
-
.blob {
|
| 28 |
-
position: absolute; border-radius: 50%;
|
| 29 |
-
filter: blur(70px); opacity: 0.55;
|
| 30 |
-
mix-blend-mode: multiply;
|
| 31 |
-
animation: drift 25s ease-in-out infinite alternate;
|
| 32 |
}
|
| 33 |
-
.blob-1 { width: 600px; height: 600px; background: radial-gradient(circle at 30% 40%, #c4b5fd, transparent 70%); top: -20%; left: -15%; animation-delay: 0s; }
|
| 34 |
-
.blob-2 { width: 500px; height: 500px; background: radial-gradient(circle at 60% 30%, #fbcfe8, transparent 70%); bottom: -15%; right: -10%; animation-delay: -8s; }
|
| 35 |
-
.blob-3 { width: 450px; height: 450px; background: radial-gradient(circle at 50% 50%, #a5f3fc, transparent 70%); top: 50%; left: 35%; animation-delay: -16s; opacity: 0.4; }
|
| 36 |
-
.blob-4 { width: 400px; height: 400px; background: radial-gradient(circle at 40% 60%, #fde68a, transparent 70%); top: 15%; right: 15%; animation-delay: -4s; opacity: 0.35; }
|
| 37 |
-
.blob-5 { width: 350px; height: 350px; background: radial-gradient(circle at 70% 20%, #a78bfa, transparent 70%); bottom: 20%; left: 15%; animation-delay: -12s; opacity: 0.3; }
|
| 38 |
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
}
|
| 46 |
|
| 47 |
.container {
|
| 48 |
position: relative; z-index: 1;
|
| 49 |
-
max-width:
|
| 50 |
-
padding:
|
| 51 |
}
|
| 52 |
|
| 53 |
-
/* ===== LIQUID GLASS — CORE ===== */
|
| 54 |
.glass {
|
| 55 |
position: relative;
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
);
|
| 71 |
-
backdrop-filter: blur(50px) saturate(220%) brightness(1.02);
|
| 72 |
-
-webkit-backdrop-filter: blur(50px) saturate(220%) brightness(1.02);
|
| 73 |
-
border-radius: 26px;
|
| 74 |
overflow: hidden;
|
| 75 |
-
transition: transform 0.4s ease, box-shadow 0.4s ease;
|
| 76 |
-
}
|
| 77 |
-
|
| 78 |
-
/* Border with inner glow */
|
| 79 |
-
.glass-border {
|
| 80 |
-
position: absolute; inset: 0; border-radius: 26px;
|
| 81 |
-
pointer-events: none;
|
| 82 |
-
border: 0.5px solid transparent;
|
| 83 |
-
background:
|
| 84 |
-
linear-gradient(
|
| 85 |
-
135deg,
|
| 86 |
-
rgba(255,255,255,0.7),
|
| 87 |
-
rgba(255,255,255,0.25) 30%,
|
| 88 |
-
rgba(139,92,246,0.08),
|
| 89 |
-
rgba(255,255,255,0.15) 70%,
|
| 90 |
-
rgba(255,255,255,0.5)
|
| 91 |
-
) border-box;
|
| 92 |
-
-webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
|
| 93 |
-
-webkit-mask-composite: xor;
|
| 94 |
-
mask-composite: exclude;
|
| 95 |
}
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 100 |
pointer-events: none;
|
| 101 |
-
background:
|
| 102 |
-
/* Sharp highlight near top edge */
|
| 103 |
-
linear-gradient(
|
| 104 |
-
180deg,
|
| 105 |
-
rgba(255,255,255,0.85) 0%,
|
| 106 |
-
rgba(255,255,255,0.25) 8%,
|
| 107 |
-
transparent 30%,
|
| 108 |
-
transparent 100%
|
| 109 |
-
);
|
| 110 |
}
|
| 111 |
|
| 112 |
-
/* Edge refraction ring — the "liquid glass" rim */
|
| 113 |
-
.glass-refraction {
|
| 114 |
-
position: absolute; inset: 0; border-radius: 26px;
|
| 115 |
-
pointer-events: none;
|
| 116 |
-
opacity: 0;
|
| 117 |
-
transition: opacity 0.5s ease;
|
| 118 |
-
}
|
| 119 |
-
.glass:hover .glass-refraction {
|
| 120 |
-
opacity: 1;
|
| 121 |
-
}
|
| 122 |
-
|
| 123 |
-
/* Caustic light pattern - SVG turbulence applied */
|
| 124 |
-
.glass-caustics {
|
| 125 |
-
position: absolute; inset: 0; border-radius: 26px;
|
| 126 |
-
pointer-events: none;
|
| 127 |
-
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.015' numOctaves='4' seed='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E");
|
| 128 |
-
background-size: 200% 200%;
|
| 129 |
-
mix-blend-mode: overlay;
|
| 130 |
-
opacity: 0.04;
|
| 131 |
-
animation: causticShift 12s ease-in-out infinite alternate;
|
| 132 |
-
}
|
| 133 |
-
@keyframes causticShift {
|
| 134 |
-
0% { background-position: 0% 0%; }
|
| 135 |
-
100% { background-position: 100% 100%; }
|
| 136 |
-
}
|
| 137 |
-
|
| 138 |
-
/* Inner shadow for depth */
|
| 139 |
-
.glass-depth {
|
| 140 |
-
position: absolute; inset: 0; border-radius: 26px;
|
| 141 |
-
pointer-events: none;
|
| 142 |
-
box-shadow:
|
| 143 |
-
inset 0 2px 4px rgba(255,255,255,0.9),
|
| 144 |
-
inset 0 -2px 6px rgba(0,0,0,0.03),
|
| 145 |
-
inset 2px 0 4px rgba(255,255,255,0.4),
|
| 146 |
-
inset -2px 0 4px rgba(255,255,255,0.4),
|
| 147 |
-
0 1px 3px rgba(0,0,0,0.04),
|
| 148 |
-
0 4px 12px rgba(0,0,0,0.06),
|
| 149 |
-
0 12px 36px rgba(0,0,0,0.08);
|
| 150 |
-
}
|
| 151 |
-
|
| 152 |
-
/* ===== HEADER ===== */
|
| 153 |
.header {
|
| 154 |
-
padding: 2rem 1rem;
|
| 155 |
-
border-radius: 30px;
|
| 156 |
text-align: center;
|
| 157 |
margin-bottom: 2rem;
|
|
|
|
|
|
|
| 158 |
}
|
| 159 |
.header h1 {
|
| 160 |
font-size: 2rem;
|
| 161 |
font-weight: 700;
|
| 162 |
-
background: linear-gradient(135deg, #
|
| 163 |
-webkit-background-clip: text; -webkit-text-fill-color: transparent;
|
| 164 |
background-clip: text;
|
| 165 |
-
margin-bottom: 0.
|
| 166 |
}
|
| 167 |
.header-sub {
|
| 168 |
display: flex; align-items: center; justify-content: center; gap: 0.5rem;
|
| 169 |
flex-wrap: wrap;
|
| 170 |
}
|
| 171 |
.status-dot {
|
| 172 |
-
width:
|
| 173 |
-
animation: pulse 2s
|
| 174 |
}
|
| 175 |
@keyframes pulse {
|
| 176 |
-
0%,100% { box-shadow: 0 0 0 0 rgba(
|
| 177 |
-
50% { box-shadow: 0 0 0
|
| 178 |
}
|
| 179 |
-
.status-text { font-size: 0.8rem; color:
|
| 180 |
-
.refresh-info {
|
| 181 |
|
| 182 |
-
/* ===== STAT CARDS ===== */
|
| 183 |
.stats {
|
| 184 |
-
display: grid; grid-template-columns: repeat(auto-fit, minmax(
|
| 185 |
-
gap:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 186 |
}
|
| 187 |
-
.stat-card { padding: 1.3rem 1.1rem; }
|
| 188 |
.stat-card:hover {
|
| 189 |
-
transform: translateY(-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 190 |
}
|
| 191 |
.stat-label {
|
| 192 |
-
font-size: 0.
|
| 193 |
-
text-transform: uppercase; letter-spacing: 0.
|
| 194 |
-
font-weight: 600;
|
| 195 |
}
|
| 196 |
.stat-value {
|
| 197 |
-
font-size: 2rem; font-weight: 700;
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
}
|
| 202 |
.stat-sub {
|
| 203 |
-
font-size: 0.
|
| 204 |
-
margin-top: 0.35rem; line-height: 1.4;
|
| 205 |
-
font-variant-numeric: tabular-nums;
|
| 206 |
}
|
| 207 |
|
| 208 |
-
/* Progress bar — glass pill */
|
| 209 |
.progress-bar {
|
| 210 |
-
height:
|
| 211 |
-
border-radius:
|
| 212 |
-
box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
|
| 213 |
}
|
| 214 |
.progress-fill {
|
| 215 |
-
height: 100%; border-radius:
|
| 216 |
-
|
| 217 |
-
position: relative; overflow: hidden;
|
| 218 |
}
|
| 219 |
.progress-fill::after {
|
| 220 |
content: ''; position: absolute;
|
| 221 |
top: 0; right: 0; width: 20px; height: 100%;
|
| 222 |
-
background: rgba(255,255,255,0.
|
| 223 |
-
filter: blur(
|
| 224 |
}
|
| 225 |
-
|
| 226 |
-
.
|
| 227 |
-
|
| 228 |
-
top: 0; left: -100%; width: 100%; height: 100%;
|
| 229 |
-
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
|
| 230 |
-
animation: shimmer 2s ease-in-out infinite;
|
| 231 |
-
}
|
| 232 |
-
@keyframes shimmer {
|
| 233 |
-
0% { left: -100%; }
|
| 234 |
-
100% { left: 100%; }
|
| 235 |
-
}
|
| 236 |
-
.fill-green { background: linear-gradient(90deg, #34d399, #10b981); box-shadow: 0 0 8px rgba(16,185,129,0.3); }
|
| 237 |
-
.fill-yellow { background: linear-gradient(90deg, #fbbf24, #f59e0b); box-shadow: 0 0 8px rgba(245,158,11,0.3); }
|
| 238 |
-
.fill-red { background: linear-gradient(90deg, #f87171, #ef4444); box-shadow: 0 0 8px rgba(239,68,68,0.3); }
|
| 239 |
|
| 240 |
-
/* ===== INFO TABLE ===== */
|
| 241 |
.section-title {
|
| 242 |
-
font-size: 0.
|
| 243 |
-
margin-bottom: 0.6rem; padding-left: 0.
|
| 244 |
-
font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
|
| 245 |
}
|
| 246 |
-
.info-list {
|
| 247 |
.info-row {
|
| 248 |
display: flex; justify-content: space-between; align-items: center;
|
| 249 |
-
padding: 0.
|
| 250 |
-
border-bottom: 1px solid rgba(
|
| 251 |
-
font-size: 0.
|
| 252 |
-
position: relative;
|
| 253 |
-
}
|
| 254 |
-
.info-row::before {
|
| 255 |
-
content: ''; position: absolute; inset: 0;
|
| 256 |
-
background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
|
| 257 |
-
opacity: 0; transition: opacity 0.3s;
|
| 258 |
-
pointer-events: none;
|
| 259 |
}
|
| 260 |
-
.info-row:hover::before { opacity: 1; }
|
| 261 |
.info-row:last-child { border-bottom: none; }
|
| 262 |
-
.info-key { color: rgba(
|
| 263 |
.info-val {
|
| 264 |
-
color:
|
| 265 |
text-align: right; font-family: 'SF Mono', 'Fira Code', monospace;
|
| 266 |
-
font-size: 0.
|
| 267 |
}
|
| 268 |
|
| 269 |
-
/* ===== FOOTER ===== */
|
| 270 |
.footer {
|
| 271 |
text-align: center; margin-top: 3rem;
|
| 272 |
-
color: rgba(
|
| 273 |
}
|
| 274 |
-
.footer a { color: rgba(
|
| 275 |
-
.footer a:hover { color: rgba(
|
| 276 |
|
| 277 |
-
/* ===== RESPONSIVE ===== */
|
| 278 |
@media (max-width: 600px) {
|
| 279 |
.container { padding: 1.5rem 0.75rem 2rem; }
|
| 280 |
-
.stats { grid-template-columns: 1fr 1fr;
|
| 281 |
-
.info-row { flex-direction: column; align-items: flex-start; gap: 0.15rem; padding: 0.
|
| 282 |
-
.header {
|
| 283 |
-
.
|
| 284 |
-
.stat-value { font-size: 1.5rem; }
|
| 285 |
-
.stat-label { font-size: 0.58rem; }
|
| 286 |
-
.stat-card { padding: 1rem 0.9rem; }
|
| 287 |
}
|
| 288 |
</style>
|
| 289 |
</head>
|
| 290 |
<body>
|
| 291 |
-
<
|
| 292 |
-
<
|
| 293 |
-
|
| 294 |
-
|
| 295 |
-
<feTurbulence type="fractalNoise" baseFrequency="0.012" numOctaves="5" seed="1" result="noise"/>
|
| 296 |
-
<feDisplacementMap in="SourceGraphic" in2="noise" scale="6" xChannelSelector="R" yChannelSelector="G" result="displaced"/>
|
| 297 |
-
<feGaussianBlur in="displaced" stdDeviation="0.5" result="blurred"/>
|
| 298 |
-
<feColorMatrix in="blurred" type="saturate" values="1.3" result="saturated"/>
|
| 299 |
-
</filter>
|
| 300 |
-
<filter id="glass-refraction">
|
| 301 |
-
<feTurbulence type="fractalNoise" baseFrequency="0.008" numOctaves="6" seed="3" result="noise"/>
|
| 302 |
-
<feColorMatrix in="noise" type="saturate" values="0" result="gray"/>
|
| 303 |
-
<feComponentTransfer in="gray" result="scaled">
|
| 304 |
-
<feFuncR type="linear" slope="0.03" intercept="0"/>
|
| 305 |
-
<feFuncG type="linear" slope="0.03" intercept="0"/>
|
| 306 |
-
<feFuncB type="linear" slope="0.03" intercept="0"/>
|
| 307 |
-
<feFuncA type="linear" slope="1"/>
|
| 308 |
-
</feComponentTransfer>
|
| 309 |
-
</filter>
|
| 310 |
-
</defs>
|
| 311 |
-
</svg>
|
| 312 |
-
|
| 313 |
-
<!-- Liquid background -->
|
| 314 |
-
<div class="liquid-bg">
|
| 315 |
-
<div class="blob blob-1"></div>
|
| 316 |
-
<div class="blob blob-2"></div>
|
| 317 |
-
<div class="blob blob-3"></div>
|
| 318 |
-
<div class="blob blob-4"></div>
|
| 319 |
-
<div class="blob blob-5"></div>
|
| 320 |
-
</div>
|
| 321 |
|
| 322 |
<div class="container">
|
| 323 |
-
|
| 324 |
-
<!-- Header -->
|
| 325 |
<div class="header glass">
|
| 326 |
-
<div class="glass-border"></div>
|
| 327 |
-
<div class="glass-sheen"></div>
|
| 328 |
-
<div class="glass-refraction" style="filter:url(#liquid-distort)"></div>
|
| 329 |
-
<div class="glass-caustics"></div>
|
| 330 |
-
<div class="glass-depth"></div>
|
| 331 |
-
|
| 332 |
<h1>⚡ Server Dashboard</h1>
|
| 333 |
<div class="header-sub">
|
| 334 |
<span class="status-dot"></span>
|
|
@@ -337,46 +212,25 @@
|
|
| 337 |
</div>
|
| 338 |
</div>
|
| 339 |
|
| 340 |
-
<!-- Stats -->
|
| 341 |
<div class="stats">
|
| 342 |
<div class="stat-card glass">
|
| 343 |
-
<div class="glass-border"></div>
|
| 344 |
-
<div class="glass-sheen"></div>
|
| 345 |
-
<div class="glass-refraction" style="filter:url(#liquid-distort)"></div>
|
| 346 |
-
<div class="glass-caustics"></div>
|
| 347 |
-
<div class="glass-depth"></div>
|
| 348 |
<div class="stat-label">CPU Usage</div>
|
| 349 |
<div class="stat-value" id="cpuValue">--%</div>
|
| 350 |
<div class="stat-sub" id="cpuSub">Loading...</div>
|
| 351 |
<div class="progress-bar"><div class="progress-fill fill-green" id="cpuBar" style="width:0%"></div></div>
|
| 352 |
</div>
|
| 353 |
<div class="stat-card glass">
|
| 354 |
-
<div class="glass-border"></div>
|
| 355 |
-
<div class="glass-sheen"></div>
|
| 356 |
-
<div class="glass-refraction" style="filter:url(#liquid-distort)"></div>
|
| 357 |
-
<div class="glass-caustics"></div>
|
| 358 |
-
<div class="glass-depth"></div>
|
| 359 |
<div class="stat-label">Uptime</div>
|
| 360 |
<div class="stat-value" id="uptimeValue">--</div>
|
| 361 |
<div class="stat-sub" id="uptimeSub">Loading...</div>
|
| 362 |
</div>
|
| 363 |
<div class="stat-card glass">
|
| 364 |
-
<div class="glass-border"></div>
|
| 365 |
-
<div class="glass-sheen"></div>
|
| 366 |
-
<div class="glass-refraction" style="filter:url(#liquid-distort)"></div>
|
| 367 |
-
<div class="glass-caustics"></div>
|
| 368 |
-
<div class="glass-depth"></div>
|
| 369 |
<div class="stat-label">RAM Usage</div>
|
| 370 |
<div class="stat-value" id="memValue">-- GB</div>
|
| 371 |
<div class="stat-sub" id="memSub">Loading...</div>
|
| 372 |
<div class="progress-bar"><div class="progress-fill fill-green" id="memBar" style="width:0%"></div></div>
|
| 373 |
</div>
|
| 374 |
<div class="stat-card glass">
|
| 375 |
-
<div class="glass-border"></div>
|
| 376 |
-
<div class="glass-sheen"></div>
|
| 377 |
-
<div class="glass-refraction" style="filter:url(#liquid-distort)"></div>
|
| 378 |
-
<div class="glass-caustics"></div>
|
| 379 |
-
<div class="glass-depth"></div>
|
| 380 |
<div class="stat-label">Disk Usage</div>
|
| 381 |
<div class="stat-value" id="diskValue">-- GB</div>
|
| 382 |
<div class="stat-sub" id="diskSub">Loading...</div>
|
|
@@ -384,15 +238,8 @@
|
|
| 384 |
</div>
|
| 385 |
</div>
|
| 386 |
|
| 387 |
-
<!-- Server Info -->
|
| 388 |
<div class="section-title">📋 Server Info</div>
|
| 389 |
<div class="info-list glass">
|
| 390 |
-
<div class="glass-border"></div>
|
| 391 |
-
<div class="glass-sheen"></div>
|
| 392 |
-
<div class="glass-refraction" style="filter:url(#liquid-distort)"></div>
|
| 393 |
-
<div class="glass-caustics"></div>
|
| 394 |
-
<div class="glass-depth"></div>
|
| 395 |
-
|
| 396 |
<div class="info-row"><span class="info-key">Hostname</span><span class="info-val" id="infoHostname">...</span></div>
|
| 397 |
<div class="info-row"><span class="info-key">OS</span><span class="info-val" id="infoOS">...</span></div>
|
| 398 |
<div class="info-row"><span class="info-key">Kernel</span><span class="info-val" id="infoKernel">...</span></div>
|
|
@@ -401,7 +248,6 @@
|
|
| 401 |
<div class="info-row"><span class="info-key">Last Update</span><span class="info-val" id="infoTime">...</span></div>
|
| 402 |
</div>
|
| 403 |
|
| 404 |
-
<!-- Footer -->
|
| 405 |
<div class="footer">
|
| 406 |
Powered by <a href="https://github.com/openclaw/openclaw" target="_blank">OpenClaw</a> · Dashboard by Hedd
|
| 407 |
</div>
|
|
|
|
| 6 |
<title>Server Dashboard — Hedd</title>
|
| 7 |
<style>
|
| 8 |
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
|
|
| 9 |
body {
|
| 10 |
font-family: -apple-system, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
|
| 11 |
min-height: 100vh;
|
| 12 |
+
background: #0a0a1a;
|
| 13 |
+
color: #fff;
|
| 14 |
+
overflow-x: hidden;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
+
.bg-gradient {
|
| 18 |
+
position: fixed; inset: 0; z-index: 0;
|
| 19 |
+
background:
|
| 20 |
+
radial-gradient(ellipse at 20% 50%, rgba(88, 60, 209, 0.35) 0%, transparent 60%),
|
| 21 |
+
radial-gradient(ellipse at 80% 20%, rgba(0, 180, 216, 0.25) 0%, transparent 50%),
|
| 22 |
+
radial-gradient(ellipse at 60% 80%, rgba(211, 47, 142, 0.2) 0%, transparent 50%),
|
| 23 |
+
radial-gradient(ellipse at 30% 80%, rgba(0, 150, 136, 0.15) 0%, transparent 50%),
|
| 24 |
+
#0a0a1a;
|
| 25 |
+
animation: bgShift 20s ease-in-out infinite alternate;
|
| 26 |
+
}
|
| 27 |
+
@keyframes bgShift {
|
| 28 |
+
0% { filter: hue-rotate(0deg); }
|
| 29 |
+
100% { filter: hue-rotate(40deg); }
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
.orb {
|
| 33 |
+
position: fixed; border-radius: 50%;
|
| 34 |
+
filter: blur(80px); opacity: 0.4;
|
| 35 |
+
animation: float 15s ease-in-out infinite alternate;
|
| 36 |
+
z-index: 0;
|
| 37 |
+
}
|
| 38 |
+
.orb-1 { width: 400px; height: 400px; background: #583cd1; top: -10%; left: -5%; animation-delay: 0s; }
|
| 39 |
+
.orb-2 { width: 350px; height: 350px; background: #e84393; bottom: -10%; right: -5%; animation-delay: -5s; }
|
| 40 |
+
.orb-3 { width: 300px; height: 300px; background: #00b4d8; top: 40%; right: 10%; animation-delay: -10s; }
|
| 41 |
+
@keyframes float {
|
| 42 |
+
0% { transform: translate(0, 0) scale(1); }
|
| 43 |
+
33% { transform: translate(30px, -40px) scale(1.05); }
|
| 44 |
+
66% { transform: translate(-20px, 20px) scale(0.95); }
|
| 45 |
+
100% { transform: translate(10px, -10px) scale(1); }
|
| 46 |
}
|
| 47 |
|
| 48 |
.container {
|
| 49 |
position: relative; z-index: 1;
|
| 50 |
+
max-width: 960px; margin: 0 auto;
|
| 51 |
+
padding: 2rem 1.25rem 3rem;
|
| 52 |
}
|
| 53 |
|
|
|
|
| 54 |
.glass {
|
| 55 |
position: relative;
|
| 56 |
+
background: linear-gradient(
|
| 57 |
+
135deg,
|
| 58 |
+
rgba(255, 255, 255, 0.12) 0%,
|
| 59 |
+
rgba(255, 255, 255, 0.06) 40%,
|
| 60 |
+
rgba(255, 255, 255, 0.04) 60%,
|
| 61 |
+
rgba(255, 255, 255, 0.08) 100%
|
| 62 |
+
);
|
| 63 |
+
backdrop-filter: blur(40px) saturate(180%);
|
| 64 |
+
-webkit-backdrop-filter: blur(40px) saturate(180%);
|
| 65 |
+
border: 1px solid rgba(255, 255, 255, 0.18);
|
| 66 |
+
border-radius: 20px;
|
| 67 |
+
box-shadow:
|
| 68 |
+
0 8px 32px rgba(0, 0, 0, 0.3),
|
| 69 |
+
inset 0 1px 0 rgba(255, 255, 255, 0.15),
|
| 70 |
+
inset 0 -1px 0 rgba(255, 255, 255, 0.05);
|
|
|
|
|
|
|
|
|
|
| 71 |
overflow: hidden;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
}
|
| 73 |
+
.glass::before {
|
| 74 |
+
content: '';
|
| 75 |
+
position: absolute; inset: 0;
|
| 76 |
+
border-radius: 20px;
|
| 77 |
+
background: linear-gradient(
|
| 78 |
+
135deg,
|
| 79 |
+
rgba(255,255,255,0.08) 0%,
|
| 80 |
+
transparent 50%,
|
| 81 |
+
rgba(255,255,255,0.03) 100%
|
| 82 |
+
);
|
| 83 |
pointer-events: none;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
}
|
| 85 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 86 |
.header {
|
|
|
|
|
|
|
| 87 |
text-align: center;
|
| 88 |
margin-bottom: 2rem;
|
| 89 |
+
padding: 1.5rem 1rem;
|
| 90 |
+
border-radius: 24px;
|
| 91 |
}
|
| 92 |
.header h1 {
|
| 93 |
font-size: 2rem;
|
| 94 |
font-weight: 700;
|
| 95 |
+
background: linear-gradient(135deg, #a78bfa, #60a5fa, #34d399);
|
| 96 |
-webkit-background-clip: text; -webkit-text-fill-color: transparent;
|
| 97 |
background-clip: text;
|
| 98 |
+
margin-bottom: 0.3rem;
|
| 99 |
}
|
| 100 |
.header-sub {
|
| 101 |
display: flex; align-items: center; justify-content: center; gap: 0.5rem;
|
| 102 |
flex-wrap: wrap;
|
| 103 |
}
|
| 104 |
.status-dot {
|
| 105 |
+
width: 8px; height: 8px; background: #34d399; border-radius: 50%;
|
| 106 |
+
animation: pulse 2s infinite;
|
| 107 |
}
|
| 108 |
@keyframes pulse {
|
| 109 |
+
0%,100% { box-shadow: 0 0 0 0 rgba(52,211,153,0.5); }
|
| 110 |
+
50% { box-shadow: 0 0 0 8px rgba(52,211,153,0); }
|
| 111 |
}
|
| 112 |
+
.status-text, .refresh-info { font-size: 0.8rem; color: rgba(255,255,255,0.5); }
|
| 113 |
+
.refresh-info { margin-left: 0.5rem; font-variant-numeric: tabular-nums; }
|
| 114 |
|
|
|
|
| 115 |
.stats {
|
| 116 |
+
display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
| 117 |
+
gap: 1rem; margin-bottom: 2rem;
|
| 118 |
+
}
|
| 119 |
+
.stat-card {
|
| 120 |
+
position: relative; padding: 1.3rem 1.2rem;
|
| 121 |
+
transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
|
| 122 |
}
|
|
|
|
| 123 |
.stat-card:hover {
|
| 124 |
+
transform: translateY(-2px);
|
| 125 |
+
border-color: rgba(255, 255, 255, 0.3);
|
| 126 |
+
box-shadow:
|
| 127 |
+
0 12px 40px rgba(0, 0, 0, 0.4),
|
| 128 |
+
inset 0 1px 0 rgba(255, 255, 255, 0.2),
|
| 129 |
+
inset 0 -1px 0 rgba(255, 255, 255, 0.05);
|
| 130 |
}
|
| 131 |
.stat-label {
|
| 132 |
+
font-size: 0.65rem; color: rgba(255,255,255,0.4);
|
| 133 |
+
text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.3rem;
|
|
|
|
| 134 |
}
|
| 135 |
.stat-value {
|
| 136 |
+
font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums;
|
| 137 |
+
background: linear-gradient(135deg, #fff 30%, rgba(255,255,255,0.7));
|
| 138 |
+
-webkit-background-clip: text; -webkit-text-fill-color: transparent;
|
| 139 |
+
background-clip: text;
|
| 140 |
}
|
| 141 |
.stat-sub {
|
| 142 |
+
font-size: 0.7rem; color: rgba(255,255,255,0.35);
|
| 143 |
+
margin-top: 0.35rem; line-height: 1.4; font-variant-numeric: tabular-nums;
|
|
|
|
| 144 |
}
|
| 145 |
|
|
|
|
| 146 |
.progress-bar {
|
| 147 |
+
height: 4px; background: rgba(255,255,255,0.08);
|
| 148 |
+
border-radius: 2px; margin-top: 0.6rem; overflow: hidden;
|
|
|
|
| 149 |
}
|
| 150 |
.progress-fill {
|
| 151 |
+
height: 100%; border-radius: 2px; transition: width 0.8s ease;
|
| 152 |
+
position: relative;
|
|
|
|
| 153 |
}
|
| 154 |
.progress-fill::after {
|
| 155 |
content: ''; position: absolute;
|
| 156 |
top: 0; right: 0; width: 20px; height: 100%;
|
| 157 |
+
background: rgba(255,255,255,0.4);
|
| 158 |
+
filter: blur(4px); border-radius: 2px;
|
| 159 |
}
|
| 160 |
+
.fill-green { background: linear-gradient(90deg, #34d399, #059669); }
|
| 161 |
+
.fill-yellow { background: linear-gradient(90deg, #fbbf24, #d97706); }
|
| 162 |
+
.fill-red { background: linear-gradient(90deg, #f87171, #dc2626); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 163 |
|
|
|
|
| 164 |
.section-title {
|
| 165 |
+
font-size: 0.85rem; color: rgba(255,255,255,0.5);
|
| 166 |
+
margin-bottom: 0.6rem; padding-left: 0.2rem;
|
|
|
|
| 167 |
}
|
| 168 |
+
.info-list { position: relative; overflow: hidden; }
|
| 169 |
.info-row {
|
| 170 |
display: flex; justify-content: space-between; align-items: center;
|
| 171 |
+
padding: 0.7rem 1.2rem;
|
| 172 |
+
border-bottom: 1px solid rgba(255,255,255,0.06);
|
| 173 |
+
font-size: 0.85rem;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 174 |
}
|
|
|
|
| 175 |
.info-row:last-child { border-bottom: none; }
|
| 176 |
+
.info-key { color: rgba(255,255,255,0.45); }
|
| 177 |
.info-val {
|
| 178 |
+
color: rgba(255,255,255,0.85); font-weight: 500;
|
| 179 |
text-align: right; font-family: 'SF Mono', 'Fira Code', monospace;
|
| 180 |
+
font-size: 0.78rem;
|
| 181 |
}
|
| 182 |
|
|
|
|
| 183 |
.footer {
|
| 184 |
text-align: center; margin-top: 3rem;
|
| 185 |
+
color: rgba(255,255,255,0.2); font-size: 0.7rem;
|
| 186 |
}
|
| 187 |
+
.footer a { color: rgba(167,139,250,0.6); text-decoration: none; }
|
| 188 |
+
.footer a:hover { color: rgba(167,139,250,0.9); }
|
| 189 |
|
|
|
|
| 190 |
@media (max-width: 600px) {
|
| 191 |
.container { padding: 1.5rem 0.75rem 2rem; }
|
| 192 |
+
.stats { grid-template-columns: 1fr 1fr; }
|
| 193 |
+
.info-row { flex-direction: column; align-items: flex-start; gap: 0.15rem; padding: 0.6rem 1rem; }
|
| 194 |
+
.header h1 { font-size: 1.5rem; }
|
| 195 |
+
.stat-value { font-size: 1.6rem; }
|
|
|
|
|
|
|
|
|
|
| 196 |
}
|
| 197 |
</style>
|
| 198 |
</head>
|
| 199 |
<body>
|
| 200 |
+
<div class="bg-gradient"></div>
|
| 201 |
+
<div class="orb orb-1"></div>
|
| 202 |
+
<div class="orb orb-2"></div>
|
| 203 |
+
<div class="orb orb-3"></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 204 |
|
| 205 |
<div class="container">
|
|
|
|
|
|
|
| 206 |
<div class="header glass">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 207 |
<h1>⚡ Server Dashboard</h1>
|
| 208 |
<div class="header-sub">
|
| 209 |
<span class="status-dot"></span>
|
|
|
|
| 212 |
</div>
|
| 213 |
</div>
|
| 214 |
|
|
|
|
| 215 |
<div class="stats">
|
| 216 |
<div class="stat-card glass">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 217 |
<div class="stat-label">CPU Usage</div>
|
| 218 |
<div class="stat-value" id="cpuValue">--%</div>
|
| 219 |
<div class="stat-sub" id="cpuSub">Loading...</div>
|
| 220 |
<div class="progress-bar"><div class="progress-fill fill-green" id="cpuBar" style="width:0%"></div></div>
|
| 221 |
</div>
|
| 222 |
<div class="stat-card glass">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 223 |
<div class="stat-label">Uptime</div>
|
| 224 |
<div class="stat-value" id="uptimeValue">--</div>
|
| 225 |
<div class="stat-sub" id="uptimeSub">Loading...</div>
|
| 226 |
</div>
|
| 227 |
<div class="stat-card glass">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 228 |
<div class="stat-label">RAM Usage</div>
|
| 229 |
<div class="stat-value" id="memValue">-- GB</div>
|
| 230 |
<div class="stat-sub" id="memSub">Loading...</div>
|
| 231 |
<div class="progress-bar"><div class="progress-fill fill-green" id="memBar" style="width:0%"></div></div>
|
| 232 |
</div>
|
| 233 |
<div class="stat-card glass">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 234 |
<div class="stat-label">Disk Usage</div>
|
| 235 |
<div class="stat-value" id="diskValue">-- GB</div>
|
| 236 |
<div class="stat-sub" id="diskSub">Loading...</div>
|
|
|
|
| 238 |
</div>
|
| 239 |
</div>
|
| 240 |
|
|
|
|
| 241 |
<div class="section-title">📋 Server Info</div>
|
| 242 |
<div class="info-list glass">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 243 |
<div class="info-row"><span class="info-key">Hostname</span><span class="info-val" id="infoHostname">...</span></div>
|
| 244 |
<div class="info-row"><span class="info-key">OS</span><span class="info-val" id="infoOS">...</span></div>
|
| 245 |
<div class="info-row"><span class="info-key">Kernel</span><span class="info-val" id="infoKernel">...</span></div>
|
|
|
|
| 248 |
<div class="info-row"><span class="info-key">Last Update</span><span class="info-val" id="infoTime">...</span></div>
|
| 249 |
</div>
|
| 250 |
|
|
|
|
| 251 |
<div class="footer">
|
| 252 |
Powered by <a href="https://github.com/openclaw/openclaw" target="_blank">OpenClaw</a> · Dashboard by Hedd
|
| 253 |
</div>
|