@cogenta/theme-restaurant 0.5.7 → 0.6.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"logos.d.ts","sourceRoot":"","sources":["../../../../src/render/blocks/logos.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,EAAE,KAAK,WAAW,EAAY,KAAK,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAGnF;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,aAAa,GAAG,WAAW,CA+B9E"}
1
+ {"version":3,"file":"logos.d.ts","sourceRoot":"","sources":["../../../../src/render/blocks/logos.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,EAAE,KAAK,WAAW,EAAY,KAAK,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAGnF;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,aAAa,GAAG,WAAW,CAoC9E"}
@@ -17,7 +17,12 @@ export function renderLogos(block, ctx) {
17
17
  });
18
18
  return h('li', { class: 'cr-marks__item' }, item.url === undefined
19
19
  ? h('span', { class: 'cr-marks__plate' }, mark)
20
- : h('a', { class: 'cr-marks__plate', href: item.url, rel: 'noopener noreferrer' }, mark));
20
+ : h('a', {
21
+ class: 'cr-marks__plate',
22
+ href: item.url,
23
+ 'aria-label': item.name,
24
+ rel: 'noopener noreferrer',
25
+ }, mark));
21
26
  })));
22
27
  }
23
28
  //# sourceMappingURL=logos.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"logos.js","sourceRoot":"","sources":["../../../../src/render/blocks/logos.ts"],"names":[],"mappings":"AACA,OAAO,EAAoB,CAAC,EAAE,KAAK,EAAsB,MAAM,oBAAoB,CAAA;AACnF,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAEnD;;;;;;;GAOG;AACH,MAAM,UAAU,WAAW,CAAC,KAAiB,EAAE,GAAkB;IAC/D,OAAO,OAAO,CACZ,SAAS,EACT,OAAO,EACP,UAAU,EACV,EAAE,EACF,KAAK,EACL,WAAW,CAAC,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,EACjC,CAAC,CACC,IAAI,EACJ,EAAE,KAAK,EAAE,iBAAiB,EAAE,EAC5B,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACvB,MAAM,IAAI,GAAG,KAAK,CAAC,GAAG,EAAE,IAAI,CAAC,KAAK,EAAE;YAClC,SAAS,EAAE,iBAAiB;YAC5B,OAAO,EAAE,IAAI,CAAC,IAAI;YAClB,KAAK,EAAE,OAAO;SACf,CAAC,CAAA;QACF,OAAO,CAAC,CACN,IAAI,EACJ,EAAE,KAAK,EAAE,gBAAgB,EAAE,EAC3B,IAAI,CAAC,GAAG,KAAK,SAAS;YACpB,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,iBAAiB,EAAE,EAAE,IAAI,CAAC;YAC/C,CAAC,CAAC,CAAC,CACC,GAAG,EACH,EAAE,KAAK,EAAE,iBAAiB,EAAE,IAAI,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,qBAAqB,EAAE,EACxE,IAAI,CACL,CACN,CAAA;IACH,CAAC,CAAC,CACH,CACF,CAAA;AACH,CAAC"}
1
+ {"version":3,"file":"logos.js","sourceRoot":"","sources":["../../../../src/render/blocks/logos.ts"],"names":[],"mappings":"AACA,OAAO,EAAoB,CAAC,EAAE,KAAK,EAAsB,MAAM,oBAAoB,CAAA;AACnF,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAEnD;;;;;;;GAOG;AACH,MAAM,UAAU,WAAW,CAAC,KAAiB,EAAE,GAAkB;IAC/D,OAAO,OAAO,CACZ,SAAS,EACT,OAAO,EACP,UAAU,EACV,EAAE,EACF,KAAK,EACL,WAAW,CAAC,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,EACjC,CAAC,CACC,IAAI,EACJ,EAAE,KAAK,EAAE,iBAAiB,EAAE,EAC5B,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACvB,MAAM,IAAI,GAAG,KAAK,CAAC,GAAG,EAAE,IAAI,CAAC,KAAK,EAAE;YAClC,SAAS,EAAE,iBAAiB;YAC5B,OAAO,EAAE,IAAI,CAAC,IAAI;YAClB,KAAK,EAAE,OAAO;SACf,CAAC,CAAA;QACF,OAAO,CAAC,CACN,IAAI,EACJ,EAAE,KAAK,EAAE,gBAAgB,EAAE,EAC3B,IAAI,CAAC,GAAG,KAAK,SAAS;YACpB,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,iBAAiB,EAAE,EAAE,IAAI,CAAC;YAC/C,CAAC,CAAC,CAAC,CACC,GAAG,EACH;gBACE,KAAK,EAAE,iBAAiB;gBACxB,IAAI,EAAE,IAAI,CAAC,GAAG;gBACd,YAAY,EAAE,IAAI,CAAC,IAAI;gBACvB,GAAG,EAAE,qBAAqB;aAC3B,EACD,IAAI,CACL,CACN,CAAA;IACH,CAAC,CAAC,CACH,CACF,CAAA;AACH,CAAC"}
@@ -0,0 +1,93 @@
1
+ Copyright 2015 the Cormorant Project Authors (github.com/CatharsisFonts/Cormorant)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ https://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,93 @@
1
+ Copyright 2019 The Karla Project Authors (https://github.com/googlefonts/karla)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ https://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,48 @@
1
+ # Fonts of `@cogenta/theme-restaurant`
2
+
3
+ Served by the site itself at `/_cogenta/fonts/restaurant/<file>`. A page of this
4
+ theme makes **no request to a font provider**.
5
+
6
+ | Family | Style | Subset | Weight | File | Size |
7
+ |---|---|---|---|---|---|
8
+ | Cormorant Garamond | italic | latin-ext | 300 700 | `cormorant-garamond-italic-latin-ext-cd5bf126.woff2` | 33.6 KiB |
9
+ | Cormorant Garamond | italic | latin | 300 700 | `cormorant-garamond-italic-latin-6f2f5c3b.woff2` | 38.3 KiB |
10
+ | Cormorant Garamond | normal | latin-ext | 300 700 | `cormorant-garamond-normal-latin-ext-cfa9a397.woff2` | 32.9 KiB |
11
+ | Cormorant Garamond | normal | latin | 300 700 | `cormorant-garamond-normal-latin-d80df8ff.woff2` | 36.8 KiB |
12
+ | Karla | italic | latin-ext | 200 800 | `karla-italic-latin-ext-7632f995.woff2` | 15.6 KiB |
13
+ | Karla | italic | latin | 200 800 | `karla-italic-latin-29363b02.woff2` | 32.2 KiB |
14
+ | Karla | normal | latin-ext | 200 800 | `karla-normal-latin-ext-14291dd5.woff2` | 14.9 KiB |
15
+ | Karla | normal | latin | 200 800 | `karla-normal-latin-cd614fed.woff2` | 31.4 KiB |
16
+
17
+ Total: 8 files, 235.7 KiB.
18
+
19
+ ## Licence
20
+
21
+ - **Cormorant Garamond**: SIL Open Font License 1.1, text in `OFL-cormorant-garamond.txt`
22
+ - **Karla**: SIL Open Font License 1.1, text in `OFL-karla.txt`
23
+
24
+ The OFL permits bundling and redistributing these files with this package, as
25
+ long as the licence text travels with them (it does) and the fonts are not sold
26
+ on their own.
27
+
28
+ ## Source and subsets
29
+
30
+ The files are the variable WOFF2 builds that the Google Fonts `css2` API
31
+ serves, taken from the `google/fonts` open-source repository's distribution.
32
+ Only the `latin` and `latin-ext` subsets are kept: together they cover
33
+ French (œ Œ ’ « » and every accented capital), the other Western European
34
+ languages, and the euro sign. A language written in another script falls back to
35
+ the next family of the theme's stack.
36
+
37
+ ## How they were fetched
38
+
39
+ ```sh
40
+ node scripts/fetch-theme-fonts.mjs restaurant
41
+ ```
42
+
43
+ The script asks `https://fonts.googleapis.com/css2` with a modern User-Agent for
44
+ exactly the families, axes and weights this theme used before it was
45
+ self-hosted, downloads each `latin`/`latin-ext` file, names it after a hash of
46
+ its bytes (so a changed file gets a new URL and can be cached for a year), and
47
+ rewrites `src/styles/fonts.css`. It needs the network once, when it is run, and
48
+ never when a site is built, tested or served.
@@ -0,0 +1,69 @@
1
+ {
2
+ "theme": "restaurant",
3
+ "faces": [
4
+ {
5
+ "family": "Cormorant Garamond",
6
+ "style": "italic",
7
+ "weight": "300 700",
8
+ "subset": "latin-ext",
9
+ "file": "cormorant-garamond-italic-latin-ext-cd5bf126.woff2",
10
+ "css": "@font-face {\n font-family: 'Cormorant Garamond';\n font-style: italic;\n font-weight: 300 700;\n font-display: swap;\n src: url(/_cogenta/fonts/restaurant/cormorant-garamond-italic-latin-ext-cd5bf126.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}"
11
+ },
12
+ {
13
+ "family": "Cormorant Garamond",
14
+ "style": "italic",
15
+ "weight": "300 700",
16
+ "subset": "latin",
17
+ "file": "cormorant-garamond-italic-latin-6f2f5c3b.woff2",
18
+ "css": "@font-face {\n font-family: 'Cormorant Garamond';\n font-style: italic;\n font-weight: 300 700;\n font-display: swap;\n src: url(/_cogenta/fonts/restaurant/cormorant-garamond-italic-latin-6f2f5c3b.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}"
19
+ },
20
+ {
21
+ "family": "Cormorant Garamond",
22
+ "style": "normal",
23
+ "weight": "300 700",
24
+ "subset": "latin-ext",
25
+ "file": "cormorant-garamond-normal-latin-ext-cfa9a397.woff2",
26
+ "css": "@font-face {\n font-family: 'Cormorant Garamond';\n font-style: normal;\n font-weight: 300 700;\n font-display: swap;\n src: url(/_cogenta/fonts/restaurant/cormorant-garamond-normal-latin-ext-cfa9a397.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}"
27
+ },
28
+ {
29
+ "family": "Cormorant Garamond",
30
+ "style": "normal",
31
+ "weight": "300 700",
32
+ "subset": "latin",
33
+ "file": "cormorant-garamond-normal-latin-d80df8ff.woff2",
34
+ "css": "@font-face {\n font-family: 'Cormorant Garamond';\n font-style: normal;\n font-weight: 300 700;\n font-display: swap;\n src: url(/_cogenta/fonts/restaurant/cormorant-garamond-normal-latin-d80df8ff.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}"
35
+ },
36
+ {
37
+ "family": "Karla",
38
+ "style": "italic",
39
+ "weight": "200 800",
40
+ "subset": "latin-ext",
41
+ "file": "karla-italic-latin-ext-7632f995.woff2",
42
+ "css": "@font-face {\n font-family: 'Karla';\n font-style: italic;\n font-weight: 200 800;\n font-display: swap;\n src: url(/_cogenta/fonts/restaurant/karla-italic-latin-ext-7632f995.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}"
43
+ },
44
+ {
45
+ "family": "Karla",
46
+ "style": "italic",
47
+ "weight": "200 800",
48
+ "subset": "latin",
49
+ "file": "karla-italic-latin-29363b02.woff2",
50
+ "css": "@font-face {\n font-family: 'Karla';\n font-style: italic;\n font-weight: 200 800;\n font-display: swap;\n src: url(/_cogenta/fonts/restaurant/karla-italic-latin-29363b02.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}"
51
+ },
52
+ {
53
+ "family": "Karla",
54
+ "style": "normal",
55
+ "weight": "200 800",
56
+ "subset": "latin-ext",
57
+ "file": "karla-normal-latin-ext-14291dd5.woff2",
58
+ "css": "@font-face {\n font-family: 'Karla';\n font-style: normal;\n font-weight: 200 800;\n font-display: swap;\n src: url(/_cogenta/fonts/restaurant/karla-normal-latin-ext-14291dd5.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}"
59
+ },
60
+ {
61
+ "family": "Karla",
62
+ "style": "normal",
63
+ "weight": "200 800",
64
+ "subset": "latin",
65
+ "file": "karla-normal-latin-cd614fed.woff2",
66
+ "css": "@font-face {\n font-family: 'Karla';\n font-style: normal;\n font-weight: 200 800;\n font-display: swap;\n src: url(/_cogenta/fonts/restaurant/karla-normal-latin-cd614fed.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}"
67
+ }
68
+ ]
69
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cogenta/theme-restaurant",
3
- "version": "0.5.7",
3
+ "version": "0.6.0",
4
4
  "description": "A Cogenta theme for a contemporary bistro: the room across the window, a typographic menu with prices grouped by section, dish pages, and a designed evening palette.",
5
5
  "license": "MPL-2.0",
6
6
  "type": "module",
@@ -16,10 +16,13 @@
16
16
  },
17
17
  "./tokens.json": "./tokens.json",
18
18
  "./styles/theme.css": "./src/styles/theme.css",
19
- "./styles/*.css": "./src/styles/*.css"
19
+ "./styles/*.css": "./src/styles/*.css",
20
+ "./fonts/*.woff2": "./fonts/*.woff2",
21
+ "./fonts/manifest.json": "./fonts/manifest.json"
20
22
  },
21
23
  "files": [
22
24
  "dist",
25
+ "fonts",
23
26
  "src",
24
27
  "tokens.json"
25
28
  ],
@@ -36,17 +39,17 @@
36
39
  "directory": "packages/theme-restaurant"
37
40
  },
38
41
  "dependencies": {
39
- "@cogenta/blocks": "1.1.6",
40
- "@cogenta/theme-kit": "0.7.1",
41
- "@cogenta/render": "0.5.0"
42
+ "@cogenta/blocks": "1.1.7",
43
+ "@cogenta/theme-kit": "0.7.2",
44
+ "@cogenta/render": "0.6.0"
42
45
  },
43
46
  "peerDependencies": {
44
- "astro": "^7.2.1"
47
+ "astro": "^7.2.8"
45
48
  },
46
49
  "devDependencies": {
47
- "astro": "^7.2.1",
50
+ "astro": "^7.2.8",
48
51
  "typescript": "^7.0.2",
49
- "vitest": "^4.1.10"
52
+ "vitest": "^4.1.11"
50
53
  },
51
54
  "scripts": {
52
55
  "build": "tsc -p tsconfig.json",
@@ -34,7 +34,12 @@ export function renderLogos(block: LogosBlock, ctx: RenderContext): HtmlElement
34
34
  ? h('span', { class: 'cr-marks__plate' }, mark)
35
35
  : h(
36
36
  'a',
37
- { class: 'cr-marks__plate', href: item.url, rel: 'noopener noreferrer' },
37
+ {
38
+ class: 'cr-marks__plate',
39
+ href: item.url,
40
+ 'aria-label': item.name,
41
+ rel: 'noopener noreferrer',
42
+ },
38
43
  mark,
39
44
  ),
40
45
  )
@@ -849,7 +849,7 @@
849
849
  }
850
850
 
851
851
  .cr-figures__unit {
852
- margin-inline-start: 0.08em;
852
+ margin-inline-start: 0.18em;
853
853
  font-size: 0.6em;
854
854
  }
855
855
 
@@ -0,0 +1,85 @@
1
+ /*
2
+ * The web fonts of `@cogenta/theme-restaurant`, served by the site itself.
3
+ *
4
+ * GENERATED by `scripts/fetch-theme-fonts.mjs` — edit that script, not this
5
+ * file. The faces live in this package's `fonts/` directory and are sent by
6
+ * `cogenta serve` at `/_cogenta/fonts/restaurant/<file>`; no request leaves the
7
+ * site, so a visitor's address is never handed to a font provider. See
8
+ * `fonts/README.md` for the families, their licence and their source.
9
+ *
10
+ * `font-display: swap` keeps text visible in a system face while a file loads,
11
+ * and `unicode-range` splits Latin from Latin Extended so a French page
12
+ * downloads only the first.
13
+ */
14
+
15
+ @font-face {
16
+ font-family: 'Cormorant Garamond';
17
+ font-style: italic;
18
+ font-weight: 300 700;
19
+ font-display: swap;
20
+ src: url(/_cogenta/fonts/restaurant/cormorant-garamond-italic-latin-ext-cd5bf126.woff2) format('woff2');
21
+ unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
22
+ }
23
+
24
+ @font-face {
25
+ font-family: 'Cormorant Garamond';
26
+ font-style: italic;
27
+ font-weight: 300 700;
28
+ font-display: swap;
29
+ src: url(/_cogenta/fonts/restaurant/cormorant-garamond-italic-latin-6f2f5c3b.woff2) format('woff2');
30
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
31
+ }
32
+
33
+ @font-face {
34
+ font-family: 'Cormorant Garamond';
35
+ font-style: normal;
36
+ font-weight: 300 700;
37
+ font-display: swap;
38
+ src: url(/_cogenta/fonts/restaurant/cormorant-garamond-normal-latin-ext-cfa9a397.woff2) format('woff2');
39
+ unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
40
+ }
41
+
42
+ @font-face {
43
+ font-family: 'Cormorant Garamond';
44
+ font-style: normal;
45
+ font-weight: 300 700;
46
+ font-display: swap;
47
+ src: url(/_cogenta/fonts/restaurant/cormorant-garamond-normal-latin-d80df8ff.woff2) format('woff2');
48
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
49
+ }
50
+
51
+ @font-face {
52
+ font-family: 'Karla';
53
+ font-style: italic;
54
+ font-weight: 200 800;
55
+ font-display: swap;
56
+ src: url(/_cogenta/fonts/restaurant/karla-italic-latin-ext-7632f995.woff2) format('woff2');
57
+ unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
58
+ }
59
+
60
+ @font-face {
61
+ font-family: 'Karla';
62
+ font-style: italic;
63
+ font-weight: 200 800;
64
+ font-display: swap;
65
+ src: url(/_cogenta/fonts/restaurant/karla-italic-latin-29363b02.woff2) format('woff2');
66
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
67
+ }
68
+
69
+ @font-face {
70
+ font-family: 'Karla';
71
+ font-style: normal;
72
+ font-weight: 200 800;
73
+ font-display: swap;
74
+ src: url(/_cogenta/fonts/restaurant/karla-normal-latin-ext-14291dd5.woff2) format('woff2');
75
+ unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
76
+ }
77
+
78
+ @font-face {
79
+ font-family: 'Karla';
80
+ font-style: normal;
81
+ font-weight: 200 800;
82
+ font-display: swap;
83
+ src: url(/_cogenta/fonts/restaurant/karla-normal-latin-cd614fed.woff2) format('woff2');
84
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
85
+ }
@@ -365,7 +365,7 @@
365
365
 
366
366
  .cr-dish__inner {
367
367
  row-gap: var(--cr-s10);
368
- align-items: center;
368
+ align-items: start;
369
369
  }
370
370
 
371
371
  .cr-dish__media {
@@ -467,6 +467,18 @@
467
467
  font-size: var(--cr-text-caption);
468
468
  }
469
469
 
470
+ /* On a tablet the photograph and the words sit side by side: stacked, a 4:5
471
+ photograph is taller than the screen and pushes the price out of sight. */
472
+ @media (min-width: 40rem) and (max-width: 63.9375rem) {
473
+ .cr-dish[data-media="true"] .cr-dish__media {
474
+ grid-column: 1 / span 5;
475
+ }
476
+
477
+ .cr-dish[data-media="true"] .cr-dish__info {
478
+ grid-column: 6 / span 7;
479
+ }
480
+ }
481
+
470
482
  @media (min-width: 64rem) {
471
483
  .cr-dish[data-media="true"] .cr-dish__media {
472
484
  grid-column: 1 / span 6;
@@ -16,16 +16,16 @@
16
16
  * Not one colour is written literally in any of them: every value comes from
17
17
  * a skin token or from a `--cr-*` property composed from those.
18
18
  *
19
- * The one thing this file adds on its own is the Google Fonts request for the
19
+ * The one thing this file adds on its own is the self-hosted `fonts.css` faces for the
20
20
  * two families the skin names: Cormorant Garamond (display, upright and
21
21
  * italic, 300 to 700) and Karla (text, upright and italic, 200 to 800). A
22
22
  * skin only names a family; it never fetches one. Both fall back to a real
23
- * system stack if Google Fonts is unreachable, and `display=swap` keeps text
23
+ * system stack if a face fails to load, and `display=swap` keeps text
24
24
  * visible while they load. `cogenta serve` hoists this `@import` above the
25
25
  * skin's rules.
26
26
  */
27
27
 
28
- @import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Karla:ital,wght@0,200..800;1,200..800&display=swap");
28
+ @import "./fonts.css";
29
29
 
30
30
  @import "./tokens.css";
31
31
  @import "./base.css";