@keystone-sites/marketing-design-system 1.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.
- package/AGENTS.md +163 -0
- package/README.md +85 -0
- package/assets/media/brand/ks-lockup.svg +13 -0
- package/assets/media/brand/ks-logomark.svg +4 -0
- package/assets/media/brand/ks-wordmark-inline.svg +13 -0
- package/assets/media/brand/ks-wordmark.svg +11 -0
- package/assets/media/fonts/gt-standard-standard-vf.woff2 +0 -0
- package/assets/media/fonts/pp-kyoto-variable-upright-vf.woff2 +0 -0
- package/base.css +111 -0
- package/css-vars.d.ts +10 -0
- package/grid/engine.css +368 -0
- package/grid/field-hash.ts +31 -0
- package/grid/field.tsx +48 -0
- package/grid/gates.cjs +34 -0
- package/grid/region.tsx +97 -0
- package/icons.tsx +1224 -0
- package/index.css +77 -0
- package/lib/autoplay-gate.ts +88 -0
- package/lib/focus-trap.ts +42 -0
- package/lib/grader.ts +131 -0
- package/lib/legal-data.ts +1 -0
- package/lib/legal.ts +41 -0
- package/lib/noise.tsx +114 -0
- package/lib/render-boundary.tsx +27 -0
- package/lib/scroll-lock.ts +25 -0
- package/lib/swipe.ts +124 -0
- package/lib/use-active-section.ts +43 -0
- package/lib/use-count-up.ts +26 -0
- package/lib/use-grader-search.ts +118 -0
- package/lib/use-video-carousel.ts +271 -0
- package/media.ts +558 -0
- package/package.json +201 -0
- package/primitives/button-inline.css +52 -0
- package/primitives/button-inline.tsx +38 -0
- package/primitives/buttons.css +449 -0
- package/primitives/buttons.tsx +263 -0
- package/primitives/case-study-button.css +71 -0
- package/primitives/case-study-button.tsx +28 -0
- package/primitives/case-study-card.css +318 -0
- package/primitives/case-study-card.tsx +116 -0
- package/primitives/closer-row.css +14 -0
- package/primitives/closer-row.tsx +22 -0
- package/primitives/cta-row.css +41 -0
- package/primitives/cta-row.tsx +39 -0
- package/primitives/disclosure.css +210 -0
- package/primitives/disclosure.tsx +144 -0
- package/primitives/faq-question.css +220 -0
- package/primitives/faq-question.tsx +55 -0
- package/primitives/field.css +225 -0
- package/primitives/field.tsx +266 -0
- package/primitives/footer-item.css +72 -0
- package/primitives/footer-item.tsx +42 -0
- package/primitives/grader-menu.tsx +84 -0
- package/primitives/grader.css +302 -0
- package/primitives/grader.tsx +284 -0
- package/primitives/modal.css +151 -0
- package/primitives/modal.tsx +90 -0
- package/primitives/notice.css +39 -0
- package/primitives/notice.tsx +56 -0
- package/primitives/persona-card.css +374 -0
- package/primitives/persona-card.tsx +74 -0
- package/primitives/picture.css +11 -0
- package/primitives/picture.tsx +41 -0
- package/primitives/plan-card.css +378 -0
- package/primitives/plan-card.tsx +91 -0
- package/primitives/prose.css +118 -0
- package/primitives/prose.tsx +170 -0
- package/primitives/ramps.css +84 -0
- package/primitives/slider.css +179 -0
- package/primitives/slider.tsx +69 -0
- package/primitives/slug.css +87 -0
- package/primitives/slug.tsx +37 -0
- package/primitives/status.css +298 -0
- package/primitives/status.tsx +222 -0
- package/primitives/strip.css +40 -0
- package/primitives/surface.css +78 -0
- package/primitives/surface.tsx +95 -0
- package/primitives/table.css +226 -0
- package/primitives/table.tsx +122 -0
- package/primitives/tabs.css +85 -0
- package/primitives/tabs.tsx +122 -0
- package/primitives/text.css +110 -0
- package/primitives/toc.css +65 -0
- package/primitives/toc.tsx +42 -0
- package/rules/design-system.md +154 -0
- package/rules/grid-and-layout.md +166 -0
- package/scripts/generate-exports.mjs +61 -0
- package/scripts/generate-type-css.mjs +130 -0
- package/sections/faq-island.tsx +102 -0
- package/sections/faq.css +213 -0
- package/sections/faq.tsx +46 -0
- package/sections/footer-nav.tsx +95 -0
- package/sections/footer-signature.css +183 -0
- package/sections/footer-signature.tsx +114 -0
- package/sections/footer.css +735 -0
- package/sections/footer.tsx +283 -0
- package/sections/gallery-overlay.css +213 -0
- package/sections/gallery-overlay.tsx +267 -0
- package/sections/landing-benefits.css +59 -0
- package/sections/landing-benefits.tsx +81 -0
- package/sections/landing-closer.css +23 -0
- package/sections/landing-closer.tsx +26 -0
- package/sections/landing-hero.css +80 -0
- package/sections/landing-hero.tsx +69 -0
- package/sections/landing-quote.css +19 -0
- package/sections/landing-quote.tsx +30 -0
- package/sections/landing-sample.ts +66 -0
- package/sections/landing.css +45 -0
- package/sections/landing.tsx +69 -0
- package/sections/load-orchestrator.tsx +43 -0
- package/sections/load.css +138 -0
- package/sections/nav-desktop.css +530 -0
- package/sections/nav-desktop.tsx +155 -0
- package/sections/nav-mobile.css +571 -0
- package/sections/nav-mobile.tsx +222 -0
- package/sections/nav.css +126 -0
- package/sections/nav.tsx +394 -0
- package/sections/site-chat-data.ts +16 -0
- package/sections/site-chat-open.tsx +25 -0
- package/sections/site-chat.tsx +67 -0
- package/site-links.ts +36 -0
- package/site.ts +2 -0
- package/themes/inverted.css +139 -0
- package/tokens/fonts.css +38 -0
- package/tokens/motion.css +125 -0
- package/tokens/primitives.css +163 -0
- package/tokens/semantic.css +153 -0
- package/tokens/type-styles.json +145 -0
- package/tokens/type.css +1548 -0
- package/widgets.css +78 -0
package/sections/nav.tsx
ADDED
|
@@ -0,0 +1,394 @@
|
|
|
1
|
+
import type { CSSProperties } from "react";
|
|
2
|
+
import {
|
|
3
|
+
IconArrowRight,
|
|
4
|
+
IconBlog,
|
|
5
|
+
IconCaseStudies,
|
|
6
|
+
IconGrader,
|
|
7
|
+
IconPodcast,
|
|
8
|
+
IconWebsite,
|
|
9
|
+
} from "../icons";
|
|
10
|
+
import { ButtonFill } from "../primitives/buttons";
|
|
11
|
+
import { EXTERNAL_LINK, SITE_LINKS } from "../site-links";
|
|
12
|
+
import { NavDesktop } from "./nav-desktop";
|
|
13
|
+
import { NavMobile, type NavMobileRow } from "./nav-mobile";
|
|
14
|
+
|
|
15
|
+
function engineAnchor(id: string): string {
|
|
16
|
+
return `${SITE_LINKS.home}#engine-${id}`;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const ENGINES = [
|
|
20
|
+
{
|
|
21
|
+
id: "brand",
|
|
22
|
+
label: "Brand",
|
|
23
|
+
desc: "Establish credibility: polished websites, profiles, and reviews.",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
id: "visibility",
|
|
27
|
+
label: "Visibility",
|
|
28
|
+
desc: "Get found: show up everywhere customers search and discover.",
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
id: "ads",
|
|
32
|
+
label: "Ads",
|
|
33
|
+
desc: "Bring in new customers: ads that pay for and improve themselves.",
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
id: "reception",
|
|
37
|
+
label: "Reception",
|
|
38
|
+
desc: "Never miss a customer: every question answered, on every channel.",
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
id: "engagement",
|
|
42
|
+
label: "Engagement",
|
|
43
|
+
desc: "Keep every customer warm: regular touchpoints that bring them back.",
|
|
44
|
+
},
|
|
45
|
+
] as const;
|
|
46
|
+
|
|
47
|
+
const RESOURCE_CARDS = [
|
|
48
|
+
{
|
|
49
|
+
id: "blog",
|
|
50
|
+
title: "The Blog",
|
|
51
|
+
desc: "Practical marketing advice for small business owners who want to grow.",
|
|
52
|
+
chipLabel: "Blog",
|
|
53
|
+
Icon: IconBlog,
|
|
54
|
+
href: SITE_LINKS.resources,
|
|
55
|
+
external: false,
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
id: "grader",
|
|
59
|
+
title: "The Grader",
|
|
60
|
+
desc: "A free look at how your business shows up online, and what to fix first.",
|
|
61
|
+
chipLabel: "Grader",
|
|
62
|
+
Icon: IconGrader,
|
|
63
|
+
href: SITE_LINKS.grader,
|
|
64
|
+
external: true,
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
id: "podcast",
|
|
68
|
+
title: "The Podcast",
|
|
69
|
+
desc: "Conversations with small business owners building on their own.",
|
|
70
|
+
chipLabel: "Podcast",
|
|
71
|
+
Icon: IconPodcast,
|
|
72
|
+
href: SITE_LINKS.spotify,
|
|
73
|
+
external: true,
|
|
74
|
+
},
|
|
75
|
+
] as const;
|
|
76
|
+
|
|
77
|
+
/* Our Work drawer cards (nav-drawer item=work — 1038:10215 lg, 1039:19063 md).
|
|
78
|
+
* Both icons keep their intrinsic two-tone palettes; the gallery card
|
|
79
|
+
* re-inks IconWebsite teal through the --website-a/b hooks in nav.css. */
|
|
80
|
+
const WORK_CARDS = [
|
|
81
|
+
{
|
|
82
|
+
id: "case-studies",
|
|
83
|
+
title: "Case Studies",
|
|
84
|
+
desc: "The leads, bookings, and reviews real businesses saw after switching to Keystone.",
|
|
85
|
+
chipLabel: "Case Studies",
|
|
86
|
+
Icon: IconCaseStudies,
|
|
87
|
+
href: SITE_LINKS.caseStudies,
|
|
88
|
+
external: false,
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
id: "gallery",
|
|
92
|
+
title: "The Gallery",
|
|
93
|
+
desc: "Live sites running on Keystone and built for businesses like yours.",
|
|
94
|
+
chipLabel: "The Gallery",
|
|
95
|
+
Icon: IconWebsite,
|
|
96
|
+
href: SITE_LINKS.gallery,
|
|
97
|
+
external: false,
|
|
98
|
+
},
|
|
99
|
+
] as const;
|
|
100
|
+
|
|
101
|
+
interface DecorCircle {
|
|
102
|
+
i: number;
|
|
103
|
+
dx?: number;
|
|
104
|
+
dy?: number;
|
|
105
|
+
}
|
|
106
|
+
const DECOR_CIRCLES: Record<string, DecorCircle[]> = {
|
|
107
|
+
feature: [{ i: 0 }, { i: 7, dx: -1 }, { i: 10, dx: 1 }],
|
|
108
|
+
blog: [{ i: 0 }, { i: 5, dx: 1 }, { i: 15, dy: -1 }],
|
|
109
|
+
grader: [{ i: 0 }, { i: 7, dx: -1 }, { i: 15, dy: -1 }],
|
|
110
|
+
podcast: [{ i: 0 }, { i: 2, dy: 1 }, { i: 10, dx: 1 }],
|
|
111
|
+
/* Rest cells from 1038:13442 and 1038:13472. The set carries no hover
|
|
112
|
+
* variants for these two cards, so the slides derive from the designed
|
|
113
|
+
* grammar (anchor circle holds; each mover slides one cell toward the
|
|
114
|
+
* hover cells (2,1)/(3,2); bottom-row circles rise) — flagged to design
|
|
115
|
+
* 2026-09-15. */
|
|
116
|
+
"case-studies": [{ i: 0 }, { i: 6 }, { i: 15, dy: -1 }],
|
|
117
|
+
gallery: [{ i: 0 }, { i: 7, dx: -1 }, { i: 13, dy: -1 }],
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
function Decor({ variant }: { variant: keyof typeof DECOR_CIRCLES }) {
|
|
121
|
+
const lines = [1, 2, 3];
|
|
122
|
+
return (
|
|
123
|
+
<span className="knav-decor" data-decor={variant} aria-hidden="true">
|
|
124
|
+
{lines.map((n) => (
|
|
125
|
+
<i key={`v${n}`} className="v" style={{ "--n": n }} />
|
|
126
|
+
))}
|
|
127
|
+
{lines.map((n) => (
|
|
128
|
+
<i key={`h${n}`} className="h" style={{ "--n": n }} />
|
|
129
|
+
))}
|
|
130
|
+
{DECOR_CIRCLES[variant].map(({ i, dx, dy }) => (
|
|
131
|
+
<i
|
|
132
|
+
key={`c${i}`}
|
|
133
|
+
className="c"
|
|
134
|
+
style={{
|
|
135
|
+
"--cx": i % 4,
|
|
136
|
+
"--cy": Math.floor(i / 4),
|
|
137
|
+
...(dx && { "--dx": dx }),
|
|
138
|
+
...(dy && { "--dy": dy }),
|
|
139
|
+
}}
|
|
140
|
+
/>
|
|
141
|
+
))}
|
|
142
|
+
</span>
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/* Labels and cards carry their reveal order through --i. */
|
|
147
|
+
function blk(i: number): CSSProperties {
|
|
148
|
+
return { "--i": i };
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
function SolutionsDrawerContent() {
|
|
152
|
+
const cols = [ENGINES.slice(0, 3), ENGINES.slice(3)];
|
|
153
|
+
let i = 1;
|
|
154
|
+
return (
|
|
155
|
+
<div className="knav-dcontent" data-content="solutions">
|
|
156
|
+
<div className="type type-fixed knav-dlabels">
|
|
157
|
+
<span className="type type-fixed ts-text-nav-label knav-dlabel knav-blk" style={blk(0)}>
|
|
158
|
+
Marketing Engines
|
|
159
|
+
</span>
|
|
160
|
+
<span
|
|
161
|
+
className="type type-fixed ts-text-nav-label knav-dlabel knav-dlabel-b knav-blk"
|
|
162
|
+
style={blk(6)}
|
|
163
|
+
>
|
|
164
|
+
How it all works
|
|
165
|
+
</span>
|
|
166
|
+
</div>
|
|
167
|
+
<div className="knav-dbody">
|
|
168
|
+
{cols.map((col, c) => [
|
|
169
|
+
c > 0 && <i key={`d${c}`} className="knav-dvr" aria-hidden="true" />,
|
|
170
|
+
<div key={c} className="knav-dcol">
|
|
171
|
+
{col.map((e) => (
|
|
172
|
+
<a
|
|
173
|
+
key={e.id}
|
|
174
|
+
className="knav-sub knav-blk"
|
|
175
|
+
style={blk(i++)}
|
|
176
|
+
href={engineAnchor(e.id)}
|
|
177
|
+
>
|
|
178
|
+
<span className="knav-subhead">
|
|
179
|
+
<span className="type type-fixed ts-display-serif-2xs-medium knav-subtitle">
|
|
180
|
+
{e.label}
|
|
181
|
+
</span>
|
|
182
|
+
<i className="knav-subdot" data-engine={e.id} aria-hidden="true" />
|
|
183
|
+
</span>
|
|
184
|
+
<span className="type type-fixed ts-text-sm-light knav-subdesc">{e.desc}</span>
|
|
185
|
+
</a>
|
|
186
|
+
))}
|
|
187
|
+
</div>,
|
|
188
|
+
])}
|
|
189
|
+
<i className="knav-dvr" aria-hidden="true" />
|
|
190
|
+
<a className="knav-card knav-fcard knav-blk" style={blk(7)} href={SITE_LINKS.approach}>
|
|
191
|
+
<Decor variant="feature" />
|
|
192
|
+
<span className="type type-fixed ts-text-xl-light knav-fcopy">
|
|
193
|
+
One system, one full picture of your business’s marketing, starting with your site.
|
|
194
|
+
</span>
|
|
195
|
+
<span className="knav-frow">
|
|
196
|
+
<span className="type type-fixed ts-text-lg-light knav-flabel">Our approach</span>
|
|
197
|
+
<IconArrowRight />
|
|
198
|
+
</span>
|
|
199
|
+
</a>
|
|
200
|
+
</div>
|
|
201
|
+
</div>
|
|
202
|
+
);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
function ResourcesDrawerContent() {
|
|
206
|
+
return (
|
|
207
|
+
<div className="knav-dcontent" data-content="resources">
|
|
208
|
+
<div className="type type-fixed knav-dlabels">
|
|
209
|
+
<span className="type type-fixed ts-text-nav-label knav-dlabel knav-blk" style={blk(0)}>
|
|
210
|
+
Resources for small businesses
|
|
211
|
+
</span>
|
|
212
|
+
</div>
|
|
213
|
+
<div className="knav-dbody">
|
|
214
|
+
{RESOURCE_CARDS.map((card, i) => [
|
|
215
|
+
i > 0 && <i key={`d${card.id}`} className="knav-dvr" aria-hidden="true" />,
|
|
216
|
+
<a
|
|
217
|
+
key={card.id}
|
|
218
|
+
className="knav-card knav-rcard knav-blk"
|
|
219
|
+
style={blk(i + 1)}
|
|
220
|
+
data-card={card.id}
|
|
221
|
+
href={card.href}
|
|
222
|
+
{...(card.external ? EXTERNAL_LINK : {})}
|
|
223
|
+
>
|
|
224
|
+
<Decor variant={card.id} />
|
|
225
|
+
<span className="knav-chiprow">
|
|
226
|
+
<span className="knav-cardchip">
|
|
227
|
+
<card.Icon size={16} />
|
|
228
|
+
</span>
|
|
229
|
+
</span>
|
|
230
|
+
<span className="knav-cbody">
|
|
231
|
+
<span className="knav-crow">
|
|
232
|
+
<span className="type type-fixed ts-display-serif-xs-regular knav-ctitle">
|
|
233
|
+
{card.title}
|
|
234
|
+
</span>
|
|
235
|
+
<IconArrowRight />
|
|
236
|
+
</span>
|
|
237
|
+
<span className="type type-fixed ts-text-lg-light knav-cdesc">{card.desc}</span>
|
|
238
|
+
</span>
|
|
239
|
+
</a>,
|
|
240
|
+
])}
|
|
241
|
+
</div>
|
|
242
|
+
</div>
|
|
243
|
+
);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
function WorkDrawerContent() {
|
|
247
|
+
return (
|
|
248
|
+
<div className="knav-dcontent" data-content="work">
|
|
249
|
+
<div className="type type-fixed knav-dlabels">
|
|
250
|
+
<span className="type type-fixed ts-text-nav-label knav-dlabel knav-blk" style={blk(0)}>
|
|
251
|
+
Proof, not promises
|
|
252
|
+
</span>
|
|
253
|
+
</div>
|
|
254
|
+
<div className="knav-dbody">
|
|
255
|
+
{WORK_CARDS.map((card, i) => [
|
|
256
|
+
i > 0 && <i key={`d${card.id}`} className="knav-dvr" aria-hidden="true" />,
|
|
257
|
+
<a
|
|
258
|
+
key={card.id}
|
|
259
|
+
className="knav-card knav-rcard knav-blk"
|
|
260
|
+
style={blk(i + 1)}
|
|
261
|
+
data-card={card.id}
|
|
262
|
+
href={card.href}
|
|
263
|
+
{...(card.external ? EXTERNAL_LINK : {})}
|
|
264
|
+
>
|
|
265
|
+
<Decor variant={card.id} />
|
|
266
|
+
<span className="knav-chiprow">
|
|
267
|
+
<span className="knav-cardchip">
|
|
268
|
+
<card.Icon size={16} />
|
|
269
|
+
</span>
|
|
270
|
+
</span>
|
|
271
|
+
<span className="knav-cbody">
|
|
272
|
+
<span className="knav-crow">
|
|
273
|
+
<span className="type type-fixed ts-display-serif-xs-regular knav-ctitle">
|
|
274
|
+
{card.title}
|
|
275
|
+
</span>
|
|
276
|
+
<IconArrowRight />
|
|
277
|
+
</span>
|
|
278
|
+
<span className="type type-fixed ts-text-lg-light knav-cdesc">{card.desc}</span>
|
|
279
|
+
</span>
|
|
280
|
+
</a>,
|
|
281
|
+
])}
|
|
282
|
+
</div>
|
|
283
|
+
</div>
|
|
284
|
+
);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
function EngineChips() {
|
|
288
|
+
return (
|
|
289
|
+
<>
|
|
290
|
+
{ENGINES.map((e) => (
|
|
291
|
+
<a key={e.id} className="type ts-text-sm-regular knav-chip" href={engineAnchor(e.id)}>
|
|
292
|
+
<i className="knav-chipdot" data-engine={e.id} aria-hidden="true" />
|
|
293
|
+
{e.label}
|
|
294
|
+
</a>
|
|
295
|
+
))}
|
|
296
|
+
<a className="type ts-text-sm-regular knav-chip" href={SITE_LINKS.solutions}>
|
|
297
|
+
All
|
|
298
|
+
</a>
|
|
299
|
+
</>
|
|
300
|
+
);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
function WorkChips() {
|
|
304
|
+
return (
|
|
305
|
+
<>
|
|
306
|
+
{WORK_CARDS.map((card) => (
|
|
307
|
+
<a
|
|
308
|
+
key={card.id}
|
|
309
|
+
className="type ts-text-sm-regular knav-rchip"
|
|
310
|
+
data-card={card.id}
|
|
311
|
+
href={card.href}
|
|
312
|
+
{...(card.external ? EXTERNAL_LINK : {})}
|
|
313
|
+
>
|
|
314
|
+
<card.Icon className="knav-rchipicon" />
|
|
315
|
+
{card.chipLabel}
|
|
316
|
+
</a>
|
|
317
|
+
))}
|
|
318
|
+
</>
|
|
319
|
+
);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
function ResourceChips() {
|
|
323
|
+
return (
|
|
324
|
+
<>
|
|
325
|
+
{RESOURCE_CARDS.map((card) => (
|
|
326
|
+
<a
|
|
327
|
+
key={card.id}
|
|
328
|
+
className="type ts-text-sm-regular knav-rchip"
|
|
329
|
+
data-card={card.id}
|
|
330
|
+
href={card.href}
|
|
331
|
+
{...(card.external ? EXTERNAL_LINK : {})}
|
|
332
|
+
>
|
|
333
|
+
<card.Icon className="knav-rchipicon" />
|
|
334
|
+
{card.chipLabel}
|
|
335
|
+
</a>
|
|
336
|
+
))}
|
|
337
|
+
</>
|
|
338
|
+
);
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
const MOBILE_ROWS: NavMobileRow[] = [
|
|
342
|
+
{
|
|
343
|
+
id: "solutions",
|
|
344
|
+
label: "Solutions",
|
|
345
|
+
drawer: <EngineChips />,
|
|
346
|
+
group: { rm: 5, rs: 5, rt: 4 },
|
|
347
|
+
boxTicks: { rm: 5, rs: 4, rt: 4 },
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
id: "our-work",
|
|
351
|
+
label: "Our Work",
|
|
352
|
+
drawer: <WorkChips />,
|
|
353
|
+
group: { rm: 4, rs: 4, rt: 4 },
|
|
354
|
+
boxTicks: { rm: 4, rs: 3, rt: 4 },
|
|
355
|
+
},
|
|
356
|
+
{ id: "pricing", label: "Pricing", href: SITE_LINKS.pricing },
|
|
357
|
+
{ id: "company", label: "Company", href: SITE_LINKS.company },
|
|
358
|
+
{
|
|
359
|
+
id: "resources",
|
|
360
|
+
label: "Resources",
|
|
361
|
+
drawer: <ResourceChips />,
|
|
362
|
+
group: { rm: 4, rs: 4, rt: 4 },
|
|
363
|
+
boxTicks: { rm: 4, rs: 3, rt: 4 },
|
|
364
|
+
},
|
|
365
|
+
];
|
|
366
|
+
|
|
367
|
+
export function NavChrome() {
|
|
368
|
+
return (
|
|
369
|
+
<header className="ks-nav">
|
|
370
|
+
<nav aria-label="Primary">
|
|
371
|
+
<NavDesktop
|
|
372
|
+
links={SITE_LINKS}
|
|
373
|
+
solutions={<SolutionsDrawerContent />}
|
|
374
|
+
work={<WorkDrawerContent />}
|
|
375
|
+
resources={<ResourcesDrawerContent />}
|
|
376
|
+
/>
|
|
377
|
+
<NavMobile
|
|
378
|
+
homeHref={SITE_LINKS.home}
|
|
379
|
+
rows={MOBILE_ROWS}
|
|
380
|
+
buttons={
|
|
381
|
+
<>
|
|
382
|
+
<ButtonFill size="lg" chrome="teal" shape="pill" href={SITE_LINKS.pricing}>
|
|
383
|
+
Get Started
|
|
384
|
+
</ButtonFill>
|
|
385
|
+
<ButtonFill size="lg" chrome="gray" shape="box" href={SITE_LINKS.login} external>
|
|
386
|
+
Login
|
|
387
|
+
</ButtonFill>
|
|
388
|
+
</>
|
|
389
|
+
}
|
|
390
|
+
/>
|
|
391
|
+
</nav>
|
|
392
|
+
</header>
|
|
393
|
+
);
|
|
394
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface SiteChatConfig {
|
|
2
|
+
placeholder: string;
|
|
3
|
+
suggestedQuestions: readonly string[];
|
|
4
|
+
/** The widget derives all chat accent colors from this token. */
|
|
5
|
+
accent: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const SITE_CHAT: SiteChatConfig = {
|
|
9
|
+
placeholder: "Ask anything...",
|
|
10
|
+
suggestedQuestions: [
|
|
11
|
+
"What can Keystone do for my business?",
|
|
12
|
+
"How much does Keystone cost?",
|
|
13
|
+
"How is Keystone different than a marketing agency?",
|
|
14
|
+
],
|
|
15
|
+
accent: "var(--color-teal-250)",
|
|
16
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { useEffect } from "react";
|
|
4
|
+
|
|
5
|
+
const TRIGGER_SELECTOR = '[data-action="open-chat"]';
|
|
6
|
+
/** The widget exposes no imperative open API, so activate its accessible control. */
|
|
7
|
+
const PILL_SELECTOR = '.ks-chat-panel button[aria-label="Open chat"]';
|
|
8
|
+
|
|
9
|
+
export function SiteChatOpen() {
|
|
10
|
+
useEffect(() => {
|
|
11
|
+
const onClick = (e: MouseEvent) => {
|
|
12
|
+
const target = e.target instanceof Element ? e.target : null;
|
|
13
|
+
const trigger = target?.closest<HTMLElement>(TRIGGER_SELECTOR);
|
|
14
|
+
if (!trigger) return;
|
|
15
|
+
const pill = document.querySelector<HTMLButtonElement>(PILL_SELECTOR);
|
|
16
|
+
if (!pill) return;
|
|
17
|
+
e.preventDefault();
|
|
18
|
+
pill.click();
|
|
19
|
+
};
|
|
20
|
+
document.addEventListener("click", onClick);
|
|
21
|
+
return () => document.removeEventListener("click", onClick);
|
|
22
|
+
}, []);
|
|
23
|
+
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { ChatWidget } from "@keystone-sites/widgets/components/ChatWidget";
|
|
2
|
+
import type { ChatTeamMember } from "@keystone-sites/widgets/components/ChatWidget";
|
|
3
|
+
import { resolveChatBackend } from "@keystone-sites/core/lib/chat-backend";
|
|
4
|
+
import { getCompanyInformation, getTeamMembers } from "@keystone-sites/core/lib/server-api";
|
|
5
|
+
import type { CompanyInformation } from "@keystone-sites/core/types";
|
|
6
|
+
import { SITE_CHAT } from "./site-chat-data";
|
|
7
|
+
import { SiteChatOpen } from "./site-chat-open";
|
|
8
|
+
|
|
9
|
+
export async function SiteChat() {
|
|
10
|
+
const [company, team] = await Promise.all([getCompanyInformation(), getTeamMembers()]);
|
|
11
|
+
if (!company?.chat_enabled) return null;
|
|
12
|
+
|
|
13
|
+
return (
|
|
14
|
+
<>
|
|
15
|
+
<ChatWidget
|
|
16
|
+
chatBackend={resolveChatBackend()}
|
|
17
|
+
accentColor={SITE_CHAT.accent}
|
|
18
|
+
placeholder={SITE_CHAT.placeholder}
|
|
19
|
+
suggestedQuestions={[...SITE_CHAT.suggestedQuestions]}
|
|
20
|
+
businessName={company.company_name}
|
|
21
|
+
businessLogoUrl={logoUrl(company)}
|
|
22
|
+
teamMembers={toChatTeam(team)}
|
|
23
|
+
/>
|
|
24
|
+
<SiteChatOpen />
|
|
25
|
+
</>
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function logoUrl(company: CompanyInformation): string | null {
|
|
30
|
+
const photo = company.logo_photo;
|
|
31
|
+
return photo?.large_url ?? photo?.original_url ?? photo?.medium_url ?? null;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/** Keep well-formed records and support both serialized photo shapes. */
|
|
35
|
+
function toChatTeam(raw: unknown): ChatTeamMember[] {
|
|
36
|
+
if (!Array.isArray(raw)) return [];
|
|
37
|
+
const out: ChatTeamMember[] = [];
|
|
38
|
+
for (const item of raw) {
|
|
39
|
+
if (!isRecord(item) || typeof item.id !== "number" || typeof item.name !== "string") continue;
|
|
40
|
+
const flat = typeof item.photo_url === "string" ? item.photo_url : undefined;
|
|
41
|
+
const attachment = Array.isArray(item.photo_attachments)
|
|
42
|
+
? item.photo_attachments[0]
|
|
43
|
+
: undefined;
|
|
44
|
+
const photo = isRecord(attachment) && isRecord(attachment.photo) ? attachment.photo : undefined;
|
|
45
|
+
const photo_url =
|
|
46
|
+
flat ??
|
|
47
|
+
photoString(photo, "large_url") ??
|
|
48
|
+
photoString(photo, "medium_url") ??
|
|
49
|
+
photoString(photo, "original_url");
|
|
50
|
+
out.push({
|
|
51
|
+
id: item.id,
|
|
52
|
+
name: item.name,
|
|
53
|
+
position: typeof item.position === "string" ? item.position : undefined,
|
|
54
|
+
photo_url,
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
return out;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function isRecord(value: unknown): value is Record<string, unknown> {
|
|
61
|
+
return typeof value === "object" && value !== null;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function photoString(photo: Record<string, unknown> | undefined, key: string): string | undefined {
|
|
65
|
+
const value = photo?.[key];
|
|
66
|
+
return typeof value === "string" ? value : undefined;
|
|
67
|
+
}
|
package/site-links.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { GRADER_URL } from "./lib/grader";
|
|
2
|
+
|
|
3
|
+
/** Spread onto anchors that leave this origin. */
|
|
4
|
+
export const EXTERNAL_LINK = {
|
|
5
|
+
target: "_blank",
|
|
6
|
+
rel: "noopener noreferrer",
|
|
7
|
+
} as const;
|
|
8
|
+
|
|
9
|
+
/** Destinations for nav and footer. Unbuilt pages use `#` so we never
|
|
10
|
+
* ship a 404 from chrome. */
|
|
11
|
+
export const SITE_LINKS = {
|
|
12
|
+
home: "/",
|
|
13
|
+
approach: "/#system",
|
|
14
|
+
solutions: "/#engine-brand",
|
|
15
|
+
grader: GRADER_URL,
|
|
16
|
+
ourWork: "/our-work",
|
|
17
|
+
caseStudies: "/our-work",
|
|
18
|
+
/* Deep link: the Our Work page opens the gallery overlay at site 1. */
|
|
19
|
+
gallery: "/our-work?gallery=1",
|
|
20
|
+
pricing: "/pricing",
|
|
21
|
+
company: "/company",
|
|
22
|
+
design: "/design",
|
|
23
|
+
resources: "/blog",
|
|
24
|
+
blog: "/blog",
|
|
25
|
+
marketingReport: GRADER_URL,
|
|
26
|
+
about: "/company",
|
|
27
|
+
leadership: "/company/#team",
|
|
28
|
+
careers: "/company/#careers",
|
|
29
|
+
contact: "/contact",
|
|
30
|
+
terms: "/terms",
|
|
31
|
+
privacy: "/privacy",
|
|
32
|
+
accessibility: "/accessibility",
|
|
33
|
+
login: "https://console.localkeystone.com/login",
|
|
34
|
+
spotify: "https://open.spotify.com/show/41MuXEI3TIvCAQW20Ko9cX",
|
|
35
|
+
applePodcasts: "https://podcasts.apple.com/us/podcast/made-locally/id1895736090",
|
|
36
|
+
} as const;
|
package/site.ts
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/* Inverted theme: the Grader ground. Remaps the semantic neutral roles
|
|
2
|
+
in semantic.css onto a matte, desaturated navy ramp so the page is
|
|
3
|
+
calmer than a near-black ground while the ink remains warm and light.
|
|
4
|
+
Hues, spacing, radii, type, motion, and every primitive stay unchanged.
|
|
5
|
+
|
|
6
|
+
Contrast on bg-100 (#25374b), measured 2026-09-10:
|
|
7
|
+
text-000 #fcfbf8 11.8:1 · text-100 #f0eee6 10.5:1 · text-200 #e0ddd1 8.9:1
|
|
8
|
+
text-300 #d6d2c2 8.0:1 · text-400 #a49d8e 4.5:1
|
|
9
|
+
text-500 and text-600 remain tertiary/disabled only.
|
|
10
|
+
ghost ink: brown-300 5.9:1 · teal-300 7.2:1
|
|
11
|
+
|
|
12
|
+
A consumer imports this file into `layer(skin)` after index.css and
|
|
13
|
+
names the theme on the element it applies to — `<html data-theme=
|
|
14
|
+
"inverted">` for a whole product, or any host to invert one region:
|
|
15
|
+
@import "@keystone-sites/marketing-design-system/themes/inverted.css" layer(skin);
|
|
16
|
+
The layer is last in the cascade, so these remaps beat the defaults a
|
|
17
|
+
component declares on its own root. This file remaps custom
|
|
18
|
+
properties (plus the one surface below whose colour is fixed); a
|
|
19
|
+
consumer's own sections restate their light-ground constants in their
|
|
20
|
+
own skin rules, scoped the same way. */
|
|
21
|
+
|
|
22
|
+
[data-theme="inverted"] {
|
|
23
|
+
/* bg — 000 is the deepest well, 100 the page, 200 raised chrome */
|
|
24
|
+
--color-bg-000: #172333;
|
|
25
|
+
--color-bg-050: #1d2c3d;
|
|
26
|
+
--color-bg-100: #25374b;
|
|
27
|
+
--color-bg-200: #30445a;
|
|
28
|
+
--color-bg-300: #3b5067;
|
|
29
|
+
--color-bg-400: #4b6177;
|
|
30
|
+
--color-bg-500: #617588;
|
|
31
|
+
--color-bg-600: #7a8b9a;
|
|
32
|
+
|
|
33
|
+
/* text — same role order as the light system, mirrored */
|
|
34
|
+
--color-text-000: var(--color-lightgray-050);
|
|
35
|
+
--color-text-050: var(--color-lightgray-100);
|
|
36
|
+
--color-text-100: var(--color-lightgray-200);
|
|
37
|
+
--color-text-200: var(--color-lightgray-400);
|
|
38
|
+
--color-text-300: var(--color-lightgray-500);
|
|
39
|
+
--color-text-400: var(--color-lightgray-900);
|
|
40
|
+
--color-text-500: var(--color-darkgray-050);
|
|
41
|
+
--color-text-600: var(--color-darkgray-200);
|
|
42
|
+
|
|
43
|
+
/* border — 000 stays the faint lattice hairline */
|
|
44
|
+
--color-border-000: #34495f;
|
|
45
|
+
--color-border-050: #40566c;
|
|
46
|
+
--color-border-100: #4f657b;
|
|
47
|
+
--color-border-200: #617589;
|
|
48
|
+
--color-border-300: #7a8b9c;
|
|
49
|
+
--color-border-400: var(--color-darkgray-050);
|
|
50
|
+
--color-border-500: var(--color-lightgray-900);
|
|
51
|
+
|
|
52
|
+
/* alpha — "black" means ink-colored, "white" means paper-colored;
|
|
53
|
+
the meanings hold, the channels swap */
|
|
54
|
+
--color-alpha-black-00: rgba(255, 255, 255, 0.001);
|
|
55
|
+
--color-alpha-black-05: rgba(255, 255, 255, 0.05);
|
|
56
|
+
--color-alpha-black-10: rgba(255, 255, 255, 0.1);
|
|
57
|
+
--color-alpha-black-20: rgba(255, 255, 255, 0.2);
|
|
58
|
+
--color-alpha-black-30: rgba(255, 255, 255, 0.3);
|
|
59
|
+
--color-alpha-black-40: rgba(255, 255, 255, 0.4);
|
|
60
|
+
--color-alpha-black-50: rgba(255, 255, 255, 0.5);
|
|
61
|
+
--color-alpha-black-60: rgba(255, 255, 255, 0.6);
|
|
62
|
+
--color-alpha-black-70: rgba(255, 255, 255, 0.7);
|
|
63
|
+
--color-alpha-black-80: rgba(255, 255, 255, 0.8);
|
|
64
|
+
--color-alpha-black-90: rgba(255, 255, 255, 0.9);
|
|
65
|
+
--color-alpha-black-100: #ffffff;
|
|
66
|
+
--color-alpha-white-00: rgba(0, 0, 0, 0.001);
|
|
67
|
+
--color-alpha-white-05: rgba(0, 0, 0, 0.05);
|
|
68
|
+
--color-alpha-white-10: rgba(0, 0, 0, 0.1);
|
|
69
|
+
--color-alpha-white-20: rgba(0, 0, 0, 0.2);
|
|
70
|
+
--color-alpha-white-30: rgba(0, 0, 0, 0.3);
|
|
71
|
+
--color-alpha-white-40: rgba(0, 0, 0, 0.4);
|
|
72
|
+
--color-alpha-white-50: rgba(0, 0, 0, 0.5);
|
|
73
|
+
--color-alpha-white-60: rgba(0, 0, 0, 0.6);
|
|
74
|
+
--color-alpha-white-70: rgba(0, 0, 0, 0.7);
|
|
75
|
+
--color-alpha-white-80: rgba(0, 0, 0, 0.8);
|
|
76
|
+
--color-alpha-white-90: rgba(0, 0, 0, 0.9);
|
|
77
|
+
--color-alpha-white-100: #000000;
|
|
78
|
+
|
|
79
|
+
/* Hard shadows read as a lifted paper edge on a dark ground. The ink
|
|
80
|
+
is the warm near-white mirror of the light system's #554d44. */
|
|
81
|
+
--shadow-ink: #e9e3d8;
|
|
82
|
+
--shadow-hard-round: 3px 4px 0 0 rgba(233, 227, 216, 0.15);
|
|
83
|
+
--shadow-hard-square: 4px 4px 0 0 rgba(233, 227, 216, 0.15);
|
|
84
|
+
--shadow-hard-square-md: 3px 3px 0 0 rgba(233, 227, 216, 0.15);
|
|
85
|
+
--shadow-hard-square-xs: 1px 1px 0 0 rgba(233, 227, 216, 0.2);
|
|
86
|
+
--shadow-hard-square-0: 0 0 0 0 rgba(233, 227, 216, 0.15);
|
|
87
|
+
--shadow-hard-square-md-0: 0 0 0 0 rgba(233, 227, 216, 0.15);
|
|
88
|
+
--shadow-web-swatch: 0 1px 2px 0 rgba(233, 227, 216, 0.05);
|
|
89
|
+
|
|
90
|
+
/* Nav drawer ornaments encode a light ground (sections/nav.css). */
|
|
91
|
+
--knav-decor-teal: var(--color-teal-700);
|
|
92
|
+
--knav-decor-brown: var(--color-brown-700);
|
|
93
|
+
--knav-decor-yellow: var(--color-yellow-700);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* The grader input's brown ring is a paper tint (primitives/grader.css). */
|
|
97
|
+
[data-theme="inverted"] .grader {
|
|
98
|
+
--grader-ring-brown: var(--color-brown-700);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/* Ghost buttons ink with a hue's 600 stop, tuned for paper. On the dark
|
|
102
|
+
ground the 300 stop carries the same role at AA contrast; hover fills
|
|
103
|
+
move to the 700 stop so the ink still sits on the darker tint. */
|
|
104
|
+
[data-theme="inverted"] .btn-ghost[data-color="brown"] {
|
|
105
|
+
--_ink: var(--color-brown-300);
|
|
106
|
+
--_hover-bg: var(--color-brown-700);
|
|
107
|
+
--_ring: var(--color-brown-700);
|
|
108
|
+
}
|
|
109
|
+
[data-theme="inverted"] .btn-ghost[data-color="teal"] {
|
|
110
|
+
--_ink: var(--color-teal-300);
|
|
111
|
+
--_hover-bg: var(--color-teal-700);
|
|
112
|
+
--_ring: var(--color-teal-700);
|
|
113
|
+
}
|
|
114
|
+
[data-theme="inverted"] .btn-fill[data-chrome="teal"] {
|
|
115
|
+
--_ring: var(--color-teal-600);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/* The gallery stage keeps a dark scrim under the embedded site. On paper
|
|
119
|
+
text/050 is that dark; on the dark ground the deepest well is. */
|
|
120
|
+
[data-theme="inverted"] .gv-stage {
|
|
121
|
+
background: var(--color-bg-000);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* The consent panel (widgets.css) on the dark ground: lighter accents,
|
|
125
|
+
the packaged inline muted ink, and the alpha switch track. */
|
|
126
|
+
[data-theme="inverted"] .ks-consent-panel {
|
|
127
|
+
--consent-accent: var(--color-teal-300);
|
|
128
|
+
--consent-accent-wash: color-mix(in srgb, var(--color-teal-300) 10%, transparent);
|
|
129
|
+
--consent-outline: var(--color-teal-300);
|
|
130
|
+
}
|
|
131
|
+
[data-theme="inverted"] .ks-consent-panel :is(p, span)[style*="color"] {
|
|
132
|
+
color: var(--color-text-400) !important;
|
|
133
|
+
}
|
|
134
|
+
[data-theme="inverted"] .ks-consent-panel button[class~="bg-[#2b2620]/[0.18]"] {
|
|
135
|
+
background-color: var(--color-alpha-black-20) !important;
|
|
136
|
+
}
|
|
137
|
+
[data-theme="inverted"] .ks-consent-panel button[class~="hover:bg-[#2b2620]/[0.07]"]:hover {
|
|
138
|
+
background-color: var(--color-alpha-black-10) !important;
|
|
139
|
+
}
|