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.
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
<?xml version="1.0"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1900 2298">
|
||||
<title>Wappen Uri</title>
|
||||
<path d="m949.3 7.079h939.7v1381c0 497-420 899-939 899-518.6 0-939.1-402-939.1-899l0.04-1381 938.4 0.079z" fill="#ffd72e"/>
|
||||
<g stroke="#fff" fill="none">
|
||||
<path stroke-linejoin="round" d="m1446 949c7-46.6 11-99.2 7-134.7-6-50.9-23-103.1-48-124.6 13-17.5 77-104.4-25-146m-925.4 405.3c-7.7-46.6-11.7-99.2-7.5-134.7 6.1-50.9 22.7-103.1 47.8-124.6-12.6-17.5-76.7-104.4 25.3-146" stroke-linecap="round" stroke-width="25.19"/>
|
||||
<path d="m755.2 1802h381.8" stroke-width="14.2"/>
|
||||
<path d="m480.3 742 313.2 215.8 1.4 408.2s-3.6 59-20.3 94c-9.2 19-63.1 64-81.9 70m722.3-788-313 215.8-1 408.2s4 59 20 94c9 19 63 64 82 70" stroke-linecap="round" stroke-width="25.19"/>
|
||||
</g>
|
||||
<g>
|
||||
<path d="m515.6 535.1s-51.5-22.4-131.3-228.1c-79.8-205.8-209-184.7-210.2-184.5-4 0.9-13.5 1.7-15.8 13.6-2.1 12 7.3 17.2 10.3 18.4 3 1.3 78.8 21 113.4 234.4 38.3 236.8 166.7 294.8 193.6 301.7-65.6-126.9 40-155.5 40-155.5"/>
|
||||
<path d="m1515 307c80-205.8 209-184.7 210-184.5 4 0.9 14 1.7 16 13.6 2 12-7 17.2-10 18.4-3 1.3-79 21-114 234.4-38 236.8-167 294.8-193 301.7 65-126.9-40-155.5-40-155.5"/>
|
||||
<path d="m1435 718.7s50 94.1 21 230.3c4 6.3 59 54 157 22.6s103-144.7 188-172.4c-54-90.6-176-206.4-366-80.5"/>
|
||||
</g>
|
||||
<path d="m1780 794.1s-78-38.9-122-38.9-141 60.4-158 59.1c-18-1.2-36-1.2-36-1.2" stroke="#fff" stroke-width="14.2" fill="none"/>
|
||||
<path d="m463.9 715s-49.5 94-20.6 230.2c-3.8 6.3-58.7 54.1-156.8 22.7-98.2-31.5-103.2-144.7-188.8-172.5 54.1-90.5 176.2-206.3 366.2-80.4"/>
|
||||
<path d="m119.2 790.4s77.9-39 121.9-39 140.9 60.4 158.6 59.1c17.6-1.2 35.2-1.2 35.2-1.2" stroke="#fff" stroke-width="14.2" fill="none"/>
|
||||
<g>
|
||||
<path d="m755.3 1809h381.7s7 69-46 69h-297.5c-41.1 0-38.2-69-38.2-69"/>
|
||||
<path d="m470.5 749.2 315.4 214.8 1.1 403s-8.6 53-23.1 93c-7.3 19-63.2 65-82.7 65-11.3-1-53.6-127-77.5-170-11.5-21-102.8-97-45.1-180-167.7-257.1-88.1-425.8-88.1-425.8"/>
|
||||
<path d="m1427 749.2-316 214.8-1 403s9 53 23 93c8 19 64 65 83 65 12-1 54-127 78-170 11-21 102-97 45-180 167-257.1 88-425.8 88-425.8"/>
|
||||
</g>
|
||||
<g>
|
||||
<path d="m599.2 901.4c0 48.2 41.5 87.3 92.7 87.3 25.5 0 48.4-9.7 65.2-25.3l-147.4-102.4c-6.6 12.1-10.5 25.8-10.5 40.4" fill="#fff"/>
|
||||
<path d="m627.1 901.4c0 33.7 29 61.1 64.8 61.1 17.5 0 33.3-6.6 45.1-17.2l-103-71.5c-4.4 8.3-6.9 17.6-6.9 27.6"/>
|
||||
<path d="m1296 901.4c0 48.2-41 87.3-93 87.3-25 0-48-9.7-65-25.3l147-102.4c7 12.1 11 25.8 11 40.4" fill="#fff"/>
|
||||
<path d="m1268 901.4c0 33.7-29 61.1-65 61.1-17 0-33-6.6-45-17.2l103-71.5c4 8.3 7 17.6 7 27.6"/>
|
||||
<path d="m1250 1556c-4-2-42 2-101-53-14-14-39-45-40-51-12-44-16-92-15-168 1-88 0-330 0-330l329-227.9s-24-51.1-62-52.8c-19-0.8-317 0.4-412.2 0.9-95.4-0.5-393.5-1.7-412-0.9-38.3 1.7-62.5 52.8-62.5 52.8l329 227.9s-1 242 0.4 330c1 76-3 124-14.8 168-1.5 6-26.1 37-40.7 51-58.3 55-96 51-100.5 53-22.8 8-49.3 26-22.8 129 26.4 102 72.2 110 72.2 110h503.9s45-8 72-110c26-103 0-121-23-129"/>
|
||||
<path d="m512.8 535.5c-29.8 11.6-50.3 30-58.5 52.8-2.7 7.8-4.2 15.9-4.2 24.5 0 22.4 8 52.2 27.1 79.2 53.4 75.8 119.6 67 150.8 52.7 0.1 0.1 0.1 0.1 0.2 0.1 10 19.1 19.7 31.3 41.7 41.3 15.8 7 36 1.2 55.6-4.4 6.8-2 16.6-4.8 20.7-4.9 2.8 1.5 9.1 7.4 13.5 11.4 11.4 10.7 24.4 22.9 39.8 24.5 12.2 1.2 24.8-3.6 38.3-8.6 10.6-4 22.4-8.5 29.7-7.8 0 0 1.5 0.1 1.6 0.1 0 0.2 1.1 1.1 1.1 1.1 11.4 9.5 25 17.3 79 17.8 54.8-0.6 67.8-8.9 77.8-18.8v-0.1l1-0.1c7-0.7 19 3.8 30 7.8 13 5 26 9.8 38 8.6 15-1.6 28-13.8 40-24.5 4-4 10-9.8 13-11.4 4 0.1 14 2.9 21 4.9 19 5.6 40 11.4 55 4.4 22-10 32-22.2 42-41.3v-0.2c19 8 96 23.6 155-52.6 18-23.4 23-56.8 23-79.2 0-8.4-1-16.5-4-24.1-9-27.4-33-43.2-56-52.5" fill="#fff"/>
|
||||
<path d="m1363 546.9c3-7.6 4-15.9 4-24.4 0-44.5-37-80.5-82-80.5-11 0-20 1.9-30 5.3-10-32.2-41-55.5-78-55.5-18 0-35 6.1-49 16.4-15-22.8-40-38.1-69-38.1-18 0-34 5.7-48 15.4-17.2 12.8-60.6-14.5-60.6-14.5s-53.6 22.8-76.2 9.7c-12-6.7-25.6-10.6-40.3-10.6-28.3 0-53.2 14.4-67.6 36.2-13.4-9.6-29.8-15.4-47.7-15.4-36.1 0-66.7 23.6-77 56.2-9.4-3.9-19.6-6-30.3-6-44.7 0-81 36.1-81 80.6 0 8.6 1.3 16.9 3.9 24.6-34.6 9.6-102.3 47.2-40.1 135.4 62.2 88.3 130.6 42.7 130.6 42.7s11.3-6.1 20 10.4c8.5 16.5 15.4 25.1 32.9 32.8 17.3 7.9 59.8-14.7 73.6-10.3 13.9 4.3 33.6 33.8 50.2 35.5 16.5 1.7 45.9-18.2 67.6-16.5 21.7 1.8 2.5 18.2 80.4 19.1 77.6-0.9 55.6-17.3 76.6-19.1 22-1.7 51 18.2 68 16.5 16-1.7 36-31.2 50-35.5 14-4.4 56 18.2 74 10.3 17-7.7 24-16.3 33-32.8 8-16.5 19-10.4 19-10.4s72 44.3 134-44c61-86.5-6-123.2-41-133.5"/>
|
||||
<path d="m818.3 1683c6.3 13 2.4 28-9 33l-18.3 9c-11.4 6-25.7 0-32-12l-36.7-73c-6.4-13-2.5-28 8.8-34l18.3-9c11.3-5 25.7 0 32.1 13l36.8 73z" fill="#12080d"/>
|
||||
<path d="m1075 1683c-6 13-3 28 9 33l18 9c11 6 26 0 32-12l37-73c6-13 2-28-9-34l-19-9c-11-5-25 0-31 13l-37 73z" fill="#12080d"/>
|
||||
</g>
|
||||
<path d="m818.3 1683c6.3 13 2.4 28-9 33l-18.3 9c-11.4 6-25.7 0-32-12l-36.7-73c-6.4-13-2.5-28 8.8-34l18.3-9c11.3-5 25.7 0 32.1 13l36.8 73zm256.7 0c-6 13-3 28 9 33l18 9c11 6 26 0 32-12l37-73c6-13 2-28-9-34l-19-9c-11-5-25 0-31 13l-37 73z" stroke="#fff" stroke-width="14.2" fill="none"/>
|
||||
<path d="m1107 1645c17-27 22-26 23-26 68 51 113 131 113 220 0 154-133 279-296 279-163.3 0-295.7-125-295.7-279 0-89 44.2-169 112.9-220 2.2-1 12.1-6 22.5 27 10.6 33 10.3 38 9.4 39-45 38-73.5 93-73.5 154 0 115 100.6 208 224.4 208 124 0 224-93 224-208 0-62-29-117-75-156 0 0-8-7 11-38" fill="#e7423f"/>
|
||||
<path d="m1107 1645c17-27 22-26 23-26 68 51 113 131 113 220 0 154-133 279-296 279-163.3 0-295.7-125-295.7-279 0-89 44.2-169 112.9-220 2.2-1 12.1-6 22.5 27 10.6 33 10.3 38 9.4 39-45 38-73.5 93-73.5 154 0 115 100.6 208 224.4 208 124 0 224-93 224-208 0-62-29-117-75-156 0 0-8-7 11-38z" stroke="#000" stroke-width="14.2" fill="none"/>
|
||||
<path d="m1027 1796c4 18 7 37 7 57 0 78-39.8 141-89 141s-89.2-63-89.2-141c0-20 2.7-39 7.6-56 45.1 0 146.6-1 163.6-1" fill="#e7423f"/>
|
||||
<path d="m1027 1796c4 18 7 37 7 57 0 78-39.8 141-89 141s-89.2-63-89.2-141c0-20 2.7-39 7.6-56 45.1 0 146.6-1 163.6-1zm-77.7-1789h939.7v1381c0 497-420 899-939 899-518.6 0-939.1-402-939.1-899l0.04-1381 938.4 0.079z" stroke="#000" stroke-width="14.2" fill="none"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 5.9 KiB |
Reference in New Issue
Block a user