From aa7a211305193e8b2068b21db9ddf39c2fb2cb49 Mon Sep 17 00:00:00 2001 From: Eason WaveKat Date: Sun, 17 May 2026 20:09:43 +1200 Subject: [PATCH] feat: add favicon to star-tracker MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Lucide `star` (gold) + `trending-up` (blue) combined into a single mark — a chart line rising to meet a star. Served inline from /favicon.svg and used both as the browser favicon and the header brand mark. Co-Authored-By: Claude Opus 4.7 (1M context) --- tools/star-tracker/src/index.ts | 16 ++++++++++++++++ tools/star-tracker/src/pages.ts | 5 ++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/tools/star-tracker/src/index.ts b/tools/star-tracker/src/index.ts index 254874a..c42f613 100644 --- a/tools/star-tracker/src/index.ts +++ b/tools/star-tracker/src/index.ts @@ -142,6 +142,22 @@ async function backfillRepo( return { mode: 'sampled', stargazers_count: count }; } +// -- Favicon ---------------------------------------------------------------- + +// Lucide `star` + `trending-up` combined: a gold star with a blue chart +// line rising to meet it. Telegraphs "tracking stars over time" at favicon +// scale. Inlined so it ships with the Worker — no static asset bucket needed. +const FAVICON_SVG = ``; + +app.get('/favicon.svg', () => { + return new Response(FAVICON_SVG, { + headers: { + 'content-type': 'image/svg+xml; charset=utf-8', + 'cache-control': 'public, max-age=86400', + }, + }); +}); + // -- Landing ---------------------------------------------------------------- app.get('/', (c) => c.html(pages.landing(c.get('user')))); diff --git a/tools/star-tracker/src/pages.ts b/tools/star-tracker/src/pages.ts index 766b864..e09c253 100644 --- a/tools/star-tracker/src/pages.ts +++ b/tools/star-tracker/src/pages.ts @@ -34,6 +34,7 @@ function shell(title: string, user: User | null, body: string): string { ${esc(title)} +