@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/media.ts
ADDED
|
@@ -0,0 +1,558 @@
|
|
|
1
|
+
/** Asset paths and intrinsic dimensions. Consumers reference this registry
|
|
2
|
+
* instead of hardcoding paths. The only literal paths outside it are the
|
|
3
|
+
* contexts that cannot import TS: `@font-face`, the root layout's preload
|
|
4
|
+
* hrefs, and app metadata.
|
|
5
|
+
*
|
|
6
|
+
* Images. Photography renders as `<picture>` with one media-gated
|
|
7
|
+
* `<source>` per width tier and the smallest tier as the `<img>` fallback.
|
|
8
|
+
* Tier cuts follow the grid gates; cut each at 2× its band's rendered
|
|
9
|
+
* frame. Explicit `width`/`height` on every image, WebP only, `alt=""`
|
|
10
|
+
* for ambient photography, `loading="lazy"` unless it is a first-view
|
|
11
|
+
* candidate. The deploy serves static assets directly, so this markup is
|
|
12
|
+
* the delivery mechanism.
|
|
13
|
+
*
|
|
14
|
+
* Files live under `public/media/<function>/` (hero-carousel, portfolio,
|
|
15
|
+
* engines, testimonials, brand, fonts). Only favicons, `og-image.jpg`, and
|
|
16
|
+
* `site.webmanifest` sit at the public root. Names are lowercase
|
|
17
|
+
* kebab-case, general to specific, identifiable without opening the file.
|
|
18
|
+
* Delete replaced assets and their entries here. */
|
|
19
|
+
|
|
20
|
+
export interface MediaAsset {
|
|
21
|
+
src: string;
|
|
22
|
+
width: number;
|
|
23
|
+
height: number;
|
|
24
|
+
alt: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface VideoAsset {
|
|
28
|
+
src: string;
|
|
29
|
+
width: number;
|
|
30
|
+
height: number;
|
|
31
|
+
type: string;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/** One art-directed cut of a picture. `media` gates the `<source>`;
|
|
35
|
+
* the tier with `media: null` is the `<img>` fallback and comes last. */
|
|
36
|
+
export interface PictureTier {
|
|
37
|
+
media: string | null;
|
|
38
|
+
src: string;
|
|
39
|
+
width: number;
|
|
40
|
+
height: number;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/** A complete `<picture>`: tiers ordered largest-first, then the alt.
|
|
44
|
+
* Render with `primitives/picture.tsx`. */
|
|
45
|
+
export interface PictureSet {
|
|
46
|
+
tiers: readonly PictureTier[];
|
|
47
|
+
alt: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* Hero carousel: odd slides switch from square to wide at the rt gate;
|
|
51
|
+
* even slides use their square cut everywhere. Tint is baked in and the
|
|
52
|
+
* ambient strip stays aria-hidden with empty alts. */
|
|
53
|
+
|
|
54
|
+
export const HERO_CAROUSEL_FRAMES = 8;
|
|
55
|
+
|
|
56
|
+
/** Odd slides swap from square to wide at the rt structural gate. */
|
|
57
|
+
export const HERO_RT_GATE_MEDIA = "(min-width: 665px)";
|
|
58
|
+
|
|
59
|
+
export const HERO_WIDE = { width: 1344, height: 896 };
|
|
60
|
+
export const HERO_SQUARE = { width: 896, height: 896 };
|
|
61
|
+
|
|
62
|
+
/** Odd frames use both tiers; even frames use the 1344 square file. */
|
|
63
|
+
export function heroCarouselSrc(frame: number, cut: "wide" | "square"): string {
|
|
64
|
+
const n = String(frame).padStart(2, "0");
|
|
65
|
+
if (cut === "wide" || frame % 2 === 0) {
|
|
66
|
+
return `/media/hero-carousel/hero-carousel-1344-${n}.webp`;
|
|
67
|
+
}
|
|
68
|
+
return `/media/hero-carousel/hero-carousel-384-${n}.webp`;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/** A hero-carousel frame as a standalone ambient picture (landing heroes):
|
|
72
|
+
* the wide cut from the rt gate, the square cut below it. */
|
|
73
|
+
export function heroCarouselPicture(frame: number): PictureSet {
|
|
74
|
+
return {
|
|
75
|
+
tiers: [
|
|
76
|
+
{ media: HERO_RT_GATE_MEDIA, src: heroCarouselSrc(frame, "wide"), ...HERO_WIDE },
|
|
77
|
+
{ media: null, src: heroCarouselSrc(frame, "square"), ...HERO_SQUARE },
|
|
78
|
+
],
|
|
79
|
+
alt: "",
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* Persona cuts are art-directed per band and ordered largest-first, with
|
|
84
|
+
* xs as fallback. The card paints its hue overlay; titles carry meaning. */
|
|
85
|
+
|
|
86
|
+
export type PersonaId = "steady" | "growth" | "active" | "highgrowth";
|
|
87
|
+
|
|
88
|
+
export interface PersonaTier {
|
|
89
|
+
cut: "xs" | "sm" | "md" | "lg" | "xl";
|
|
90
|
+
/** null on the xs tier — it is the <img> fallback, not a <source>. */
|
|
91
|
+
media: string | null;
|
|
92
|
+
width: number;
|
|
93
|
+
height: number;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/** Largest-first source order; xs is the fallback. */
|
|
97
|
+
export const PERSONA_TIERS: PersonaTier[] = [
|
|
98
|
+
{ cut: "xl", media: "(min-width: 1130px)", width: 1120, height: 448 },
|
|
99
|
+
{ cut: "lg", media: "(min-width: 860px)", width: 800, height: 480 },
|
|
100
|
+
{ cut: "md", media: "(min-width: 665px)", width: 640, height: 384 },
|
|
101
|
+
{ cut: "sm", media: "(min-width: 470px)", width: 576, height: 384 },
|
|
102
|
+
{ cut: "xs", media: null, width: 608, height: 384 },
|
|
103
|
+
];
|
|
104
|
+
|
|
105
|
+
/** persona-{steady|growth|active|highgrowth}-{tier}.webp under
|
|
106
|
+
* public/media/personas. */
|
|
107
|
+
export function personaSrc(persona: PersonaId, cut: PersonaTier["cut"]): string {
|
|
108
|
+
return `/media/personas/persona-${persona}-${cut}.webp`;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/* Case-study card cuts are art-directed per band and ordered largest-first,
|
|
112
|
+
* with 384 as fallback. Customer-site images require meaningful alt text. */
|
|
113
|
+
|
|
114
|
+
export type CaseStudySiteId = "zivel" | "yhs" | "barelux";
|
|
115
|
+
|
|
116
|
+
export interface CaseStudyTier {
|
|
117
|
+
cut: 384 | 576 | 768 | 960 | 1344;
|
|
118
|
+
/** null on the 384 tier — it is the <img> fallback, not a <source>. */
|
|
119
|
+
media: string | null;
|
|
120
|
+
width: number;
|
|
121
|
+
height: number;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/** Largest-first, ready for <source> order; the last entry is the
|
|
125
|
+
* 384 fallback. */
|
|
126
|
+
export const CASE_STUDY_TIERS: CaseStudyTier[] = [
|
|
127
|
+
{ cut: 1344, media: "(min-width: 1130px)", width: 1344, height: 896 },
|
|
128
|
+
{ cut: 960, media: "(min-width: 860px)", width: 800, height: 800 },
|
|
129
|
+
{ cut: 768, media: "(min-width: 665px)", width: 640, height: 768 },
|
|
130
|
+
{ cut: 576, media: "(min-width: 470px)", width: 960, height: 576 },
|
|
131
|
+
{ cut: 384, media: null, width: 672, height: 384 },
|
|
132
|
+
];
|
|
133
|
+
|
|
134
|
+
/** casestudy-{zivel|yhs|barelux}-{tier}.webp under
|
|
135
|
+
* public/media/case-studies. */
|
|
136
|
+
export function caseStudySrc(site: CaseStudySiteId, cut: CaseStudyTier["cut"]): string {
|
|
137
|
+
return `/media/case-studies/casestudy-${site}-${cut}.webp`;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/* Case-study page cuts are art-directed per band. Header and studio files
|
|
141
|
+
* include their shadows and tint, so mounts add no CSS shadow or blend.
|
|
142
|
+
* Per-study dimensions and meaningful alt text live with section data. */
|
|
143
|
+
|
|
144
|
+
export type CaseStudyPageImage = "header" | "studio" | "result";
|
|
145
|
+
|
|
146
|
+
export interface CaseStudyPageTier {
|
|
147
|
+
cut: 384 | 576 | 768 | 960 | 1344;
|
|
148
|
+
/** null on the 384 tier — it is the <img> fallback, not a <source>. */
|
|
149
|
+
media: string | null;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/** Largest-first, ready for <source> order; the last entry is the
|
|
153
|
+
* 384 fallback. */
|
|
154
|
+
export const CASE_STUDY_PAGE_TIERS: CaseStudyPageTier[] = [
|
|
155
|
+
{ cut: 1344, media: "(min-width: 1130px)" },
|
|
156
|
+
{ cut: 960, media: "(min-width: 860px)" },
|
|
157
|
+
{ cut: 768, media: "(min-width: 665px)" },
|
|
158
|
+
{ cut: 576, media: "(min-width: 470px)" },
|
|
159
|
+
{ cut: 384, media: null },
|
|
160
|
+
];
|
|
161
|
+
|
|
162
|
+
/** casestudy-{asset-id}-{header|studio|result}-{tier}.webp under
|
|
163
|
+
* public/media/case-studies. */
|
|
164
|
+
export function caseStudyPageSrc(
|
|
165
|
+
study: string,
|
|
166
|
+
image: CaseStudyPageImage,
|
|
167
|
+
cut: CaseStudyPageTier["cut"],
|
|
168
|
+
): string {
|
|
169
|
+
return `/media/case-studies/casestudy-${study}-${image}-${cut}.webp`;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/* Gallery cuts are art-directed at sm, md, and lg. The lg cut serves all
|
|
173
|
+
* mosaic slots under cover. Customer-site images use meaningful alt text
|
|
174
|
+
* and lazy loading because the gallery is below the fold. */
|
|
175
|
+
|
|
176
|
+
export interface GalleryTier {
|
|
177
|
+
cut: "sm" | "md" | "lg";
|
|
178
|
+
/** null on the sm tier — it is the <img> fallback, not a <source>. */
|
|
179
|
+
media: string | null;
|
|
180
|
+
width: number;
|
|
181
|
+
height: number;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/** Largest-first source order; sm is the fallback. */
|
|
185
|
+
export const GALLERY_TIERS: GalleryTier[] = [
|
|
186
|
+
{ cut: "lg", media: "(min-width: 665px)", width: 1456, height: 1008 },
|
|
187
|
+
{ cut: "md", media: "(min-width: 470px)", width: 864, height: 576 },
|
|
188
|
+
{ cut: "sm", media: null, width: 608, height: 384 },
|
|
189
|
+
];
|
|
190
|
+
|
|
191
|
+
/** gallery-{sm|md|lg}-{01–09}.webp under public/media/gallery. */
|
|
192
|
+
export function gallerySrc(image: number, cut: GalleryTier["cut"]): string {
|
|
193
|
+
return `/media/gallery/gallery-${cut}-${String(image).padStart(2, "0")}.webp`;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/* Engine visuals from Figma node 771:18256 ship in xl, md, and xs cuts
|
|
197
|
+
* for both states. They are decorative and use empty alt text. */
|
|
198
|
+
|
|
199
|
+
export type EngineState = "01" | "02";
|
|
200
|
+
export type EngineCut = "xl" | "md" | "xs";
|
|
201
|
+
|
|
202
|
+
export const ENGINE_CUTS: Record<EngineCut, { width: number; height: number }> = {
|
|
203
|
+
xl: { width: 1216, height: 1216 },
|
|
204
|
+
md: { width: 1416, height: 1416 },
|
|
205
|
+
xs: { width: 704, height: 704 },
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
/** The static stack swaps from xs to md at the rt gate. */
|
|
209
|
+
export const ENGINE_MD_MEDIA = "(min-width: 665px)";
|
|
210
|
+
|
|
211
|
+
/** xl files have no suffix; md and xs include their cut suffix. */
|
|
212
|
+
export function engineImageSrc(engine: string, state: EngineState, cut: EngineCut = "xl"): string {
|
|
213
|
+
const suffix = cut === "xl" ? "" : `-${cut}`;
|
|
214
|
+
return `/media/engines/engine-${engine}-${state}${suffix}.webp`;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/* Work-cascade tiers are art-directed and viewport-gated. File numbering
|
|
218
|
+
* runs opposite the cascade order, so work-deck-data.ts owns the mapping. */
|
|
219
|
+
|
|
220
|
+
export type WorkCascadeCut = 1344 | 768 | 384;
|
|
221
|
+
|
|
222
|
+
export const WORK_CASCADE_RD1_GATE_MEDIA = "(min-width: 860px)";
|
|
223
|
+
export const WORK_CASCADE_RS_GATE_MEDIA = "(min-width: 470px)";
|
|
224
|
+
|
|
225
|
+
/** The 384 fallback cut's intrinsic size (the <img> width/height). */
|
|
226
|
+
export const WORK_CASCADE_FALLBACK = { width: 640, height: 384 };
|
|
227
|
+
|
|
228
|
+
/** work-cascade-{tier}-{01..06}.webp under public/media/work-cascade. */
|
|
229
|
+
export function workCascadeSrc(file: number, cut: WorkCascadeCut): string {
|
|
230
|
+
return `/media/work-cascade/work-cascade-${cut}-${String(file).padStart(2, "0")}.webp`;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/* Case-carousel cards use landscape below rt and portrait from rt upward.
|
|
234
|
+
* Filters are baked in. File numbering runs opposite strip order, so
|
|
235
|
+
* case-carousel-data.ts owns the mapping. Images require meaningful alt. */
|
|
236
|
+
|
|
237
|
+
/** Cards swap from landscape to portrait at the rt gate. */
|
|
238
|
+
export const CASE_CAROUSEL_RT_GATE_MEDIA = "(min-width: 665px)";
|
|
239
|
+
|
|
240
|
+
export const CASE_CAROUSEL_LANDSCAPE = { width: 576, height: 448 };
|
|
241
|
+
|
|
242
|
+
/** case-study-{1344|384}-{01..03}.webp under public/media/case-carousel. */
|
|
243
|
+
export function caseCarouselSrc(file: number, cut: "portrait" | "landscape"): string {
|
|
244
|
+
const tier = cut === "portrait" ? 1344 : 384;
|
|
245
|
+
return `/media/case-carousel/case-study-${tier}-${String(file).padStart(2, "0")}.webp`;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/* Company page media: portraits restored from the v1 archive (b0e6af3)
|
|
249
|
+
* and converted to WebP. Team keys are kebab-cased member names so the
|
|
250
|
+
* live getTeamMembers() result can resolve its static portrait. */
|
|
251
|
+
|
|
252
|
+
export const TEAM_PORTRAIT_SIZE = { width: 800, height: 800 };
|
|
253
|
+
|
|
254
|
+
/** Static team portraits under public/media/team, keyed by name slug. */
|
|
255
|
+
export const TEAM_PORTRAITS: Record<string, MediaAsset> = {
|
|
256
|
+
"rahul-jaswa": {
|
|
257
|
+
src: "/media/team/rahul-jaswa.webp",
|
|
258
|
+
...TEAM_PORTRAIT_SIZE,
|
|
259
|
+
alt: "Rahul Jaswa, Founder & CEO",
|
|
260
|
+
},
|
|
261
|
+
"amanjot-singh": {
|
|
262
|
+
src: "/media/team/amanjot-singh.webp",
|
|
263
|
+
...TEAM_PORTRAIT_SIZE,
|
|
264
|
+
alt: "Amanjot Singh, Head of Engineering",
|
|
265
|
+
},
|
|
266
|
+
"sreenivasan-ac": {
|
|
267
|
+
src: "/media/team/sreenivasan-ac.webp",
|
|
268
|
+
...TEAM_PORTRAIT_SIZE,
|
|
269
|
+
alt: "Sreenivasan AC, Founding AI Engineer",
|
|
270
|
+
},
|
|
271
|
+
"pawan-kumar": {
|
|
272
|
+
src: "/media/team/pawan-kumar.webp",
|
|
273
|
+
...TEAM_PORTRAIT_SIZE,
|
|
274
|
+
alt: "Pawan Kumar, Backend Engineer",
|
|
275
|
+
},
|
|
276
|
+
"gaurav-labhane": {
|
|
277
|
+
src: "/media/team/gaurav-labhane.webp",
|
|
278
|
+
...TEAM_PORTRAIT_SIZE,
|
|
279
|
+
alt: "Gaurav Labhane, Senior Software Development Engineer",
|
|
280
|
+
},
|
|
281
|
+
"gaurav-grover": {
|
|
282
|
+
src: "/media/team/gaurav-grover.webp",
|
|
283
|
+
...TEAM_PORTRAIT_SIZE,
|
|
284
|
+
alt: "Gaurav Grover, Lead Software Engineer",
|
|
285
|
+
},
|
|
286
|
+
"manikya-singh": {
|
|
287
|
+
src: "/media/team/manikya-singh.webp",
|
|
288
|
+
...TEAM_PORTRAIT_SIZE,
|
|
289
|
+
alt: "Manikya Singh, Founding Engineer",
|
|
290
|
+
},
|
|
291
|
+
"aasawari-vaidya": {
|
|
292
|
+
src: "/media/team/aasawari-vaidya.webp",
|
|
293
|
+
...TEAM_PORTRAIT_SIZE,
|
|
294
|
+
alt: "Aasawari Vaidya, Strategy & Operations Lead",
|
|
295
|
+
},
|
|
296
|
+
"ishttartha-pujar": {
|
|
297
|
+
src: "/media/team/ishttartha-pujar.webp",
|
|
298
|
+
...TEAM_PORTRAIT_SIZE,
|
|
299
|
+
alt: "Ishttartha Pujar, Growth Partner",
|
|
300
|
+
},
|
|
301
|
+
"atley-kasky": {
|
|
302
|
+
src: "/media/team/atley-kasky.webp",
|
|
303
|
+
...TEAM_PORTRAIT_SIZE,
|
|
304
|
+
alt: "Atley Kasky, Brand & Design Lead",
|
|
305
|
+
},
|
|
306
|
+
};
|
|
307
|
+
|
|
308
|
+
/** Resolves a live team member's static portrait by kebab-casing the
|
|
309
|
+
* API name ("Sreenivasan AC" → "sreenivasan-ac"). Null when the member
|
|
310
|
+
* has no portrait in the registry. */
|
|
311
|
+
export function teamPortrait(name: string): MediaAsset | null {
|
|
312
|
+
const slug = name
|
|
313
|
+
.trim()
|
|
314
|
+
.toLowerCase()
|
|
315
|
+
.replace(/[^a-z0-9]+/g, "-")
|
|
316
|
+
.replace(/^-|-$/g, "");
|
|
317
|
+
return TEAM_PORTRAITS[slug] ?? null;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
export const INVESTOR_PORTRAIT_SIZE = { width: 400, height: 400 };
|
|
321
|
+
|
|
322
|
+
/** Investor portraits under public/media/investors; name-only alt —
|
|
323
|
+
* the roster omits firms by design. */
|
|
324
|
+
export const INVESTOR_PORTRAITS: Record<string, MediaAsset> = {
|
|
325
|
+
"adeyemi-ajao": {
|
|
326
|
+
src: "/media/investors/adeyemi-ajao.webp",
|
|
327
|
+
...INVESTOR_PORTRAIT_SIZE,
|
|
328
|
+
alt: "Adeyemi Ajao",
|
|
329
|
+
},
|
|
330
|
+
"anthony-saleh": {
|
|
331
|
+
src: "/media/investors/anthony-saleh.webp",
|
|
332
|
+
...INVESTOR_PORTRAIT_SIZE,
|
|
333
|
+
alt: "Anthony Saleh",
|
|
334
|
+
},
|
|
335
|
+
"caroline-broder": {
|
|
336
|
+
src: "/media/investors/caroline-broder.webp",
|
|
337
|
+
...INVESTOR_PORTRAIT_SIZE,
|
|
338
|
+
alt: "Caroline Broder",
|
|
339
|
+
},
|
|
340
|
+
"chenli-wang": {
|
|
341
|
+
src: "/media/investors/chenli-wang.webp",
|
|
342
|
+
...INVESTOR_PORTRAIT_SIZE,
|
|
343
|
+
alt: "Chenli Wang",
|
|
344
|
+
},
|
|
345
|
+
"colin-evans": {
|
|
346
|
+
src: "/media/investors/colin-evans.webp",
|
|
347
|
+
...INVESTOR_PORTRAIT_SIZE,
|
|
348
|
+
alt: "Colin Evans",
|
|
349
|
+
},
|
|
350
|
+
"dan-gill": {
|
|
351
|
+
src: "/media/investors/dan-gill.webp",
|
|
352
|
+
...INVESTOR_PORTRAIT_SIZE,
|
|
353
|
+
alt: "Dan Gill",
|
|
354
|
+
},
|
|
355
|
+
"ilya-fushman": {
|
|
356
|
+
src: "/media/investors/ilya-fushman.webp",
|
|
357
|
+
...INVESTOR_PORTRAIT_SIZE,
|
|
358
|
+
alt: "Ilya Fushman",
|
|
359
|
+
},
|
|
360
|
+
"jai-ranganathan": {
|
|
361
|
+
src: "/media/investors/jai-ranganathan.webp",
|
|
362
|
+
...INVESTOR_PORTRAIT_SIZE,
|
|
363
|
+
alt: "Jai Ranganathan",
|
|
364
|
+
},
|
|
365
|
+
"john-gleeson": {
|
|
366
|
+
src: "/media/investors/john-gleeson.webp",
|
|
367
|
+
...INVESTOR_PORTRAIT_SIZE,
|
|
368
|
+
alt: "John Gleeson",
|
|
369
|
+
},
|
|
370
|
+
"nick-tippman": {
|
|
371
|
+
src: "/media/investors/nick-tippman.webp",
|
|
372
|
+
...INVESTOR_PORTRAIT_SIZE,
|
|
373
|
+
alt: "Nick Tippman",
|
|
374
|
+
},
|
|
375
|
+
"obaid-khan": {
|
|
376
|
+
src: "/media/investors/obaid-khan.webp",
|
|
377
|
+
...INVESTOR_PORTRAIT_SIZE,
|
|
378
|
+
alt: "Obaid Khan",
|
|
379
|
+
},
|
|
380
|
+
"olivia-benjamin": {
|
|
381
|
+
src: "/media/investors/olivia-benjamin.webp",
|
|
382
|
+
...INVESTOR_PORTRAIT_SIZE,
|
|
383
|
+
alt: "Olivia Benjamin",
|
|
384
|
+
},
|
|
385
|
+
"praveen-ramineni": {
|
|
386
|
+
src: "/media/investors/praveen-ramineni.webp",
|
|
387
|
+
...INVESTOR_PORTRAIT_SIZE,
|
|
388
|
+
alt: "Praveen Ramineni",
|
|
389
|
+
},
|
|
390
|
+
"rexhi-dollaku": {
|
|
391
|
+
src: "/media/investors/rexhi-dollaku.webp",
|
|
392
|
+
...INVESTOR_PORTRAIT_SIZE,
|
|
393
|
+
alt: "Rexhi Dollaku",
|
|
394
|
+
},
|
|
395
|
+
"shoaib-makani": {
|
|
396
|
+
src: "/media/investors/shoaib-makani.webp",
|
|
397
|
+
...INVESTOR_PORTRAIT_SIZE,
|
|
398
|
+
alt: "Shoaib Makani",
|
|
399
|
+
},
|
|
400
|
+
"siva-gurumurthy": {
|
|
401
|
+
src: "/media/investors/siva-gurumurthy.webp",
|
|
402
|
+
...INVESTOR_PORTRAIT_SIZE,
|
|
403
|
+
alt: "Siva Gurumurthy",
|
|
404
|
+
},
|
|
405
|
+
"somesh-dash": {
|
|
406
|
+
src: "/media/investors/somesh-dash.webp",
|
|
407
|
+
...INVESTOR_PORTRAIT_SIZE,
|
|
408
|
+
alt: "Somesh Dash",
|
|
409
|
+
},
|
|
410
|
+
"sujay-jaswa": {
|
|
411
|
+
src: "/media/investors/sujay-jaswa.webp",
|
|
412
|
+
...INVESTOR_PORTRAIT_SIZE,
|
|
413
|
+
alt: "Sujay Jaswa",
|
|
414
|
+
},
|
|
415
|
+
"tanuj-thapliyal": {
|
|
416
|
+
src: "/media/investors/tanuj-thapliyal.webp",
|
|
417
|
+
...INVESTOR_PORTRAIT_SIZE,
|
|
418
|
+
alt: "Tanuj Thapliyal",
|
|
419
|
+
},
|
|
420
|
+
"ted-gill": {
|
|
421
|
+
src: "/media/investors/ted-gill.webp",
|
|
422
|
+
...INVESTOR_PORTRAIT_SIZE,
|
|
423
|
+
alt: "Ted Gill",
|
|
424
|
+
},
|
|
425
|
+
"thomas-buley": {
|
|
426
|
+
src: "/media/investors/thomas-buley.webp",
|
|
427
|
+
...INVESTOR_PORTRAIT_SIZE,
|
|
428
|
+
alt: "Thomas Buley",
|
|
429
|
+
},
|
|
430
|
+
"zach-goldstein": {
|
|
431
|
+
src: "/media/investors/zach-goldstein.webp",
|
|
432
|
+
...INVESTOR_PORTRAIT_SIZE,
|
|
433
|
+
alt: "Zach Goldstein",
|
|
434
|
+
},
|
|
435
|
+
};
|
|
436
|
+
|
|
437
|
+
/* Company hero video: six clips, each art-directed for the phone,
|
|
438
|
+
* tablet, and desktop frame ratios. Sources stay largest-first so a
|
|
439
|
+
* matching higher tier wins before the lower-tier codec fallback. */
|
|
440
|
+
|
|
441
|
+
export type CompanyHeroVideoTier = "phone" | "tablet" | "desktop";
|
|
442
|
+
export type CompanyHeroVideoFormat = "webm" | "mp4";
|
|
443
|
+
export type CompanyHeroVideoIndex = 1 | 2 | 3 | 4 | 5 | 6;
|
|
444
|
+
|
|
445
|
+
export interface CompanyHeroVideoTierDefinition {
|
|
446
|
+
width: number;
|
|
447
|
+
height: number;
|
|
448
|
+
media: string | null;
|
|
449
|
+
webmType: string;
|
|
450
|
+
mp4Type: string;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
export const COMPANY_HERO_VIDEO_TIERS: Record<
|
|
454
|
+
CompanyHeroVideoTier,
|
|
455
|
+
CompanyHeroVideoTierDefinition
|
|
456
|
+
> = {
|
|
457
|
+
phone: {
|
|
458
|
+
width: 640,
|
|
459
|
+
height: 384,
|
|
460
|
+
media: null,
|
|
461
|
+
webmType: 'video/webm; codecs="vp9"',
|
|
462
|
+
mp4Type: 'video/mp4; codecs="avc1.640029"',
|
|
463
|
+
},
|
|
464
|
+
tablet: {
|
|
465
|
+
width: 1280,
|
|
466
|
+
height: 768,
|
|
467
|
+
media: "(min-width: 470px)",
|
|
468
|
+
webmType: 'video/webm; codecs="vp9"',
|
|
469
|
+
mp4Type: 'video/mp4; codecs="avc1.640029"',
|
|
470
|
+
},
|
|
471
|
+
desktop: {
|
|
472
|
+
width: 1600,
|
|
473
|
+
height: 800,
|
|
474
|
+
media: "(min-width: 860px)",
|
|
475
|
+
webmType: 'video/webm; codecs="vp9"',
|
|
476
|
+
mp4Type: 'video/mp4; codecs="av01.0.08M.08"',
|
|
477
|
+
},
|
|
478
|
+
};
|
|
479
|
+
|
|
480
|
+
/** company-hero-{01..06}-{phone|tablet|desktop}-{width}x{height}.{format}
|
|
481
|
+
* under public/media/company/hero. */
|
|
482
|
+
export function companyHeroVideoAsset(
|
|
483
|
+
clip: CompanyHeroVideoIndex,
|
|
484
|
+
tier: CompanyHeroVideoTier,
|
|
485
|
+
format: CompanyHeroVideoFormat,
|
|
486
|
+
): VideoAsset {
|
|
487
|
+
const definition = COMPANY_HERO_VIDEO_TIERS[tier];
|
|
488
|
+
const index = String(clip).padStart(2, "0");
|
|
489
|
+
return {
|
|
490
|
+
src: `/media/company/hero/company-hero-${index}-${tier}-${definition.width}x${definition.height}.${format}`,
|
|
491
|
+
width: definition.width,
|
|
492
|
+
height: definition.height,
|
|
493
|
+
type: format === "webm" ? definition.webmType : definition.mp4Type,
|
|
494
|
+
};
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
export interface CompanyHeroPosterTier extends MediaAsset {
|
|
498
|
+
media: string | null;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
/** Largest-first source order; phone is the <img> fallback. */
|
|
502
|
+
export const COMPANY_HERO_POSTERS: CompanyHeroPosterTier[] = [
|
|
503
|
+
{
|
|
504
|
+
src: "/media/company/hero/company-hero-poster-desktop-1600x800.webp",
|
|
505
|
+
width: 1600,
|
|
506
|
+
height: 800,
|
|
507
|
+
alt: "",
|
|
508
|
+
media: COMPANY_HERO_VIDEO_TIERS.desktop.media,
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
src: "/media/company/hero/company-hero-poster-tablet-1280x768.webp",
|
|
512
|
+
width: 1280,
|
|
513
|
+
height: 768,
|
|
514
|
+
alt: "",
|
|
515
|
+
media: COMPANY_HERO_VIDEO_TIERS.tablet.media,
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
src: "/media/company/hero/company-hero-poster-phone-640x384.webp",
|
|
519
|
+
width: 640,
|
|
520
|
+
height: 384,
|
|
521
|
+
alt: "",
|
|
522
|
+
media: null,
|
|
523
|
+
},
|
|
524
|
+
];
|
|
525
|
+
|
|
526
|
+
export const MEDIA = {
|
|
527
|
+
brand: {
|
|
528
|
+
/** Logomark + wordmark side by side. */
|
|
529
|
+
lockup: {
|
|
530
|
+
src: "/media/brand/ks-lockup.svg",
|
|
531
|
+
width: 380,
|
|
532
|
+
height: 61,
|
|
533
|
+
alt: "Keystone",
|
|
534
|
+
},
|
|
535
|
+
/** The mark alone. */
|
|
536
|
+
logomark: {
|
|
537
|
+
src: "/media/brand/ks-logomark.svg",
|
|
538
|
+
width: 66,
|
|
539
|
+
height: 66,
|
|
540
|
+
alt: "Keystone",
|
|
541
|
+
},
|
|
542
|
+
/** The wordmark alone. */
|
|
543
|
+
wordmark: {
|
|
544
|
+
src: "/media/brand/ks-wordmark.svg",
|
|
545
|
+
width: 316,
|
|
546
|
+
height: 72,
|
|
547
|
+
alt: "Keystone",
|
|
548
|
+
},
|
|
549
|
+
/** Inline-prose wordmark from Figma node 506:4400. Its distinct
|
|
550
|
+
* baseline geometry is encoded by --hx-wm-drop. */
|
|
551
|
+
wordmarkInline: {
|
|
552
|
+
src: "/media/brand/ks-wordmark-inline.svg",
|
|
553
|
+
width: 79.1255,
|
|
554
|
+
height: 16.0625,
|
|
555
|
+
alt: "Keystone",
|
|
556
|
+
},
|
|
557
|
+
},
|
|
558
|
+
} as const satisfies Record<string, Record<string, MediaAsset>>;
|