Add favicon
All checks were successful
Docker / build-and-push (push) Successful in 1m44s

Pulse-line mark in the status-yellow accent, on both the status page and /admin. Wires up static file serving and fixes the Dockerfile to actually ship the public/ dir into the runtime image.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Fredrik Johansson
2026-07-19 19:50:36 +02:00
parent 957be073ab
commit 3adf06e4e1
5 changed files with 8 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ export function renderAdminPage(): string {
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>admin / status</title>
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
<style>
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');
:root {

View File

@@ -7,6 +7,7 @@ import { router as adminRouter } from './admin.js';
const app = express();
app.use(express.json());
app.use(express.static('public'));
app.get('/api/status', (_req, res) => {
res.json(getStore());

View File

@@ -34,6 +34,7 @@ export function renderPage(store: StatusStore): string {
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="refresh" content="60">
<title>status / goonk</title>
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
<style>
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');
:root {