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

90 lines
2.4 KiB
XML

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Generator: Adobe Illustrator 16.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
version="1.1"
id="Ebene_1"
x="0px"
y="0px"
width="406.523px"
height="492.832px"
viewBox="-176.119 -213.831 406.523 492.832"
enable-background="new -176.119 -213.831 406.523 492.832"
xml:space="preserve"
sodipodi:docname="Wappen_Schwyz_matt.svg"
inkscape:version="1.1.2 (0a00cf5339, 2022-02-04)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"><defs
id="defs27">
</defs><sodipodi:namedview
id="namedview25"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
showgrid="false"
inkscape:zoom="1.5867476"
inkscape:cx="203.24593"
inkscape:cy="236.01737"
inkscape:window-width="1920"
inkscape:window-height="1016"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="Ebene_1" />
<path
fill="#e7423f"
d="M 27.018,-212.311 H 228.889 V 84.392 c 0,106.633 -90.328,193.07 -201.742,193.07 -111.426,0 -201.746,-86.438 -201.746,-193.07 v -296.703 z"
id="path2" /><polygon
fill="#ffffff"
points="151.092,-197.553 132.014,-197.553 132.014,-139.518 73.577,-139.518 73.577,-120.217 132.014,-120.217 132.014,-61.92 151.092,-61.92 151.092,-120.217 209.686,-120.217 209.686,-139.518 151.092,-139.518 "
id="polygon4-0"
transform="matrix(0.98,0,0,0.98,3.75358,0.59692)" /><g
id="g20">
<g
id="g18">
<g
id="g16">
<g
id="g14">
<defs
id="defs7">
<rect
id="SVGID_1_"
x="-176.119"
y="-213.83099"
width="406.52301"
height="492.832" />
</defs>
<clipPath
id="SVGID_2_">
<use
xlink:href="#SVGID_1_"
overflow="visible"
id="use9"
x="0"
y="0"
width="100%"
height="100%" />
</clipPath>
<path
clip-path="url(#SVGID_2_)"
fill="none"
stroke="#000000"
stroke-width="3.048"
d="M 27.018,-212.311 H 228.889 V 84.392 c 0,106.633 -90.328,193.07 -201.742,193.07 -111.426,0 -201.746,-86.438 -201.746,-193.07 v -296.703 z"
id="path12" />
</g>
</g>
</g>
</g>
</svg>