219 lines
6.8 KiB
HTML
219 lines
6.8 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>
|
|
<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>" />
|
|
<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>
|
|
<span>•</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">
|
|
<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
|
|
</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> |