The sword: tray icon, favicon, header logo and a backdrop for the web UI

- The-Kurgan-Sword.png is the source. kurgan/assets/make_assets.py cleans it
  (drops the white fringe left by the cut-out, smooths the edge to about a
  pixel) and builds everything from it:
  - kurgan/assets/kurgan.ico: the tray icon, 16-256 px, cropped to the
    crossguard; sizes of 32 px and under are brightened a little so the
    metal still reads on a dark taskbar.
  - web/static/favicon.ico: the same crop, 16-48 px.
  - web/static/logo.png: the header logo, the whole sword with the cut-off
    blade faded out.
  - web/static/sword-vertical.png: the whole sword turned 90 degrees
    clockwise.
- tray.py: ICON_PATH replaces the drawn power-tank icon (make_icon is gone).
  app.py already imports ICON_PATH; it went in with f717f7a.
- style.css: the vertical sword is a fixed backdrop below the header, lined
  up with the right edge of the tiles; the cards are 90% opaque so it shows
  through. 90% keeps the grey text at 4.5:1 contrast or better over the
  sword in both themes; 80% dropped it to 3.4:1.
- favicon.svg removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
paulandClaude Opus 5.5 committed 2026-12-05 18:25:27 +13:00
1 parent f717f7a82f
commit 8cc1e9223f
12 files changed
+153 -53

No files matched your search

+21 -2
View File
@@ -73,9 +73,10 @@ button, select, input { font: inherit; color: inherit; }
background: color-mix(in srgb, var(--page) 92%, transparent);
backdrop-filter: blur(6px);
border-bottom: 1px solid var(--border);
anchor-name: --masthead;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand svg { width: 22px; height: 22px; }
.brand img { display: block; width: auto; height: 40px; }
.brand h1 {
margin: 0; font-size: 17px; font-weight: 700; letter-spacing: 0.22em; color: var(--brand);
}
@@ -97,6 +98,20 @@ button, select, input { font: inherit; color: inherit; }
}
.banner .note { margin: 0; font-size: 14px; }
/* ---------------------------------------------------------------- the sword behind everything
Full size, pommel up, from just below the header to the bottom of the window, lined up with
the right edge of the tiles. Fixed: the page scrolls over it. The top follows the header's
height (it wraps on narrow windows); browsers without anchor positioning assume one row. */
body::after {
content: ""; position: fixed; z-index: -1; pointer-events: none;
top: 71px; bottom: 0; left: 0;
right: calc(max(0px, (100% - 1480px) / 2) + 24px); /* main's max-width and padding */
background: url("/static/sword-vertical.png") right top / auto 100% no-repeat;
}
@supports (top: anchor(--masthead bottom)) {
body::after { top: anchor(--masthead bottom); }
}
/* ---------------------------------------------------------------- layout */
main { padding: 8px 24px 40px; max-width: 1480px; margin: 0 auto; }
section { margin-top: 28px; }
@@ -107,7 +122,10 @@ section > h2 {
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 16px; margin-top: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 16px; }
.card {
background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
/* The sword shows through. 90% keeps the grey text at 4.5:1 or better over the brightest
metal (dark theme) and the black grip (light theme); 80% dropped it to 3.4:1. */
background: color-mix(in srgb, var(--surface) 90%, transparent);
border: 1px solid var(--border); border-radius: 10px;
padding: 16px 18px; margin: 0; min-width: 0;
}
.card h3 { margin: 0 0 2px; font-size: 15px; font-weight: 600; }
@@ -264,6 +282,7 @@ footer { color: var(--text-2); font-size: 12.5px; padding: 0 24px 28px; max-widt
@media (max-width: 720px) {
.masthead { padding: 10px 14px; gap: 12px; }
main { padding: 8px 14px 32px; }
body::after { right: 14px; }
.hero-value { font-size: 36px; }
.grid2 { grid-template-columns: 1fr; }
}