@keystone-sites/marketing-design-system 1.0.26 → 2.0.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.
Files changed (204) hide show
  1. package/README.md +47 -67
  2. package/fonts/gt-america-300-italic.woff2 +0 -0
  3. package/fonts/gt-america-300.woff2 +0 -0
  4. package/fonts/gt-america-400-italic.woff2 +0 -0
  5. package/fonts/gt-america-400.woff2 +0 -0
  6. package/fonts/gt-america-500.woff2 +0 -0
  7. package/fonts/gt-america-extended-300.woff2 +0 -0
  8. package/fonts/gt-america-extended-400.woff2 +0 -0
  9. package/fonts/gt-america-extended-500.woff2 +0 -0
  10. package/fonts/gt-america-extended-700.woff2 +0 -0
  11. package/fonts/gt-america-mono-300.woff2 +0 -0
  12. package/fonts/gt-america-mono-500.woff2 +0 -0
  13. package/fonts/pp-kyoto-vf.woff2 +0 -0
  14. package/package.json +46 -203
  15. package/src/base.css +300 -0
  16. package/src/fonts.css +131 -0
  17. package/src/hue.ts +17 -0
  18. package/src/icon.tsx +56 -0
  19. package/src/mark.tsx +14 -0
  20. package/src/motion.ts +123 -0
  21. package/src/parts/chip.css +84 -0
  22. package/src/parts/chip.tsx +40 -0
  23. package/src/parts/composer.css +195 -0
  24. package/src/parts/composer.tsx +220 -0
  25. package/src/parts/cx.ts +2 -0
  26. package/src/parts/faq.css +77 -0
  27. package/src/parts/faq.tsx +25 -0
  28. package/src/parts/footer.css +51 -0
  29. package/src/parts/footer.tsx +27 -0
  30. package/src/parts/nav.css +180 -0
  31. package/src/parts/nav.tsx +101 -0
  32. package/src/parts/photo.css +15 -0
  33. package/src/parts/photo.tsx +24 -0
  34. package/src/parts/plans.css +89 -0
  35. package/src/parts/plans.tsx +56 -0
  36. package/src/parts/prose.css +86 -0
  37. package/src/parts/prose.tsx +49 -0
  38. package/src/parts/shape.css +47 -0
  39. package/src/parts/shape.tsx +68 -0
  40. package/src/parts/split.tsx +49 -0
  41. package/src/parts/stamp.css +85 -0
  42. package/src/parts/stamp.tsx +36 -0
  43. package/src/parts/work-card.css +51 -0
  44. package/src/parts/work-card.tsx +40 -0
  45. package/src/set.css +439 -0
  46. package/src/styles.css +20 -0
  47. package/src/tokens/color.css +471 -0
  48. package/src/tokens/roles.css +12 -0
  49. package/src/tokens/type.css +11 -0
  50. package/src/wordmark.tsx +34 -0
  51. package/AGENTS.md +0 -192
  52. package/assets/media/brand/ks-lockup.svg +0 -13
  53. package/assets/media/brand/ks-logomark.svg +0 -4
  54. package/assets/media/brand/ks-wordmark-inline.svg +0 -13
  55. package/assets/media/brand/ks-wordmark.svg +0 -11
  56. package/assets/media/fonts/gt-standard-standard-vf.woff2 +0 -0
  57. package/assets/media/fonts/pp-kyoto-variable-upright-vf.woff2 +0 -0
  58. package/base.css +0 -113
  59. package/css-vars.d.ts +0 -10
  60. package/grid/engine.css +0 -367
  61. package/grid/field-hash.ts +0 -31
  62. package/grid/field.tsx +0 -48
  63. package/grid/gates.cjs +0 -35
  64. package/grid/region.tsx +0 -97
  65. package/icons.tsx +0 -1282
  66. package/index.css +0 -89
  67. package/lib/autoplay-gate.ts +0 -88
  68. package/lib/focus-trap.ts +0 -42
  69. package/lib/grader.ts +0 -123
  70. package/lib/legal-data.ts +0 -1
  71. package/lib/legal.ts +0 -41
  72. package/lib/noise.tsx +0 -114
  73. package/lib/phone.ts +0 -294
  74. package/lib/render-boundary.tsx +0 -27
  75. package/lib/scroll-lock.ts +0 -25
  76. package/lib/swipe.ts +0 -124
  77. package/lib/use-active-section.ts +0 -43
  78. package/lib/use-count-up.ts +0 -26
  79. package/lib/use-grader-search.ts +0 -143
  80. package/lib/use-popover.ts +0 -30
  81. package/lib/use-video-carousel.ts +0 -271
  82. package/media.ts +0 -558
  83. package/primitives/breadcrumb.css +0 -51
  84. package/primitives/breadcrumb.tsx +0 -46
  85. package/primitives/business-picker.css +0 -135
  86. package/primitives/business-picker.tsx +0 -298
  87. package/primitives/button-inline.css +0 -52
  88. package/primitives/button-inline.tsx +0 -38
  89. package/primitives/buttons.css +0 -551
  90. package/primitives/buttons.tsx +0 -330
  91. package/primitives/case-study-button.css +0 -71
  92. package/primitives/case-study-button.tsx +0 -28
  93. package/primitives/case-study-card.css +0 -318
  94. package/primitives/case-study-card.tsx +0 -116
  95. package/primitives/chip.css +0 -127
  96. package/primitives/chip.tsx +0 -53
  97. package/primitives/closer-row.css +0 -14
  98. package/primitives/closer-row.tsx +0 -22
  99. package/primitives/cta-row.css +0 -41
  100. package/primitives/cta-row.tsx +0 -39
  101. package/primitives/disclosure.css +0 -302
  102. package/primitives/disclosure.tsx +0 -277
  103. package/primitives/faq-question.css +0 -220
  104. package/primitives/faq-question.tsx +0 -55
  105. package/primitives/field.css +0 -279
  106. package/primitives/field.tsx +0 -376
  107. package/primitives/footer-item.css +0 -72
  108. package/primitives/footer-item.tsx +0 -42
  109. package/primitives/glyph-toggle.css +0 -62
  110. package/primitives/glyph-toggle.tsx +0 -42
  111. package/primitives/grader-menu.tsx +0 -84
  112. package/primitives/grader.css +0 -369
  113. package/primitives/grader.tsx +0 -285
  114. package/primitives/keystone-score.css +0 -156
  115. package/primitives/keystone-score.tsx +0 -204
  116. package/primitives/modal.css +0 -194
  117. package/primitives/modal.tsx +0 -204
  118. package/primitives/month-range.css +0 -80
  119. package/primitives/month-range.tsx +0 -183
  120. package/primitives/notice.css +0 -39
  121. package/primitives/notice.tsx +0 -56
  122. package/primitives/persona-card.css +0 -374
  123. package/primitives/persona-card.tsx +0 -74
  124. package/primitives/picture.css +0 -11
  125. package/primitives/picture.tsx +0 -41
  126. package/primitives/plan-card.css +0 -398
  127. package/primitives/plan-card.tsx +0 -153
  128. package/primitives/prose.css +0 -164
  129. package/primitives/prose.tsx +0 -194
  130. package/primitives/ramps.css +0 -77
  131. package/primitives/report-nav.css +0 -382
  132. package/primitives/report-nav.tsx +0 -353
  133. package/primitives/report.css +0 -601
  134. package/primitives/report.tsx +0 -357
  135. package/primitives/skeleton.css +0 -82
  136. package/primitives/skeleton.tsx +0 -56
  137. package/primitives/slider.css +0 -179
  138. package/primitives/slider.tsx +0 -69
  139. package/primitives/slug.css +0 -87
  140. package/primitives/slug.tsx +0 -37
  141. package/primitives/status.css +0 -427
  142. package/primitives/status.tsx +0 -323
  143. package/primitives/strip.css +0 -40
  144. package/primitives/surface.css +0 -88
  145. package/primitives/surface.tsx +0 -100
  146. package/primitives/table.css +0 -227
  147. package/primitives/table.tsx +0 -122
  148. package/primitives/tabs.css +0 -85
  149. package/primitives/tabs.tsx +0 -122
  150. package/primitives/tag.css +0 -46
  151. package/primitives/tag.tsx +0 -33
  152. package/primitives/text.css +0 -127
  153. package/primitives/toc.css +0 -65
  154. package/primitives/toc.tsx +0 -42
  155. package/primitives/tooltip.css +0 -56
  156. package/primitives/tooltip.tsx +0 -103
  157. package/rules/design-system.md +0 -154
  158. package/rules/grid-and-layout.md +0 -166
  159. package/scripts/generate-exports.mjs +0 -61
  160. package/scripts/generate-type-css.mjs +0 -130
  161. package/sections/faq-island.tsx +0 -102
  162. package/sections/faq.css +0 -213
  163. package/sections/faq.tsx +0 -46
  164. package/sections/footer-nav.tsx +0 -95
  165. package/sections/footer-signature.css +0 -223
  166. package/sections/footer-signature.tsx +0 -127
  167. package/sections/footer.css +0 -735
  168. package/sections/footer.tsx +0 -286
  169. package/sections/gallery-overlay.css +0 -213
  170. package/sections/gallery-overlay.tsx +0 -267
  171. package/sections/landing-benefits.css +0 -59
  172. package/sections/landing-benefits.tsx +0 -81
  173. package/sections/landing-closer.css +0 -23
  174. package/sections/landing-closer.tsx +0 -26
  175. package/sections/landing-hero.css +0 -80
  176. package/sections/landing-hero.tsx +0 -69
  177. package/sections/landing-quote.css +0 -19
  178. package/sections/landing-quote.tsx +0 -30
  179. package/sections/landing-sample.ts +0 -66
  180. package/sections/landing.css +0 -45
  181. package/sections/landing.tsx +0 -69
  182. package/sections/load-orchestrator.tsx +0 -43
  183. package/sections/load.css +0 -138
  184. package/sections/nav-desktop.css +0 -530
  185. package/sections/nav-desktop.tsx +0 -155
  186. package/sections/nav-menu.css +0 -57
  187. package/sections/nav-menu.tsx +0 -112
  188. package/sections/nav-mobile.css +0 -571
  189. package/sections/nav-mobile.tsx +0 -222
  190. package/sections/nav.css +0 -127
  191. package/sections/nav.tsx +0 -394
  192. package/sections/site-chat-data.ts +0 -16
  193. package/sections/site-chat-open.tsx +0 -25
  194. package/sections/site-chat.tsx +0 -67
  195. package/site-links.ts +0 -41
  196. package/site.ts +0 -2
  197. package/themes/inverted.css +0 -139
  198. package/tokens/fonts.css +0 -38
  199. package/tokens/motion.css +0 -150
  200. package/tokens/primitives.css +0 -163
  201. package/tokens/semantic.css +0 -159
  202. package/tokens/type-styles.json +0 -145
  203. package/tokens/type.css +0 -1548
  204. package/widgets.css +0 -78
@@ -1,267 +0,0 @@
1
- "use client";
2
-
3
- import { useEffect, useLayoutEffect, useRef, useState, type ReactNode } from "react";
4
- import { createPortal } from "react-dom";
5
- import { trapModalTab } from "../lib/focus-trap";
6
- import { lockScroll } from "../lib/scroll-lock";
7
- import {
8
- IconChevronLeftSm,
9
- IconChevronRightSm,
10
- IconDesktopView,
11
- IconGalleryClose,
12
- IconMobileView,
13
- IconTabletView,
14
- } from "../icons";
15
-
16
- export interface GalleryViewerSite {
17
- /** Label used in the rail and iframe title. */
18
- name: string;
19
- url: string;
20
- }
21
-
22
- type ViewMode = "desktop" | "tablet" | "mobile";
23
- type Phase = "closed" | "open" | "closing";
24
-
25
- const RS_GATE = 470;
26
- const RT_GATE = 665;
27
-
28
- const VIEW_MODES: Array<{ id: ViewMode; label: string; Icon: typeof IconDesktopView }> = [
29
- { id: "desktop", label: "Desktop view", Icon: IconDesktopView },
30
- { id: "tablet", label: "Tablet view", Icon: IconTabletView },
31
- { id: "mobile", label: "Mobile view", Icon: IconMobileView },
32
- ];
33
-
34
- export function GalleryOverlay({
35
- sites,
36
- openSite,
37
- aside,
38
- }: {
39
- sites: GalleryViewerSite[];
40
- /** 1-based site index from `?gallery=` (e.g. /gallery → first site). */
41
- openSite?: number;
42
- /** Optional companion panel beside the stage, such as feedback on the shown site. */
43
- aside?: ReactNode;
44
- }) {
45
- const portalTarget = typeof document === "undefined" ? null : document.body;
46
- const initialSite =
47
- openSite !== undefined ? Math.max(1, Math.min(sites.length || 1, openSite || 1)) : null;
48
- const [phase, setPhase] = useState<Phase>(initialSite ? "open" : "closed");
49
- const [s, setS] = useState(initialSite ?? 1);
50
- const [v, setV] = useState<ViewMode>("desktop");
51
- const rootRef = useRef<HTMLDivElement>(null);
52
- const stageRef = useRef<HTMLDivElement>(null);
53
- const openerRef = useRef<HTMLElement | null>(null);
54
- const mounted = phase !== "closed";
55
-
56
- useEffect(() => {
57
- const onClick = (e: MouseEvent) => {
58
- const target = e.target instanceof Element ? e.target : null;
59
- const trigger = target?.closest<HTMLElement>('[data-action="open-gallery"]');
60
- if (!trigger) return;
61
- // A thumbnail provides its site; a section CTA falls back to its published index.
62
- const read =
63
- trigger.dataset.gallerySite ?? trigger.closest<HTMLElement>("[data-k]")?.dataset.k;
64
- const next = read ? parseInt(read, 10) : 1;
65
- openerRef.current = trigger;
66
- setS(Number.isFinite(next) ? Math.max(1, Math.min(sites.length, next)) : 1);
67
- const w = document.documentElement.clientWidth;
68
- setV(w < RS_GATE ? "mobile" : w < RT_GATE ? "tablet" : "desktop");
69
- setPhase("open");
70
- };
71
- document.addEventListener("click", onClick);
72
- return () => document.removeEventListener("click", onClick);
73
- }, [sites.length]);
74
-
75
- /* Drop ?gallery= after the deep-linked open so refresh stays closed. */
76
- useEffect(() => {
77
- if (!initialSite) return;
78
- const params = new URLSearchParams(window.location.search);
79
- if (!params.has("gallery")) return;
80
- params.delete("gallery");
81
- const query = params.toString();
82
- window.history.replaceState(
83
- null,
84
- "",
85
- `${window.location.pathname}${query ? `?${query}` : ""}${window.location.hash}`,
86
- );
87
- }, [initialSite]);
88
-
89
- useEffect(() => {
90
- if (!mounted) return;
91
- const unlock = lockScroll();
92
- rootRef.current?.focus({ preventScroll: true });
93
- return unlock;
94
- }, [mounted]);
95
-
96
- /* Recompute iframe placement when the viewer or mode changes. */
97
- useLayoutEffect(() => {
98
- if (!mounted) return;
99
- const root = rootRef.current;
100
- const stage = stageRef.current;
101
- if (!root || !stage) return;
102
- const layout = () => {
103
- const w = stage.clientWidth;
104
- const availH = stage.clientHeight;
105
- const cs = getComputedStyle(root);
106
- const gvRef = (name: string) => parseFloat(cs.getPropertyValue(name));
107
- const ref =
108
- v === "mobile"
109
- ? gvRef("--gv-ref-mobile")
110
- : v === "tablet"
111
- ? gvRef("--gv-ref-tablet")
112
- : w >= RT_GATE
113
- ? w
114
- : gvRef("--gv-ref-desktop");
115
- let x = 0;
116
- let y = 0;
117
- const boxW = ref;
118
- let boxH = availH;
119
- let scale = 1;
120
- if (ref > w) {
121
- // Lay out at the reference width, then scale to fit.
122
- scale = w / ref;
123
- boxH = availH / scale;
124
- } else if (v === "mobile") {
125
- // Keep a true mobile viewport width and clamp only its height.
126
- boxH = Math.min(gvRef("--gv-mobile-float-h"), availH);
127
- x = (w - boxW) / 2;
128
- y = (availH - boxH) / 2;
129
- } else {
130
- x = (w - ref) / 2;
131
- }
132
- stage.style.setProperty("--gv-embed-x", `${x}px`);
133
- stage.style.setProperty("--gv-embed-y", `${y}px`);
134
- stage.style.setProperty("--gv-embed-w", `${boxW}px`);
135
- stage.style.setProperty("--gv-embed-h", `${boxH}px`);
136
- stage.style.setProperty("--gv-embed-scale", `${scale}`);
137
- };
138
- const ro = new ResizeObserver(layout);
139
- ro.observe(root);
140
- layout();
141
- return () => ro.disconnect();
142
- }, [mounted, v]);
143
-
144
- const close = () => {
145
- openerRef.current?.focus({ preventScroll: true });
146
- openerRef.current = null;
147
- const root = rootRef.current;
148
- // A zero-duration fade never emits the animation event used to unmount.
149
- if (root && !parseFloat(getComputedStyle(root).animationDuration)) {
150
- setPhase("closed");
151
- return;
152
- }
153
- setPhase("closing");
154
- };
155
-
156
- const page = (d: 1 | -1) => {
157
- const next = Math.max(1, Math.min(sites.length, s + d));
158
- setS(next);
159
- // Keep focus in the dialog when the active pager button becomes disabled.
160
- if (next === 1 || next === sites.length) {
161
- const active = document.activeElement;
162
- if (active instanceof HTMLElement && active.closest(".gv-pager")) {
163
- rootRef.current?.focus({ preventScroll: true });
164
- }
165
- }
166
- };
167
-
168
- const onKeyDown = (e: React.KeyboardEvent) => {
169
- if (e.key === "Escape") {
170
- close();
171
- } else if (e.key === "ArrowLeft") {
172
- e.preventDefault();
173
- page(-1);
174
- } else if (e.key === "ArrowRight") {
175
- e.preventDefault();
176
- page(1);
177
- } else if (rootRef.current) {
178
- trapModalTab(e, rootRef.current);
179
- }
180
- };
181
-
182
- const site = sites[s - 1];
183
- if (!portalTarget || !mounted || !site) return null;
184
-
185
- return createPortal(
186
- <div
187
- ref={rootRef}
188
- className="gv"
189
- role="dialog"
190
- aria-modal="true"
191
- aria-label={`${site.name} — live website`}
192
- tabIndex={-1}
193
- data-closing={phase === "closing" || undefined}
194
- data-aside={aside ? "" : undefined}
195
- onKeyDown={onKeyDown}
196
- onAnimationEnd={(e) => {
197
- if (phase === "closing" && e.target === e.currentTarget) setPhase("closed");
198
- }}
199
- >
200
- <div className="gv-rail">
201
- <span className="gv-logo" aria-hidden="true">
202
- <i className="gv-mark" />
203
- </span>
204
- <i className="gv-divider" aria-hidden="true" />
205
- <span className="type type-fixed ts-text-sm-medium gv-label">Keystone Gallery</span>
206
- <div className="gv-east">
207
- <span className="type type-fixed ts-text-sm-light gv-name">{site.name}</span>
208
- {sites.length > 1 && (
209
- <div className="gv-pager">
210
- <button
211
- type="button"
212
- className="gv-btn"
213
- aria-label="Previous gallery item"
214
- disabled={s === 1}
215
- onClick={() => page(-1)}
216
- >
217
- <IconChevronLeftSm />
218
- </button>
219
- <button
220
- type="button"
221
- className="gv-btn"
222
- aria-label="Next site"
223
- disabled={s === sites.length}
224
- onClick={() => page(1)}
225
- >
226
- <IconChevronRightSm />
227
- </button>
228
- </div>
229
- )}
230
- <div className="gv-switch" role="radiogroup" aria-label="Preview viewport">
231
- {VIEW_MODES.map(({ id, label, Icon }) => (
232
- <button
233
- key={id}
234
- type="button"
235
- role="radio"
236
- className="gv-btn"
237
- aria-checked={v === id}
238
- aria-label={label}
239
- onClick={() => setV(id)}
240
- >
241
- <Icon />
242
- </button>
243
- ))}
244
- </div>
245
- <button type="button" className="gv-btn" aria-label="Close gallery" onClick={close}>
246
- <IconGalleryClose />
247
- </button>
248
- </div>
249
- </div>
250
- <div className="gv-body">
251
- <div className="gv-stage" ref={stageRef}>
252
- {/* Replacing the keyed iframe avoids adding each preview to session history. */}
253
- <iframe
254
- key={s}
255
- className="gv-embed"
256
- src={site.url}
257
- title={`${site.name} — live website`}
258
- sandbox="allow-forms allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts"
259
- referrerPolicy="strict-origin-when-cross-origin"
260
- />
261
- </div>
262
- {aside && <aside className="gv-aside">{aside}</aside>}
263
- </div>
264
- </div>,
265
- portalTarget,
266
- );
267
- }
@@ -1,59 +0,0 @@
1
- /* Seated cards: the list bleeds back out to the 12 columns; cells are
2
- line-inclusive (k·t + 1px) and overlap by the shared pixel. Heights
3
- are minimums — a cell grows with its copy. */
4
-
5
- .ld-cards {
6
- list-style: none;
7
- margin: var(--t) calc(var(--t) * -1) 0;
8
- padding: 0;
9
- display: flex;
10
- flex-direction: column;
11
- }
12
- .ld-card {
13
- box-sizing: border-box;
14
- border: 1px solid var(--color-border-000);
15
- min-height: calc(var(--t) * 3 + 1px);
16
- padding: var(--space-3xl);
17
- display: flex;
18
- flex-direction: column;
19
- align-items: flex-start;
20
- }
21
- .ld-card + .ld-card {
22
- margin-top: -1px;
23
- }
24
- .ld-card-icon {
25
- display: block;
26
- color: var(--color-text-100);
27
- }
28
- .ld-card-title {
29
- margin: 0;
30
- color: var(--color-text-100);
31
- }
32
- .ld-card-icon + .ld-card-title {
33
- margin-top: var(--space-xl);
34
- }
35
- /* Card copy: text-md-light 16/22 → text-lg-light 18/26. */
36
- .ld-card-copy {
37
- margin: var(--space-md) 0 0;
38
- color: var(--color-text-300);
39
- --fs-rd2: var(--ts-text-lg-light-fs);
40
- --lh-rd2: var(--ts-text-lg-light-lh);
41
- }
42
- @container (--rt) {
43
- .ld-cards {
44
- flex-direction: row;
45
- align-items: stretch;
46
- }
47
- .ld-card {
48
- width: calc(var(--t) * 4 + 1px);
49
- padding: calc(var(--t) / 2);
50
- }
51
- .ld-card + .ld-card {
52
- margin-top: 0;
53
- margin-left: -1px;
54
- }
55
- .ld-card-copy {
56
- --font: var(--ts-text-lg-light-font);
57
- --opsz: var(--ts-text-lg-light-opsz);
58
- }
59
- }
@@ -1,81 +0,0 @@
1
- /** Landing benefits: eyebrow, h2, and seated cards — the cards are the
2
- * grid. Part of the landing kit — see pages/landing.tsx. */
3
-
4
- import type { ComponentType } from "react";
5
- import {
6
- IconAiChat,
7
- IconMaps,
8
- IconReception,
9
- IconReviews,
10
- IconSearch,
11
- IconSparkle,
12
- IconWebsite,
13
- } from "../icons";
14
- import { CloserRow } from "../primitives/closer-row";
15
- import { Slug } from "../primitives/slug";
16
-
17
- /** Icons a card may lead with; the map keeps ReactNodes out of data. */
18
- export type LandingIcon =
19
- "website" | "search" | "maps" | "reviews" | "reception" | "aiChat" | "sparkle";
20
-
21
- export interface LandingBenefit {
22
- id: string;
23
- icon?: LandingIcon;
24
- title: string;
25
- copy: string;
26
- }
27
-
28
- export interface LandingBenefitsData {
29
- eyebrow: string;
30
- title: string;
31
- /** Three reads best; the cells seat on the lattice at any count. */
32
- items: readonly LandingBenefit[];
33
- }
34
-
35
- /** The icon each name renders; the design page reads this map too. */
36
- export const LANDING_ICONS: Record<LandingIcon, ComponentType<{ size?: number }>> = {
37
- website: IconWebsite,
38
- search: IconSearch,
39
- maps: IconMaps,
40
- reviews: IconReviews,
41
- reception: IconReception,
42
- aiChat: IconAiChat,
43
- sparkle: IconSparkle,
44
- };
45
-
46
- function BenefitIcon({ name }: { name: LandingIcon }) {
47
- const Icon = LANDING_ICONS[name];
48
- return (
49
- <span className="ld-card-icon" aria-hidden="true">
50
- <Icon />
51
- </span>
52
- );
53
- }
54
-
55
- /* Lattice: seated — stacked 12-wide cells below rt, three 4-column
56
- * cells from rt, bordered line-inclusively so neighbours share one
57
- * hairline; then the flow closer. */
58
- export function LandingBenefitsSection({ data }: { data: LandingBenefitsData }) {
59
- return (
60
- <section
61
- className="sec ld-sec ld-benefits"
62
- aria-label={data.eyebrow}
63
- data-landmark="ld-benefits"
64
- >
65
- <header className="ld-head" data-landmark="head">
66
- <Slug>{data.eyebrow}</Slug>
67
- <h2 className="type ts-display-serif-xs-extralight ramp-h2 ld-h2">{data.title}</h2>
68
- </header>
69
- <ul className="ld-cards" data-landmark="cards">
70
- {data.items.map((item) => (
71
- <li key={item.id} className="ld-card">
72
- {item.icon && <BenefitIcon name={item.icon} />}
73
- <h3 className="type ts-text-lg-medium ld-card-title">{item.title}</h3>
74
- <p className="type ts-text-md-light ld-card-copy">{item.copy}</p>
75
- </li>
76
- ))}
77
- </ul>
78
- <CloserRow />
79
- </section>
80
- );
81
- }
@@ -1,23 +0,0 @@
1
- /* Content-sized flow frame: head, one line of copy, the CTA row, then
2
- two ticks of air before the footer. */
3
-
4
- .ld-close {
5
- padding-bottom: calc(var(--t) * 2);
6
- }
7
- .ld-close-copy {
8
- margin-top: var(--space-2xl);
9
- max-width: calc(var(--t) * 10);
10
- }
11
- .ld-close-cta {
12
- margin-top: var(--space-4xl);
13
- }
14
- @container (--rt) {
15
- .ld-close-copy {
16
- max-width: calc(var(--t) * 6);
17
- }
18
- }
19
- @container (--rd1) {
20
- .ld-close-cta {
21
- margin-top: var(--space-5xl);
22
- }
23
- }
@@ -1,26 +0,0 @@
1
- /** Landing closer: eyebrow, h2, one line of copy, the CTA row. The
2
- * footer's own lattice follows. Part of the landing kit — see
3
- * pages/landing.tsx. */
4
-
5
- import { CtaRow, type CtaLink } from "../primitives/cta-row";
6
- import { Slug } from "../primitives/slug";
7
-
8
- export interface LandingCloserData {
9
- eyebrow: string;
10
- title: string;
11
- copy: string;
12
- cta: CtaLink;
13
- }
14
-
15
- export function LandingCloserSection({ data }: { data: LandingCloserData }) {
16
- return (
17
- <section className="sec ld-sec ld-close" aria-label={data.eyebrow} data-landmark="ld-close">
18
- <header className="ld-head" data-landmark="head">
19
- <Slug>{data.eyebrow}</Slug>
20
- <h2 className="type ts-display-serif-xs-extralight ramp-h2 ld-h2">{data.title}</h2>
21
- </header>
22
- <p className="type ts-text-md-light ramp-body ld-close-copy">{data.copy}</p>
23
- <CtaRow cta={data.cta} className="ld-close-cta" />
24
- </section>
25
- );
26
- }
@@ -1,80 +0,0 @@
1
- /* Content-sized flow frame: head, then the seated media frame. The
2
- frame's exposed bottom row is the section's painted closer; the next
3
- section's 1t padding-top completes the seam. */
4
-
5
- .ld-hero-head {
6
- display: flex;
7
- flex-direction: column;
8
- align-items: flex-start;
9
- padding-top: calc(var(--t) * 2.5);
10
- }
11
- .ld-hero-h1 {
12
- margin-top: var(--space-lg);
13
- max-width: calc(var(--t) * 10);
14
- }
15
- .ld-hero-sub {
16
- margin-top: var(--space-2xl);
17
- max-width: calc(var(--t) * 10);
18
- }
19
- .ld-hero-cta {
20
- margin-top: var(--space-4xl);
21
- }
22
- @container (--rt) {
23
- .ld-hero-h1 {
24
- max-width: calc(var(--t) * 8);
25
- }
26
- .ld-hero-sub {
27
- max-width: calc(var(--t) * 6);
28
- }
29
- }
30
- @container (--rd1) {
31
- .ld-hero-head {
32
- padding-top: calc(var(--t) * 1.5);
33
- }
34
- .ld-hero-h1 {
35
- margin-top: var(--space-3xl);
36
- max-width: calc(var(--t) * 7);
37
- }
38
- .ld-hero-cta {
39
- margin-top: var(--space-5xl);
40
- }
41
- }
42
-
43
- /* The shared entrance rule consumes these delays (hero.css). */
44
- .ld-hero .slug {
45
- --_d: var(--hx-d-h1a);
46
- }
47
- .ld-hero-h1 {
48
- --_d: var(--hx-d-h1b);
49
- }
50
- .ld-hero-sub {
51
- --_d: var(--hx-d-sub1);
52
- }
53
- .ld-hero-cta {
54
- --_d: var(--hx-d-cta);
55
- }
56
- .ld-hero-media {
57
- --_d: var(--hx-d-rect);
58
- }
59
-
60
- /* The figure hosts its own exposure frame, so it is the local
61
- positioning context; the bottom padding keeps the frame's exposed row
62
- inside the section. Slab 6t through rt, 5t from rd. */
63
- .ld-hero-media {
64
- position: relative;
65
- width: 100%;
66
- margin: 0;
67
- margin-top: var(--t);
68
- padding-bottom: var(--t);
69
- }
70
- .ld-hero-frame {
71
- position: relative;
72
- height: calc(var(--t) * 6);
73
- overflow: clip;
74
- background: var(--color-bg-300);
75
- }
76
- @container (--rd1) {
77
- .ld-hero-frame {
78
- height: calc(var(--t) * 5);
79
- }
80
- }
@@ -1,69 +0,0 @@
1
- /** Landing hero: eyebrow, h1, subhead, and the CTA row rising in
2
- * sequence, then a seated media frame (the company-hero idiom). Part of
3
- * the landing kit — see pages/landing.tsx. */
4
-
5
- import { GridRegion, type GridBand } from "../grid/region";
6
- import type { PictureSet } from "../media";
7
- import { CtaRow, type CtaLink } from "../primitives/cta-row";
8
- import { Picture } from "../primitives/picture";
9
- import { Slug } from "../primitives/slug";
10
-
11
- export interface LandingHeroData {
12
- eyebrow: string;
13
- title: string;
14
- subhead: string;
15
- cta: CtaLink;
16
- /** Ambient photography for the seated media frame under the copy. */
17
- picture: PictureSet;
18
- }
19
-
20
- const BANDS: GridBand[] = ["rm", "rs", "rt", "rd1", "rd2"];
21
-
22
- /* Lattice: the copy sits in unpainted air; the media frame is seated —
23
- * a 12-column field one tick under the slab's top edge, 6 rows through
24
- * rt and 5 from rd, with a 10-column row on the slab's edge from rt.
25
- * The frame's exposed bottom row is the section's painted closer. */
26
- const MEDIA_FRAME: Record<GridBand, { gx: number; gy: number; gw: number; gh?: number }[]> = {
27
- rm: [{ gx: 0, gy: 1, gw: 12, gh: 6 }],
28
- rs: [{ gx: 0, gy: 1, gw: 12, gh: 6 }],
29
- rt: [
30
- { gx: 1, gy: 0, gw: 10 },
31
- { gx: 0, gy: 1, gw: 12, gh: 6 },
32
- ],
33
- rd1: [
34
- { gx: 1, gy: 0, gw: 10 },
35
- { gx: 0, gy: 1, gw: 12, gh: 5 },
36
- ],
37
- rd2: [
38
- { gx: 1, gy: 0, gw: 10 },
39
- { gx: 0, gy: 1, gw: 12, gh: 5 },
40
- ],
41
- };
42
-
43
- export function LandingHeroSection({ data }: { data: LandingHeroData }) {
44
- return (
45
- <section className="sec ld-sec ld-hero" aria-label={data.eyebrow} data-landmark="ld-hero">
46
- <header className="ld-hero-head" data-landmark="head">
47
- <Slug className="hx-rise">{data.eyebrow}</Slug>
48
- <h1 className="type ts-display-serif-sm-plus-thin ramp-h1 ld-hero-h1 hx-rise">
49
- {data.title}
50
- </h1>
51
- <p className="type ts-text-md-light ramp-body ld-hero-sub hx-rise">{data.subhead}</p>
52
- <CtaRow cta={data.cta} className="ld-hero-cta hx-rise" />
53
- </header>
54
-
55
- <figure className="ld-hero-media hx-rise" data-landmark="media">
56
- <div className="gx ld-bleed" aria-hidden="true">
57
- {BANDS.map((band) =>
58
- MEDIA_FRAME[band].map((r, i) => (
59
- <GridRegion key={`${band}-m${i}`} band={band} {...r} />
60
- )),
61
- )}
62
- </div>
63
- <div className="ld-hero-frame">
64
- <Picture set={data.picture} priority />
65
- </div>
66
- </figure>
67
- </section>
68
- );
69
- }
@@ -1,19 +0,0 @@
1
- /* Unpainted air: the quote holds its measure, the attribution sits a
2
- material step below. */
3
-
4
- .ld-quote-fig {
5
- margin: var(--space-2xl) 0 0;
6
- }
7
- .ld-quote-body {
8
- margin: 0;
9
- max-width: calc(var(--t) * 10);
10
- }
11
- .ld-quote-attrib {
12
- margin: var(--space-xl) 0 0;
13
- color: var(--color-text-400);
14
- }
15
- @container (--rt) {
16
- .ld-quote-body {
17
- max-width: calc(var(--t) * 8);
18
- }
19
- }
@@ -1,30 +0,0 @@
1
- /** Landing quote: eyebrow, a hanging blockquote, attribution, closer.
2
- * Part of the landing kit — see pages/landing.tsx. */
3
-
4
- import { CloserRow } from "../primitives/closer-row";
5
- import { Slug } from "../primitives/slug";
6
-
7
- export interface LandingQuoteData {
8
- eyebrow: string;
9
- /** Written with its own curly quotes; the first hangs into the margin. */
10
- quote: string;
11
- attribution: string;
12
- }
13
-
14
- /* Lattice: unpainted air, then the flow closer. */
15
- export function LandingQuoteSection({ data }: { data: LandingQuoteData }) {
16
- return (
17
- <section className="sec ld-sec ld-quote" aria-label={data.eyebrow} data-landmark="ld-quote">
18
- <Slug>{data.eyebrow}</Slug>
19
- <figure className="ld-quote-fig">
20
- <blockquote className="type type-hang ts-display-serif-2xs-plus-extralight ramp-quote ld-quote-body">
21
- {data.quote}
22
- </blockquote>
23
- <figcaption className="type ts-text-md-light ld-quote-attrib">
24
- {data.attribution}
25
- </figcaption>
26
- </figure>
27
- <CloserRow />
28
- </section>
29
- );
30
- }