Add styled /status page, update footer/terms links from /health to /status
All checks were successful
Deploy to Production / Deploy to Server (push) Successful in 2m49s

This commit is contained in:
OpenClaw 2026-02-16 19:48:25 +00:00
parent 59cc8f3d0e
commit 6cc30db5c6
11 changed files with 219 additions and 11 deletions

48
public/src/status.html Normal file
View file

@ -0,0 +1,48 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>System Status — DocFast</title>
<meta name="description" content="Real-time system status for the DocFast PDF API.">
<link rel="canonical" href="https://docfast.dev/status">
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>⚡</text></svg>">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
{{> styles_base}}
<style>
.status-hero { text-align: center; padding: 48px 0 32px; }
.status-indicator { display: inline-flex; align-items: center; gap: 12px; font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.status-dot { width: 16px; height: 16px; border-radius: 50%; display: inline-block; }
.status-dot.ok { background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.status-dot.degraded { background: #f59e0b; box-shadow: 0 0 12px #f59e0b; }
.status-dot.error { background: #ef4444; box-shadow: 0 0 12px #ef4444; }
.status-meta { color: var(--muted); font-size: 0.85rem; margin-top: 8px; }
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 32px 0; }
@media (max-width: 600px) { .status-grid { grid-template-columns: 1fr; } }
.status-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.status-card h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 16px; }
.status-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.status-row:last-child { border-bottom: none; }
.status-label { color: var(--muted); font-size: 0.9rem; }
.status-value { font-weight: 600; font-size: 0.9rem; }
.status-value.ok { color: var(--accent); }
.status-value.warn { color: #f59e0b; }
.status-value.err { color: #ef4444; }
.status-loading { text-align: center; padding: 60px 0; color: var(--muted); }
</style>
</head>
<body>
{{> nav}}
<main>
<div class="container">
<div id="status-content" class="status-loading">Loading system status…</div>
</div>
</main>
{{> footer}}
<script src="/status.js"></script>
</body>
</html>

View file

@ -93,7 +93,7 @@
<ul>
<li><strong>Target:</strong> 99.5% uptime (best effort, no SLA for free tier)</li>
<li><strong>Maintenance:</strong> Scheduled maintenance with advance notice</li>
<li><strong>Status page:</strong> <a href="/health">https://docfast.dev/health</a></li>
<li><strong>Status page:</strong> <a href="/status">https://docfast.dev/status</a></li>
</ul>
<h3>5.2 Performance</h3>