Change look of status page
This commit is contained in:
@@ -4,101 +4,230 @@
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Status - peterstockings.com</title>
|
||||
<title>DokkuStatus :: Terminal</title>
|
||||
<link rel="icon"
|
||||
href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='0.9em' font-size='90'>📊</text></svg>" />
|
||||
href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='0.9em' font-size='90'>⚡</text></svg>" />
|
||||
<script src="https://unpkg.com/htmx.org@1.9.10"></script>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap"
|
||||
rel="stylesheet">
|
||||
<style>
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
@keyframes scanline {
|
||||
0% {
|
||||
transform: translateY(-100%);
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: translateY(100vh);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes flicker {
|
||||
|
||||
0%,
|
||||
100% {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
50% {
|
||||
opacity: 0.97;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes glow {
|
||||
|
||||
0%,
|
||||
100% {
|
||||
text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
|
||||
}
|
||||
|
||||
50% {
|
||||
text-shadow: 0 0 20px rgba(0, 217, 255, 0.8);
|
||||
}
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
|
||||
font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
background: #0a0e17;
|
||||
background-image:
|
||||
linear-gradient(rgba(0, 217, 255, 0.03) 1px, transparent 1px),
|
||||
linear-gradient(90deg, rgba(0, 217, 255, 0.03) 1px, transparent 1px);
|
||||
background-size: 50px 50px;
|
||||
min-height: 100vh;
|
||||
color: #c9d1d9;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* Scanline effect */
|
||||
body::before {
|
||||
content: '';
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
background: linear-gradient(transparent 50%,
|
||||
rgba(0, 217, 255, 0.02) 50%);
|
||||
background-size: 100% 4px;
|
||||
pointer-events: none;
|
||||
z-index: 999;
|
||||
animation: flicker 0.15s infinite;
|
||||
}
|
||||
|
||||
/* Moving scanline */
|
||||
body::after {
|
||||
content: '';
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 3px;
|
||||
background: linear-gradient(transparent, rgba(0, 217, 255, 0.4), transparent);
|
||||
pointer-events: none;
|
||||
z-index: 1000;
|
||||
animation: scanline 8s linear infinite;
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 1400px;
|
||||
max-width: 1600px;
|
||||
margin: 0 auto;
|
||||
padding: 32px 24px;
|
||||
padding: 20px;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.header-card {
|
||||
background: rgba(255, 255, 255, 0.98);
|
||||
backdrop-filter: blur(10px);
|
||||
border-radius: 20px;
|
||||
padding: 28px 32px;
|
||||
margin-bottom: 24px;
|
||||
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
|
||||
0 0 0 1px rgba(255, 255, 255, 0.3) inset;
|
||||
border: 1px solid rgba(255, 255, 255, 0.5);
|
||||
.header-terminal {
|
||||
background: #161b22;
|
||||
border: 2px solid #00d9ff;
|
||||
box-shadow:
|
||||
0 0 20px rgba(0, 217, 255, 0.3),
|
||||
inset 0 0 20px rgba(0, 217, 255, 0.05);
|
||||
padding: 20px 24px;
|
||||
margin-bottom: 20px;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.header-terminal::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 30px;
|
||||
background: linear-gradient(90deg,
|
||||
#00d9ff 0%,
|
||||
#00ff88 50%,
|
||||
#00d9ff 100%);
|
||||
opacity: 0.1;
|
||||
}
|
||||
|
||||
.terminal-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.terminal-prompt {
|
||||
color: #00ff88;
|
||||
font-weight: 700;
|
||||
font-size: 18px;
|
||||
animation: glow 2s ease-in-out infinite;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin: 0 0 8px 0;
|
||||
font-size: 36px;
|
||||
font-weight: 800;
|
||||
letter-spacing: -0.5px;
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
margin: 0;
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 1px;
|
||||
color: #00d9ff;
|
||||
text-transform: uppercase;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.meta-info {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
gap: 16px;
|
||||
flex-wrap: wrap;
|
||||
color: #64748b;
|
||||
font-size: 14px;
|
||||
font-size: 13px;
|
||||
color: #8b949e;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.meta-info span {
|
||||
color: #00ff88;
|
||||
}
|
||||
|
||||
.meta-info .separator {
|
||||
color: #30363d;
|
||||
}
|
||||
|
||||
.meta-info a {
|
||||
color: #667eea;
|
||||
color: #00d9ff;
|
||||
text-decoration: none;
|
||||
padding: 4px 12px;
|
||||
background: rgba(102, 126, 234, 0.1);
|
||||
border-radius: 6px;
|
||||
font-weight: 600;
|
||||
padding: 4px 10px;
|
||||
background: rgba(0, 217, 255, 0.1);
|
||||
border: 1px solid rgba(0, 217, 255, 0.3);
|
||||
transition: all 0.2s ease;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.meta-info a:hover {
|
||||
background: rgba(102, 126, 234, 0.2);
|
||||
background: rgba(0, 217, 255, 0.2);
|
||||
border-color: #00d9ff;
|
||||
box-shadow: 0 0 10px rgba(0, 217, 255, 0.4);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.content-card {
|
||||
background: rgba(255, 255, 255, 0.98);
|
||||
backdrop-filter: blur(10px);
|
||||
border-radius: 20px;
|
||||
padding: 32px;
|
||||
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
|
||||
0 0 0 1px rgba(255, 255, 255, 0.3) inset;
|
||||
border: 1px solid rgba(255, 255, 255, 0.5);
|
||||
.content-terminal {
|
||||
background: #161b22;
|
||||
border: 2px solid #30363d;
|
||||
box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
|
||||
padding: 24px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.content-terminal::before {
|
||||
content: '[ STATUS MONITOR ]';
|
||||
position: absolute;
|
||||
top: -12px;
|
||||
left: 20px;
|
||||
background: #161b22;
|
||||
padding: 0 10px;
|
||||
color: #00d9ff;
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 2px;
|
||||
}
|
||||
|
||||
.loading {
|
||||
text-align: center;
|
||||
padding: 60px 20px;
|
||||
color: #64748b;
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
color: #00ff88;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 2px;
|
||||
}
|
||||
|
||||
.loading::before {
|
||||
content: '[ ';
|
||||
color: #00d9ff;
|
||||
}
|
||||
|
||||
.loading::after {
|
||||
content: '...';
|
||||
content: ' ]';
|
||||
color: #00d9ff;
|
||||
animation: dots 1.5s steps(4, end) infinite;
|
||||
}
|
||||
|
||||
@@ -106,111 +235,138 @@
|
||||
|
||||
0%,
|
||||
20% {
|
||||
content: '.';
|
||||
content: ' .]';
|
||||
}
|
||||
|
||||
40% {
|
||||
content: '..';
|
||||
content: ' ..]';
|
||||
}
|
||||
|
||||
60%,
|
||||
100% {
|
||||
content: '...';
|
||||
content: ' ...]';
|
||||
}
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
border: 1px solid #30363d;
|
||||
}
|
||||
|
||||
th,
|
||||
td {
|
||||
border-bottom: 1px solid rgba(0, 0, 0, 0.06);
|
||||
padding: 12px;
|
||||
border: 1px solid #30363d;
|
||||
padding: 12px 16px;
|
||||
vertical-align: top;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
th {
|
||||
text-align: left;
|
||||
background: rgba(0, 217, 255, 0.05);
|
||||
color: #00d9ff;
|
||||
font-weight: 700;
|
||||
color: #1e293b;
|
||||
font-size: 13px;
|
||||
font-size: 11px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
background: rgba(102, 126, 234, 0.04);
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
|
||||
td {
|
||||
color: #334155;
|
||||
font-size: 14px;
|
||||
color: #c9d1d9;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
tbody tr {
|
||||
transition: background-color 0.2s ease;
|
||||
transition: all 0.2s ease;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
tbody tr:hover {
|
||||
background: rgba(102, 126, 234, 0.03);
|
||||
background: rgba(0, 217, 255, 0.05);
|
||||
box-shadow: inset 2px 0 0 #00d9ff;
|
||||
}
|
||||
|
||||
.muted {
|
||||
color: #64748b;
|
||||
color: #8b949e;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
.pill {
|
||||
display: inline-block;
|
||||
padding: 4px 10px;
|
||||
border-radius: 999px;
|
||||
background: rgba(102, 126, 234, 0.1);
|
||||
color: #667eea;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 22px;
|
||||
font-weight: 800;
|
||||
letter-spacing: -0.3px;
|
||||
color: #1e293b;
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 2px;
|
||||
color: #00d9ff;
|
||||
margin: 0 0 16px 0;
|
||||
text-transform: uppercase;
|
||||
padding-left: 12px;
|
||||
border-left: 3px solid #00ff88;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 18px;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
letter-spacing: -0.2px;
|
||||
color: #334155;
|
||||
letter-spacing: 1px;
|
||||
color: #8b949e;
|
||||
margin: 24px 0 12px 0;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
h3::before {
|
||||
content: '> ';
|
||||
color: #00d9ff;
|
||||
}
|
||||
|
||||
/* Responsive */
|
||||
@media (max-width: 768px) {
|
||||
.container {
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.meta-info {
|
||||
font-size: 11px;
|
||||
gap: 8px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="header-card">
|
||||
<h1>Status Dashboard</h1>
|
||||
<div class="header-terminal">
|
||||
<div class="terminal-title">
|
||||
<span class="terminal-prompt">root@dokku:~$</span>
|
||||
<h1>DokkuStatus</h1>
|
||||
</div>
|
||||
<div class="meta-info">
|
||||
<span>🔄 Auto-refresh every {{ poll_seconds }}s</span>
|
||||
<span>•</span>
|
||||
<a href="/api/status">📊 JSON API</a>
|
||||
<span>•</span>
|
||||
<span>[LIVE]</span>
|
||||
<span class="separator">|</span>
|
||||
<span>REFRESH: {{ poll_seconds }}s</span>
|
||||
<span class="separator">|</span>
|
||||
<a href="/api/status">
|
||||
<svg width="12" height="12" viewBox="0 0 16 16" fill="currentColor">
|
||||
<path d="M2 2h12v2H2V2zm0 3h12v2H2V5zm0 3h12v2H2V8zm0 3h12v2H2v-2z" />
|
||||
</svg>
|
||||
JSON_API
|
||||
</a>
|
||||
<span class="separator">|</span>
|
||||
<a href="https://gitea.peterstockings.com/peterstockings/DokkuStatus" target="_blank"
|
||||
rel="noopener noreferrer" style="display: inline-flex; align-items: center; gap: 6px;">
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor"
|
||||
xmlns="http://www.w3.org/2000/svg">
|
||||
rel="noopener noreferrer">
|
||||
<svg width="12" height="12" viewBox="0 0 16 16" fill="currentColor">
|
||||
<path
|
||||
d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z" />
|
||||
</svg>
|
||||
Source
|
||||
SOURCE
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="content-card">
|
||||
<div class="content-terminal">
|
||||
<div hx-get="/partial/apps" hx-trigger="load, every {{ poll_seconds }}s" hx-swap="innerHTML">
|
||||
<div class="loading">Loading status data</div>
|
||||
<div class="loading">INITIALIZING SYSTEM</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user