@cogenta/theme-entreprise 1.4.2 → 1.5.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.
- package/dist/src/render/blocks/collection-list.d.ts.map +1 -1
- package/dist/src/render/blocks/collection-list.js +59 -12
- package/dist/src/render/blocks/collection-list.js.map +1 -1
- package/dist/src/render/blocks/logos.d.ts.map +1 -1
- package/dist/src/render/blocks/logos.js +6 -1
- package/dist/src/render/blocks/logos.js.map +1 -1
- package/dist/src/render/strings.d.ts +14 -0
- package/dist/src/render/strings.d.ts.map +1 -0
- package/dist/src/render/strings.js +13 -0
- package/dist/src/render/strings.js.map +1 -0
- package/dist/theme.config.js +1 -1
- package/dist/theme.config.js.map +1 -1
- package/fonts/OFL-geist-mono.txt +93 -0
- package/fonts/OFL-geist.txt +93 -0
- package/fonts/README.md +44 -0
- package/fonts/geist-mono-normal-latin-684ad5b5.woff2 +0 -0
- package/fonts/geist-mono-normal-latin-ext-1a189eb9.woff2 +0 -0
- package/fonts/geist-normal-latin-19f9c925.woff2 +0 -0
- package/fonts/geist-normal-latin-ext-824f485b.woff2 +0 -0
- package/fonts/manifest.json +37 -0
- package/package.json +12 -9
- package/src/render/blocks/collection-list.ts +85 -11
- package/src/render/blocks/logos.ts +6 -1
- package/src/render/strings.ts +33 -0
- package/src/styles/blocks.css +119 -0
- package/src/styles/fonts.css +49 -0
- package/src/styles/theme.css +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collection-list.d.ts","sourceRoot":"","sources":["../../../../src/render/blocks/collection-list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AAC1D,OAAO,EAEL,wBAAwB,EACxB,KAAK,YAAY,EAOjB,KAAK,WAAW,EAIhB,KAAK,aAAa,EAEnB,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"collection-list.d.ts","sourceRoot":"","sources":["../../../../src/render/blocks/collection-list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AAC1D,OAAO,EAEL,wBAAwB,EACxB,KAAK,YAAY,EAOjB,KAAK,WAAW,EAIhB,KAAK,aAAa,EAEnB,MAAM,oBAAoB,CAAA;AAI3B;;;;;;GAMG;AACH,OAAO,EAAE,wBAAwB,IAAI,KAAK,EAAE,CAAA;AAwK5C,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,mBAAmB,EAC1B,GAAG,EAAE,aAAa,EAClB,OAAO,EAAE,SAAS,YAAY,EAAE,GAC/B,WAAW,CA6Cb"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { blockHeadingTag, buildCollectionListQuery, entryDate, entryExcerpt, entryHref, entryImage, entryTitle, h, heading, nestedHeadingTag, renderImageSource, } from '@cogenta/theme-kit';
|
|
2
2
|
import { arrow, monthYear, ordinal, section } from '../layout.js';
|
|
3
|
+
import { collectionString } from '../strings.js';
|
|
3
4
|
/**
|
|
4
5
|
* The only block of the seventeen that reads data at render time (contract B
|
|
5
6
|
* marks it `runtime: 'server'`). The read is not done here: `query` builds
|
|
@@ -9,21 +10,47 @@ import { arrow, monthYear, ordinal, section } from '../layout.js';
|
|
|
9
10
|
*/
|
|
10
11
|
export { buildCollectionListQuery as query };
|
|
11
12
|
/**
|
|
12
|
-
*
|
|
13
|
+
* Read by what the entries are as much as by the layout an editor chose.
|
|
13
14
|
*
|
|
14
|
-
* -
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* the
|
|
20
|
-
*
|
|
21
|
-
*
|
|
15
|
+
* - **Open positions.** Every entry carries a `team`, a `location` or a
|
|
16
|
+
* `contract` — fields only a job has — so this is a careers listing, not
|
|
17
|
+
* an editorial one: a row is a title, that meta line, the summary and an
|
|
18
|
+
* explicit "Apply", never an ordinal number or a key figure that means
|
|
19
|
+
* nothing on a job. `layout` still chooses `list`, `grid` or `carousel`,
|
|
20
|
+
* but the row itself is the same shape in all three.
|
|
21
|
+
* - **Everything else** — an article, a solution, a case study — keeps the
|
|
22
|
+
* three designed layouts, one markup per entry:
|
|
23
|
+
* - `list` is the case-study register: alternating rows, the picture on
|
|
24
|
+
* seven columns and the text on four, swapping sides from one row to the
|
|
25
|
+
* next. An entry with no picture becomes a typographic row (title left,
|
|
26
|
+
* summary right) under the same hairline, never a row with a hole in it.
|
|
27
|
+
* - `grid` is an editorial index in three columns: a 3:2 picture, a
|
|
28
|
+
* hairline, the title in the display serif and its summary. No card
|
|
29
|
+
* border, no lift on hover.
|
|
30
|
+
* - `carousel` is the grid's item in a scroll-snapping, focusable row.
|
|
31
|
+
* An entry that also carries a `client` (a case study, never an article)
|
|
32
|
+
* prints it under the title, in the label face — the credit the entry's
|
|
33
|
+
* own `client` and `location` fields exist to give, never buried in the
|
|
34
|
+
* summary's prose as the only way a reader learns whose result this was.
|
|
22
35
|
*
|
|
23
36
|
* The picture link is hidden from assistive technology and from the tab
|
|
24
37
|
* order: it goes where the title link goes, and one link per entry is what
|
|
25
38
|
* a keyboard or screen reader user should meet.
|
|
26
39
|
*/
|
|
40
|
+
function isPosition(entry) {
|
|
41
|
+
return ((typeof entry.team === 'string' && entry.team.trim() !== '') ||
|
|
42
|
+
(typeof entry.contract === 'string' && entry.contract.trim() !== ''));
|
|
43
|
+
}
|
|
44
|
+
/** `Engineering · Lyon · Permanent` — every part the entry declares, in that order. */
|
|
45
|
+
function positionMeta(entry) {
|
|
46
|
+
const parts = [entry.team, entry.location, entry.contract].filter((value) => typeof value === 'string' && value.trim() !== '');
|
|
47
|
+
return parts.length === 0 ? undefined : parts.join(' · ');
|
|
48
|
+
}
|
|
49
|
+
/** `Client name · Location` — a case study's own credit line, read from its plain-text fields, never a taxonomy id. */
|
|
50
|
+
function clientAttribution(entry) {
|
|
51
|
+
const parts = [entry.client, entry.location].filter((value) => typeof value === 'string' && value.trim() !== '');
|
|
52
|
+
return parts.length === 0 ? undefined : parts.join(' · ');
|
|
53
|
+
}
|
|
27
54
|
function renderPicture(entry, ctx, url) {
|
|
28
55
|
const picture = entryImage(entry, ctx);
|
|
29
56
|
if (picture === undefined)
|
|
@@ -49,7 +76,11 @@ function renderEntry(entry, index, ctx, tag) {
|
|
|
49
76
|
// The title is the link, and the arrow sits inline after its last word
|
|
50
77
|
// inside the same link: a bare arrow on a line of its own reads as a
|
|
51
78
|
// placeholder, not as a way into the case study.
|
|
52
|
-
heading(tag, { class: 'cg-entry__title' }, h('a', { class: 'cg-entry__link', href: url }, h('span', { class: 'cg-entry__link-text' }, entryTitle(entry, ctx)), h('span', { class: 'cg-entry__arrow', 'aria-hidden': 'true' }, arrow()))), excerpt === undefined ? null : h('p', { class: 'cg-entry__excerpt' }, excerpt), renderKeyFigure(entry)));
|
|
79
|
+
heading(tag, { class: 'cg-entry__title' }, h('a', { class: 'cg-entry__link', href: url }, h('span', { class: 'cg-entry__link-text' }, entryTitle(entry, ctx)), h('span', { class: 'cg-entry__arrow', 'aria-hidden': 'true' }, arrow()))), renderAttribution(entry), excerpt === undefined ? null : h('p', { class: 'cg-entry__excerpt' }, excerpt), renderKeyFigure(entry)));
|
|
80
|
+
}
|
|
81
|
+
function renderAttribution(entry) {
|
|
82
|
+
const credit = clientAttribution(entry);
|
|
83
|
+
return credit === undefined ? null : h('p', { class: 'cg-entry__attribution' }, credit);
|
|
53
84
|
}
|
|
54
85
|
/**
|
|
55
86
|
* The one number a case study is remembered by, when the entry declares it
|
|
@@ -64,13 +95,29 @@ function renderKeyFigure(entry) {
|
|
|
64
95
|
const label = typeof entry.keyFigureLabel === 'string' ? entry.keyFigureLabel : undefined;
|
|
65
96
|
return h('p', { class: 'cg-entry__figure' }, h('span', { class: 'cg-entry__figure-value' }, value), label === undefined ? null : h('span', { class: 'cg-entry__figure-label' }, label));
|
|
66
97
|
}
|
|
98
|
+
/**
|
|
99
|
+
* A row of a careers listing: no ordinal, no key figure — neither means
|
|
100
|
+
* anything on a job — the title, its team/location/contract in one line,
|
|
101
|
+
* the summary, and an explicit "Apply" rather than the arrow standing alone
|
|
102
|
+
* for it, since a job is the one entry here a reader arrives looking for a
|
|
103
|
+
* specific action to take.
|
|
104
|
+
*/
|
|
105
|
+
function renderPosition(entry, ctx, tag) {
|
|
106
|
+
const url = entryHref(entry, ctx);
|
|
107
|
+
const summary = entryExcerpt(entry);
|
|
108
|
+
const meta = positionMeta(entry);
|
|
109
|
+
return h('li', { class: 'cg-position' }, heading(tag, { class: 'cg-position__title' }, h('a', { class: 'cg-position__link', href: url }, entryTitle(entry, ctx))), meta === undefined ? null : h('p', { class: 'cg-position__meta' }, meta), summary === undefined ? null : h('p', { class: 'cg-position__summary' }, summary), h('a', { class: 'cg-position__apply', href: url }, collectionString(ctx.locale, 'apply'), h('span', { class: 'cg-position__arrow', 'aria-hidden': 'true' }, arrow())));
|
|
110
|
+
}
|
|
67
111
|
export function renderCollectionList(block, ctx, entries) {
|
|
68
112
|
const hasTitle = block.title !== undefined;
|
|
69
113
|
const entryTag = nestedHeadingTag('collectionList', hasTitle);
|
|
114
|
+
const positions = entries.some(isPosition);
|
|
70
115
|
const items = entries.length === 0
|
|
71
116
|
? h('p', { class: 'cg-collection__empty' }, ctx.t('collection.empty'))
|
|
72
|
-
: h(block.layout === 'list' ? 'ol' : 'ul', { class: 'cg-collection__items', 'data-count': String(entries.length) },
|
|
73
|
-
|
|
117
|
+
: h(block.layout === 'list' ? 'ol' : 'ul', { class: 'cg-collection__items', 'data-count': String(entries.length) }, positions
|
|
118
|
+
? entries.map((entry) => renderPosition(entry, ctx, entryTag))
|
|
119
|
+
: entries.map((entry, index) => renderEntry(entry, index, ctx, entryTag)));
|
|
120
|
+
return section('section', 'collectionList', 'cg-collection', { 'data-layout': block.layout, 'data-shape': positions ? 'positions' : 'editorial' }, 'div', hasTitle
|
|
74
121
|
? h('div', { class: 'cg-head' }, heading(blockHeadingTag('collectionList') ?? 'h2', { class: 'cg-head__title', 'data-field': 'title' }, block.title ?? ''))
|
|
75
122
|
: null, block.layout === 'carousel' && entries.length > 0
|
|
76
123
|
? h('div', {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collection-list.js","sourceRoot":"","sources":["../../../../src/render/blocks/collection-list.ts"],"names":[],"mappings":"AACA,OAAO,EACL,eAAe,EACf,wBAAwB,EAExB,SAAS,EACT,YAAY,EACZ,SAAS,EACT,UAAU,EACV,UAAU,EAGV,CAAC,EACD,OAAO,EACP,gBAAgB,EAEhB,iBAAiB,GAClB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"collection-list.js","sourceRoot":"","sources":["../../../../src/render/blocks/collection-list.ts"],"names":[],"mappings":"AACA,OAAO,EACL,eAAe,EACf,wBAAwB,EAExB,SAAS,EACT,YAAY,EACZ,SAAS,EACT,UAAU,EACV,UAAU,EAGV,CAAC,EACD,OAAO,EACP,gBAAgB,EAEhB,iBAAiB,GAClB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAEhD;;;;;;GAMG;AACH,OAAO,EAAE,wBAAwB,IAAI,KAAK,EAAE,CAAA;AAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,SAAS,UAAU,CAAC,KAAmB;IACrC,OAAO,CACL,CAAC,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC;QAC5D,CAAC,OAAO,KAAK,CAAC,QAAQ,KAAK,QAAQ,IAAI,KAAK,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CACrE,CAAA;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E,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,EAAE,EACpF,KAAK,EACL,QAAQ;QACN,CAAC,CAAC,CAAC,CACC,KAAK,EACL,EAAE,KAAK,EAAE,SAAS,EAAE,EACpB,OAAO,CACL,eAAe,CAAC,gBAAgB,CAAC,IAAI,IAAI,EACzC,EAAE,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,OAAO,EAAE,EAClD,KAAK,CAAC,KAAK,IAAI,EAAE,CAClB,CACF;QACH,CAAC,CAAC,IAAI,EACR,KAAK,CAAC,MAAM,KAAK,UAAU,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC;QAC/C,CAAC,CAAC,CAAC,CACC,KAAK,EACL;YACE,KAAK,EAAE,yBAAyB;YAChC,IAAI,EAAE,QAAQ;YACd,YAAY,EAAE,KAAK,CAAC,KAAK,IAAI,GAAG,CAAC,CAAC,CAAC,qBAAqB,CAAC;YACzD,QAAQ,EAAE,GAAG;SACd,EACD,KAAK,CACN;QACH,CAAC,CAAC,KAAK,CACV,CAAA;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logos.d.ts","sourceRoot":"","sources":["../../../../src/render/blocks/logos.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAY,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC3D,OAAO,EAEL,KAAK,WAAW,EAIhB,KAAK,aAAa,EACnB,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"logos.d.ts","sourceRoot":"","sources":["../../../../src/render/blocks/logos.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAY,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC3D,OAAO,EAEL,KAAK,WAAW,EAIhB,KAAK,aAAa,EACnB,MAAM,oBAAoB,CAAA;AAsC3B,wBAAgB,WAAW,CAAC,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,aAAa,GAAG,WAAW,CAwB9E"}
|
|
@@ -19,7 +19,12 @@ function renderItem(item, ctx) {
|
|
|
19
19
|
});
|
|
20
20
|
return h('li', { class: 'cg-clients__item' }, item.url === undefined
|
|
21
21
|
? logo
|
|
22
|
-
: h('a', {
|
|
22
|
+
: h('a', {
|
|
23
|
+
class: 'cg-clients__link',
|
|
24
|
+
href: ctx.link(item.url),
|
|
25
|
+
'aria-label': item.name,
|
|
26
|
+
rel: 'noopener noreferrer',
|
|
27
|
+
}, logo));
|
|
23
28
|
}
|
|
24
29
|
export function renderLogos(block, ctx) {
|
|
25
30
|
return section('section', 'logos', 'cg-clients', {}, 'div', block.title === undefined
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logos.js","sourceRoot":"","sources":["../../../../src/render/blocks/logos.ts"],"names":[],"mappings":"AACA,OAAO,EACL,eAAe,EAEf,CAAC,EACD,OAAO,EACP,KAAK,GAEN,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAEtC;;;;;;;;;GASG;AACH,SAAS,UAAU,CAAC,IAAc,EAAE,GAAkB;IACpD,MAAM,IAAI,GAAG,KAAK,CAAC,GAAG,EAAE,IAAI,CAAC,KAAK,EAAE;QAClC,SAAS,EAAE,kBAAkB;QAC7B,OAAO,EAAE,IAAI,CAAC,IAAI;QAClB,OAAO,EAAE,EAAE,GAAG,EAAE,SAAS,EAAE;QAC3B,KAAK,EAAE,OAAO;KACf,CAAC,CAAA;IACF,OAAO,CAAC,CACN,IAAI,EACJ,EAAE,KAAK,EAAE,kBAAkB,EAAE,EAC7B,IAAI,CAAC,GAAG,KAAK,SAAS;QACpB,CAAC,CAAC,IAAI;QACN,CAAC,CAAC,CAAC,CACC,GAAG,EACH,
|
|
1
|
+
{"version":3,"file":"logos.js","sourceRoot":"","sources":["../../../../src/render/blocks/logos.ts"],"names":[],"mappings":"AACA,OAAO,EACL,eAAe,EAEf,CAAC,EACD,OAAO,EACP,KAAK,GAEN,MAAM,oB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,CAAC,MAAM,CAAC,CAAC,EAAE,EACtF,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CACjD,CACF,CAAA;AACH,CAAC;AAED;;;;GAIG;AACH,SAAS,UAAU,CAAC,KAAa;IAC/B,IAAI,KAAK,IAAI,CAAC;QAAE,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;IACzC,OAAO,KAAK,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;AAChC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The one word a list of open positions needs that the shared vocabulary
|
|
3
|
+
* does not.
|
|
4
|
+
*
|
|
5
|
+
* `@cogenta/theme-kit`'s `THEME_STRINGS` carries the strings every theme's
|
|
6
|
+
* blocks share; this belongs to one register (a careers listing), so it
|
|
7
|
+
* lives with the theme that draws it, in the two languages the shared table
|
|
8
|
+
* knows. A locale the table does not know reads English, the same rule
|
|
9
|
+
* `createThemeTranslator` follows.
|
|
10
|
+
*/
|
|
11
|
+
type CollectionStringKey = 'apply';
|
|
12
|
+
export declare function collectionString(locale: string, key: CollectionStringKey, values?: Readonly<Record<string, string | number>>): string;
|
|
13
|
+
export type { CollectionStringKey };
|
|
14
|
+
//# sourceMappingURL=strings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"strings.d.ts","sourceRoot":"","sources":["../../../src/render/strings.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AAEH,KAAK,mBAAmB,GAAG,OAAO,CAAA;AAWlC,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,mBAAmB,EACxB,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,GACjD,MAAM,CAER;AAED,YAAY,EAAE,mBAAmB,EAAE,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { interpolate, themeLocaleFor } from '@cogenta/theme-kit';
|
|
2
|
+
const STRINGS = {
|
|
3
|
+
en: {
|
|
4
|
+
apply: 'Apply',
|
|
5
|
+
},
|
|
6
|
+
fr: {
|
|
7
|
+
apply: 'Postuler',
|
|
8
|
+
},
|
|
9
|
+
};
|
|
10
|
+
export function collectionString(locale, key, values) {
|
|
11
|
+
return interpolate(STRINGS[themeLocaleFor(locale)][key], values);
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=strings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"strings.js","sourceRoot":"","sources":["../../../src/render/strings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAehE,MAAM,OAAO,GAAiF;IAC5F,EAAE,EAAE;QACF,KAAK,EAAE,OAAO;KACf;IACD,EAAE,EAAE;QACF,KAAK,EAAE,UAAU;KAClB;CACF,CAAA;AAED,MAAM,UAAU,gBAAgB,CAC9B,MAAc,EACd,GAAwB,EACxB,MAAkD;IAElD,OAAO,WAAW,CAAC,OAAO,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,CAAA;AAClE,CAAC"}
|
package/dist/theme.config.js
CHANGED
|
@@ -15,7 +15,7 @@ import { defineTheme } from '@cogenta/render';
|
|
|
15
15
|
export default defineTheme({
|
|
16
16
|
name: 'entreprise',
|
|
17
17
|
version: '1.2.0',
|
|
18
|
-
description: '
|
|
18
|
+
description: 'An engineering company theme: Geist and Geist Mono on a twelve-column grid, full-bleed photography, key figures on an ink band, hairlines instead of boxes and a designed dark mode.',
|
|
19
19
|
author: 'Cogenta',
|
|
20
20
|
engine: '^1.0.0',
|
|
21
21
|
blocks: '^2.0.0',
|
package/dist/theme.config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.config.js","sourceRoot":"","sources":["../theme.config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAE7C;;;;;;;;;;;;GAYG;AACH,eAAe,WAAW,CAAC;IACzB,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,OAAO;IAChB,WAAW,EACT
|
|
1
|
+
{"version":3,"file":"theme.config.js","sourceRoot":"","sources":["../theme.config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAE7C;;;;;;;;;;;;GAYG;AACH,eAAe,WAAW,CAAC;IACzB,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,OAAO;IAChB,WAAW,EACT,sLAAsL;IACxL,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,UAAU,EAAE;QACV,MAAM;QACN,OAAO;QACP,aAAa;QACb,aAAa;QACb,KAAK;QACL,SAAS;QACT,OAAO;QACP,KAAK;QACL,OAAO;QACP,OAAO;QACP,gBAAgB;QAChB,OAAO;QACP,aAAa;QACb,cAAc;QACd,WAAW;QACX,aAAa;QACb,WAAW;KACZ;IACD,WAAW,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC;IAChC,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,eAAe;IACvB,IAAI,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE;CAClC,CAAC,CAAA"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2024 The Geist Project Authors (https://github.com/vercel/geist-font.git)
|
|
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://openfontlicense.org
|
|
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 2024 The Geist Project Authors (https://github.com/vercel/geist-font.git)
|
|
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://openfontlicense.org
|
|
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.
|
package/fonts/README.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Fonts of `@cogenta/theme-entreprise`
|
|
2
|
+
|
|
3
|
+
Served by the site itself at `/_cogenta/fonts/entreprise/<file>`. A page of this
|
|
4
|
+
theme makes **no request to a font provider**.
|
|
5
|
+
|
|
6
|
+
| Family | Style | Subset | Weight | File | Size |
|
|
7
|
+
|---|---|---|---|---|---|
|
|
8
|
+
| Geist | normal | latin-ext | 300 700 | `geist-normal-latin-ext-824f485b.woff2` | 16.1 KiB |
|
|
9
|
+
| Geist | normal | latin | 300 700 | `geist-normal-latin-19f9c925.woff2` | 28.7 KiB |
|
|
10
|
+
| Geist Mono | normal | latin-ext | 400 600 | `geist-mono-normal-latin-ext-1a189eb9.woff2` | 14.4 KiB |
|
|
11
|
+
| Geist Mono | normal | latin | 400 600 | `geist-mono-normal-latin-684ad5b5.woff2` | 22.6 KiB |
|
|
12
|
+
|
|
13
|
+
Total: 4 files, 81.8 KiB.
|
|
14
|
+
|
|
15
|
+
## Licence
|
|
16
|
+
|
|
17
|
+
- **Geist**: SIL Open Font License 1.1, text in `OFL-geist.txt`
|
|
18
|
+
- **Geist Mono**: SIL Open Font License 1.1, text in `OFL-geist-mono.txt`
|
|
19
|
+
|
|
20
|
+
The OFL permits bundling and redistributing these files with this package, as
|
|
21
|
+
long as the licence text travels with them (it does) and the fonts are not sold
|
|
22
|
+
on their own.
|
|
23
|
+
|
|
24
|
+
## Source and subsets
|
|
25
|
+
|
|
26
|
+
The files are the variable WOFF2 builds that the Google Fonts `css2` API
|
|
27
|
+
serves, taken from the `google/fonts` open-source repository's distribution.
|
|
28
|
+
Only the `latin` and `latin-ext` subsets are kept: together they cover
|
|
29
|
+
French (œ Œ ’ « » and every accented capital), the other Western European
|
|
30
|
+
languages, and the euro sign. A language written in another script falls back to
|
|
31
|
+
the next family of the theme's stack.
|
|
32
|
+
|
|
33
|
+
## How they were fetched
|
|
34
|
+
|
|
35
|
+
```sh
|
|
36
|
+
node scripts/fetch-theme-fonts.mjs entreprise
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
The script asks `https://fonts.googleapis.com/css2` with a modern User-Agent for
|
|
40
|
+
exactly the families, axes and weights this theme used before it was
|
|
41
|
+
self-hosted, downloads each `latin`/`latin-ext` file, names it after a hash of
|
|
42
|
+
its bytes (so a changed file gets a new URL and can be cached for a year), and
|
|
43
|
+
rewrites `src/styles/fonts.css`. It needs the network once, when it is run, and
|
|
44
|
+
never when a site is built, tested or served.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"theme": "entreprise",
|
|
3
|
+
"faces": [
|
|
4
|
+
{
|
|
5
|
+
"family": "Geist",
|
|
6
|
+
"style": "normal",
|
|
7
|
+
"weight": "300 700",
|
|
8
|
+
"subset": "latin-ext",
|
|
9
|
+
"file": "geist-normal-latin-ext-824f485b.woff2",
|
|
10
|
+
"css": "@font-face {\n font-family: 'Geist';\n font-style: normal;\n font-weight: 300 700;\n font-display: swap;\n src: url(/_cogenta/fonts/entreprise/geist-normal-latin-ext-824f485b.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": "Geist",
|
|
14
|
+
"style": "normal",
|
|
15
|
+
"weight": "300 700",
|
|
16
|
+
"subset": "latin",
|
|
17
|
+
"file": "geist-normal-latin-19f9c925.woff2",
|
|
18
|
+
"css": "@font-face {\n font-family: 'Geist';\n font-style: normal;\n font-weight: 300 700;\n font-display: swap;\n src: url(/_cogenta/fonts/entreprise/geist-normal-latin-19f9c925.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": "Geist Mono",
|
|
22
|
+
"style": "normal",
|
|
23
|
+
"weight": "400 600",
|
|
24
|
+
"subset": "latin-ext",
|
|
25
|
+
"file": "geist-mono-normal-latin-ext-1a189eb9.woff2",
|
|
26
|
+
"css": "@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400 600;\n font-display: swap;\n src: url(/_cogenta/fonts/entreprise/geist-mono-normal-latin-ext-1a189eb9.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": "Geist Mono",
|
|
30
|
+
"style": "normal",
|
|
31
|
+
"weight": "400 600",
|
|
32
|
+
"subset": "latin",
|
|
33
|
+
"file": "geist-mono-normal-latin-684ad5b5.woff2",
|
|
34
|
+
"css": "@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400 600;\n font-display: swap;\n src: url(/_cogenta/fonts/entreprise/geist-mono-normal-latin-684ad5b5.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
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cogenta/theme-entreprise",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.5.0",
|
|
4
|
+
"description": "An engineering company theme for Cogenta: Geist and Geist Mono on a twelve-column grid, full-bleed photography, hairlines instead of boxes, a designed dark mode, and zero client JavaScript.",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"sideEffects": false,
|
|
@@ -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-entreprise"
|
|
37
40
|
},
|
|
38
41
|
"dependencies": {
|
|
39
|
-
"@cogenta/blocks": "1.1.
|
|
40
|
-
"@cogenta/theme-kit": "0.7.
|
|
41
|
-
"@cogenta/render": "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.
|
|
47
|
+
"astro": "^7.2.8"
|
|
45
48
|
},
|
|
46
49
|
"devDependencies": {
|
|
47
|
-
"astro": "^7.2.
|
|
50
|
+
"astro": "^7.2.8",
|
|
48
51
|
"typescript": "^7.0.2",
|
|
49
|
-
"vitest": "^4.1.
|
|
52
|
+
"vitest": "^4.1.11"
|
|
50
53
|
},
|
|
51
54
|
"scripts": {
|
|
52
55
|
"build": "tsc -p tsconfig.json",
|
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
renderImageSource,
|
|
18
18
|
} from '@cogenta/theme-kit'
|
|
19
19
|
import { arrow, monthYear, ordinal, section } from '../layout.js'
|
|
20
|
+
import { collectionString } from '../strings.js'
|
|
20
21
|
|
|
21
22
|
/**
|
|
22
23
|
* The only block of the seventeen that reads data at render time (contract B
|
|
@@ -28,21 +29,55 @@ import { arrow, monthYear, ordinal, section } from '../layout.js'
|
|
|
28
29
|
export { buildCollectionListQuery as query }
|
|
29
30
|
|
|
30
31
|
/**
|
|
31
|
-
*
|
|
32
|
+
* Read by what the entries are as much as by the layout an editor chose.
|
|
32
33
|
*
|
|
33
|
-
* -
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
* the
|
|
39
|
-
*
|
|
40
|
-
*
|
|
34
|
+
* - **Open positions.** Every entry carries a `team`, a `location` or a
|
|
35
|
+
* `contract` — fields only a job has — so this is a careers listing, not
|
|
36
|
+
* an editorial one: a row is a title, that meta line, the summary and an
|
|
37
|
+
* explicit "Apply", never an ordinal number or a key figure that means
|
|
38
|
+
* nothing on a job. `layout` still chooses `list`, `grid` or `carousel`,
|
|
39
|
+
* but the row itself is the same shape in all three.
|
|
40
|
+
* - **Everything else** — an article, a solution, a case study — keeps the
|
|
41
|
+
* three designed layouts, one markup per entry:
|
|
42
|
+
* - `list` is the case-study register: alternating rows, the picture on
|
|
43
|
+
* seven columns and the text on four, swapping sides from one row to the
|
|
44
|
+
* next. An entry with no picture becomes a typographic row (title left,
|
|
45
|
+
* summary right) under the same hairline, never a row with a hole in it.
|
|
46
|
+
* - `grid` is an editorial index in three columns: a 3:2 picture, a
|
|
47
|
+
* hairline, the title in the display serif and its summary. No card
|
|
48
|
+
* border, no lift on hover.
|
|
49
|
+
* - `carousel` is the grid's item in a scroll-snapping, focusable row.
|
|
50
|
+
* An entry that also carries a `client` (a case study, never an article)
|
|
51
|
+
* prints it under the title, in the label face — the credit the entry's
|
|
52
|
+
* own `client` and `location` fields exist to give, never buried in the
|
|
53
|
+
* summary's prose as the only way a reader learns whose result this was.
|
|
41
54
|
*
|
|
42
55
|
* The picture link is hidden from assistive technology and from the tab
|
|
43
56
|
* order: it goes where the title link goes, and one link per entry is what
|
|
44
57
|
* a keyboard or screen reader user should meet.
|
|
45
58
|
*/
|
|
59
|
+
function isPosition(entry: ContentEntry): boolean {
|
|
60
|
+
return (
|
|
61
|
+
(typeof entry.team === 'string' && entry.team.trim() !== '') ||
|
|
62
|
+
(typeof entry.contract === 'string' && entry.contract.trim() !== '')
|
|
63
|
+
)
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/** `Engineering · Lyon · Permanent` — every part the entry declares, in that order. */
|
|
67
|
+
function positionMeta(entry: ContentEntry): string | undefined {
|
|
68
|
+
const parts = [entry.team, entry.location, entry.contract].filter(
|
|
69
|
+
(value): value is string => typeof value === 'string' && value.trim() !== '',
|
|
70
|
+
)
|
|
71
|
+
return parts.length === 0 ? undefined : parts.join(' · ')
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/** `Client name · Location` — a case study's own credit line, read from its plain-text fields, never a taxonomy id. */
|
|
75
|
+
function clientAttribution(entry: ContentEntry): string | undefined {
|
|
76
|
+
const parts = [entry.client, entry.location].filter(
|
|
77
|
+
(value): value is string => typeof value === 'string' && value.trim() !== '',
|
|
78
|
+
)
|
|
79
|
+
return parts.length === 0 ? undefined : parts.join(' · ')
|
|
80
|
+
}
|
|
46
81
|
function renderPicture(entry: ContentEntry, ctx: RenderContext, url: string): HtmlElement | null {
|
|
47
82
|
const picture = entryImage(entry, ctx)
|
|
48
83
|
if (picture === undefined) return null
|
|
@@ -99,12 +134,18 @@ function renderEntry(
|
|
|
99
134
|
h('span', { class: 'cg-entry__arrow', 'aria-hidden': 'true' }, arrow()),
|
|
100
135
|
),
|
|
101
136
|
),
|
|
137
|
+
renderAttribution(entry),
|
|
102
138
|
excerpt === undefined ? null : h('p', { class: 'cg-entry__excerpt' }, excerpt),
|
|
103
139
|
renderKeyFigure(entry),
|
|
104
140
|
),
|
|
105
141
|
)
|
|
106
142
|
}
|
|
107
143
|
|
|
144
|
+
function renderAttribution(entry: ContentEntry): HtmlElement | null {
|
|
145
|
+
const credit = clientAttribution(entry)
|
|
146
|
+
return credit === undefined ? null : h('p', { class: 'cg-entry__attribution' }, credit)
|
|
147
|
+
}
|
|
148
|
+
|
|
108
149
|
/**
|
|
109
150
|
* The one number a case study is remembered by, when the entry declares it
|
|
110
151
|
* (`keyFigure`, and `keyFigureLabel` for what it measures): set large under
|
|
@@ -123,6 +164,36 @@ function renderKeyFigure(entry: ContentEntry): HtmlElement | null {
|
|
|
123
164
|
)
|
|
124
165
|
}
|
|
125
166
|
|
|
167
|
+
/**
|
|
168
|
+
* A row of a careers listing: no ordinal, no key figure — neither means
|
|
169
|
+
* anything on a job — the title, its team/location/contract in one line,
|
|
170
|
+
* the summary, and an explicit "Apply" rather than the arrow standing alone
|
|
171
|
+
* for it, since a job is the one entry here a reader arrives looking for a
|
|
172
|
+
* specific action to take.
|
|
173
|
+
*/
|
|
174
|
+
function renderPosition(entry: ContentEntry, ctx: RenderContext, tag: HeadingTag): HtmlElement {
|
|
175
|
+
const url = entryHref(entry, ctx)
|
|
176
|
+
const summary = entryExcerpt(entry)
|
|
177
|
+
const meta = positionMeta(entry)
|
|
178
|
+
return h(
|
|
179
|
+
'li',
|
|
180
|
+
{ class: 'cg-position' },
|
|
181
|
+
heading(
|
|
182
|
+
tag,
|
|
183
|
+
{ class: 'cg-position__title' },
|
|
184
|
+
h('a', { class: 'cg-position__link', href: url }, entryTitle(entry, ctx)),
|
|
185
|
+
),
|
|
186
|
+
meta === undefined ? null : h('p', { class: 'cg-position__meta' }, meta),
|
|
187
|
+
summary === undefined ? null : h('p', { class: 'cg-position__summary' }, summary),
|
|
188
|
+
h(
|
|
189
|
+
'a',
|
|
190
|
+
{ class: 'cg-position__apply', href: url },
|
|
191
|
+
collectionString(ctx.locale, 'apply'),
|
|
192
|
+
h('span', { class: 'cg-position__arrow', 'aria-hidden': 'true' }, arrow()),
|
|
193
|
+
),
|
|
194
|
+
)
|
|
195
|
+
}
|
|
196
|
+
|
|
126
197
|
export function renderCollectionList(
|
|
127
198
|
block: CollectionListBlock,
|
|
128
199
|
ctx: RenderContext,
|
|
@@ -130,20 +201,23 @@ export function renderCollectionList(
|
|
|
130
201
|
): HtmlElement {
|
|
131
202
|
const hasTitle = block.title !== undefined
|
|
132
203
|
const entryTag = nestedHeadingTag('collectionList', hasTitle)
|
|
204
|
+
const positions = entries.some(isPosition)
|
|
133
205
|
const items =
|
|
134
206
|
entries.length === 0
|
|
135
207
|
? h('p', { class: 'cg-collection__empty' }, ctx.t('collection.empty'))
|
|
136
208
|
: h(
|
|
137
209
|
block.layout === 'list' ? 'ol' : 'ul',
|
|
138
210
|
{ class: 'cg-collection__items', 'data-count': String(entries.length) },
|
|
139
|
-
|
|
211
|
+
positions
|
|
212
|
+
? entries.map((entry) => renderPosition(entry, ctx, entryTag))
|
|
213
|
+
: entries.map((entry, index) => renderEntry(entry, index, ctx, entryTag)),
|
|
140
214
|
)
|
|
141
215
|
|
|
142
216
|
return section(
|
|
143
217
|
'section',
|
|
144
218
|
'collectionList',
|
|
145
219
|
'cg-collection',
|
|
146
|
-
{ 'data-layout': block.layout },
|
|
220
|
+
{ 'data-layout': block.layout, 'data-shape': positions ? 'positions' : 'editorial' },
|
|
147
221
|
'div',
|
|
148
222
|
hasTitle
|
|
149
223
|
? h(
|
|
@@ -33,7 +33,12 @@ function renderItem(item: LogoItem, ctx: RenderContext): HtmlElement {
|
|
|
33
33
|
? logo
|
|
34
34
|
: h(
|
|
35
35
|
'a',
|
|
36
|
-
{
|
|
36
|
+
{
|
|
37
|
+
class: 'cg-clients__link',
|
|
38
|
+
href: ctx.link(item.url),
|
|
39
|
+
'aria-label': item.name,
|
|
40
|
+
rel: 'noopener noreferrer',
|
|
41
|
+
},
|
|
37
42
|
logo,
|
|
38
43
|
),
|
|
39
44
|
)
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { interpolate, themeLocaleFor } from '@cogenta/theme-kit'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The one word a list of open positions needs that the shared vocabulary
|
|
5
|
+
* does not.
|
|
6
|
+
*
|
|
7
|
+
* `@cogenta/theme-kit`'s `THEME_STRINGS` carries the strings every theme's
|
|
8
|
+
* blocks share; this belongs to one register (a careers listing), so it
|
|
9
|
+
* lives with the theme that draws it, in the two languages the shared table
|
|
10
|
+
* knows. A locale the table does not know reads English, the same rule
|
|
11
|
+
* `createThemeTranslator` follows.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
type CollectionStringKey = 'apply'
|
|
15
|
+
|
|
16
|
+
const STRINGS: Readonly<Record<'en' | 'fr', Readonly<Record<CollectionStringKey, string>>>> = {
|
|
17
|
+
en: {
|
|
18
|
+
apply: 'Apply',
|
|
19
|
+
},
|
|
20
|
+
fr: {
|
|
21
|
+
apply: 'Postuler',
|
|
22
|
+
},
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export function collectionString(
|
|
26
|
+
locale: string,
|
|
27
|
+
key: CollectionStringKey,
|
|
28
|
+
values?: Readonly<Record<string, string | number>>,
|
|
29
|
+
): string {
|
|
30
|
+
return interpolate(STRINGS[themeLocaleFor(locale)][key], values)
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export type { CollectionStringKey }
|
package/src/styles/blocks.css
CHANGED
|
@@ -670,6 +670,18 @@
|
|
|
670
670
|
color: var(--cg-ink-muted);
|
|
671
671
|
}
|
|
672
672
|
|
|
673
|
+
/* A case study's credit line: whose result this was, read from the entry's
|
|
674
|
+
own client/location fields rather than left to the summary's prose. */
|
|
675
|
+
.cg-entry__attribution {
|
|
676
|
+
margin: var(--cg-s2) 0 0;
|
|
677
|
+
font-family: var(--cg-font-label);
|
|
678
|
+
font-size: var(--cg-text-xs);
|
|
679
|
+
font-weight: var(--cg-weight-medium);
|
|
680
|
+
letter-spacing: var(--cg-tracking-label);
|
|
681
|
+
text-transform: uppercase;
|
|
682
|
+
color: var(--cg-ink-subtle);
|
|
683
|
+
}
|
|
684
|
+
|
|
673
685
|
/* The arrow sits after the title's last word, inside the same link. As an
|
|
674
686
|
inline-block it does not inherit the title's underline. */
|
|
675
687
|
.cg-entry__arrow {
|
|
@@ -698,6 +710,113 @@
|
|
|
698
710
|
color: var(--cg-ink-muted);
|
|
699
711
|
}
|
|
700
712
|
|
|
713
|
+
/* --------------------------------------------------------------------------
|
|
714
|
+
collectionList, positions: a careers listing.
|
|
715
|
+
|
|
716
|
+
A job has no photograph and nothing an ordinal number or a key figure
|
|
717
|
+
would mean, so it never borrows the editorial card: the layout an editor
|
|
718
|
+
chose still picks `list`/`grid`/`carousel` elsewhere in the vocabulary,
|
|
719
|
+
but a list of openings reads as a plain vertical list regardless — a
|
|
720
|
+
photo grid or a row that scrolls sideways serves a case study, not a
|
|
721
|
+
reader comparing which role to apply to.
|
|
722
|
+
-------------------------------------------------------------------------- */
|
|
723
|
+
|
|
724
|
+
.cg-collection[data-shape="positions"] .cg-collection__items {
|
|
725
|
+
display: flex;
|
|
726
|
+
flex-direction: column;
|
|
727
|
+
gap: 0;
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
.cg-collection[data-shape="positions"] .cg-collection__viewport {
|
|
731
|
+
overflow: visible;
|
|
732
|
+
scroll-snap-type: none;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
.cg-position {
|
|
736
|
+
padding-block: var(--cg-s6);
|
|
737
|
+
border-block-end: var(--cg-rule) solid var(--cg-line);
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
.cg-position:first-child {
|
|
741
|
+
padding-block-start: 0;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
.cg-position__title {
|
|
745
|
+
font-size: var(--cg-text-xl);
|
|
746
|
+
line-height: 1.18;
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
.cg-position__link {
|
|
750
|
+
color: var(--cg-ink);
|
|
751
|
+
text-decoration-line: underline;
|
|
752
|
+
text-decoration-thickness: var(--cg-rule);
|
|
753
|
+
text-decoration-color: transparent;
|
|
754
|
+
text-underline-offset: 0.18em;
|
|
755
|
+
transition: text-decoration-color var(--cg-duration) var(--cg-ease);
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
.cg-position:hover .cg-position__link,
|
|
759
|
+
.cg-position__link:focus-visible {
|
|
760
|
+
text-decoration-color: currentColor;
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
.cg-position__meta {
|
|
764
|
+
margin: var(--cg-s2) 0 0;
|
|
765
|
+
font-family: var(--cg-font-label);
|
|
766
|
+
font-size: var(--cg-text-xs);
|
|
767
|
+
font-weight: var(--cg-weight-medium);
|
|
768
|
+
letter-spacing: var(--cg-tracking-label);
|
|
769
|
+
text-transform: uppercase;
|
|
770
|
+
font-variant-numeric: lining-nums tabular-nums;
|
|
771
|
+
color: var(--cg-ink-subtle);
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
.cg-position__summary {
|
|
775
|
+
margin: var(--cg-s3) 0 0;
|
|
776
|
+
max-inline-size: 60ch;
|
|
777
|
+
color: var(--cg-ink-muted);
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
.cg-position__apply {
|
|
781
|
+
display: inline-flex;
|
|
782
|
+
align-items: center;
|
|
783
|
+
gap: 0.35em;
|
|
784
|
+
margin: var(--cg-s4) 0 0;
|
|
785
|
+
color: var(--cg-accent);
|
|
786
|
+
font-family: var(--cg-font-label);
|
|
787
|
+
font-size: var(--cg-text-xs);
|
|
788
|
+
font-weight: var(--cg-weight-medium);
|
|
789
|
+
letter-spacing: var(--cg-tracking-label);
|
|
790
|
+
text-transform: uppercase;
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
.cg-position__arrow {
|
|
794
|
+
display: inline-block;
|
|
795
|
+
font-size: 0.85em;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
@media (min-width: 48rem) {
|
|
799
|
+
.cg-position {
|
|
800
|
+
display: grid;
|
|
801
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
802
|
+
column-gap: var(--cg-col-gap);
|
|
803
|
+
align-items: start;
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
.cg-position__title,
|
|
807
|
+
.cg-position__meta,
|
|
808
|
+
.cg-position__summary {
|
|
809
|
+
grid-column: 1;
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
.cg-position__apply {
|
|
813
|
+
grid-column: 2;
|
|
814
|
+
grid-row: 1;
|
|
815
|
+
margin-block-start: 0.3em;
|
|
816
|
+
white-space: nowrap;
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
|
|
701
820
|
/* list: alternating case-study rows. */
|
|
702
821
|
.cg-collection[data-layout="list"] .cg-collection__items {
|
|
703
822
|
display: grid;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* The web fonts of `@cogenta/theme-entreprise`, 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/entreprise/<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: 'Geist';
|
|
17
|
+
font-style: normal;
|
|
18
|
+
font-weight: 300 700;
|
|
19
|
+
font-display: swap;
|
|
20
|
+
src: url(/_cogenta/fonts/entreprise/geist-normal-latin-ext-824f485b.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: 'Geist';
|
|
26
|
+
font-style: normal;
|
|
27
|
+
font-weight: 300 700;
|
|
28
|
+
font-display: swap;
|
|
29
|
+
src: url(/_cogenta/fonts/entreprise/geist-normal-latin-19f9c925.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: 'Geist Mono';
|
|
35
|
+
font-style: normal;
|
|
36
|
+
font-weight: 400 600;
|
|
37
|
+
font-display: swap;
|
|
38
|
+
src: url(/_cogenta/fonts/entreprise/geist-mono-normal-latin-ext-1a189eb9.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: 'Geist Mono';
|
|
44
|
+
font-style: normal;
|
|
45
|
+
font-weight: 400 600;
|
|
46
|
+
font-display: swap;
|
|
47
|
+
src: url(/_cogenta/fonts/entreprise/geist-mono-normal-latin-684ad5b5.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
|
+
}
|
package/src/styles/theme.css
CHANGED
|
@@ -12,16 +12,16 @@
|
|
|
12
12
|
* Not one colour is written literally in any of them: every value comes from
|
|
13
13
|
* a skin token or from a `--cg-*` property composed from those.
|
|
14
14
|
*
|
|
15
|
-
* The one thing this file adds on its own is the
|
|
15
|
+
* The one thing this file adds on its own is the self-hosted `fonts.css` faces for the
|
|
16
16
|
* two families `tokens.json` names: Geist (display, headings, text and
|
|
17
17
|
* interface, on one variable weight axis) and Geist Mono (labels, indices,
|
|
18
18
|
* figures and captions, the register of an engineering document). A skin only
|
|
19
19
|
* names a family; it never fetches one. Both fall back to real system stacks
|
|
20
|
-
* if
|
|
21
|
-
* they load. `cogenta serve`
|
|
20
|
+
* if a face fails to load, and `display=swap` keeps text visible while
|
|
21
|
+
* they load. `cogenta serve` serves the faces itself, from `/_cogenta/fonts/`.
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
|
-
@import
|
|
24
|
+
@import "./fonts.css";
|
|
25
25
|
|
|
26
26
|
@import "./tokens.css";
|
|
27
27
|
@import "./base.css";
|