207 lines
5.5 KiB
HTML
207 lines
5.5 KiB
HTML
<!doctype html>
|
|
<html>
|
|
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>Status - peterstockings.com</title>
|
|
<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">
|
|
<style>
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
|
|
margin: 0;
|
|
padding: 0;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
padding: 32px 24px;
|
|
}
|
|
|
|
.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);
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
.meta-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
color: #64748b;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.meta-info a {
|
|
color: #667eea;
|
|
text-decoration: none;
|
|
padding: 4px 12px;
|
|
background: rgba(102, 126, 234, 0.1);
|
|
border-radius: 6px;
|
|
font-weight: 600;
|
|
transition: all 0.2s ease;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.meta-info a:hover {
|
|
background: rgba(102, 126, 234, 0.2);
|
|
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);
|
|
}
|
|
|
|
.loading {
|
|
text-align: center;
|
|
padding: 60px 20px;
|
|
color: #64748b;
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.loading::after {
|
|
content: '...';
|
|
animation: dots 1.5s steps(4, end) infinite;
|
|
}
|
|
|
|
@keyframes dots {
|
|
|
|
0%,
|
|
20% {
|
|
content: '.';
|
|
}
|
|
|
|
40% {
|
|
content: '..';
|
|
}
|
|
|
|
60%,
|
|
100% {
|
|
content: '...';
|
|
}
|
|
}
|
|
|
|
table {
|
|
border-collapse: collapse;
|
|
width: 100%;
|
|
}
|
|
|
|
th,
|
|
td {
|
|
border-bottom: 1px solid rgba(0, 0, 0, 0.06);
|
|
padding: 12px;
|
|
vertical-align: top;
|
|
}
|
|
|
|
th {
|
|
text-align: left;
|
|
font-weight: 700;
|
|
color: #1e293b;
|
|
font-size: 13px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
background: rgba(102, 126, 234, 0.04);
|
|
}
|
|
|
|
td {
|
|
color: #334155;
|
|
font-size: 14px;
|
|
}
|
|
|
|
tbody tr {
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
|
|
tbody tr:hover {
|
|
background: rgba(102, 126, 234, 0.03);
|
|
}
|
|
|
|
.muted {
|
|
color: #64748b;
|
|
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;
|
|
margin: 0 0 16px 0;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
letter-spacing: -0.2px;
|
|
color: #334155;
|
|
margin: 24px 0 12px 0;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="container">
|
|
<div class="header-card">
|
|
<h1>Status Dashboard</h1>
|
|
<div class="meta-info">
|
|
<span>🔄 Auto-refresh every {{ poll_seconds }}s</span>
|
|
<span>•</span>
|
|
<a href="/api/status">📊 JSON API</a>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="content-card">
|
|
<div hx-get="/partial/apps" hx-trigger="load, every {{ poll_seconds }}s" hx-swap="innerHTML">
|
|
<div class="loading">Loading status data</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
|
|
</html> |