@5cover/lectern 0.1.0 → 0.2.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.
Files changed (42) hide show
  1. package/README.md +1 -1
  2. package/dist/cli/index.js +7 -1
  3. package/dist/cli/index.js.map +1 -1
  4. package/dist/client/entry.js +119 -0
  5. package/dist/client/entry.js.map +1 -0
  6. package/dist/client/graph-CUYNIBIQ.js +407 -0
  7. package/dist/client/graph-CUYNIBIQ.js.map +1 -0
  8. package/dist/index.js +3 -4
  9. package/dist/index.js.map +1 -1
  10. package/package.json +4 -5
  11. package/src/cli/build.ts +0 -79
  12. package/src/cli/dev.ts +0 -58
  13. package/src/cli/index.ts +0 -126
  14. package/src/cli/paths.ts +0 -81
  15. package/src/cli/pdf.ts +0 -70
  16. package/src/cli/render.ts +0 -40
  17. package/src/cli/rules.ts +0 -31
  18. package/src/cli/serve.ts +0 -112
  19. package/src/client/entry.ts +0 -170
  20. package/src/client/graph.tsx +0 -207
  21. package/src/components/Deck.tsx +0 -19
  22. package/src/components/InfographDiscovery.tsx +0 -51
  23. package/src/components/layout.tsx +0 -145
  24. package/src/components/mechanics.tsx +0 -74
  25. package/src/components/util.ts +0 -12
  26. package/src/index.ts +0 -37
  27. package/src/infographDiscovery.ts +0 -188
  28. package/src/infographDiscoveryView.tsx +0 -202
  29. package/src/jsx-runtime.ts +0 -4
  30. package/src/profiles/engie/assets/engie-logo-dark.svg +0 -1
  31. package/src/profiles/engie/assets/engie-logo-white.svg +0 -6
  32. package/src/profiles/engie/assets.d.ts +0 -4
  33. package/src/profiles/engie/atoms.tsx +0 -203
  34. package/src/profiles/engie/index.ts +0 -44
  35. package/src/profiles/engie/profile.ts +0 -132
  36. package/src/profiles/engie/slides.tsx +0 -230
  37. package/src/profiles/index.ts +0 -30
  38. package/src/profiles/types.ts +0 -49
  39. package/src/render/renderDeck.tsx +0 -74
  40. package/src/render/template.ts +0 -68
  41. package/src/types.ts +0 -53
  42. /package/{src → dist}/profiles/engie/engie.css +0 -0
@@ -1,202 +0,0 @@
1
- import type { ComponentChildren } from 'preact'
2
- import type {
3
- DiscoveryClaim,
4
- DiscoveryEdge,
5
- DiscoveryNode,
6
- DiscoveryPayload,
7
- DiscoveryReason,
8
- DiscoverySelection,
9
- } from './infographDiscovery'
10
- import { searchLabel } from './infographDiscovery'
11
-
12
- export interface InfographDiscoveryDetailsProps {
13
- payload: DiscoveryPayload
14
- selection: DiscoverySelection
15
- searchId: string
16
- onSearch?: (value: string) => void
17
- }
18
-
19
- export function InfographDiscoveryDetails({ payload, selection, searchId, onSearch }: InfographDiscoveryDetailsProps) {
20
- const nodes = new Map(payload.nodes.map(node => [node.key, node]))
21
- const edges = new Map(payload.edges.map(edge => [edge.key, edge]))
22
- const selected = selection.type === 'node' ? nodes.get(selection.key) : edges.get(selection.key)
23
- return (
24
- <>
25
- <Search payload={payload} id={searchId} onSearch={onSearch} />
26
- <div class="lectern-infograph-details">
27
- {selection.type === 'node' ? (
28
- <NodeDetails node={selected as DiscoveryNode | undefined} />
29
- ) : (
30
- <EdgeDetails edge={selected as DiscoveryEdge | undefined} nodes={nodes} />
31
- )}
32
- </div>
33
- </>
34
- )
35
- }
36
-
37
- function Search({
38
- payload,
39
- id,
40
- onSearch,
41
- }: {
42
- payload: DiscoveryPayload
43
- id: string
44
- onSearch?: (value: string) => void
45
- }) {
46
- const listId = `${id}-options`
47
- return (
48
- <div class="lectern-infograph-search-slot">
49
- <label class="lectern-infograph-discovery-search-label" for={id}>
50
- Accéder à un nœud
51
- </label>
52
- <input
53
- class="lectern-infograph-discovery-search"
54
- id={id}
55
- type="search"
56
- list={listId}
57
- placeholder="Rechercher un projet, un outil, un acteur…"
58
- onChange={event => onSearch?.((event.currentTarget as HTMLInputElement).value)}
59
- />
60
- <datalist id={listId}>
61
- {payload.nodes
62
- .slice()
63
- .sort((left, right) => left.title.localeCompare(right.title) || left.key.localeCompare(right.key))
64
- .map(node => (
65
- <option value={searchLabel(node)} />
66
- ))}
67
- </datalist>
68
- </div>
69
- )
70
- }
71
-
72
- function NodeDetails({ node }: { node?: DiscoveryNode }) {
73
- if (!node) return <p class="lectern-infograph-empty">Nœud introuvable.</p>
74
- return (
75
- <div class="lectern-infograph-detail">
76
- <div style="gap:1em;display:flex;justify-content:space-between;align-items:center">
77
- <span class="lectern-infograph-kind">{node.kind}</span>
78
- <span style="text-align:center;">{node.title}</span>
79
- <span class="lectern-infograph-key" style="text-align:right">
80
- {node.key}
81
- </span>
82
- </div>
83
- {node.summary ? <p class="lectern-infograph-summary">{node.summary}</p> : null}
84
- <Metadata value={node} />
85
- <Claims claims={node.claim} />
86
- <Sources sources={node.source} />
87
- </div>
88
- )
89
- }
90
-
91
- function EdgeDetails({ edge, nodes }: { edge?: DiscoveryEdge; nodes: Map<string, DiscoveryNode> }) {
92
- if (!edge) return <p class="lectern-infograph-empty">Relation introuvable.</p>
93
- return (
94
- <div class="lectern-infograph-detail">
95
- <div style="gap:1em;display:flex;justify-content:space-between;align-items:center">
96
- <span>
97
- {nodes.get(edge.from)?.title} <span style="font-weight:bold">{edge.verb}</span> {nodes.get(edge.to)?.title}
98
- </span>
99
- <span class="lectern-infograph-key" style="text-align:right">
100
- {edge.key}
101
- </span>
102
- </div>
103
- <Metadata value={edge} />
104
- <Claims claims={edge.claim} />
105
- </div>
106
- )
107
- }
108
-
109
- type MetadataValue = {
110
- date?: { from: string; to: string }
111
- tag?: string[]
112
- importance?: DiscoveryReason
113
- complexity: DiscoveryReason
114
- technicality?: DiscoveryReason
115
- }
116
-
117
- function Metadata({ value }: { value: MetadataValue }) {
118
- const period =
119
- value.date &&
120
- (value.date.from === value.date.to ? (
121
- value.date.from
122
- ) : (
123
- <>
124
- {value.date.from} &ndash; {value.date.to}
125
- </>
126
- ))
127
- return (
128
- <dl class="lectern-infograph-metadata">
129
- {period ? <MetadataRow label="Période">{period}</MetadataRow> : null}
130
- <Reason label="Complexité" value={value.complexity} />
131
- {value.importance ? <Reason label="Importance" value={value.importance} /> : null}
132
- {value.technicality ? <Reason label="Technicité" value={value.technicality} /> : null}
133
- {value.tag?.length ? <MetadataRow label="Tags">{value.tag.join(' ')}</MetadataRow> : null}
134
- </dl>
135
- )
136
- }
137
-
138
- function MetadataRow({ label, children }: { label: string; children: ComponentChildren }) {
139
- return (
140
- <div>
141
- <dt>{label}</dt>
142
- <dd>{children}</dd>
143
- </div>
144
- )
145
- }
146
-
147
- function Reason({ label, value }: { label: string; value: DiscoveryReason }) {
148
- return (
149
- <MetadataRow label={label}>
150
- <strong>{value.is}</strong>
151
- <FlexList onePrefix=" : " of={value.why}></FlexList>
152
- </MetadataRow>
153
- )
154
- }
155
-
156
- function Claims({ claims }: { claims?: DiscoveryClaim[] }) {
157
- if (!claims?.length) return null
158
- return (
159
- <div class="lectern-infograph-section" aria-label="Claims">
160
- <h4>Claims</h4>
161
- <FlexList
162
- of={claims.map(claim => (
163
- <>
164
- <strong>{claim.type}</strong> : {claim.content}
165
- </>
166
- ))}
167
- />
168
- </div>
169
- )
170
- }
171
-
172
- function Sources({ sources }: { sources?: DiscoveryReason[] }) {
173
- if (!sources?.length) return null
174
- return (
175
- <div class="lectern-infograph-section" aria-label="Sources">
176
- <h4>Sources</h4>
177
- <FlexList
178
- of={sources.map(source => (
179
- <>
180
- <strong>{source.is}</strong>
181
- <FlexList onePrefix=" : " of={source.why} />
182
- </>
183
- ))}
184
- />
185
- </div>
186
- )
187
- }
188
-
189
- function FlexList({ of, onePrefix = null }: { of: ComponentChildren[]; onePrefix?: ComponentChildren }) {
190
- return of.length > 1 ? (
191
- <ul class="lectern-infograph-reason">
192
- {of.map(it => (
193
- <li>{it}</li>
194
- ))}
195
- </ul>
196
- ) : of[0] ? (
197
- <>
198
- {onePrefix}
199
- {of[0]}
200
- </>
201
- ) : null
202
- }
@@ -1,4 +0,0 @@
1
- // Lectern owns the automatic JSX runtime used by decks. Re-exporting Preact's
2
- // JSX namespace is required for TypeScript to type intrinsic elements.
3
- export { Fragment, jsx, jsx as jsxDEV, jsxs } from 'preact/jsx-runtime'
4
- export type { JSX } from 'preact/jsx-runtime'
@@ -1 +0,0 @@
1
- <svg viewBox="0 0 1077 389" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" stroke-linejoin="round" stroke-miterlimit="2" fill-rule="evenodd" clip-rule="evenodd" xml:space="preserve" overflow="hidden"><g transform="matrix(4.16667 0 0 4.16667 232.582 292.07)"><path d="M0 4.359C2.074-11.486-4.697-22.128-25.432-22.128-41.398-22.128-51.591-14.653-51.591 0.368-51.591 24.373-22.203 26.487-2.255 20.119L-3.985 12.275C-7.067 13.33-35.678 19.113-39.901 4.359L0 4.359ZM-39.902-3.911C-39.902-9.784-33.874-14.123-25.16-14.123-16.543-14.123-10.822-9.784-10.822-3.911L-39.902-3.911Z" fill="#007BC5" fill-rule="nonzero"/></g><g transform="matrix(4.16667 0 0 4.16667 431.384 271.464)"><path d="M0 10.872 0-16.152 10.827-16.152 10.827 27.024 1.222 27.018-28.476-1.208-28.469 27.024-39.297 27.024-39.297-16.152-28.469-16.152 0 10.872Z" fill="#007BC5" fill-rule="nonzero"/></g><g transform="matrix(4.16667 0 0 4.16667 713.267 342.5)"><path d="M0-23.269C-31.696-30.496-37.492-23.042-37.492-11.658-37.492-2.06-29.301 4.104-7.469 1.657L-7.469-7.727-23.606-7.727-23.606-16.029 3.308-16.029 3.308 0.108C3.308 4.086 1.521 6.471-1.236 7.959-5.527 10.276-11.778 10.963-19.608 10.963-35.769 10.963-48.832 3.489-48.832-11.658-48.832-25.09-39.924-34.232-21.491-34.232-12.596-34.232-6.106-33.067 0.003-31.387L0-23.269Z" fill="#007BC5" fill-rule="nonzero"/></g><g transform="matrix(-4.16667 0 0 4.16667 2063.39 -2863.97)"><rect x="301.364" y="747.826" width="10.854" height="31.701" fill="#007BC5"/></g><g transform="matrix(-4.16667 0 0 4.16667 2063.39 -3058.99)"><rect x="301.364" y="783.148" width="10.854" height="7.862" fill="#007BC5"/></g><g transform="matrix(4.16667 0 0 4.16667 1057.03 292.07)"><path d="M0 4.359C2.074-11.486-4.697-22.128-25.432-22.128-41.398-22.128-51.591-14.653-51.591 0.368-51.591 24.373-22.203 26.487-2.255 20.119L-3.985 12.275C-7.067 13.33-35.678 19.113-39.901 4.359L0 4.359ZM-39.902-3.911C-39.902-9.784-33.874-14.123-25.16-14.123-16.543-14.123-10.822-9.784-10.822-3.911L-39.902-3.911Z" fill="#007BC5" fill-rule="nonzero"/></g><g transform="matrix(0 -4.16667 -4.16667 0 616.106 -460.031)"><path d="M-147.865-110.407C-124.55-75.799-110.407-30.658-110.407 18.729-110.407 68.115-124.55 113.257-147.865 147.865-136.316 113.448-128.606 73.205-128.606 18.729-128.606-35.748-136.316-75.99-147.865-110.407" fill="#007BC5"/></g></svg>
@@ -1,6 +0,0 @@
1
- <svg viewBox="0 0 1077 389" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" stroke-linejoin="round" stroke-miterlimit="2" fill-rule="evenodd" clip-rule="evenodd" xml:space="preserve" overflow="hidden"><style>
2
- .MsftOfcThm_Text1_Fill_v2 {
3
- fill:#FFFFFF;
4
- }
5
- </style>
6
- <g transform="matrix(4.16667 0 0 4.16667 232.582 292.07)"><path d="M0 4.359C2.074-11.486-4.697-22.128-25.432-22.128-41.398-22.128-51.591-14.653-51.591 0.368-51.591 24.373-22.203 26.487-2.255 20.119L-3.985 12.275C-7.067 13.33-35.678 19.113-39.901 4.359L0 4.359ZM-39.902-3.911C-39.902-9.784-33.874-14.123-25.16-14.123-16.543-14.123-10.822-9.784-10.822-3.911L-39.902-3.911Z" class="MsftOfcThm_Text1_Fill_v2" fill="#FFFFFF" fill-rule="nonzero"/></g><g transform="matrix(4.16667 0 0 4.16667 431.384 271.464)"><path d="M0 10.872 0-16.152 10.827-16.152 10.827 27.024 1.222 27.018-28.476-1.208-28.469 27.024-39.297 27.024-39.297-16.152-28.469-16.152 0 10.872Z" class="MsftOfcThm_Text1_Fill_v2" fill="#FFFFFF" fill-rule="nonzero"/></g><g transform="matrix(4.16667 0 0 4.16667 713.267 342.5)"><path d="M0-23.269C-31.696-30.496-37.492-23.042-37.492-11.658-37.492-2.06-29.301 4.104-7.469 1.657L-7.469-7.727-23.606-7.727-23.606-16.029 3.308-16.029 3.308 0.108C3.308 4.086 1.521 6.471-1.236 7.959-5.527 10.276-11.778 10.963-19.608 10.963-35.769 10.963-48.832 3.489-48.832-11.658-48.832-25.09-39.924-34.232-21.491-34.232-12.596-34.232-6.106-33.067 0.003-31.387L0-23.269Z" class="MsftOfcThm_Text1_Fill_v2" fill="#FFFFFF" fill-rule="nonzero"/></g><g transform="matrix(-4.16667 0 0 4.16667 2063.39 -2863.97)"><rect x="301.364" y="747.826" width="10.854" height="31.701" class="MsftOfcThm_Text1_Fill_v2" fill="#FFFFFF"/></g><g transform="matrix(-4.16667 0 0 4.16667 2063.39 -3058.99)"><rect x="301.364" y="783.148" width="10.854" height="7.862" class="MsftOfcThm_Text1_Fill_v2" fill="#FFFFFF"/></g><g transform="matrix(4.16667 0 0 4.16667 1057.03 292.07)"><path d="M0 4.359C2.074-11.486-4.697-22.128-25.432-22.128-41.398-22.128-51.591-14.653-51.591 0.368-51.591 24.373-22.203 26.487-2.255 20.119L-3.985 12.275C-7.067 13.33-35.678 19.113-39.901 4.359L0 4.359ZM-39.902-3.911C-39.902-9.784-33.874-14.123-25.16-14.123-16.543-14.123-10.822-9.784-10.822-3.911L-39.902-3.911Z" class="MsftOfcThm_Text1_Fill_v2" fill="#FFFFFF" fill-rule="nonzero"/></g><g transform="matrix(0 -4.16667 -4.16667 0 616.106 -460.031)"><path d="M-147.865-110.407C-124.55-75.799-110.407-30.658-110.407 18.729-110.407 68.115-124.55 113.257-147.865 147.865-136.316 113.448-128.606 73.205-128.606 18.729-128.606-35.748-136.316-75.99-147.865-110.407" class="MsftOfcThm_Text1_Fill_v2" fill="#FFFFFF"/></g></svg>
@@ -1,4 +0,0 @@
1
- declare module '*.svg' {
2
- const source: string
3
- export default source
4
- }
@@ -1,203 +0,0 @@
1
- import type { ComponentChildren } from 'preact'
2
- import type { StyleEscapeHatch } from '../../types'
3
- import { cx } from '../../components/util'
4
-
5
- /*
6
- * ENGIE content atoms — opinionated, styled to the ENGIE house style. A
7
- * different profile might structure these differently (hence not in the core).
8
- */
9
-
10
- /** Bulleted or numbered list. */
11
- export interface BulletsProps extends StyleEscapeHatch {
12
- items: ComponentChildren[]
13
- ordered?: boolean
14
- /** Reveal each item incrementally as a reveal.js fragment. */
15
- incremental?: boolean
16
- }
17
-
18
- export function Bullets({ items, ordered, incremental, class: cls, style }: BulletsProps) {
19
- const List = ordered ? 'ol' : 'ul'
20
- return (
21
- <List class={cx('lectern-bullets', cls)} style={style}>
22
- {items.map(item => (
23
- <li class={cx(incremental && 'fragment')}>{item}</li>
24
- ))}
25
- </List>
26
- )
27
- }
28
-
29
- /** Incremental list — sugar for `<Bullets incremental>`. */
30
- export function Steps(props: Omit<BulletsProps, 'incremental'>) {
31
- return <Bullets {...props} incremental />
32
- }
33
-
34
- export interface StarItemProps extends StyleEscapeHatch {
35
- /** Optional short qualifier shown after the STAR label. */
36
- title?: ComponentChildren
37
- children: ComponentChildren
38
- }
39
-
40
- type StarKind = 'situation' | 'task' | 'action' | 'result'
41
-
42
- function StarItem({
43
- kind,
44
- badge,
45
- label,
46
- title,
47
- children,
48
- class: cls,
49
- style,
50
- }: StarItemProps & { kind: StarKind; badge: string; label: string }) {
51
- return (
52
- <div class={cx('lectern-star-item', `is-${kind}`, cls)} style={style}>
53
- <span class="lectern-star-badge" aria-hidden="true">
54
- {badge}
55
- </span>
56
- <div class="lectern-star-copy">
57
- <p class="lectern-star-label">
58
- {label}
59
- {title ? <> : {title}</> : null}
60
- </p>
61
- <div class="lectern-star-body">{children}</div>
62
- </div>
63
- </div>
64
- )
65
- }
66
-
67
- /** STAR stages. Use directly in the normal slide flow, without a parent wrapper. */
68
- export const Star = {
69
- Situation: (props: StarItemProps) => <StarItem {...props} kind="situation" badge="S" label="Situation" />,
70
- Task: (props: StarItemProps) => <StarItem {...props} kind="task" badge="T" label="Tâche" />,
71
- Action: (props: StarItemProps) => <StarItem {...props} kind="action" badge="A" label="Action" />,
72
- Result: (props: StarItemProps) => <StarItem {...props} kind="result" badge="R" label="Résultat" />,
73
- }
74
-
75
- /** Editorial SWOT matrix with four contextual quadrants around the S/W/O/T marker. */
76
- export interface SwotProps extends StyleEscapeHatch {
77
- strengths: ComponentChildren
78
- weaknesses: ComponentChildren
79
- opportunities: ComponentChildren
80
- threats: ComponentChildren
81
- }
82
-
83
- export function Swot({ strengths, weaknesses, opportunities, threats, class: cls, style }: SwotProps) {
84
- return (
85
- <div class={cx('lectern-swot', cls)} style={style}>
86
- <div class="lectern-swot-cell is-strengths">
87
- <h3 class="lectern-swot-title">Forces</h3>
88
- <div class="lectern-swot-reasons">{strengths}</div>
89
- </div>
90
- <div class="lectern-swot-cell is-weaknesses">
91
- <h3 class="lectern-swot-title">Faiblesses</h3>
92
- <div class="lectern-swot-reasons">{weaknesses}</div>
93
- </div>
94
- <div class="lectern-swot-cell is-opportunities">
95
- <h3 class="lectern-swot-title">Opportunités</h3>
96
- <div class="lectern-swot-reasons">{opportunities}</div>
97
- </div>
98
- <div class="lectern-swot-cell is-threats">
99
- <h3 class="lectern-swot-title">Menaces</h3>
100
- <div class="lectern-swot-reasons">{threats}</div>
101
- </div>
102
- <div class="lectern-swot-center" aria-hidden="true">
103
- <span>S</span>
104
- <span>W</span>
105
- <span>O</span>
106
- <span>T</span>
107
- </div>
108
- </div>
109
- )
110
- }
111
-
112
- /** KPI card: a large navy figure with a short label (ENGIE "9-10 Md€" style). */
113
- export interface MetricProps extends StyleEscapeHatch {
114
- value: ComponentChildren
115
- label: ComponentChildren
116
- /** Optional trend/delta text, e.g. "+12%". */
117
- trend?: ComponentChildren
118
- tone?: 'positive' | 'negative' | 'neutral'
119
- }
120
-
121
- export function Metric({ value, label, trend, tone = 'neutral', class: cls, style }: MetricProps) {
122
- return (
123
- <div class={cx('lectern-metric', cls)} style={style}>
124
- <div class="lectern-metric-value">{value}</div>
125
- <div class="lectern-metric-label">{label}</div>
126
- {trend ? <div class={cx('lectern-metric-trend', `is-${tone}`)}>{trend}</div> : null}
127
- </div>
128
- )
129
- }
130
-
131
- /** Compact identity card for a person collaborating on the work presented. */
132
- export interface CollaboratorProps extends StyleEscapeHatch {
133
- name: ComponentChildren
134
- role: ComponentChildren
135
- portrait: string
136
- }
137
-
138
- export function Collaborator({ name, role, portrait, class: cls, style }: CollaboratorProps) {
139
- return (
140
- <div class={cx('lectern-collaborator', cls)} style={style}>
141
- <img src={portrait} alt={`Portrait de ${typeof name === 'string' ? name : ''}`} />
142
- <div>
143
- <strong class="lectern-collaborator-name">{name}</strong>
144
- <span class="lectern-collaborator-role">{role}</span>
145
- </div>
146
- </div>
147
- )
148
- }
149
-
150
- /**
151
- * Opinionated **horizontal** timeline: milestones laid out left→right along a
152
- * rule, each with a date, title and optional description below the node.
153
- */
154
- export interface TimelineItem {
155
- date: ComponentChildren
156
- title: ComponentChildren
157
- description?: ComponentChildren
158
- }
159
-
160
- export interface TimelineProps extends StyleEscapeHatch {
161
- items: TimelineItem[]
162
- /** Reveal milestones one by one. */
163
- incremental?: boolean
164
- }
165
-
166
- export function Timeline({ items, incremental, class: cls, style }: TimelineProps) {
167
- return (
168
- <ol class={cx('lectern-timeline', cls)} style={style}>
169
- {items.map(it => (
170
- <li class={cx('lectern-timeline-item', incremental && 'fragment')}>
171
- <span class="lectern-timeline-dot" aria-hidden="true" />
172
- <span class="lectern-timeline-date">{it.date}</span>
173
- <span class="lectern-timeline-title">{it.title}</span>
174
- {it.description ? <span class="lectern-timeline-desc">{it.description}</span> : null}
175
- </li>
176
- ))}
177
- </ol>
178
- )
179
- }
180
-
181
- /** Pull quote with optional attribution. */
182
- export interface QuoteProps extends StyleEscapeHatch {
183
- children: ComponentChildren
184
- cite?: ComponentChildren
185
- }
186
-
187
- export function Quote({ children, cite, class: cls, style }: QuoteProps) {
188
- return (
189
- <blockquote class={cx('lectern-quote', cls)} style={style}>
190
- <p class="lectern-quote-text">{children}</p>
191
- {cite ? <footer class="lectern-quote-cite">— {cite}</footer> : null}
192
- </blockquote>
193
- )
194
- }
195
-
196
- /** A larger lead paragraph for emphasis. */
197
- export function Lead({ children, class: cls, style }: { children: ComponentChildren } & StyleEscapeHatch) {
198
- return (
199
- <p class={cx('lectern-lead', cls)} style={style}>
200
- {children}
201
- </p>
202
- )
203
- }
@@ -1,44 +0,0 @@
1
- // The ENGIE authoring surface. Import everything you need for an ENGIE deck
2
- // from here (`@5cover/lectern/engie`); neutral primitives come from `@5cover/lectern`.
3
- //
4
- // import { Deck, TitleSlide, Slide, Metric } from '@5cover/lectern/engie'
5
- // import { Columns, Code, Mermaid } from '@5cover/lectern'
6
-
7
- import { h } from 'preact'
8
- import { Deck as CoreDeck } from '../../components/Deck'
9
- import type { DeckProps } from '../../types'
10
- import { engie } from './profile'
11
-
12
- /**
13
- * ENGIE-bound deck root: pins the ENGIE profile so it never needs restating.
14
- * Returns a core `<Deck>` vnode (not a Fragment) so the renderer recognises it.
15
- */
16
- export function Deck(props: DeckProps) {
17
- return h(CoreDeck, { profile: engie, ...props })
18
- }
19
- export { isDeck } from '../../components/Deck'
20
-
21
- export { TitleSlide, SectionSlide, Slide, Summary } from './slides'
22
- export type {
23
- SlideProps,
24
- TitleSlideProps,
25
- SectionSlideProps,
26
- SummaryProps,
27
- SummaryItem,
28
- Confidentiality,
29
- } from './slides'
30
-
31
- export { Bullets, Steps, Star, Swot, Metric, Collaborator, Timeline, Quote, Lead } from './atoms'
32
- export type {
33
- BulletsProps,
34
- StarItemProps,
35
- SwotProps,
36
- MetricProps,
37
- CollaboratorProps,
38
- TimelineProps,
39
- TimelineItem,
40
- QuoteProps,
41
- } from './atoms'
42
-
43
- // The profile metadata (rules / reveal config / label).
44
- export { engie } from './profile'
@@ -1,132 +0,0 @@
1
- import type { Profile } from '../types'
2
-
3
- /**
4
- * ENGIE / Fluid profile — derived from the official "ENGIE PowerPoint Template".
5
- * Look lives in `engie.css` (Fluid + the template layer). This module holds
6
- * the Node-safe data: stylesheet, reveal defaults and the natural-language rulebook.
7
- */
8
- export const engie: Profile = {
9
- name: 'engie',
10
- label: 'ENGIE / Fluid',
11
- description:
12
- 'ENGIE corporate house style (Fluid design system): navy #17255F & ENGIE blue #007bc5, Fluid typography, 16:9.',
13
- stylesheet: '@5cover/lectern/engie.css',
14
- reveal: {
15
- // 16:9 design canvas. Reveal scales this scene to the available viewport
16
- // while preserving its proportions.
17
- width: 1280,
18
- height: 720,
19
- slideNumber: 'c/t',
20
- // Corporate decks are top-anchored (title at top, logo pinned to the corner),
21
- // not vertically centred — so disable reveal's vertical centering.
22
- center: false,
23
- margin: 0,
24
- },
25
- rules: [
26
- {
27
- title: 'Structure & titles',
28
- rules: [
29
- {
30
- id: 'presentation-title-lines',
31
- statement: 'The cover title fits in two or three lines maximum.',
32
- severity: 'should',
33
- },
34
- {
35
- id: 'slide-title-lines',
36
- statement: 'A slide title is two or three lines maximum — ideally one. The subtitle is one line maximum.',
37
- severity: 'should',
38
- },
39
- {
40
- id: 'two-title-levels',
41
- statement: 'Use a second title level (title + subtitle) only when it genuinely adds structure.',
42
- severity: 'advisory',
43
- },
44
- {
45
- id: 'chapters-numbered',
46
- statement:
47
- 'Introduce each chapter with a numbered section divider (01, 02, …); a Summary slide lists the chapters.',
48
- severity: 'should',
49
- },
50
- {
51
- id: 'one-idea-per-slide',
52
- statement: 'Prefer one message per slide; keep body copy concise.',
53
- severity: 'advisory',
54
- },
55
- ],
56
- },
57
- {
58
- title: 'Confidentiality & rights',
59
- rules: [
60
- {
61
- id: 'confidentiality-level',
62
- statement:
63
- 'Every deck declares a confidentiality level: Non-confidential, Confidential, or Strictly confidential.',
64
- severity: 'must',
65
- },
66
- {
67
- id: 'visual-rights',
68
- statement:
69
- 'Iconography and visuals are for internal use only — verify the rights of every visual you include.',
70
- severity: 'must',
71
- },
72
- ],
73
- },
74
- {
75
- title: 'Footer',
76
- rules: [
77
- {
78
- id: 'footer-format',
79
- statement: 'Footer format: "© ENGIE {year} - {presentation title} - {date} - {page}".',
80
- severity: 'should',
81
- },
82
- ],
83
- },
84
- {
85
- title: 'Colours',
86
- rules: [
87
- {
88
- id: 'primary-colours',
89
- statement: 'Primary palette: navy #17255F, ENGIE blue #007bc5, teal #00817d, purple #6c4796.',
90
- severity: 'should',
91
- },
92
- {
93
- id: 'accent-colours',
94
- statement: 'Accent palette: coral #eb5d40, magenta #e94287, yellow #f4c867 — use for emphasis, sparingly.',
95
- severity: 'advisory',
96
- },
97
- {
98
- id: 'secondary-colours',
99
- statement:
100
- 'Secondary palette: #e18554, #4bb0b9, #67ae6e, #278cbc. Tints at 50% and 20% are available for backgrounds.',
101
- severity: 'advisory',
102
- },
103
- ],
104
- },
105
- {
106
- title: 'Typography',
107
- rules: [
108
- {
109
- id: 'fonts',
110
- statement:
111
- 'Typography follows the Fluid design system (Lato, with system fallbacks); titles are bold, body is regular.',
112
- severity: 'should',
113
- },
114
- ],
115
- },
116
- {
117
- title: 'Format & figures',
118
- rules: [
119
- {
120
- id: 'aspect-ratio',
121
- statement: 'Slides are 16:9.',
122
- severity: 'must',
123
- },
124
- {
125
- id: 'kpi-style',
126
- statement: 'Highlight key figures as a large number with a short label (e.g. "9-10 Md€").',
127
- severity: 'advisory',
128
- },
129
- ],
130
- },
131
- ],
132
- }