Files
homepage/static/cantons/bs.svg
T
Alexander cfdd58fb18 feat(hikes): inline cantonal Wappen next to region label
26 public-domain coats of arms fetched once from Wikimedia Commons
via scripts/download-cantons.ts and committed under static/cantons/.
$lib/data/cantons.ts maps Swisstopo's free-form name (German default,
French/Italian alternates for Romandie / Ticino) to the ISO code +
emblem URL.

Card shows an 18×22 emblem, detail page a 24×30 one — both with a
drop-shadow so they read against the dark hero gradient. Unknown
canton names fall back to plain text without the emblem.

The downloaded SVGs are written verbatim — earlier draft prepended a
provenance HTML comment but that breaks the leading `<?xml … ?>` and
browsers refuse to render the image. Provenance lives in the script's
CANTONS table instead.
2026-05-19 08:44:30 +02:00

20 lines
1.7 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Ebene_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="512px" height="613px" viewBox="0 0 512 613" enable-background="new 0 0 512 613" xml:space="preserve">
<title>Wappen Stadt Basel</title>
<path fill="#FFFFFF" stroke="#000000" stroke-width="3.9713" d="M510,2v369.066C510,503.704,396.071,611,255.883,611
C115.559,611,2.008,503.704,2.008,371.066L2,2H510z"/>
<path d="M181.015,250.662h179.513c8.687,0,15.744,6.785,15.744,15.278c0,8.44-7.057,15.495-15.744,15.495H181.286h-0.271
c-8.604,0-15.501-7.056-15.501-15.495C165.514,257.447,172.41,250.662,181.015,250.662z M189.022,235.386
c0,5.372,3.746,9.334,8.632,9.334h146.043c4.615,0,8.688-3.962,8.688-9.334c0-5.102-4.071-9.336-8.688-9.336H197.654
C192.768,226.05,189.022,230.284,189.022,235.386z M351.569,287.134H189.619c-5.157,0-9.475,4.341-9.475,9.225
c0,5.157,4.316,9.498,9.475,9.498h161.949c5.158,0,9.501-4.341,9.501-9.498C361.07,291.475,356.727,287.134,351.569,287.134z
M345.326,311.014H195.917l-39.008,243.951l66.561-49.659l47.206,50.475l47.505-50.475l66.507,49.659L345.326,311.014z
M191.885,160.008c0-22.174-17.719-31.399-26.723-31.399c-10.329,0-18.235,6.094-20.307,15.953
c8.035-1.14,12.622,3.961,12.622,9.334c0,9.046-5.954,11.023-10.48,11.023c-11.997,0-16.249-11.418-16.249-21.75
c0-5.096,6.418-33.964,40.793-33.964c24.625,0,46.191,29.296,46.191,62.803c0,23.493-4.605,48.372-4.605,48.372h115.097
c0-120.629-61.474-187.563-143.191-187.563c-47.282,0-108.35,34.684-108.35,97.943c0,41.241,26.068,75.754,57.859,75.754
C181.75,207.969,191.885,179.189,191.885,160.008z"/>
</svg>