Spaces:
Paused
Paused
Enhanced liquid glass: SVG refraction, caustics, sheen, shimmer
Browse files- public/index.html +212 -98
public/index.html
CHANGED
|
@@ -15,28 +15,33 @@
|
|
| 15 |
-webkit-font-smoothing: antialiased;
|
| 16 |
}
|
| 17 |
|
|
|
|
|
|
|
|
|
|
| 18 |
/* ===== LIQUID BACKGROUND ===== */
|
| 19 |
.liquid-bg {
|
| 20 |
position: fixed; inset: 0; z-index: 0; overflow: hidden;
|
| 21 |
-
background: linear-gradient(
|
| 22 |
}
|
| 23 |
|
| 24 |
.blob {
|
| 25 |
position: absolute; border-radius: 50%;
|
| 26 |
-
filter: blur(
|
| 27 |
mix-blend-mode: multiply;
|
| 28 |
-
animation: drift
|
| 29 |
}
|
| 30 |
-
.blob-1 { width:
|
| 31 |
-
.blob-2 { width:
|
| 32 |
-
.blob-3 { width:
|
| 33 |
-
.blob-4 { width:
|
|
|
|
| 34 |
|
| 35 |
@keyframes drift {
|
| 36 |
0% { transform: translate(0, 0) scale(1) rotate(0deg); }
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
|
|
|
| 40 |
}
|
| 41 |
|
| 42 |
.container {
|
|
@@ -45,71 +50,116 @@
|
|
| 45 |
padding: 2.5rem 1.25rem 3rem;
|
| 46 |
}
|
| 47 |
|
| 48 |
-
/* ===== LIQUID GLASS ===== */
|
| 49 |
.glass {
|
| 50 |
position: relative;
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
rgba(255,
|
| 55 |
-
|
| 56 |
-
rgba(255,
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
overflow: hidden;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
}
|
| 71 |
|
| 72 |
-
/*
|
| 73 |
-
.glass
|
| 74 |
-
|
| 75 |
-
position: absolute; inset: 0;
|
| 76 |
-
border-radius: 24px;
|
| 77 |
-
background: linear-gradient(
|
| 78 |
-
135deg,
|
| 79 |
-
rgba(255,255,255,0.5) 0%,
|
| 80 |
-
rgba(255,255,255,0.15) 25%,
|
| 81 |
-
transparent 55%,
|
| 82 |
-
rgba(255,255,255,0.08) 80%,
|
| 83 |
-
rgba(255,255,255,0.3) 100%
|
| 84 |
-
);
|
| 85 |
pointer-events: none;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 86 |
}
|
| 87 |
|
| 88 |
-
/*
|
| 89 |
-
.glass
|
| 90 |
-
|
| 91 |
-
position: absolute;
|
| 92 |
-
top: 0; left: 0; right: 0;
|
| 93 |
-
height: 50%; border-radius: 24px 24px 0 0;
|
| 94 |
-
background: linear-gradient(
|
| 95 |
-
180deg,
|
| 96 |
-
rgba(255,255,255,0.5) 0%,
|
| 97 |
-
transparent 100%
|
| 98 |
-
);
|
| 99 |
pointer-events: none;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 100 |
}
|
| 101 |
|
| 102 |
/* ===== HEADER ===== */
|
| 103 |
.header {
|
|
|
|
|
|
|
| 104 |
text-align: center;
|
| 105 |
margin-bottom: 2rem;
|
| 106 |
-
padding: 1.8rem 1rem;
|
| 107 |
-
border-radius: 28px;
|
| 108 |
}
|
| 109 |
.header h1 {
|
| 110 |
font-size: 2rem;
|
| 111 |
font-weight: 700;
|
| 112 |
-
background: linear-gradient(135deg, #
|
| 113 |
-webkit-background-clip: text; -webkit-text-fill-color: transparent;
|
| 114 |
background-clip: text;
|
| 115 |
margin-bottom: 0.4rem;
|
|
@@ -127,40 +177,30 @@
|
|
| 127 |
50% { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
|
| 128 |
}
|
| 129 |
.status-text { font-size: 0.8rem; color: #10b981; font-weight: 600; }
|
| 130 |
-
.refresh-info { font-size: 0.7rem; color: rgba(0,0,0,0.
|
| 131 |
|
| 132 |
/* ===== STAT CARDS ===== */
|
| 133 |
.stats {
|
| 134 |
display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
| 135 |
gap: 0.85rem; margin-bottom: 2rem;
|
| 136 |
}
|
| 137 |
-
.stat-card {
|
| 138 |
-
padding: 1.25rem 1.1rem;
|
| 139 |
-
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
| 140 |
-
}
|
| 141 |
.stat-card:hover {
|
| 142 |
-
transform: translateY(-
|
| 143 |
-
box-shadow:
|
| 144 |
-
0 4px 8px rgba(0, 0, 0, 0.06),
|
| 145 |
-
0 16px 40px rgba(0, 0, 0, 0.1),
|
| 146 |
-
inset 0 1px 0 rgba(255, 255, 255, 0.95),
|
| 147 |
-
inset 0 -1px 0 rgba(255, 255, 255, 0.5),
|
| 148 |
-
inset 1px 0 0 rgba(255, 255, 255, 0.6),
|
| 149 |
-
inset -1px 0 0 rgba(255, 255, 255, 0.6);
|
| 150 |
}
|
| 151 |
.stat-label {
|
| 152 |
-
font-size: 0.
|
| 153 |
-
text-transform: uppercase; letter-spacing: 0.
|
| 154 |
font-weight: 600;
|
| 155 |
}
|
| 156 |
.stat-value {
|
| 157 |
-
font-size:
|
| 158 |
color: #1d1d1f;
|
| 159 |
font-variant-numeric: tabular-nums;
|
| 160 |
-
letter-spacing: -0.
|
| 161 |
}
|
| 162 |
.stat-sub {
|
| 163 |
-
font-size: 0.
|
| 164 |
margin-top: 0.35rem; line-height: 1.4;
|
| 165 |
font-variant-numeric: tabular-nums;
|
| 166 |
}
|
|
@@ -168,79 +208,127 @@
|
|
| 168 |
/* Progress bar — glass pill */
|
| 169 |
.progress-bar {
|
| 170 |
height: 5px; background: rgba(0,0,0,0.06);
|
| 171 |
-
border-radius: 3px; margin-top: 0.
|
| 172 |
box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
|
| 173 |
}
|
| 174 |
.progress-fill {
|
| 175 |
height: 100%; border-radius: 3px;
|
| 176 |
transition: width 0.8s ease;
|
| 177 |
-
position: relative;
|
| 178 |
-
overflow: hidden;
|
| 179 |
}
|
| 180 |
.progress-fill::after {
|
| 181 |
content: ''; position: absolute;
|
| 182 |
-
top: 0; right: 0; width:
|
| 183 |
-
background: rgba(255,255,255,0.
|
| 184 |
-
filter: blur(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 185 |
}
|
| 186 |
-
.fill-green { background: linear-gradient(90deg, #34d399, #10b981
|
| 187 |
-
.fill-yellow { background: linear-gradient(90deg, #fbbf24, #f59e0b
|
| 188 |
-
.fill-red { background: linear-gradient(90deg, #f87171, #ef4444
|
| 189 |
|
| 190 |
/* ===== INFO TABLE ===== */
|
| 191 |
.section-title {
|
| 192 |
-
font-size: 0.
|
| 193 |
margin-bottom: 0.6rem; padding-left: 0.3rem;
|
| 194 |
-
font-weight: 600; text-transform: uppercase; letter-spacing: 0.
|
| 195 |
}
|
| 196 |
-
.info-list { padding: 0; }
|
| 197 |
.info-row {
|
| 198 |
display: flex; justify-content: space-between; align-items: center;
|
| 199 |
-
padding: 0.
|
| 200 |
-
border-bottom: 1px solid rgba(0,0,0,0.
|
| 201 |
-
font-size: 0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 202 |
}
|
|
|
|
| 203 |
.info-row:last-child { border-bottom: none; }
|
| 204 |
-
.info-key { color: rgba(0,0,0,0.
|
| 205 |
.info-val {
|
| 206 |
-
color: #1d1d1f; font-weight: 600;
|
| 207 |
-
text-align: right; font-family: 'SF Mono', 'Fira Code',
|
| 208 |
-
font-size: 0.
|
| 209 |
}
|
| 210 |
|
| 211 |
/* ===== FOOTER ===== */
|
| 212 |
.footer {
|
| 213 |
text-align: center; margin-top: 3rem;
|
| 214 |
-
color: rgba(0,0,0,0.
|
| 215 |
}
|
| 216 |
-
.footer a { color: rgba(124,58,237,0.
|
| 217 |
-
.footer a:hover { color: rgba(124,58,237,0.
|
| 218 |
|
| 219 |
/* ===== RESPONSIVE ===== */
|
| 220 |
@media (max-width: 600px) {
|
| 221 |
.container { padding: 1.5rem 0.75rem 2rem; }
|
| 222 |
.stats { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
|
| 223 |
.info-row { flex-direction: column; align-items: flex-start; gap: 0.15rem; padding: 0.7rem 1.1rem; }
|
| 224 |
-
.header
|
|
|
|
| 225 |
.stat-value { font-size: 1.5rem; }
|
| 226 |
-
.stat-label { font-size: 0.
|
| 227 |
.stat-card { padding: 1rem 0.9rem; }
|
| 228 |
}
|
| 229 |
</style>
|
| 230 |
</head>
|
| 231 |
<body>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 232 |
<!-- Liquid background -->
|
| 233 |
<div class="liquid-bg">
|
| 234 |
<div class="blob blob-1"></div>
|
| 235 |
<div class="blob blob-2"></div>
|
| 236 |
<div class="blob blob-3"></div>
|
| 237 |
<div class="blob blob-4"></div>
|
|
|
|
| 238 |
</div>
|
| 239 |
|
| 240 |
<div class="container">
|
| 241 |
|
| 242 |
<!-- Header -->
|
| 243 |
<div class="header glass">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 244 |
<h1>⚡ Server Dashboard</h1>
|
| 245 |
<div class="header-sub">
|
| 246 |
<span class="status-dot"></span>
|
|
@@ -252,23 +340,43 @@
|
|
| 252 |
<!-- Stats -->
|
| 253 |
<div class="stats">
|
| 254 |
<div class="stat-card glass">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 255 |
<div class="stat-label">CPU Usage</div>
|
| 256 |
<div class="stat-value" id="cpuValue">--%</div>
|
| 257 |
<div class="stat-sub" id="cpuSub">Loading...</div>
|
| 258 |
<div class="progress-bar"><div class="progress-fill fill-green" id="cpuBar" style="width:0%"></div></div>
|
| 259 |
</div>
|
| 260 |
<div class="stat-card glass">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 261 |
<div class="stat-label">Uptime</div>
|
| 262 |
<div class="stat-value" id="uptimeValue">--</div>
|
| 263 |
<div class="stat-sub" id="uptimeSub">Loading...</div>
|
| 264 |
</div>
|
| 265 |
<div class="stat-card glass">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 266 |
<div class="stat-label">RAM Usage</div>
|
| 267 |
<div class="stat-value" id="memValue">-- GB</div>
|
| 268 |
<div class="stat-sub" id="memSub">Loading...</div>
|
| 269 |
<div class="progress-bar"><div class="progress-fill fill-green" id="memBar" style="width:0%"></div></div>
|
| 270 |
</div>
|
| 271 |
<div class="stat-card glass">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 272 |
<div class="stat-label">Disk Usage</div>
|
| 273 |
<div class="stat-value" id="diskValue">-- GB</div>
|
| 274 |
<div class="stat-sub" id="diskSub">Loading...</div>
|
|
@@ -279,6 +387,12 @@
|
|
| 279 |
<!-- Server Info -->
|
| 280 |
<div class="section-title">📋 Server Info</div>
|
| 281 |
<div class="info-list glass">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 282 |
<div class="info-row"><span class="info-key">Hostname</span><span class="info-val" id="infoHostname">...</span></div>
|
| 283 |
<div class="info-row"><span class="info-key">OS</span><span class="info-val" id="infoOS">...</span></div>
|
| 284 |
<div class="info-row"><span class="info-key">Kernel</span><span class="info-val" id="infoKernel">...</span></div>
|
|
|
|
| 15 |
-webkit-font-smoothing: antialiased;
|
| 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 |
@keyframes drift {
|
| 40 |
0% { transform: translate(0, 0) scale(1) rotate(0deg); }
|
| 41 |
+
25% { transform: translate(50px, -40px) scale(1.08) rotate(15deg); }
|
| 42 |
+
50% { transform: translate(-20px, 50px) scale(0.92) rotate(-10deg); }
|
| 43 |
+
75% { transform: translate(30px, 20px) scale(1.05) rotate(8deg); }
|
| 44 |
+
100% { transform: translate(-10px, -30px) scale(0.98) rotate(-5deg); }
|
| 45 |
}
|
| 46 |
|
| 47 |
.container {
|
|
|
|
| 50 |
padding: 2.5rem 1.25rem 3rem;
|
| 51 |
}
|
| 52 |
|
| 53 |
+
/* ===== LIQUID GLASS — CORE ===== */
|
| 54 |
.glass {
|
| 55 |
position: relative;
|
| 56 |
+
/* Multi-layer glass */
|
| 57 |
+
background:
|
| 58 |
+
/* Specular highlight top-left */
|
| 59 |
+
radial-gradient(ellipse at 20% 0%, rgba(255,255,255,0.8) 0%, transparent 50%),
|
| 60 |
+
/* Warm reflection bottom-right */
|
| 61 |
+
radial-gradient(ellipse at 80% 100%, rgba(255,255,255,0.3) 0%, transparent 50%),
|
| 62 |
+
/* Main glass body */
|
| 63 |
+
linear-gradient(
|
| 64 |
+
160deg,
|
| 65 |
+
rgba(255,255,255,0.78) 0%,
|
| 66 |
+
rgba(255,255,255,0.65) 25%,
|
| 67 |
+
rgba(255,255,255,0.52) 50%,
|
| 68 |
+
rgba(255,255,255,0.62) 75%,
|
| 69 |
+
rgba(255,255,255,0.72) 100%
|
| 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 |
+
/* Top glass highlight (iOS-style sheen) */
|
| 98 |
+
.glass-sheen {
|
| 99 |
+
position: absolute; inset: 0; border-radius: 26px;
|
| 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, #6d28d9, #7c3aed, #6366f1, #3b82f6);
|
| 163 |
-webkit-background-clip: text; -webkit-text-fill-color: transparent;
|
| 164 |
background-clip: text;
|
| 165 |
margin-bottom: 0.4rem;
|
|
|
|
| 177 |
50% { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
|
| 178 |
}
|
| 179 |
.status-text { font-size: 0.8rem; color: #10b981; font-weight: 600; }
|
| 180 |
+
.refresh-info { font-size: 0.7rem; color: rgba(0,0,0,0.25); }
|
| 181 |
|
| 182 |
/* ===== STAT CARDS ===== */
|
| 183 |
.stats {
|
| 184 |
display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
| 185 |
gap: 0.85rem; margin-bottom: 2rem;
|
| 186 |
}
|
| 187 |
+
.stat-card { padding: 1.3rem 1.1rem; }
|
|
|
|
|
|
|
|
|
|
| 188 |
.stat-card:hover {
|
| 189 |
+
transform: translateY(-3px) scale(1.015);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 190 |
}
|
| 191 |
.stat-label {
|
| 192 |
+
font-size: 0.63rem; color: rgba(0,0,0,0.32);
|
| 193 |
+
text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.35rem;
|
| 194 |
font-weight: 600;
|
| 195 |
}
|
| 196 |
.stat-value {
|
| 197 |
+
font-size: 2rem; font-weight: 700;
|
| 198 |
color: #1d1d1f;
|
| 199 |
font-variant-numeric: tabular-nums;
|
| 200 |
+
letter-spacing: -0.03em;
|
| 201 |
}
|
| 202 |
.stat-sub {
|
| 203 |
+
font-size: 0.67rem; color: rgba(0,0,0,0.3);
|
| 204 |
margin-top: 0.35rem; line-height: 1.4;
|
| 205 |
font-variant-numeric: tabular-nums;
|
| 206 |
}
|
|
|
|
| 208 |
/* Progress bar — glass pill */
|
| 209 |
.progress-bar {
|
| 210 |
height: 5px; background: rgba(0,0,0,0.06);
|
| 211 |
+
border-radius: 3px; margin-top: 0.65rem; overflow: hidden;
|
| 212 |
box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
|
| 213 |
}
|
| 214 |
.progress-fill {
|
| 215 |
height: 100%; border-radius: 3px;
|
| 216 |
transition: width 0.8s ease;
|
| 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.6);
|
| 223 |
+
filter: blur(5px); border-radius: 3px;
|
| 224 |
+
}
|
| 225 |
+
/* Animated shimmer on progress bar */
|
| 226 |
+
.progress-fill::before {
|
| 227 |
+
content: ''; position: absolute;
|
| 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.78rem; color: rgba(0,0,0,0.3);
|
| 243 |
margin-bottom: 0.6rem; padding-left: 0.3rem;
|
| 244 |
+
font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
|
| 245 |
}
|
| 246 |
+
.info-list { padding: 0; overflow: hidden; }
|
| 247 |
.info-row {
|
| 248 |
display: flex; justify-content: space-between; align-items: center;
|
| 249 |
+
padding: 0.85rem 1.3rem;
|
| 250 |
+
border-bottom: 1px solid rgba(0,0,0,0.035);
|
| 251 |
+
font-size: 0.83rem;
|
| 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(0,0,0,0.38); font-weight: 500; position: relative; }
|
| 263 |
.info-val {
|
| 264 |
+
color: #1d1d1f; font-weight: 600; position: relative;
|
| 265 |
+
text-align: right; font-family: 'SF Mono', 'Fira Code', monospace;
|
| 266 |
+
font-size: 0.76rem;
|
| 267 |
}
|
| 268 |
|
| 269 |
/* ===== FOOTER ===== */
|
| 270 |
.footer {
|
| 271 |
text-align: center; margin-top: 3rem;
|
| 272 |
+
color: rgba(0,0,0,0.18); font-size: 0.7rem;
|
| 273 |
}
|
| 274 |
+
.footer a { color: rgba(124,58,237,0.35); text-decoration: none; font-weight: 500; }
|
| 275 |
+
.footer a:hover { color: rgba(124,58,237,0.6); }
|
| 276 |
|
| 277 |
/* ===== RESPONSIVE ===== */
|
| 278 |
@media (max-width: 600px) {
|
| 279 |
.container { padding: 1.5rem 0.75rem 2rem; }
|
| 280 |
.stats { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
|
| 281 |
.info-row { flex-direction: column; align-items: flex-start; gap: 0.15rem; padding: 0.7rem 1.1rem; }
|
| 282 |
+
.header { padding: 1.5rem 0.8rem; }
|
| 283 |
+
.header h1 { font-size: 1.4rem; }
|
| 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 |
+
<!-- SVG Filters for Liquid Glass Refraction -->
|
| 292 |
+
<svg class="svg-filters">
|
| 293 |
+
<defs>
|
| 294 |
+
<filter id="liquid-distort">
|
| 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>
|
|
|
|
| 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>
|
|
|
|
| 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>
|