Changeset 5e95aac in Klonkt for src/server.js
- Timestamp:
- 06/14/2026 06:23:48 PM (3 months ago)
- Branches:
- main
- Children:
- a3169f5
- Parents:
- c869272
- File:
-
- 1 edited
-
src/server.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/server.js
rc869272 r5e95aac 264 264 function _renderFavicon(res, accent) { 265 265 const safeAccent = /^#[0-9a-fA-F]{3,8}$/.test(accent) ? accent : '#c2410c'; 266 // Site mark: rounded square in the site accent + bold white ' SF'266 // Site mark: rounded square in the site accent + bold white 'K' (Klonkt) 267 267 const svg = `<?xml version="1.0" encoding="UTF-8"?> 268 268 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"> 269 269 <rect width="64" height="64" rx="14" fill="${safeAccent}"/> 270 <text x="50%" y="50%" dy="0.3 6em" text-anchor="middle"270 <text x="50%" y="50%" dy="0.35em" text-anchor="middle" 271 271 font-family="Arial, Helvetica, sans-serif" 272 font-size=" 30" font-weight="800" letter-spacing="-1" fill="#fff">SF</text>272 font-size="42" font-weight="800" fill="#fff">K</text> 273 273 </svg>`; 274 274 res.set('Content-Type', 'image/svg+xml');
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)