@brunosouzas/stackledger 0.4.1 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -12
- package/dist/map/layout.d.ts +8 -3
- package/dist/map/layout.js +37 -6
- package/dist/map/layout.js.map +1 -1
- package/dist/map/neighbourhood.d.ts +1 -1
- package/dist/map/neighbourhood.js +20 -21
- package/dist/map/neighbourhood.js.map +1 -1
- package/dist/map/parallel.d.ts +19 -5
- package/dist/map/parallel.js +101 -14
- package/dist/map/parallel.js.map +1 -1
- package/dist/map/pieces.d.ts +12 -0
- package/dist/map/pieces.js +15 -0
- package/dist/map/pieces.js.map +1 -0
- package/dist/map/relations.d.ts +1 -1
- package/dist/map/relations.js +26 -31
- package/dist/map/relations.js.map +1 -1
- package/dist/map/strip.js +13 -15
- package/dist/map/strip.js.map +1 -1
- package/dist/map/svg.d.ts +11 -4
- package/dist/map/svg.js +47 -76
- package/dist/map/svg.js.map +1 -1
- package/dist/map/themes.d.ts +9 -6
- package/dist/map/themes.js +64 -48
- package/dist/map/themes.js.map +1 -1
- package/dist/map/xml.d.ts +0 -2
- package/dist/map/xml.js +0 -11
- package/dist/map/xml.js.map +1 -1
- package/dist/schema.d.ts +15 -0
- package/dist/schema.js +4 -0
- package/dist/schema.js.map +1 -1
- package/dist/site/build.js +2 -0
- package/dist/site/build.js.map +1 -1
- package/dist/site/data.d.ts +21 -1
- package/dist/site/data.js +3 -1
- package/dist/site/data.js.map +1 -1
- package/dist/site/ui-icons.d.ts +4 -0
- package/dist/site/ui-icons.js +19 -0
- package/dist/site/ui-icons.js.map +1 -0
- package/examples/catalogue-repository/.github/workflows/stackledger.yml +1 -1
- package/examples/catalogue-repository/README.md +3 -3
- package/npm-shrinkwrap.json +29 -8
- package/package.json +2 -1
- package/site/public/brand-mark-dark.svg +7 -0
- package/site/public/favicon.svg +6 -1
- package/site/public/home-banner.svg +93 -0
- package/site/public/link-icons/email-dark.svg +7 -0
- package/site/public/link-icons/email-light.svg +6 -0
- package/site/public/link-icons/github-dark.svg +8 -0
- package/site/public/link-icons/github-light.svg +7 -0
- package/site/public/link-icons/linkedin-dark.svg +8 -0
- package/site/public/link-icons/linkedin-light.svg +7 -0
- package/site/public/link-icons/website-dark.svg +8 -0
- package/site/public/link-icons/website-light.svg +7 -0
- package/site/src/components/Header.astro +1 -1
- package/site/src/components/ThemeSwitch.astro +4 -7
- package/site/src/components/Themed.astro +3 -2
- package/site/src/pages/[reports].astro +1 -1
- package/site/src/pages/index.astro +3 -2
- package/site/src/pages/map/index.astro +3 -3
- package/site/src/pages/skill-map/[...map].astro +3 -3
- package/site/src/styles/base.css +17 -6
- package/site/src/styles/pages.css +26 -3
- package/site/src/styles/tokens.css +55 -39
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** The site's interface icons: the design system's uiIcon, as SVG text inlined in the page's HTML at
|
|
2
|
+
* build time. Button icons paint with currentColor, so they follow the button's text colour when it
|
|
3
|
+
* inverts on hover and when pressed; the theme switch keeps token colours (sun white, moon ink).
|
|
4
|
+
* Inline, never an <img> or a CSS background: there the SVG is another document and currentColor
|
|
5
|
+
* would not reach it. The SVG holds no style, script or URL. Pure, no I/O.
|
|
6
|
+
*/
|
|
7
|
+
import { el, toSvg, uiIcon } from '@brunosouzas/design-system';
|
|
8
|
+
const COLOURS = {
|
|
9
|
+
zoomIn: 'currentColor', zoomOut: 'currentColor', reset: 'currentColor', download: 'currentColor',
|
|
10
|
+
sun: 'color.white', moon: 'color.ink',
|
|
11
|
+
};
|
|
12
|
+
/** One icon as a 16 x 16 inline SVG, hidden from assistive technology (the button names itself). */
|
|
13
|
+
export function iconSvg(name, size = 16) {
|
|
14
|
+
return toSvg(el('svg', { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 24 24', width: size, height: size, 'aria-hidden': 'true', focusable: 'false' }, ...uiIcon({ name, x: 0, y: 0, colour: COLOURS[name] }).body));
|
|
15
|
+
}
|
|
16
|
+
export function siteIcons() {
|
|
17
|
+
return Object.fromEntries(Object.keys(COLOURS).map(name => [name, iconSvg(name)]));
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=ui-icons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-icons.js","sourceRoot":"","sources":["../../src/site/ui-icons.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAI/D,MAAM,OAAO,GAA6B;IACxC,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,cAAc;IAChG,GAAG,EAAE,aAAa,EAAE,IAAI,EAAE,WAAW;CACtC,CAAC;AAEF,oGAAoG;AACpG,MAAM,UAAU,OAAO,CAAC,IAAc,EAAE,IAAI,GAAG,EAAE;IAC/C,OAAO,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,4BAA4B,EAAE,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,EACxJ,GAAG,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AAClE,CAAC;AAED,MAAM,UAAU,SAAS;IACvB,OAAO,MAAM,CAAC,WAAW,CAAE,MAAM,CAAC,IAAI,CAAC,OAAO,CAAgB,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAA6B,CAAC;AACjI,CAAC"}
|
|
@@ -32,7 +32,7 @@ concurrency:
|
|
|
32
32
|
cancel-in-progress: false
|
|
33
33
|
|
|
34
34
|
env:
|
|
35
|
-
STACKLEDGER: "@brunosouzas/stackledger@0.
|
|
35
|
+
STACKLEDGER: "@brunosouzas/stackledger@0.5.1"
|
|
36
36
|
WRANGLER: wrangler@4.151.3
|
|
37
37
|
GITLEAKS_VERSION: 8.30.1
|
|
38
38
|
# SHA-256 of gitleaks_8.30.1_linux_x64.tar.gz, from the release's checksums file.
|
|
@@ -10,7 +10,7 @@ catalog/ the catalogue: every YAML file below it is r
|
|
|
10
10
|
README.md this file; replace it with your own
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
The catalogue lives in `catalog/` so that stackledger never reads the workflow's own YAML (0.3.0 and earlier read hidden folders such as `.github/`; this template pins 0.
|
|
13
|
+
The catalogue lives in `catalog/` so that stackledger never reads the workflow's own YAML (0.3.0 and earlier read hidden folders such as `.github/`; this template pins 0.5.1 (`@brunosouzas/stackledger`), which skips them, so the folder now only keeps the catalogue apart from the repository files). `catalog/catalog-info.yaml` holds one fictitious component, so the copy validates and builds as it is; replace it with yours ([catalogue format](https://github.com/brunosouzas/stackledger/blob/main/docs/catalogue-format.md)).
|
|
14
14
|
|
|
15
15
|
## Personal or corporate
|
|
16
16
|
|
|
@@ -89,8 +89,8 @@ To fix forward, revert the bad commit on `main`; the push deploys the result. St
|
|
|
89
89
|
With Node.js 22.12 or later:
|
|
90
90
|
|
|
91
91
|
```sh
|
|
92
|
-
npx --yes @brunosouzas/stackledger@0.
|
|
93
|
-
npx --yes @brunosouzas/stackledger@0.
|
|
92
|
+
npx --yes @brunosouzas/stackledger@0.5.1 validate catalog
|
|
93
|
+
npx --yes @brunosouzas/stackledger@0.5.1 build catalog --out ../catalogue-site --date "$(date -u +%F)"
|
|
94
94
|
```
|
|
95
95
|
|
|
96
96
|
Build outside the repository, so the build is never committed.
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brunosouzas/stackledger",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@brunosouzas/stackledger",
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.5.1",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
|
+
"@brunosouzas/design-system": "0.4.0",
|
|
12
13
|
"@fontsource/heebo": "5.3.0",
|
|
13
14
|
"@fontsource/lato": "5.3.0",
|
|
14
15
|
"@fontsource/signika": "5.3.0",
|
|
@@ -498,6 +499,26 @@
|
|
|
498
499
|
"win32"
|
|
499
500
|
]
|
|
500
501
|
},
|
|
502
|
+
"node_modules/@brunosouzas/design-system": {
|
|
503
|
+
"version": "0.4.0",
|
|
504
|
+
"resolved": "https://registry.npmjs.org/@brunosouzas/design-system/-/design-system-0.4.0.tgz",
|
|
505
|
+
"integrity": "sha512-wly8sSN0V8xN6UwgdwKrQ2q7/CgpPAk/BWRxIP8rLajGIDTC1lIPjyXJOSzzdpD+EY8UhSIHjUabe3AR0VE6nw==",
|
|
506
|
+
"license": "Apache-2.0",
|
|
507
|
+
"bin": {
|
|
508
|
+
"brunosouzas-cover": "dist/scripts/cover.js"
|
|
509
|
+
},
|
|
510
|
+
"engines": {
|
|
511
|
+
"node": ">=22.12.0"
|
|
512
|
+
},
|
|
513
|
+
"peerDependencies": {
|
|
514
|
+
"react": ">=19"
|
|
515
|
+
},
|
|
516
|
+
"peerDependenciesMeta": {
|
|
517
|
+
"react": {
|
|
518
|
+
"optional": true
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
},
|
|
501
522
|
"node_modules/@capsizecss/unpack": {
|
|
502
523
|
"version": "4.0.1",
|
|
503
524
|
"resolved": "https://registry.npmjs.org/@capsizecss/unpack/-/unpack-4.0.1.tgz",
|
|
@@ -1903,18 +1924,18 @@
|
|
|
1903
1924
|
}
|
|
1904
1925
|
},
|
|
1905
1926
|
"node_modules/body-parser": {
|
|
1906
|
-
"version": "2.
|
|
1907
|
-
"resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.
|
|
1908
|
-
"integrity": "sha512-
|
|
1927
|
+
"version": "2.4.0",
|
|
1928
|
+
"resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.4.0.tgz",
|
|
1929
|
+
"integrity": "sha512-Ifk1KcLrxaGt1occQagQNFNNOqRt1LFuehEnHHzB8Z6cRgIxRU1TBaiIsUiCdA+gy5PL7Y1IX31DNKkRmxtXjQ==",
|
|
1909
1930
|
"license": "MIT",
|
|
1910
1931
|
"dependencies": {
|
|
1911
1932
|
"bytes": "^3.1.2",
|
|
1912
|
-
"content-type": "^2.
|
|
1933
|
+
"content-type": "^2.1.0",
|
|
1913
1934
|
"debug": "^4.4.3",
|
|
1914
1935
|
"http-errors": "^2.0.1",
|
|
1915
|
-
"iconv-lite": "^0.7.
|
|
1936
|
+
"iconv-lite": "^0.7.3",
|
|
1916
1937
|
"on-finished": "^2.4.1",
|
|
1917
|
-
"qs": "^6.
|
|
1938
|
+
"qs": "^6.16.1",
|
|
1918
1939
|
"raw-body": "^3.0.2",
|
|
1919
1940
|
"type-is": "^2.1.0"
|
|
1920
1941
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brunosouzas/stackledger",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Govern your software stack and licences, drawn as a metro map",
|
|
6
6
|
"keywords": [
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"test:perf": "vitest run --config vitest.perf.config.ts"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
+
"@brunosouzas/design-system": "0.4.0",
|
|
44
45
|
"@fontsource/heebo": "5.3.0",
|
|
45
46
|
"@fontsource/lato": "5.3.0",
|
|
46
47
|
"@fontsource/signika": "5.3.0",
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32"><g transform="translate(0 0) scale(1)">
|
|
2
|
+
<rect x="0" y="0" width="32" height="32" rx="7" fill="#EEF2FF" stroke="none"/>
|
|
3
|
+
<rect x="2" y="2" width="28" height="28" rx="5" fill="#0A1033" stroke="none"/>
|
|
4
|
+
<path d="M7 23 L14 16 L25 16" fill="none" stroke="#1E6FEB" stroke-width="4.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5
|
+
<circle cx="14" cy="16" r="4" fill="#FFFFFF" stroke="#0A1033" stroke-width="2"/>
|
|
6
|
+
<circle cx="25" cy="16" r="2.6" fill="#FFFFFF" stroke="#0A1033" stroke-width="1.6"/>
|
|
7
|
+
</g></svg>
|
package/site/public/favicon.svg
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32"><
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32"><g transform="translate(0 0) scale(1)">
|
|
2
|
+
<rect x="0" y="0" width="32" height="32" rx="7" fill="#0A1033" stroke="none"/>
|
|
3
|
+
<path d="M7 23 L14 16 L25 16" fill="none" stroke="#1E6FEB" stroke-width="4.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
<circle cx="14" cy="16" r="4" fill="#FFFFFF" stroke="#0A1033" stroke-width="2"/>
|
|
5
|
+
<circle cx="25" cy="16" r="2.6" fill="#FFFFFF" stroke="#0A1033" stroke-width="1.6"/>
|
|
6
|
+
</g></svg>
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="420" viewBox="0 0 1200 420" role="img" aria-labelledby="home-banner-title home-banner-desc" font-family="Lato, 'Helvetica Neue', Helvetica, Arial, sans-serif">
|
|
2
|
+
<title id="home-banner-title">A small metro map</title>
|
|
3
|
+
<desc id="home-banner-desc">Illustration. Three metro lines, blue, green and yellow, cross a navy background with rings. White stations sit on the lines, one of them an interchange shared by two lines and one muted. Each line starts at a coloured badge on the left.</desc>
|
|
4
|
+
<defs>
|
|
5
|
+
<clipPath id="home-banner-frame">
|
|
6
|
+
<rect width="1200" height="420" rx="20"/>
|
|
7
|
+
</clipPath>
|
|
8
|
+
</defs>
|
|
9
|
+
<rect width="1200" height="420" rx="20" fill="#14215A"/>
|
|
10
|
+
<g clip-path="url(#home-banner-frame)">
|
|
11
|
+
<g fill="none" stroke="#1C2D74" stroke-width="2">
|
|
12
|
+
<circle cx="860" cy="210" r="40"/>
|
|
13
|
+
<circle cx="860" cy="210" r="68"/>
|
|
14
|
+
<circle cx="860" cy="210" r="96"/>
|
|
15
|
+
<circle cx="860" cy="210" r="124"/>
|
|
16
|
+
<circle cx="860" cy="210" r="152"/>
|
|
17
|
+
<circle cx="860" cy="210" r="180"/>
|
|
18
|
+
<circle cx="860" cy="210" r="208"/>
|
|
19
|
+
<circle cx="860" cy="210" r="236"/>
|
|
20
|
+
<circle cx="860" cy="210" r="264"/>
|
|
21
|
+
<circle cx="860" cy="210" r="292"/>
|
|
22
|
+
<circle cx="860" cy="210" r="320"/>
|
|
23
|
+
<circle cx="860" cy="210" r="348"/>
|
|
24
|
+
<circle cx="860" cy="210" r="376"/>
|
|
25
|
+
<circle cx="860" cy="210" r="404"/>
|
|
26
|
+
<circle cx="860" cy="210" r="432"/>
|
|
27
|
+
<circle cx="860" cy="210" r="460"/>
|
|
28
|
+
<circle cx="860" cy="210" r="488"/>
|
|
29
|
+
<circle cx="860" cy="210" r="516"/>
|
|
30
|
+
<circle cx="860" cy="210" r="544"/>
|
|
31
|
+
<circle cx="860" cy="210" r="572"/>
|
|
32
|
+
<circle cx="860" cy="210" r="600"/>
|
|
33
|
+
<circle cx="860" cy="210" r="628"/>
|
|
34
|
+
<circle cx="860" cy="210" r="656"/>
|
|
35
|
+
<circle cx="860" cy="210" r="684"/>
|
|
36
|
+
<circle cx="860" cy="210" r="712"/>
|
|
37
|
+
<circle cx="860" cy="210" r="740"/>
|
|
38
|
+
<circle cx="860" cy="210" r="768"/>
|
|
39
|
+
<circle cx="860" cy="210" r="796"/>
|
|
40
|
+
<circle cx="860" cy="210" r="824"/>
|
|
41
|
+
<circle cx="860" cy="210" r="852"/>
|
|
42
|
+
<circle cx="860" cy="210" r="880"/>
|
|
43
|
+
<circle cx="860" cy="210" r="908"/>
|
|
44
|
+
</g>
|
|
45
|
+
</g>
|
|
46
|
+
<g clip-path="url(#home-banner-frame)">
|
|
47
|
+
<g stroke="#0A1033" stroke-width="4" stroke-linejoin="round">
|
|
48
|
+
<path d="M150,300 H470 Q520,300 545,255 L600,160 Q625,120 680,120 H1050" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke="#0A1033" stroke-width="34"/>
|
|
49
|
+
<path d="M150,300 H470 Q520,300 545,255 L600,160 Q625,120 680,120 H1050" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke="#1E6FEB" stroke-width="24"/>
|
|
50
|
+
<path d="M150,210 H1050" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke="#0A1033" stroke-width="34"/>
|
|
51
|
+
<path d="M150,210 H1050" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke="#3DDC84" stroke-width="24"/>
|
|
52
|
+
<path d="M330,110 Q380,110 405,150 L470,260 Q495,300 545,300 H1050" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke="#0A1033" stroke-width="34"/>
|
|
53
|
+
<path d="M330,110 Q380,110 405,150 L470,260 Q495,300 545,300 H1050" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke="#FFD25A" stroke-width="24"/>
|
|
54
|
+
<circle cx="265.6" cy="305.6" r="20" fill="#4C5CB8" stroke="#4C5CB8" stroke-width="8" stroke-linejoin="round"/>
|
|
55
|
+
<circle cx="260" cy="300" r="20" fill="#EEF2FF" stroke="#EEF2FF" stroke-width="8" stroke-linejoin="round"/>
|
|
56
|
+
<circle cx="260" cy="300" r="20" fill="#FFFFFF" stroke="#0A1033" stroke-width="4.8" stroke-linejoin="round"/>
|
|
57
|
+
<circle cx="265.6" cy="215.6" r="20" fill="#4C5CB8" stroke="#4C5CB8" stroke-width="8" stroke-linejoin="round"/>
|
|
58
|
+
<circle cx="260" cy="210" r="20" fill="#EEF2FF" stroke="#EEF2FF" stroke-width="8" stroke-linejoin="round"/>
|
|
59
|
+
<circle cx="260" cy="210" r="20" fill="#FFFFFF" stroke="#0A1033" stroke-width="4.8" stroke-linejoin="round"/>
|
|
60
|
+
<circle cx="442.6" cy="215.6" r="20" fill="#4C5CB8" stroke="#4C5CB8" stroke-width="8" stroke-linejoin="round"/>
|
|
61
|
+
<circle cx="437" cy="210" r="20" fill="#EEF2FF" stroke="#EEF2FF" stroke-width="8" stroke-linejoin="round"/>
|
|
62
|
+
<circle cx="437" cy="210" r="20" fill="#FFFFFF" stroke="#0A1033" stroke-width="4.8" stroke-linejoin="round"/>
|
|
63
|
+
<circle cx="577.6" cy="215.6" r="20" fill="#4C5CB8" stroke="#4C5CB8" stroke-width="8" stroke-linejoin="round"/>
|
|
64
|
+
<circle cx="572" cy="210" r="20" fill="#EEF2FF" stroke="#EEF2FF" stroke-width="8" stroke-linejoin="round"/>
|
|
65
|
+
<circle cx="572" cy="210" r="20" fill="#FFFFFF" stroke="#0A1033" stroke-width="4.8" stroke-linejoin="round"/>
|
|
66
|
+
<circle cx="765.6" cy="125.6" r="20" fill="#4C5CB8" stroke="#4C5CB8" stroke-width="8" stroke-linejoin="round"/>
|
|
67
|
+
<circle cx="760" cy="120" r="20" fill="#EEF2FF" stroke="#EEF2FF" stroke-width="8" stroke-linejoin="round"/>
|
|
68
|
+
<circle cx="760" cy="120" r="20" fill="#FFFFFF" stroke="#0A1033" stroke-width="4.8" stroke-linejoin="round"/>
|
|
69
|
+
<circle cx="765.6" cy="215.6" r="20" fill="#4C5CB8" stroke="#4C5CB8" stroke-width="8" stroke-linejoin="round"/>
|
|
70
|
+
<circle cx="760" cy="210" r="20" fill="#EEF2FF" stroke="#EEF2FF" stroke-width="8" stroke-linejoin="round"/>
|
|
71
|
+
<circle cx="760" cy="210" r="20" fill="#FFFFFF" stroke="#0A1033" stroke-width="4.8" stroke-linejoin="round"/>
|
|
72
|
+
<circle cx="765.6" cy="305.6" r="20" fill="#4C5CB8" stroke="#4C5CB8" stroke-width="8" stroke-linejoin="round"/>
|
|
73
|
+
<circle cx="760" cy="300" r="20" fill="#EEF2FF" stroke="#EEF2FF" stroke-width="8" stroke-linejoin="round"/>
|
|
74
|
+
<circle cx="760" cy="300" r="20" fill="#FFFFFF" stroke="#0A1033" stroke-width="4.8" stroke-linejoin="round"/>
|
|
75
|
+
<path d="M905.6,125.6 L905.6,305.6 A20,20 0 0 0 945.6,305.6 L945.6,125.6 A20,20 0 0 0 905.6,125.6 Z" fill="#4C5CB8" stroke="#4C5CB8" stroke-width="8" stroke-linejoin="round"/>
|
|
76
|
+
<path d="M900,120 L900,300 A20,20 0 0 0 940,300 L940,120 A20,20 0 0 0 900,120 Z" fill="#EEF2FF" stroke="#EEF2FF" stroke-width="8" stroke-linejoin="round"/>
|
|
77
|
+
<path d="M900,120 L900,300 A20,20 0 0 0 940,300 L940,120 A20,20 0 0 0 900,120 Z" fill="#FFFFFF" stroke="#0A1033" stroke-width="4.8" stroke-linejoin="round"/>
|
|
78
|
+
<circle cx="925.6" cy="215.6" r="20" fill="#4C5CB8" stroke="#4C5CB8" stroke-width="8" stroke-linejoin="round"/>
|
|
79
|
+
<circle cx="920" cy="210" r="20" fill="#EEF2FF" stroke="#EEF2FF" stroke-width="8" stroke-linejoin="round"/>
|
|
80
|
+
<circle cx="920" cy="210" r="20" fill="#8F9BD0" stroke="#0A1033" stroke-width="4.8" stroke-linejoin="round"/>
|
|
81
|
+
<rect x="88.6" y="288.6" width="54" height="34" rx="17" fill="#4C5CB8" stroke="#4C5CB8" stroke-width="8" stroke-linejoin="round"/>
|
|
82
|
+
<rect x="83" y="283" width="54" height="34" rx="17" fill="#EEF2FF" stroke="#EEF2FF" stroke-width="8" stroke-linejoin="round"/>
|
|
83
|
+
<rect x="83" y="283" width="54" height="34" rx="17" fill="#1E6FEB" stroke="#0A1033" stroke-width="4.8" stroke-linejoin="round"/>
|
|
84
|
+
<rect x="88.6" y="198.6" width="54" height="34" rx="17" fill="#4C5CB8" stroke="#4C5CB8" stroke-width="8" stroke-linejoin="round"/>
|
|
85
|
+
<rect x="83" y="193" width="54" height="34" rx="17" fill="#EEF2FF" stroke="#EEF2FF" stroke-width="8" stroke-linejoin="round"/>
|
|
86
|
+
<rect x="83" y="193" width="54" height="34" rx="17" fill="#3DDC84" stroke="#0A1033" stroke-width="4.8" stroke-linejoin="round"/>
|
|
87
|
+
<rect x="268.6" y="98.6" width="54" height="34" rx="17" fill="#4C5CB8" stroke="#4C5CB8" stroke-width="8" stroke-linejoin="round"/>
|
|
88
|
+
<rect x="263" y="93" width="54" height="34" rx="17" fill="#EEF2FF" stroke="#EEF2FF" stroke-width="8" stroke-linejoin="round"/>
|
|
89
|
+
<rect x="263" y="93" width="54" height="34" rx="17" fill="#FFD25A" stroke="#0A1033" stroke-width="4.8" stroke-linejoin="round"/>
|
|
90
|
+
</g>
|
|
91
|
+
<g font-size="19" font-weight="800" fill="#0A1033" text-anchor="middle"/>
|
|
92
|
+
</g>
|
|
93
|
+
</svg>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 46 46" width="46" height="46"><g transform="translate(0 0) scale(1)" stroke="none">
|
|
2
|
+
<rect x="4" y="4" width="41" height="41" rx="11" fill="#4C5CB8" stroke="none"/>
|
|
3
|
+
<rect x="0.5" y="0.5" width="41" height="41" rx="11" fill="#EEF2FF" stroke="none"/>
|
|
4
|
+
<rect x="2" y="2" width="38" height="38" rx="9" fill="#FFD25A" stroke="#0A1033" stroke-width="2.5"/>
|
|
5
|
+
<rect x="9" y="13" width="24" height="17" rx="3" fill="#FFFFFF" stroke="#0A1033" stroke-width="2.5"/>
|
|
6
|
+
<path d="M10,15 L21,23 L32,15" fill="none" stroke="#0A1033" stroke-width="2.5" stroke-linejoin="round"/>
|
|
7
|
+
</g></svg>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 46 46" width="46" height="46"><g transform="translate(0 0) scale(1)" stroke="none">
|
|
2
|
+
<rect x="5" y="5" width="38" height="38" rx="9" fill="#0A1033" stroke="none"/>
|
|
3
|
+
<rect x="2" y="2" width="38" height="38" rx="9" fill="#FFD25A" stroke="#0A1033" stroke-width="2.5"/>
|
|
4
|
+
<rect x="9" y="13" width="24" height="17" rx="3" fill="#FFFFFF" stroke="#0A1033" stroke-width="2.5"/>
|
|
5
|
+
<path d="M10,15 L21,23 L32,15" fill="none" stroke="#0A1033" stroke-width="2.5" stroke-linejoin="round"/>
|
|
6
|
+
</g></svg>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 46 46" width="46" height="46"><g transform="translate(0 0) scale(1)" stroke="none">
|
|
2
|
+
<rect x="4" y="4" width="41" height="41" rx="11" fill="#4C5CB8" stroke="none"/>
|
|
3
|
+
<rect x="0.5" y="0.5" width="41" height="41" rx="11" fill="#EEF2FF" stroke="none"/>
|
|
4
|
+
<rect x="2" y="2" width="38" height="38" rx="9" fill="#FFFFFF" stroke="#0A1033" stroke-width="2.5"/>
|
|
5
|
+
<g transform="translate(9.5 9) scale(0.0455)">
|
|
6
|
+
<path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z" fill="#0A1033" stroke="none"/>
|
|
7
|
+
</g>
|
|
8
|
+
</g></svg>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 46 46" width="46" height="46"><g transform="translate(0 0) scale(1)" stroke="none">
|
|
2
|
+
<rect x="5" y="5" width="38" height="38" rx="9" fill="#0A1033" stroke="none"/>
|
|
3
|
+
<rect x="2" y="2" width="38" height="38" rx="9" fill="#FFFFFF" stroke="#0A1033" stroke-width="2.5"/>
|
|
4
|
+
<g transform="translate(9.5 9) scale(0.0455)">
|
|
5
|
+
<path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z" fill="#0A1033" stroke="none"/>
|
|
6
|
+
</g>
|
|
7
|
+
</g></svg>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 46 46" width="46" height="46"><g transform="translate(0 0) scale(1)" stroke="none">
|
|
2
|
+
<rect x="4" y="4" width="41" height="41" rx="11" fill="#4C5CB8" stroke="none"/>
|
|
3
|
+
<rect x="0.5" y="0.5" width="41" height="41" rx="11" fill="#EEF2FF" stroke="none"/>
|
|
4
|
+
<rect x="2" y="2" width="38" height="38" rx="9" fill="#8FB2FF" stroke="#0A1033" stroke-width="2.5"/>
|
|
5
|
+
<rect x="12" y="18.5" width="4" height="11.5" rx="1" fill="#0A1033" stroke="none"/>
|
|
6
|
+
<circle cx="14" cy="13.8" r="2.4" fill="#0A1033" stroke="none"/>
|
|
7
|
+
<path d="M19.5,30 V18.5 H23.5 V20.3 C24.5,19 26.2,18.1 28,18.1 C31.2,18.1 32.5,20.2 32.5,23.6 V30 H28.5 V24.3 C28.5,22.7 27.8,21.9 26.6,21.9 C25.2,21.9 23.5,22.8 23.5,24.7 V30 Z" fill="#0A1033" stroke="none"/>
|
|
8
|
+
</g></svg>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 46 46" width="46" height="46"><g transform="translate(0 0) scale(1)" stroke="none">
|
|
2
|
+
<rect x="5" y="5" width="38" height="38" rx="9" fill="#0A1033" stroke="none"/>
|
|
3
|
+
<rect x="2" y="2" width="38" height="38" rx="9" fill="#8FB2FF" stroke="#0A1033" stroke-width="2.5"/>
|
|
4
|
+
<rect x="12" y="18.5" width="4" height="11.5" rx="1" fill="#0A1033" stroke="none"/>
|
|
5
|
+
<circle cx="14" cy="13.8" r="2.4" fill="#0A1033" stroke="none"/>
|
|
6
|
+
<path d="M19.5,30 V18.5 H23.5 V20.3 C24.5,19 26.2,18.1 28,18.1 C31.2,18.1 32.5,20.2 32.5,23.6 V30 H28.5 V24.3 C28.5,22.7 27.8,21.9 26.6,21.9 C25.2,21.9 23.5,22.8 23.5,24.7 V30 Z" fill="#0A1033" stroke="none"/>
|
|
7
|
+
</g></svg>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 46 46" width="46" height="46"><g transform="translate(0 0) scale(1)" stroke="none">
|
|
2
|
+
<rect x="4" y="4" width="41" height="41" rx="11" fill="#4C5CB8" stroke="none"/>
|
|
3
|
+
<rect x="0.5" y="0.5" width="41" height="41" rx="11" fill="#EEF2FF" stroke="none"/>
|
|
4
|
+
<rect x="2" y="2" width="38" height="38" rx="9" fill="#3DDC84" stroke="#0A1033" stroke-width="2.5"/>
|
|
5
|
+
<circle cx="21" cy="21" r="10.5" fill="#FFFFFF" stroke="#0A1033" stroke-width="2.5"/>
|
|
6
|
+
<ellipse cx="21" cy="21" rx="4.6" ry="10.5" fill="none" stroke="#0A1033" stroke-width="2"/>
|
|
7
|
+
<path d="M10.5 21H31.5M12.5 15.5H29.5M12.5 26.5H29.5" fill="none" stroke="#0A1033" stroke-width="2" stroke-linecap="round"/>
|
|
8
|
+
</g></svg>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 46 46" width="46" height="46"><g transform="translate(0 0) scale(1)" stroke="none">
|
|
2
|
+
<rect x="5" y="5" width="38" height="38" rx="9" fill="#0A1033" stroke="none"/>
|
|
3
|
+
<rect x="2" y="2" width="38" height="38" rx="9" fill="#3DDC84" stroke="#0A1033" stroke-width="2.5"/>
|
|
4
|
+
<circle cx="21" cy="21" r="10.5" fill="#FFFFFF" stroke="#0A1033" stroke-width="2.5"/>
|
|
5
|
+
<ellipse cx="21" cy="21" rx="4.6" ry="10.5" fill="none" stroke="#0A1033" stroke-width="2"/>
|
|
6
|
+
<path d="M10.5 21H31.5M12.5 15.5H29.5M12.5 26.5H29.5" fill="none" stroke="#0A1033" stroke-width="2" stroke-linecap="round"/>
|
|
7
|
+
</g></svg>
|
|
@@ -18,7 +18,7 @@ const links = [
|
|
|
18
18
|
|
|
19
19
|
<header class="header">
|
|
20
20
|
<nav class="navbar container" aria-label="Main">
|
|
21
|
-
<a class="navbar-brand" href={href(root, '')}
|
|
21
|
+
<a class="navbar-brand" href={href(root, '')}><img class="brand-mark themed-light" src={href(root, 'favicon.svg')} alt="" width="28" height="28" /><img class="brand-mark themed-dark" src={href(root, 'brand-mark-dark.svg')} alt="" width="28" height="28" />{site.title}</a>
|
|
22
22
|
<ul class="navbar-nav">
|
|
23
23
|
{
|
|
24
24
|
links.map((link) => (
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
---
|
|
2
2
|
// Light/dark switch, after Astroplate's ThemeSwitcher (MIT). Hidden without JavaScript, where the
|
|
3
3
|
// page simply follows prefers-color-scheme; src/scripts/theme.ts shows it and remembers the choice.
|
|
4
|
+
// The sun and moon are the design system's uiIcon, inlined at build time (src/site/ui-icons.ts).
|
|
5
|
+
import { site } from '../lib/site';
|
|
4
6
|
---
|
|
5
7
|
|
|
6
8
|
<button type="button" class="theme-switch" role="switch" aria-checked="false" aria-label="Dark theme" data-theme-switch hidden>
|
|
7
9
|
<span class="theme-switch-knob" aria-hidden="true">
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
<path d="M12 1.5v2.5M12 20v2.5M1.5 12H4M20 12h2.5M4.6 4.6l1.8 1.8M17.6 17.6l1.8 1.8M4.6 19.4l1.8-1.8M17.6 6.4l1.8-1.8"></path>
|
|
11
|
-
</svg>
|
|
12
|
-
<svg class="icon-moon" viewBox="0 0 24 24" width="16" height="16">
|
|
13
|
-
<path fill="#040404" d="M8.2 2.2c1-.4 2 .6 1.6 1.5-1 3-.4 6.4 1.8 8.7a8.4 8.4 0 0 0 8.7 1.8c1-.3 2 .5 1.5 1.5v.1a10.3 10.3 0 0 1-9.4 6.2A10.3 10.3 0 0 1 3.2 6.7c1-2 2.9-3.5 4.9-4.4Z"></path>
|
|
14
|
-
</svg>
|
|
10
|
+
<span class="icon-sun" set:html={site.icons.sun} />
|
|
11
|
+
<span class="icon-moon" set:html={site.icons.moon} />
|
|
15
12
|
</span>
|
|
16
13
|
</button>
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
// One stackledger-rendered SVG per theme; CSS shows the one that matches the page theme.
|
|
3
|
-
// set:html is allowed only here and for
|
|
4
|
-
// escape every catalogue text themselves
|
|
3
|
+
// set:html is allowed only here, for line badges and for the interface icons: these SVGs come from
|
|
4
|
+
// src/map/*.ts, which escape every catalogue text themselves, or from src/site/ui-icons.ts, which
|
|
5
|
+
// holds no catalogue text (site-security, Escaped catalogue text).
|
|
5
6
|
interface Props {
|
|
6
7
|
light: string;
|
|
7
8
|
dark: string;
|
|
@@ -27,7 +27,7 @@ const renewalTables = [
|
|
|
27
27
|
Licence costs and renewals on {report.date}, with renewals up to {report.to} ({report.days} days). Each
|
|
28
28
|
currency has its own totals: amounts are never converted.
|
|
29
29
|
</p>
|
|
30
|
-
<p><a class="btn" href={href(root, report.calendar)} download="renewals.ics"
|
|
30
|
+
<p><a class="btn" href={href(root, report.calendar)} download="renewals.ics"><span class="icon" set:html={site.icons.download} />Download the renewal calendar (renewals.ics)</a></p>
|
|
31
31
|
{
|
|
32
32
|
report.empty ? (
|
|
33
33
|
<p class="lead" data-empty-report>There are no licences.</p>
|
|
@@ -16,6 +16,7 @@ const skills = site.skills;
|
|
|
16
16
|
<div class="container">
|
|
17
17
|
<h1>{site.title}</h1>
|
|
18
18
|
<p class="lead">{site.home.text}</p>
|
|
19
|
+
<img class="home-banner-art" src={href(root, 'home-banner.svg')} alt="" width="1200" height="420" />
|
|
19
20
|
</div>
|
|
20
21
|
</section>
|
|
21
22
|
<section class="section">
|
|
@@ -56,9 +57,9 @@ const skills = site.skills;
|
|
|
56
57
|
<>
|
|
57
58
|
<h2>Links</h2>
|
|
58
59
|
<ul class="home-external">
|
|
59
|
-
{site.home.links.map((link: { title: string; url: string; description?: string }) => (
|
|
60
|
+
{site.home.links.map((link: { title: string; url: string; description?: string; icon?: string }) => (
|
|
60
61
|
<li>
|
|
61
|
-
<a href={link.url} rel="noopener noreferrer">{link.title}</a>
|
|
62
|
+
<a href={link.url} rel="noopener noreferrer">{link.icon && <><img class="link-icon themed-light" src={href(root, `link-icons/${link.icon}-light.svg`)} alt="" width="24" height="24" /><img class="link-icon themed-dark" src={href(root, `link-icons/${link.icon}-dark.svg`)} alt="" width="24" height="24" /></>}{link.title}</a>
|
|
62
63
|
{link.description && <span class="muted"> · {link.description}</span>}
|
|
63
64
|
</li>
|
|
64
65
|
))}
|
|
@@ -22,9 +22,9 @@ const { lines, zones, symbols } = site.map;
|
|
|
22
22
|
}
|
|
23
23
|
<div class="map-tools" data-map-tools hidden>
|
|
24
24
|
<div class="map-zoom" role="group" aria-label="Zoom">
|
|
25
|
-
<button type="button" class="btn" data-zoom="in" aria-label="Zoom in"
|
|
26
|
-
<button type="button" class="btn" data-zoom="out" aria-label="Zoom out"
|
|
27
|
-
<button type="button" class="btn" data-zoom="reset"
|
|
25
|
+
<button type="button" class="btn" data-zoom="in" aria-label="Zoom in"><span class="icon" set:html={site.icons.zoomIn} /></button>
|
|
26
|
+
<button type="button" class="btn" data-zoom="out" aria-label="Zoom out"><span class="icon" set:html={site.icons.zoomOut} /></button>
|
|
27
|
+
<button type="button" class="btn" data-zoom="reset"><span class="icon" set:html={site.icons.reset} />Reset</button>
|
|
28
28
|
</div>
|
|
29
29
|
{
|
|
30
30
|
zones.length > 0 && (
|
|
@@ -28,9 +28,9 @@ const { lines, zones, symbols } = skills.map;
|
|
|
28
28
|
}
|
|
29
29
|
<div class="map-tools" data-map-tools hidden>
|
|
30
30
|
<div class="map-zoom" role="group" aria-label="Zoom">
|
|
31
|
-
<button type="button" class="btn" data-zoom="in" aria-label="Zoom in"
|
|
32
|
-
<button type="button" class="btn" data-zoom="out" aria-label="Zoom out"
|
|
33
|
-
<button type="button" class="btn" data-zoom="reset"
|
|
31
|
+
<button type="button" class="btn" data-zoom="in" aria-label="Zoom in"><span class="icon" set:html={site.icons.zoomIn} /></button>
|
|
32
|
+
<button type="button" class="btn" data-zoom="out" aria-label="Zoom out"><span class="icon" set:html={site.icons.zoomOut} /></button>
|
|
33
|
+
<button type="button" class="btn" data-zoom="reset"><span class="icon" set:html={site.icons.reset} />Reset</button>
|
|
34
34
|
</div>
|
|
35
35
|
{
|
|
36
36
|
zones.length > 0 && (
|
package/site/src/styles/base.css
CHANGED
|
@@ -169,6 +169,9 @@ code {
|
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
.navbar-brand {
|
|
172
|
+
display: inline-flex;
|
|
173
|
+
align-items: center;
|
|
174
|
+
gap: 0.5rem;
|
|
172
175
|
color: var(--color-text-dark);
|
|
173
176
|
font-family: var(--font-secondary);
|
|
174
177
|
font-size: 1.35rem;
|
|
@@ -291,8 +294,9 @@ code {
|
|
|
291
294
|
gap: 0.4rem;
|
|
292
295
|
min-height: 2.25rem;
|
|
293
296
|
padding: 0.35rem 0.9rem;
|
|
294
|
-
border:
|
|
297
|
+
border: var(--frame-outline);
|
|
295
298
|
border-radius: var(--radius);
|
|
299
|
+
box-shadow: var(--frame-shadow);
|
|
296
300
|
background: transparent;
|
|
297
301
|
color: var(--color-text-dark);
|
|
298
302
|
font: inherit;
|
|
@@ -307,10 +311,15 @@ code {
|
|
|
307
311
|
color: var(--color-on-primary);
|
|
308
312
|
}
|
|
309
313
|
|
|
310
|
-
.btn svg
|
|
314
|
+
.btn svg,
|
|
315
|
+
.theme-switch svg {
|
|
311
316
|
display: block;
|
|
312
317
|
}
|
|
313
318
|
|
|
319
|
+
.btn .icon {
|
|
320
|
+
display: inline-flex;
|
|
321
|
+
}
|
|
322
|
+
|
|
314
323
|
input[type="search"],
|
|
315
324
|
select {
|
|
316
325
|
min-height: 2.25rem;
|
|
@@ -378,9 +387,10 @@ tbody tr:last-child td {
|
|
|
378
387
|
|
|
379
388
|
.card {
|
|
380
389
|
padding: 1.25rem 1.5rem;
|
|
381
|
-
border:
|
|
390
|
+
border: var(--frame-outline);
|
|
382
391
|
border-radius: var(--radius);
|
|
383
392
|
background: var(--color-body);
|
|
393
|
+
box-shadow: var(--frame-shadow);
|
|
384
394
|
}
|
|
385
395
|
|
|
386
396
|
.plain-list {
|
|
@@ -403,8 +413,9 @@ tbody tr:last-child td {
|
|
|
403
413
|
|
|
404
414
|
.tags li {
|
|
405
415
|
padding: 0 0.6rem;
|
|
406
|
-
border:
|
|
416
|
+
border: var(--frame-outline);
|
|
407
417
|
border-radius: 1rem;
|
|
418
|
+
box-shadow: var(--frame-shadow);
|
|
408
419
|
font-size: 0.9rem;
|
|
409
420
|
}
|
|
410
421
|
|
|
@@ -439,7 +450,7 @@ tbody tr:last-child td {
|
|
|
439
450
|
}
|
|
440
451
|
|
|
441
452
|
:root[data-theme="dark"] .themed-dark {
|
|
442
|
-
display:
|
|
453
|
+
display: revert;
|
|
443
454
|
}
|
|
444
455
|
|
|
445
456
|
@media (prefers-color-scheme: dark) {
|
|
@@ -448,7 +459,7 @@ tbody tr:last-child td {
|
|
|
448
459
|
}
|
|
449
460
|
|
|
450
461
|
:root:not([data-theme="light"]) .themed-dark {
|
|
451
|
-
display:
|
|
462
|
+
display: revert;
|
|
452
463
|
}
|
|
453
464
|
}
|
|
454
465
|
|
|
@@ -58,7 +58,11 @@
|
|
|
58
58
|
justify-content: center;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
+
/* catalogue-site "Map shown size": the frame is as wide as the map it holds, centred in the column. */
|
|
61
62
|
.map-frame {
|
|
63
|
+
width: fit-content;
|
|
64
|
+
max-width: 100%;
|
|
65
|
+
margin-inline: auto;
|
|
62
66
|
overflow: auto;
|
|
63
67
|
border: 1px solid var(--color-border);
|
|
64
68
|
border-radius: var(--radius);
|
|
@@ -75,9 +79,12 @@
|
|
|
75
79
|
cursor: grabbing;
|
|
76
80
|
}
|
|
77
81
|
|
|
82
|
+
/* A map is never shown larger than its drawn size: width auto takes the SVG's width attribute (its
|
|
83
|
+
initial viewBox width, src/map/svg.ts), max-width shrinks it when the frame has less room. */
|
|
78
84
|
.map-canvas svg {
|
|
79
85
|
display: block;
|
|
80
|
-
width:
|
|
86
|
+
width: auto;
|
|
87
|
+
max-width: 100%;
|
|
81
88
|
height: auto;
|
|
82
89
|
}
|
|
83
90
|
|
|
@@ -105,12 +112,13 @@
|
|
|
105
112
|
}
|
|
106
113
|
|
|
107
114
|
.line-chips .btn {
|
|
108
|
-
border-color: var(--color-border);
|
|
109
115
|
font-weight: 400;
|
|
110
116
|
}
|
|
111
117
|
|
|
118
|
+
/* A pressed chip sits down on its shadow; in dark it keeps its rim. */
|
|
112
119
|
.line-chips .btn[aria-pressed="true"] {
|
|
113
|
-
|
|
120
|
+
box-shadow: var(--frame-pressed);
|
|
121
|
+
transform: translate(var(--ds-shadow-small), var(--ds-shadow-small));
|
|
114
122
|
}
|
|
115
123
|
|
|
116
124
|
.map-symbols {
|
|
@@ -270,6 +278,21 @@
|
|
|
270
278
|
max-width: 40rem;
|
|
271
279
|
}
|
|
272
280
|
|
|
281
|
+
/* The design system's banner (catalogue-site, Home banner art): full container width, its own ratio. */
|
|
282
|
+
.home-banner-art {
|
|
283
|
+
display: block;
|
|
284
|
+
width: 100%;
|
|
285
|
+
height: auto;
|
|
286
|
+
margin-top: 2rem;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.link-icon {
|
|
290
|
+
width: 1.5rem;
|
|
291
|
+
height: 1.5rem;
|
|
292
|
+
margin-right: 0.5rem;
|
|
293
|
+
vertical-align: middle;
|
|
294
|
+
}
|
|
295
|
+
|
|
273
296
|
.home-cards {
|
|
274
297
|
margin-top: 0;
|
|
275
298
|
margin-bottom: 2.5rem;
|