serve/web: add a favicon to the web app and the API Monitor
The pages had no <link rel="icon"> and serve/web had no icon file, so browsers asked for /favicon.ico, got a 404 and showed the default blank icon in the tab. serve/web/favicon.svg is the layer stack the app already uses (serve/web/sprite.svg, i-layers), redrawn on a 32-unit viewBox so it stays legible at 16 px, in the existing accent token #10b981. Checked: curl /web/favicon.svg -> 200 image/svg+xml, both pages come back with the icon link, and the icon rendered at 16/32/48/64 px in Chrome.
This commit is contained in:
1 parent
7f3c0da241
commit
b0eb396528
3 files changed
+11
No files matched your search
@@ -0,0 +1,9 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
|
||||
<!-- The tab icon: the layer stack the app's panels use (serve/web/sprite.svg, i-layers),
|
||||
drawn bold enough to stay readable at 16 px. -->
|
||||
<path d="M16 2.38 28.42 9.08 16 15.78 3.58 9.08Z" fill="#10b981"/>
|
||||
<path d="M3.58 14.8 16 21.5 28.42 14.8" fill="none" stroke="#10b981" stroke-width="3.67"
|
||||
stroke-linecap="round" stroke-linejoin="round" opacity="0.92"/>
|
||||
<path d="M3.58 21.28 16 27.98 28.42 21.28" fill="none" stroke="#10b981" stroke-width="3.67"
|
||||
stroke-linecap="round" stroke-linejoin="round" opacity="0.78"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 614 B |
@@ -4,6 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Strata</title>
|
||||
<link rel="icon" href="web/favicon.svg" type="image/svg+xml">
|
||||
<link rel="stylesheet" href="web/tokens.css">
|
||||
<link rel="stylesheet" href="web/components.css">
|
||||
<link rel="stylesheet" href="web/app.css">
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
<head>
|
||||
<meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Strata API Monitor</title>
|
||||
<link rel="icon" href="/web/favicon.svg" type="image/svg+xml">
|
||||
<link rel="stylesheet" href="/web/tokens.css">
|
||||
<style>
|
||||
*{box-sizing:border-box}body{margin:0;background:var(--st-bg);color:var(--st-ink);font:15px/1.5 var(--st-font)}
|
||||
|
||||
Reference in new issue
Block a user