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,11 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="541" height="678.98352" viewBox="-5 -5 365.66667 457.65568">
|
||||
<g stroke="black" stroke-width="4.5" fill="#009639">
|
||||
<path d="M 2.5,2.5 h 349 V 176.2 C 351.5,293.6 320,395 177,443.35 34,395 2.5,293.6 2.5,176.2 z" stroke-width="5" />
|
||||
<path d="M 168.6,35.7 a 8.45,7.5 0 0,1 16.8,0 V 411.5 a 8.45,7.5 0 0,1 -16.8,0 z" fill="white" />
|
||||
<path d="M 144.75,369.3 a 7.45,7.2 0 0,1 -14.9,0 V 114.6 a 7.45,6.4 0 0,1 14.9,0 V 367.9 a 9.375,8.9 0 0,0 18.75,0 V 116.2 a 9.375,8.4 0 0,0 -18.75,0 M 209.25,369.3 a 7.45,7.2 0 0,0 14.9,0 V 114.6 a 7.45,6.4 0 0,0 -14.9,0 V 367.9 a 9.375,8.9 0 0,1 -18.75,0 V 116.2 a 9.375,8.4 0 0,1 18.75,0 M 163.5,119 A 13.5,11.5 0 0 1 190.5,119 L 190.5,366 A 13.5,11 0 0 1 163.5,366 M 198,77.6 V 49.8 H 173 c -25,-0.2 -38.5,-13 -49.4,-27.2 -6.9,13.6 -8.9,22 -9.2,34.8 0.4,15 2.2,24.1 11,40 13.9,-14.2 26.7,-19.5 46.3,-19.8 z" fill="white" />
|
||||
<path d="M 125.5,131 l 103,0 0,22 -103,0 z M 125.5,331.7 l 103,0 0,22 -103,0 z M 125.5,319.5 l 1.5,0 101.5,-120.5 0,-33.7 -1.5,0 -101.5,120.5 z" stroke-linejoin="round" />
|
||||
<path d="M 125.5,165.3 l 1.5,0 101.5,120.5 0,33.7 -1.5,0 -101.5,-120.5 z" stroke-linejoin="round" />
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
After Width: | Height: | Size: 1.2 KiB |
Reference in New Issue
Block a user