@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

main
astro 29 lines 1.03 KB
Raw
1 ---
2 /**
3 * The complete `<link rel="icon">` set, shared by every layout so the tags
4 * can't drift apart. All of these files are emitted by
5 * `scripts/generate-brand-assets.ts`.
6 *
7 * Only vector icons are listed: one SVG per theme, selected with `media`.
8 * Advertising sized PNGs alongside them makes Chrome prefer the raster whose
9 * `sizes` best matches the tab (the blurry 16/32), so the PNGs stay in
10 * `public/` for direct links but are not offered here. `apple-touch-icon` is
11 * opaque and light-only — iOS web clips have no dark variant and ignore
12 * `media`.
13 *
14 * Starlight emits its own `favicon` link; `src/favicon.ts` strips it from
15 * docs pages so this set is the only one.
16 */
17
18 const THEMES = [
19 ["/favicon-light.svg", "(prefers-color-scheme: light)"],
20 ["/favicon-dark.svg", "(prefers-color-scheme: dark)"],
21 ] as const;
22 ---
23
24 {
25 THEMES.map(([href, media]) => (
26 <link rel="icon" type="image/svg+xml" sizes="any" href={href} media={media} />
27 ))
28 }
29 <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />