Files
homepage/static/cantons/nw.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

11 lines
1.9 KiB
XML

<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg" height="2298" width="1900">
<title>Wappen Nidwalden</title>
<g stroke="#000" stroke-linecap="square" stroke-miterlimit="10" stroke-width="14.13" fill="#fff">
<path d="m949.4 7.048h939.6v1381c0 497-420 899-939 899-518.6 0-939.1-402-939.1-899l-0.02-1381 938.5 0.048z" fill="#e7423f"/>
<path d="m1119 844.2h129v107.3h200v-107.3h90v107.3h220v-121.7h-81v-96.9h81v-122.9h-220v107.3h-90v-107.3h-119v-94.3h119v-107.3h90v107.3h220v-121.6h-81v-96.9h81v-121.6h-220v105.9h-90v-105.9h-200v105.9h-129v562.7z"/>
<path d="m777.8 844.2h-128.2v107.3h-200.2v-107.3h-90.3v107.3h-219.8v-121.7h81.1v-96.9h-81.1v-122.9h219.8v107.3h90.3v-107.3h119.1v-94.3h-119.1v-107.3h-90.3v107.3h-219.8v-121.6h81.1v-96.9h-81.1v-121.6h219.8v105.9h90.3v-105.9h200.2v105.9h128.2v562.7z"/>
<path d="m969.1 69.66 1.2 1293c0 2 1.7 132 134.7 132 72 0 104-24 134-46 34-25 68-50 156-51 32 0 107 4 156 53 32 32 48 76 48 133 0 52-34 103-89 134-73 39-162 36-234-12l-18-12c-41-28-98-67-165-34-43 21-66 57-63 99 0 26 8 41 18 58 15 25 33 56 33 140 0 50-16 137-119.7 146-83.1 8-143.7-73-144.1-146-0.5-84 18.1-115 32.6-140 9.9-17 18.4-32 18.4-57 2.7-43-20.4-79-63.5-100-66.8-33-123.1 6-164.7 34l-17.8 12c-72.7 49-161.2 51-233.8 12-55.3-31-89.6-82-89.6-134 0-57 16.2-101 48-133 49.4-49 124.3-53 154.2-53 89.9 1 124.3 26 157.6 51 30.9 22 62.8 46 134.3 46 133.1 0 134.8-130 134.8-132l1.1-1293-163.3-0.68v1227c0 22-6 37-17 42-12.7 6-32.3-2-53.6-21-56.4-51-151.6-74-220.9-74-69.8 0-330.7 57-330.7 339 0 151 113.5 314 362.9 314 76.5 0 150.5-39 190.5-67-20.8 37-34.7 80-34.7 126 0 39 7.3 79 22.4 118 40.8 103 125.6 170 232.6 182 9.3 2 23.7 2 33 2 9.2 0 18.1 0 26.2-1 111.8-13 196.8-80 237.8-183 15-38 22-79 22-117 0-47-14-90-35-127 40 28 114 67 191 67 249 0 363-163 363-314 0-282-261-339-331-339-69 0-165 23-221 74-21 19-41 27-54 21-10-5-16-20-16-42v-1227z"/>
<path d="m1213 1127c0 29-23 52-51 52h-424.7c-28.6 0-51.7-23-51.7-52s23.1-52 51.7-52h424.7c28 0 51 23 51 52z"/>
</g>
</svg>