@adminide-stack/clock-tik-browser 12.0.27 → 12.0.28-alpha.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/lib/components/navbar/ProductMegaMenu.d.ts +10 -0
- package/lib/components/navbar/ProductMegaMenu.d.ts.map +1 -0
- package/lib/components/navbar/ProductMegaMenu.js +364 -0
- package/lib/components/navbar/ProductMegaMenu.js.map +1 -0
- package/lib/components/navbar/index.d.ts.map +1 -1
- package/lib/components/navbar/index.js +5 -314
- package/lib/components/navbar/index.js.map +1 -1
- package/lib/components/navbar/marketplaceLogos.d.ts +14 -0
- package/lib/components/navbar/marketplaceLogos.d.ts.map +1 -0
- package/lib/components/navbar/marketplaceLogos.js +126 -0
- package/lib/components/navbar/marketplaceLogos.js.map +1 -0
- package/lib/components/navbar/menuData.d.ts +353 -0
- package/lib/components/navbar/menuData.d.ts.map +1 -0
- package/lib/components/navbar/menuData.js +413 -0
- package/lib/components/navbar/menuData.js.map +1 -0
- package/lib/hooks/usePrefersReducedMotion.d.ts +9 -0
- package/lib/hooks/usePrefersReducedMotion.d.ts.map +1 -0
- package/lib/hooks/usePrefersReducedMotion.js +23 -0
- package/lib/hooks/usePrefersReducedMotion.js.map +1 -0
- package/lib/pages/ProductLandingPage/ProductBlocks.d.ts +10 -0
- package/lib/pages/ProductLandingPage/ProductBlocks.d.ts.map +1 -0
- package/lib/pages/ProductLandingPage/ProductBlocks.js +1123 -0
- package/lib/pages/ProductLandingPage/ProductBlocks.js.map +1 -0
- package/lib/pages/ProductLandingPage/ProductSpecimen.d.ts +11 -0
- package/lib/pages/ProductLandingPage/ProductSpecimen.d.ts.map +1 -0
- package/lib/pages/ProductLandingPage/ProductSpecimen.js +705 -0
- package/lib/pages/ProductLandingPage/ProductSpecimen.js.map +1 -0
- package/lib/pages/ProductLandingPage/Reveal.d.ts +21 -0
- package/lib/pages/ProductLandingPage/Reveal.d.ts.map +1 -0
- package/lib/pages/ProductLandingPage/Reveal.js +94 -0
- package/lib/pages/ProductLandingPage/Reveal.js.map +1 -0
- package/lib/pages/ProductLandingPage/blockTypes.d.ts +213 -0
- package/lib/pages/ProductLandingPage/blockTypes.d.ts.map +1 -0
- package/lib/pages/ProductLandingPage/demoVideos.d.ts +17 -0
- package/lib/pages/ProductLandingPage/demoVideos.d.ts.map +1 -0
- package/lib/pages/ProductLandingPage/demoVideos.js +65 -0
- package/lib/pages/ProductLandingPage/demoVideos.js.map +1 -0
- package/lib/pages/ProductLandingPage/derivePage.d.ts +6 -0
- package/lib/pages/ProductLandingPage/derivePage.d.ts.map +1 -0
- package/lib/pages/ProductLandingPage/derivePage.js +306 -0
- package/lib/pages/ProductLandingPage/derivePage.js.map +1 -0
- package/lib/pages/ProductLandingPage/index.d.ts.map +1 -1
- package/lib/pages/ProductLandingPage/index.js +52 -1
- package/lib/pages/ProductLandingPage/index.js.map +1 -1
- package/lib/pages/ProductLandingPage/productPages.d.ts +6 -0
- package/lib/pages/ProductLandingPage/productPages.d.ts.map +1 -0
- package/lib/pages/ProductLandingPage/productPages.js +412 -0
- package/lib/pages/ProductLandingPage/productPages.js.map +1 -0
- package/lib/pages/ProductLandingPage/realProductPages.d.ts +4 -0
- package/lib/pages/ProductLandingPage/realProductPages.d.ts.map +1 -0
- package/lib/pages/ProductLandingPage/realProductPages.js +475 -0
- package/lib/pages/ProductLandingPage/realProductPages.js.map +1 -0
- package/lib/pages/ProductLandingPage/specimenData.d.ts +11 -0
- package/lib/pages/ProductLandingPage/specimenData.d.ts.map +1 -0
- package/lib/pages/ProductLandingPage/specimenData.js +1715 -0
- package/lib/pages/ProductLandingPage/specimenData.js.map +1 -0
- package/lib/pages/ProductLandingPage/specimenTypes.d.ts +170 -0
- package/lib/pages/ProductLandingPage/specimenTypes.d.ts.map +1 -0
- package/lib/pages/ProductLandingPage/workflowTemplates.d.ts +19 -0
- package/lib/pages/ProductLandingPage/workflowTemplates.d.ts.map +1 -0
- package/lib/pages/ProductLandingPage/workflowTemplates.js +278 -0
- package/lib/pages/ProductLandingPage/workflowTemplates.js.map +1 -0
- package/lib/pages/productCatalog.d.ts.map +1 -1
- package/lib/pages/productCatalog.js +177 -0
- package/lib/pages/productCatalog.js.map +1 -1
- package/lib/pages/productIcons.d.ts.map +1 -1
- package/lib/pages/productIcons.js +8 -2
- package/lib/pages/productIcons.js.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,1123 @@
|
|
|
1
|
+
import {jsx,jsxs,Fragment}from'react/jsx-runtime';import React__default from'react';import {Link}from'@remix-run/react';import {ChevronDown,Minus,Plus,Play,Workflow,Check,ShieldCheck,ArrowRight,Award}from'lucide-react';import {Container}from'../LandingPage/components/Section.js';import {ProductSpecimen}from'./ProductSpecimen.js';import {templatesForProduct}from'./workflowTemplates.js';import {usePrefersReducedMotion}from'../../hooks/usePrefersReducedMotion.js';import {Reveal,CountUp}from'./Reveal.js';import {HRMFeatureSection}from'../LandingPage/components/HRMFeatureSection.js';import {BooksFeatureSection}from'../LandingPage/components/BooksFeatureSection.js';import {WorkflowFeatureSection}from'../LandingPage/components/WorkflowFeatureSection.js';import {TimerBarSection}from'../LandingPage/components/TimerBarSection.js';/** A full-width band. `Section` only accepts preset tones, and these pages are themed per product. */
|
|
2
|
+
function Band({
|
|
3
|
+
background,
|
|
4
|
+
className,
|
|
5
|
+
children
|
|
6
|
+
}) {
|
|
7
|
+
return jsx("section", {
|
|
8
|
+
className: className,
|
|
9
|
+
style: {
|
|
10
|
+
backgroundColor: background
|
|
11
|
+
},
|
|
12
|
+
children: children
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
const RADIUS = {
|
|
16
|
+
sharp: {
|
|
17
|
+
card: 'rounded-md',
|
|
18
|
+
pill: 'rounded-md',
|
|
19
|
+
frame: 'rounded-lg'
|
|
20
|
+
},
|
|
21
|
+
soft: {
|
|
22
|
+
card: 'rounded-2xl',
|
|
23
|
+
pill: 'rounded-lg',
|
|
24
|
+
frame: 'rounded-[28px]'
|
|
25
|
+
},
|
|
26
|
+
pill: {
|
|
27
|
+
card: 'rounded-[28px]',
|
|
28
|
+
pill: 'rounded-full',
|
|
29
|
+
frame: 'rounded-[36px]'
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
const DENSITY = {
|
|
33
|
+
dense: 'py-12 sm:py-14',
|
|
34
|
+
regular: 'py-16 sm:py-20',
|
|
35
|
+
airy: 'py-20 sm:py-28'
|
|
36
|
+
};
|
|
37
|
+
/* ------------------------------------------------------------------ schematics */
|
|
38
|
+
/**
|
|
39
|
+
* Small schematic drawings used beside feature copy. They stand in for a screenshot
|
|
40
|
+
* without pretending to be one, and each kind reads differently at a glance.
|
|
41
|
+
*/
|
|
42
|
+
function Mock({
|
|
43
|
+
kind,
|
|
44
|
+
theme
|
|
45
|
+
}) {
|
|
46
|
+
const r = RADIUS[theme.radius];
|
|
47
|
+
const line = (w, dim = false) => jsx("span", {
|
|
48
|
+
className: `block h-1.5 ${r.pill} ${dim ? 'bg-black/10' : ''}`,
|
|
49
|
+
style: dim ? undefined : {
|
|
50
|
+
width: w,
|
|
51
|
+
backgroundColor: theme.accent,
|
|
52
|
+
opacity: 0.35
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
const shell = children => jsx("div", {
|
|
56
|
+
className: `${r.card} border border-black/[0.07] bg-white p-3 shadow-[0_10px_24px_rgba(15,23,42,0.05)]`,
|
|
57
|
+
children: children
|
|
58
|
+
});
|
|
59
|
+
if (kind === 'chart') {
|
|
60
|
+
const bars = [38, 62, 48, 84, 70];
|
|
61
|
+
return shell(jsx("div", {
|
|
62
|
+
className: "flex h-[92px] items-end gap-1.5",
|
|
63
|
+
children: bars.map((height, index) => jsx("span", {
|
|
64
|
+
className: `flex-1 ${r.pill}`,
|
|
65
|
+
style: {
|
|
66
|
+
height: `${height}%`,
|
|
67
|
+
backgroundColor: theme.accent,
|
|
68
|
+
opacity: 0.25 + index * 0.14
|
|
69
|
+
}
|
|
70
|
+
}, index))
|
|
71
|
+
}));
|
|
72
|
+
}
|
|
73
|
+
if (kind === 'board') {
|
|
74
|
+
return shell(jsx("div", {
|
|
75
|
+
className: "grid h-[92px] grid-cols-3 gap-1.5",
|
|
76
|
+
children: [0, 1, 2].map(column => jsx("div", {
|
|
77
|
+
className: `${r.pill} space-y-1.5 p-1.5`,
|
|
78
|
+
style: {
|
|
79
|
+
backgroundColor: theme.wash
|
|
80
|
+
},
|
|
81
|
+
children: Array.from({
|
|
82
|
+
length: 3 - column
|
|
83
|
+
}).map((_, card) => jsx("span", {
|
|
84
|
+
className: `block h-4 ${r.pill} border border-black/5 bg-white`
|
|
85
|
+
}, card))
|
|
86
|
+
}, column))
|
|
87
|
+
}));
|
|
88
|
+
}
|
|
89
|
+
if (kind === 'chat') {
|
|
90
|
+
return shell(jsxs("div", {
|
|
91
|
+
className: "flex h-[92px] flex-col justify-center gap-2",
|
|
92
|
+
children: [jsx("span", {
|
|
93
|
+
className: `h-6 w-3/5 ${r.pill}`,
|
|
94
|
+
style: {
|
|
95
|
+
backgroundColor: theme.wash
|
|
96
|
+
}
|
|
97
|
+
}), jsx("span", {
|
|
98
|
+
className: `ml-auto h-6 w-2/3 ${r.pill}`,
|
|
99
|
+
style: {
|
|
100
|
+
backgroundColor: theme.accent,
|
|
101
|
+
opacity: 0.25
|
|
102
|
+
}
|
|
103
|
+
}), jsx("span", {
|
|
104
|
+
className: `h-5 w-2/5 ${r.pill}`,
|
|
105
|
+
style: {
|
|
106
|
+
backgroundColor: theme.wash
|
|
107
|
+
}
|
|
108
|
+
})]
|
|
109
|
+
}));
|
|
110
|
+
}
|
|
111
|
+
if (kind === 'flow') {
|
|
112
|
+
return shell(jsx("div", {
|
|
113
|
+
className: "flex h-[92px] items-center justify-between gap-2",
|
|
114
|
+
children: [0, 1, 2].map(node => jsxs(React__default.Fragment, {
|
|
115
|
+
children: [jsx("span", {
|
|
116
|
+
className: `h-10 flex-1 ${r.pill} border border-black/5`,
|
|
117
|
+
style: {
|
|
118
|
+
backgroundColor: node === 1 ? theme.accent : theme.wash,
|
|
119
|
+
opacity: node === 1 ? 0.3 : 1
|
|
120
|
+
}
|
|
121
|
+
}), node < 2 && jsx("span", {
|
|
122
|
+
className: "h-px w-3 bg-black/15"
|
|
123
|
+
})]
|
|
124
|
+
}, node))
|
|
125
|
+
}));
|
|
126
|
+
}
|
|
127
|
+
if (kind === 'form') {
|
|
128
|
+
return shell(jsx("div", {
|
|
129
|
+
className: "flex h-[92px] flex-col justify-center gap-2.5",
|
|
130
|
+
children: ['70%', '90%', '55%'].map(width => jsx("span", {
|
|
131
|
+
className: `block h-5 ${r.pill} border border-black/5 bg-black/[0.03]`,
|
|
132
|
+
style: {
|
|
133
|
+
width
|
|
134
|
+
}
|
|
135
|
+
}, width))
|
|
136
|
+
}));
|
|
137
|
+
}
|
|
138
|
+
if (kind === 'code') {
|
|
139
|
+
return shell(jsx("div", {
|
|
140
|
+
className: "flex h-[92px] flex-col justify-center gap-2",
|
|
141
|
+
children: ['45%', '80%', '62%', '35%'].map((width, index) => jsxs("div", {
|
|
142
|
+
className: "flex items-center gap-2",
|
|
143
|
+
children: [jsx("span", {
|
|
144
|
+
className: "h-1.5 w-1.5 rounded-full bg-black/15"
|
|
145
|
+
}), line(width), index === 1 && jsx("span", {
|
|
146
|
+
className: "h-1.5 w-6 rounded-full bg-black/10"
|
|
147
|
+
})]
|
|
148
|
+
}, width))
|
|
149
|
+
}));
|
|
150
|
+
}
|
|
151
|
+
return shell(jsx("div", {
|
|
152
|
+
className: "flex h-[92px] flex-col justify-center gap-2.5",
|
|
153
|
+
children: ['85%', '60%', '72%', '45%'].map(width => jsxs("div", {
|
|
154
|
+
className: "flex items-center gap-2",
|
|
155
|
+
children: [jsx("span", {
|
|
156
|
+
className: `h-4 w-4 shrink-0 ${r.pill}`,
|
|
157
|
+
style: {
|
|
158
|
+
backgroundColor: theme.wash
|
|
159
|
+
}
|
|
160
|
+
}), line(width)]
|
|
161
|
+
}, width))
|
|
162
|
+
}));
|
|
163
|
+
}
|
|
164
|
+
/* ---------------------------------------------------------------------- blocks */
|
|
165
|
+
function SectionHead({
|
|
166
|
+
eyebrow,
|
|
167
|
+
headline,
|
|
168
|
+
sub,
|
|
169
|
+
theme,
|
|
170
|
+
onInk = false,
|
|
171
|
+
center = false
|
|
172
|
+
}) {
|
|
173
|
+
return jsxs(Reveal, {
|
|
174
|
+
className: `${center ? 'mx-auto max-w-3xl text-center' : 'max-w-3xl'}`,
|
|
175
|
+
children: [eyebrow && jsx("p", {
|
|
176
|
+
className: "text-sm font-medium uppercase tracking-[0.22em]",
|
|
177
|
+
style: {
|
|
178
|
+
color: onInk ? theme.accentOnInk : theme.accent
|
|
179
|
+
},
|
|
180
|
+
children: eyebrow
|
|
181
|
+
}), jsx("h2", {
|
|
182
|
+
className: `mt-4 text-3xl font-semibold tracking-tight sm:text-4xl ${onInk ? 'text-white' : 'text-[#111827]'}`,
|
|
183
|
+
children: headline
|
|
184
|
+
}), sub && jsx("p", {
|
|
185
|
+
className: `mt-5 text-base leading-7 ${onInk ? 'text-white/70' : 'text-[#4b5563]'}`,
|
|
186
|
+
children: sub
|
|
187
|
+
})]
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
function CtaButton({
|
|
191
|
+
cta,
|
|
192
|
+
theme,
|
|
193
|
+
variant
|
|
194
|
+
}) {
|
|
195
|
+
const r = RADIUS[theme.radius];
|
|
196
|
+
if (variant === 'solid') {
|
|
197
|
+
return jsxs(Link, {
|
|
198
|
+
to: cta.to,
|
|
199
|
+
className: `inline-flex items-center gap-2 ${r.pill} px-6 py-3 text-sm font-semibold text-white transition hover:opacity-90`,
|
|
200
|
+
style: {
|
|
201
|
+
backgroundColor: theme.accent
|
|
202
|
+
},
|
|
203
|
+
children: [cta.label, " ", jsx(ArrowRight, {
|
|
204
|
+
className: "h-4 w-4"
|
|
205
|
+
})]
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
if (variant === 'outline') {
|
|
209
|
+
return jsxs(Link, {
|
|
210
|
+
to: cta.to,
|
|
211
|
+
className: `inline-flex items-center gap-2 ${r.pill} border px-6 py-3 text-sm font-semibold transition hover:bg-black/[0.03]`,
|
|
212
|
+
style: {
|
|
213
|
+
borderColor: theme.accent,
|
|
214
|
+
color: theme.accent
|
|
215
|
+
},
|
|
216
|
+
children: [cta.label, " ", jsx(ArrowRight, {
|
|
217
|
+
className: "h-4 w-4"
|
|
218
|
+
})]
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
return jsxs(Link, {
|
|
222
|
+
to: cta.to,
|
|
223
|
+
className: `inline-flex items-center gap-2 ${r.pill} border border-white/20 bg-white/5 px-6 py-3 text-sm font-semibold text-white transition hover:bg-white/10`,
|
|
224
|
+
children: [cta.label, " ", jsx(ArrowRight, {
|
|
225
|
+
className: "h-4 w-4"
|
|
226
|
+
})]
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
function HeroCentered({
|
|
230
|
+
block,
|
|
231
|
+
theme
|
|
232
|
+
}) {
|
|
233
|
+
const r = RADIUS[theme.radius];
|
|
234
|
+
return jsx(Band, {
|
|
235
|
+
className: "relative overflow-hidden",
|
|
236
|
+
background: theme.ink,
|
|
237
|
+
children: jsxs(Container, {
|
|
238
|
+
className: "relative z-10 pb-16 pt-28 sm:pb-20 sm:pt-32",
|
|
239
|
+
children: [jsxs("div", {
|
|
240
|
+
className: "mx-auto max-w-3xl text-center",
|
|
241
|
+
children: [jsx("p", {
|
|
242
|
+
className: "text-sm font-medium uppercase tracking-[0.22em]",
|
|
243
|
+
style: {
|
|
244
|
+
color: theme.accentOnInk
|
|
245
|
+
},
|
|
246
|
+
children: block.eyebrow
|
|
247
|
+
}), jsx("h1", {
|
|
248
|
+
className: "mt-6 text-[2.375rem] font-semibold leading-[1.08] tracking-[-0.02em] text-white sm:text-[3rem] lg:text-[3.5rem]",
|
|
249
|
+
children: block.headline
|
|
250
|
+
}), jsx("p", {
|
|
251
|
+
className: "mx-auto mt-6 max-w-2xl text-lg leading-8 text-white/70",
|
|
252
|
+
children: block.sub
|
|
253
|
+
}), jsxs("div", {
|
|
254
|
+
className: "mt-9 flex flex-col items-center justify-center gap-3 sm:flex-row",
|
|
255
|
+
children: [jsx(CtaButton, {
|
|
256
|
+
cta: block.primary,
|
|
257
|
+
theme: theme,
|
|
258
|
+
variant: "solid"
|
|
259
|
+
}), block.secondary && jsx(CtaButton, {
|
|
260
|
+
cta: block.secondary,
|
|
261
|
+
theme: theme,
|
|
262
|
+
variant: "ghost"
|
|
263
|
+
})]
|
|
264
|
+
}), block.note && jsx("p", {
|
|
265
|
+
className: "mt-5 text-sm text-white/45",
|
|
266
|
+
children: block.note
|
|
267
|
+
})]
|
|
268
|
+
}), block.badge && jsxs("div", {
|
|
269
|
+
className: `mx-auto mt-12 flex max-w-md items-center gap-4 ${r.card} border border-white/10 bg-white/[0.04] px-5 py-4`,
|
|
270
|
+
children: [jsx(Award, {
|
|
271
|
+
className: "h-7 w-7 shrink-0",
|
|
272
|
+
style: {
|
|
273
|
+
color: theme.accentOnInk
|
|
274
|
+
}
|
|
275
|
+
}), jsxs("div", {
|
|
276
|
+
className: "text-left",
|
|
277
|
+
children: [jsx("div", {
|
|
278
|
+
className: "text-sm font-semibold text-white",
|
|
279
|
+
children: block.badge.label
|
|
280
|
+
}), jsx("div", {
|
|
281
|
+
className: "mt-0.5 text-xs text-white/55",
|
|
282
|
+
children: block.badge.detail
|
|
283
|
+
})]
|
|
284
|
+
})]
|
|
285
|
+
})]
|
|
286
|
+
})
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
function HeroSplit({
|
|
290
|
+
block,
|
|
291
|
+
theme,
|
|
292
|
+
specimen
|
|
293
|
+
}) {
|
|
294
|
+
return jsx(Band, {
|
|
295
|
+
className: "relative overflow-hidden",
|
|
296
|
+
background: theme.ink,
|
|
297
|
+
children: jsx(Container, {
|
|
298
|
+
className: "relative z-10 pb-16 pt-28 sm:pt-32",
|
|
299
|
+
children: jsxs("div", {
|
|
300
|
+
className: "grid items-center gap-12 lg:grid-cols-[1.02fr_0.98fr]",
|
|
301
|
+
children: [jsxs("div", {
|
|
302
|
+
children: [jsx("p", {
|
|
303
|
+
className: "text-sm font-medium uppercase tracking-[0.22em]",
|
|
304
|
+
style: {
|
|
305
|
+
color: theme.accentOnInk
|
|
306
|
+
},
|
|
307
|
+
children: block.eyebrow
|
|
308
|
+
}), jsx("h1", {
|
|
309
|
+
className: "mt-6 max-w-xl text-[2.25rem] font-semibold leading-[1.08] tracking-[-0.02em] text-white sm:text-[2.875rem]",
|
|
310
|
+
children: block.headline
|
|
311
|
+
}), jsx("p", {
|
|
312
|
+
className: "mt-6 max-w-xl text-lg leading-8 text-white/70",
|
|
313
|
+
children: block.sub
|
|
314
|
+
}), jsxs("div", {
|
|
315
|
+
className: "mt-8 flex flex-col gap-3 sm:flex-row",
|
|
316
|
+
children: [jsx(CtaButton, {
|
|
317
|
+
cta: block.primary,
|
|
318
|
+
theme: theme,
|
|
319
|
+
variant: "solid"
|
|
320
|
+
}), block.secondary && jsx(CtaButton, {
|
|
321
|
+
cta: block.secondary,
|
|
322
|
+
theme: theme,
|
|
323
|
+
variant: "ghost"
|
|
324
|
+
})]
|
|
325
|
+
}), jsx("ul", {
|
|
326
|
+
className: "mt-8 space-y-2.5",
|
|
327
|
+
children: block.points.map(point => jsxs("li", {
|
|
328
|
+
className: "flex items-start gap-2.5 text-sm text-white/65",
|
|
329
|
+
children: [jsx(Check, {
|
|
330
|
+
className: "mt-0.5 h-4 w-4 shrink-0",
|
|
331
|
+
style: {
|
|
332
|
+
color: theme.accentOnInk
|
|
333
|
+
}
|
|
334
|
+
}), point]
|
|
335
|
+
}, point))
|
|
336
|
+
})]
|
|
337
|
+
}), block.showSpecimen && specimen && jsx(ProductSpecimen, {
|
|
338
|
+
spec: specimen
|
|
339
|
+
})]
|
|
340
|
+
})
|
|
341
|
+
})
|
|
342
|
+
});
|
|
343
|
+
}
|
|
344
|
+
function TrustBar({
|
|
345
|
+
block,
|
|
346
|
+
theme
|
|
347
|
+
}) {
|
|
348
|
+
return jsx(Band, {
|
|
349
|
+
background: theme.surface,
|
|
350
|
+
children: jsxs(Container, {
|
|
351
|
+
className: "py-10",
|
|
352
|
+
children: [jsx("p", {
|
|
353
|
+
className: "text-center text-sm font-medium uppercase tracking-[0.18em] text-[#6b7280]",
|
|
354
|
+
children: block.lead
|
|
355
|
+
}), jsx("div", {
|
|
356
|
+
className: "mt-6 flex flex-wrap items-center justify-center gap-x-10 gap-y-4",
|
|
357
|
+
children: block.logos.map(logo => jsx("span", {
|
|
358
|
+
className: "text-lg font-semibold tracking-tight text-[#9ca3af]",
|
|
359
|
+
children: logo
|
|
360
|
+
}, logo))
|
|
361
|
+
})]
|
|
362
|
+
})
|
|
363
|
+
});
|
|
364
|
+
}
|
|
365
|
+
function Callout({
|
|
366
|
+
block,
|
|
367
|
+
theme
|
|
368
|
+
}) {
|
|
369
|
+
const onInk = block.tone === 'ink';
|
|
370
|
+
return jsx(Band, {
|
|
371
|
+
background: onInk ? theme.ink : theme.wash,
|
|
372
|
+
children: jsx(Container, {
|
|
373
|
+
className: DENSITY[theme.density],
|
|
374
|
+
children: jsxs("div", {
|
|
375
|
+
className: "grid gap-8 lg:grid-cols-[1.1fr_0.9fr] lg:items-center",
|
|
376
|
+
children: [jsx(SectionHead, {
|
|
377
|
+
eyebrow: block.eyebrow,
|
|
378
|
+
headline: block.headline,
|
|
379
|
+
sub: block.body,
|
|
380
|
+
theme: theme,
|
|
381
|
+
onInk: onInk
|
|
382
|
+
}), jsx("div", {
|
|
383
|
+
className: "lg:justify-self-end",
|
|
384
|
+
children: jsx(CtaButton, {
|
|
385
|
+
cta: block.cta,
|
|
386
|
+
theme: theme,
|
|
387
|
+
variant: onInk ? 'ghost' : 'outline'
|
|
388
|
+
})
|
|
389
|
+
})]
|
|
390
|
+
})
|
|
391
|
+
})
|
|
392
|
+
});
|
|
393
|
+
}
|
|
394
|
+
function FeatureTrio({
|
|
395
|
+
block,
|
|
396
|
+
theme
|
|
397
|
+
}) {
|
|
398
|
+
const r = RADIUS[theme.radius];
|
|
399
|
+
return jsx(Band, {
|
|
400
|
+
background: theme.surface,
|
|
401
|
+
children: jsxs(Container, {
|
|
402
|
+
className: DENSITY[theme.density],
|
|
403
|
+
children: [jsx(SectionHead, {
|
|
404
|
+
eyebrow: block.eyebrow,
|
|
405
|
+
headline: block.headline,
|
|
406
|
+
sub: block.sub,
|
|
407
|
+
theme: theme
|
|
408
|
+
}), jsx("div", {
|
|
409
|
+
className: "mt-12 grid gap-6 md:grid-cols-3",
|
|
410
|
+
children: block.items.map((item, index) => jsxs(Reveal, {
|
|
411
|
+
delay: index * 110,
|
|
412
|
+
className: `h-full ${r.frame} border border-[#e5e7eb] bg-white p-6`,
|
|
413
|
+
children: [jsx(Mock, {
|
|
414
|
+
kind: item.mock,
|
|
415
|
+
theme: theme
|
|
416
|
+
}), jsx("h3", {
|
|
417
|
+
className: "mt-6 text-xl font-semibold text-[#111827]",
|
|
418
|
+
children: item.title
|
|
419
|
+
}), jsx("p", {
|
|
420
|
+
className: "mt-3 text-sm leading-6 text-[#4b5563]",
|
|
421
|
+
children: item.body
|
|
422
|
+
})]
|
|
423
|
+
}, item.title))
|
|
424
|
+
})]
|
|
425
|
+
})
|
|
426
|
+
});
|
|
427
|
+
}
|
|
428
|
+
function Spotlight({
|
|
429
|
+
block,
|
|
430
|
+
theme
|
|
431
|
+
}) {
|
|
432
|
+
const r = RADIUS[theme.radius];
|
|
433
|
+
return jsx(Band, {
|
|
434
|
+
background: theme.wash,
|
|
435
|
+
children: jsxs(Container, {
|
|
436
|
+
className: DENSITY[theme.density],
|
|
437
|
+
children: [jsx(SectionHead, {
|
|
438
|
+
eyebrow: block.eyebrow,
|
|
439
|
+
headline: block.headline,
|
|
440
|
+
theme: theme
|
|
441
|
+
}), jsx("div", {
|
|
442
|
+
className: "mt-14 space-y-14",
|
|
443
|
+
children: block.rows.map((row, index) => jsxs("div", {
|
|
444
|
+
className: `grid items-center gap-10 lg:grid-cols-2 ${index % 2 === 1 ? 'lg:[&>*:first-child]:order-2' : ''}`,
|
|
445
|
+
children: [jsxs(Reveal, {
|
|
446
|
+
direction: index % 2 === 1 ? 'right' : 'left',
|
|
447
|
+
children: [jsx("h3", {
|
|
448
|
+
className: "text-2xl font-semibold tracking-tight text-[#111827]",
|
|
449
|
+
children: row.title
|
|
450
|
+
}), jsx("p", {
|
|
451
|
+
className: "mt-4 text-base leading-7 text-[#4b5563]",
|
|
452
|
+
children: row.body
|
|
453
|
+
}), jsx("ul", {
|
|
454
|
+
className: "mt-6 space-y-3",
|
|
455
|
+
children: row.bullets.map(bullet => jsxs("li", {
|
|
456
|
+
className: "flex items-start gap-3 text-sm text-[#111827]",
|
|
457
|
+
children: [jsx("span", {
|
|
458
|
+
className: `mt-0.5 flex h-5 w-5 shrink-0 items-center justify-center ${r.pill} text-white`,
|
|
459
|
+
style: {
|
|
460
|
+
backgroundColor: theme.accent
|
|
461
|
+
},
|
|
462
|
+
children: jsx(Check, {
|
|
463
|
+
className: "h-3 w-3"
|
|
464
|
+
})
|
|
465
|
+
}), bullet]
|
|
466
|
+
}, bullet))
|
|
467
|
+
})]
|
|
468
|
+
}), jsx(Reveal, {
|
|
469
|
+
direction: index % 2 === 1 ? 'left' : 'right',
|
|
470
|
+
delay: 90,
|
|
471
|
+
children: jsx(Mock, {
|
|
472
|
+
kind: row.mock,
|
|
473
|
+
theme: theme
|
|
474
|
+
})
|
|
475
|
+
})]
|
|
476
|
+
}, row.title))
|
|
477
|
+
})]
|
|
478
|
+
})
|
|
479
|
+
});
|
|
480
|
+
}
|
|
481
|
+
function ModuleGrid({
|
|
482
|
+
block,
|
|
483
|
+
theme
|
|
484
|
+
}) {
|
|
485
|
+
const r = RADIUS[theme.radius];
|
|
486
|
+
return jsx(Band, {
|
|
487
|
+
background: theme.surface,
|
|
488
|
+
children: jsxs(Container, {
|
|
489
|
+
className: DENSITY[theme.density],
|
|
490
|
+
children: [jsx(SectionHead, {
|
|
491
|
+
eyebrow: block.eyebrow,
|
|
492
|
+
headline: block.headline,
|
|
493
|
+
sub: block.sub,
|
|
494
|
+
theme: theme
|
|
495
|
+
}), jsx("div", {
|
|
496
|
+
className: "mt-12 grid gap-4 sm:grid-cols-2 lg:grid-cols-3",
|
|
497
|
+
children: block.tiles.map((tile, index) => jsx(Reveal, {
|
|
498
|
+
delay: index * 70,
|
|
499
|
+
className: "h-full",
|
|
500
|
+
children: jsxs(Link, {
|
|
501
|
+
to: tile.to,
|
|
502
|
+
className: `group block h-full ${r.card} border border-[#e5e7eb] bg-white p-5 transition hover:-translate-y-0.5 hover:shadow-[0_16px_32px_rgba(15,23,42,0.07)]`,
|
|
503
|
+
children: [jsxs("div", {
|
|
504
|
+
className: "flex items-center justify-between gap-3",
|
|
505
|
+
children: [jsx("span", {
|
|
506
|
+
className: "text-base font-semibold text-[#111827]",
|
|
507
|
+
children: tile.name
|
|
508
|
+
}), jsx(ArrowRight, {
|
|
509
|
+
className: "h-4 w-4 shrink-0 transition-transform group-hover:translate-x-1",
|
|
510
|
+
style: {
|
|
511
|
+
color: theme.accent
|
|
512
|
+
}
|
|
513
|
+
})]
|
|
514
|
+
}), jsx("p", {
|
|
515
|
+
className: "mt-2 text-sm leading-6 text-[#6b7280]",
|
|
516
|
+
children: tile.body
|
|
517
|
+
})]
|
|
518
|
+
})
|
|
519
|
+
}, tile.name))
|
|
520
|
+
})]
|
|
521
|
+
})
|
|
522
|
+
});
|
|
523
|
+
}
|
|
524
|
+
function TestimonialWall({
|
|
525
|
+
block,
|
|
526
|
+
theme
|
|
527
|
+
}) {
|
|
528
|
+
const r = RADIUS[theme.radius];
|
|
529
|
+
return jsx(Band, {
|
|
530
|
+
background: theme.wash,
|
|
531
|
+
children: jsxs(Container, {
|
|
532
|
+
className: DENSITY[theme.density],
|
|
533
|
+
children: [jsx(SectionHead, {
|
|
534
|
+
headline: block.headline,
|
|
535
|
+
theme: theme,
|
|
536
|
+
center: true
|
|
537
|
+
}), jsx("div", {
|
|
538
|
+
className: "mt-12 grid gap-5 md:grid-cols-2",
|
|
539
|
+
children: block.quotes.map((quote, index) => jsx(Reveal, {
|
|
540
|
+
delay: index * 90,
|
|
541
|
+
className: `h-full ${r.frame} border border-[#e5e7eb] bg-white p-6`,
|
|
542
|
+
children: jsxs("blockquote", {
|
|
543
|
+
children: [jsxs("p", {
|
|
544
|
+
className: "text-base leading-7 text-[#111827]",
|
|
545
|
+
children: ["\u201C", quote.quote, "\u201D"]
|
|
546
|
+
}), jsxs("footer", {
|
|
547
|
+
className: "mt-5 text-sm",
|
|
548
|
+
children: [jsx("span", {
|
|
549
|
+
className: "font-semibold text-[#111827]",
|
|
550
|
+
children: quote.author
|
|
551
|
+
}), jsxs("span", {
|
|
552
|
+
className: "text-[#6b7280]",
|
|
553
|
+
children: [" \u00B7 ", quote.role]
|
|
554
|
+
})]
|
|
555
|
+
})]
|
|
556
|
+
})
|
|
557
|
+
}, quote.author))
|
|
558
|
+
})]
|
|
559
|
+
})
|
|
560
|
+
});
|
|
561
|
+
}
|
|
562
|
+
function MetricsBand({
|
|
563
|
+
block,
|
|
564
|
+
theme
|
|
565
|
+
}) {
|
|
566
|
+
return jsx(Band, {
|
|
567
|
+
background: theme.ink,
|
|
568
|
+
children: jsxs(Container, {
|
|
569
|
+
className: DENSITY[theme.density],
|
|
570
|
+
children: [jsx(SectionHead, {
|
|
571
|
+
headline: block.headline,
|
|
572
|
+
theme: theme,
|
|
573
|
+
onInk: true,
|
|
574
|
+
center: true
|
|
575
|
+
}), jsx("div", {
|
|
576
|
+
className: "mt-12 grid gap-8 sm:grid-cols-3",
|
|
577
|
+
children: block.stats.map((stat, index) => jsxs(Reveal, {
|
|
578
|
+
delay: index * 120,
|
|
579
|
+
className: "text-center",
|
|
580
|
+
children: [jsx("div", {
|
|
581
|
+
className: "text-[2.75rem] font-semibold leading-none tracking-tight",
|
|
582
|
+
style: {
|
|
583
|
+
color: theme.accentOnInk
|
|
584
|
+
},
|
|
585
|
+
children: jsx(CountUp, {
|
|
586
|
+
value: stat.value
|
|
587
|
+
})
|
|
588
|
+
}), jsx("div", {
|
|
589
|
+
className: "mt-3 text-sm leading-6 text-white/65",
|
|
590
|
+
children: stat.label
|
|
591
|
+
})]
|
|
592
|
+
}, stat.label))
|
|
593
|
+
}), jsx("p", {
|
|
594
|
+
className: "mt-10 text-center text-xs text-white/35",
|
|
595
|
+
children: block.footnote
|
|
596
|
+
})]
|
|
597
|
+
})
|
|
598
|
+
});
|
|
599
|
+
}
|
|
600
|
+
function Compliance({
|
|
601
|
+
block,
|
|
602
|
+
theme
|
|
603
|
+
}) {
|
|
604
|
+
const r = RADIUS[theme.radius];
|
|
605
|
+
return jsx(Band, {
|
|
606
|
+
background: theme.surface,
|
|
607
|
+
children: jsx(Container, {
|
|
608
|
+
className: DENSITY[theme.density],
|
|
609
|
+
children: jsxs("div", {
|
|
610
|
+
className: "grid gap-10 lg:grid-cols-2 lg:items-center",
|
|
611
|
+
children: [jsx(SectionHead, {
|
|
612
|
+
headline: block.headline,
|
|
613
|
+
sub: block.body,
|
|
614
|
+
theme: theme
|
|
615
|
+
}), jsx("div", {
|
|
616
|
+
className: "grid gap-3 sm:grid-cols-2",
|
|
617
|
+
children: block.certifications.map(certification => jsxs("div", {
|
|
618
|
+
className: `flex items-center gap-3 ${r.card} border border-[#e5e7eb] bg-white px-4 py-3.5`,
|
|
619
|
+
children: [jsx(ShieldCheck, {
|
|
620
|
+
className: "h-5 w-5 shrink-0",
|
|
621
|
+
style: {
|
|
622
|
+
color: theme.accent
|
|
623
|
+
}
|
|
624
|
+
}), jsx("span", {
|
|
625
|
+
className: "text-sm font-medium text-[#111827]",
|
|
626
|
+
children: certification
|
|
627
|
+
})]
|
|
628
|
+
}, certification))
|
|
629
|
+
})]
|
|
630
|
+
})
|
|
631
|
+
})
|
|
632
|
+
});
|
|
633
|
+
}
|
|
634
|
+
function SpecimenSection({
|
|
635
|
+
block,
|
|
636
|
+
theme,
|
|
637
|
+
specimen
|
|
638
|
+
}) {
|
|
639
|
+
if (!specimen) return null;
|
|
640
|
+
return jsx(Band, {
|
|
641
|
+
background: theme.ink,
|
|
642
|
+
children: jsxs(Container, {
|
|
643
|
+
className: DENSITY[theme.density],
|
|
644
|
+
children: [jsx(SectionHead, {
|
|
645
|
+
eyebrow: block.eyebrow,
|
|
646
|
+
headline: block.headline,
|
|
647
|
+
sub: specimen.intro,
|
|
648
|
+
theme: theme,
|
|
649
|
+
onInk: true
|
|
650
|
+
}), jsx(Reveal, {
|
|
651
|
+
direction: "scale",
|
|
652
|
+
className: "mt-10",
|
|
653
|
+
children: jsx(ProductSpecimen, {
|
|
654
|
+
spec: specimen
|
|
655
|
+
})
|
|
656
|
+
})]
|
|
657
|
+
})
|
|
658
|
+
});
|
|
659
|
+
}
|
|
660
|
+
function Faq({
|
|
661
|
+
block,
|
|
662
|
+
theme
|
|
663
|
+
}) {
|
|
664
|
+
const r = RADIUS[theme.radius];
|
|
665
|
+
const [open, setOpen] = React__default.useState(0);
|
|
666
|
+
return jsx(Band, {
|
|
667
|
+
background: theme.wash,
|
|
668
|
+
children: jsxs(Container, {
|
|
669
|
+
className: DENSITY[theme.density],
|
|
670
|
+
children: [jsx(SectionHead, {
|
|
671
|
+
headline: block.headline,
|
|
672
|
+
theme: theme,
|
|
673
|
+
center: true
|
|
674
|
+
}), jsx("div", {
|
|
675
|
+
className: "mx-auto mt-10 max-w-3xl space-y-3",
|
|
676
|
+
children: block.items.map((item, index) => {
|
|
677
|
+
const expanded = open === index;
|
|
678
|
+
return jsxs("div", {
|
|
679
|
+
className: `${r.card} border border-[#e5e7eb] bg-white`,
|
|
680
|
+
children: [jsxs("button", {
|
|
681
|
+
type: "button",
|
|
682
|
+
onClick: () => setOpen(expanded ? null : index),
|
|
683
|
+
"aria-expanded": expanded,
|
|
684
|
+
className: "flex w-full items-center justify-between gap-4 px-5 py-4 text-left",
|
|
685
|
+
children: [jsx("span", {
|
|
686
|
+
className: "text-base font-medium text-[#111827]",
|
|
687
|
+
children: item.q
|
|
688
|
+
}), expanded ? jsx(Minus, {
|
|
689
|
+
className: "h-4 w-4 shrink-0",
|
|
690
|
+
style: {
|
|
691
|
+
color: theme.accent
|
|
692
|
+
}
|
|
693
|
+
}) : jsx(Plus, {
|
|
694
|
+
className: "h-4 w-4 shrink-0 text-[#9ca3af]"
|
|
695
|
+
})]
|
|
696
|
+
}), expanded && jsx("p", {
|
|
697
|
+
className: "border-t border-[#f1f3f2] px-5 py-4 text-sm leading-7 text-[#4b5563]",
|
|
698
|
+
children: item.a
|
|
699
|
+
})]
|
|
700
|
+
}, item.q);
|
|
701
|
+
})
|
|
702
|
+
})]
|
|
703
|
+
})
|
|
704
|
+
});
|
|
705
|
+
}
|
|
706
|
+
function Gallery({
|
|
707
|
+
block,
|
|
708
|
+
theme
|
|
709
|
+
}) {
|
|
710
|
+
const r = RADIUS[theme.radius];
|
|
711
|
+
const [active, setActive] = React__default.useState(0);
|
|
712
|
+
const item = block.items[active];
|
|
713
|
+
return jsx(Band, {
|
|
714
|
+
background: theme.surface,
|
|
715
|
+
children: jsxs(Container, {
|
|
716
|
+
className: DENSITY[theme.density],
|
|
717
|
+
children: [jsx(SectionHead, {
|
|
718
|
+
eyebrow: block.eyebrow,
|
|
719
|
+
headline: block.headline,
|
|
720
|
+
sub: block.sub,
|
|
721
|
+
theme: theme
|
|
722
|
+
}), jsxs("div", {
|
|
723
|
+
className: "mt-12 grid gap-8 lg:grid-cols-[minmax(0,0.85fr)_minmax(0,1.15fr)] lg:items-start",
|
|
724
|
+
children: [jsx("div", {
|
|
725
|
+
className: "space-y-2",
|
|
726
|
+
children: block.items.map((entry, index) => {
|
|
727
|
+
const selected = index === active;
|
|
728
|
+
return jsxs("button", {
|
|
729
|
+
type: "button",
|
|
730
|
+
onClick: () => setActive(index),
|
|
731
|
+
"aria-pressed": selected,
|
|
732
|
+
className: `flex w-full gap-3 ${r.card} border p-4 text-left transition ${selected ? 'border-transparent bg-white shadow-[0_14px_30px_rgba(15,23,42,0.07)]' : 'border-transparent hover:bg-white/60'}`,
|
|
733
|
+
children: [jsx("span", {
|
|
734
|
+
className: `mt-0.5 h-8 w-1 shrink-0 ${r.pill}`,
|
|
735
|
+
style: {
|
|
736
|
+
backgroundColor: selected ? entry.color : 'transparent'
|
|
737
|
+
}
|
|
738
|
+
}), jsxs("span", {
|
|
739
|
+
className: "min-w-0",
|
|
740
|
+
children: [jsx("span", {
|
|
741
|
+
className: "block text-base font-semibold text-[#111827]",
|
|
742
|
+
children: entry.title
|
|
743
|
+
}), jsx("span", {
|
|
744
|
+
className: "mt-1 block text-sm leading-6 text-[#6b7280]",
|
|
745
|
+
children: entry.body
|
|
746
|
+
}), selected && entry.bullets && jsx("span", {
|
|
747
|
+
className: "mt-3 block space-y-1.5",
|
|
748
|
+
children: entry.bullets.map(bullet => jsxs("span", {
|
|
749
|
+
className: "flex items-start gap-2 text-[0.8rem] text-[#4b5563]",
|
|
750
|
+
children: [jsx(Check, {
|
|
751
|
+
className: "mt-0.5 h-3.5 w-3.5 shrink-0",
|
|
752
|
+
style: {
|
|
753
|
+
color: entry.color
|
|
754
|
+
}
|
|
755
|
+
}), bullet]
|
|
756
|
+
}, bullet))
|
|
757
|
+
})]
|
|
758
|
+
})]
|
|
759
|
+
}, entry.title);
|
|
760
|
+
})
|
|
761
|
+
}), jsxs("div", {
|
|
762
|
+
className: `overflow-hidden ${r.frame} border border-[#e5e7eb] bg-white shadow-[0_24px_60px_rgba(15,23,42,0.10)]`,
|
|
763
|
+
children: [jsxs("div", {
|
|
764
|
+
className: "flex items-center gap-2 border-b border-[#f1f3f2] px-4 py-2.5",
|
|
765
|
+
children: [jsxs("span", {
|
|
766
|
+
className: "flex gap-1.5",
|
|
767
|
+
children: [jsx("span", {
|
|
768
|
+
className: "h-2.5 w-2.5 rounded-full bg-[#e5e7eb]"
|
|
769
|
+
}), jsx("span", {
|
|
770
|
+
className: "h-2.5 w-2.5 rounded-full bg-[#e5e7eb]"
|
|
771
|
+
}), jsx("span", {
|
|
772
|
+
className: "h-2.5 w-2.5 rounded-full bg-[#e5e7eb]"
|
|
773
|
+
})]
|
|
774
|
+
}), jsx("span", {
|
|
775
|
+
className: "text-xs text-[#9ca3af]",
|
|
776
|
+
children: item.title
|
|
777
|
+
})]
|
|
778
|
+
}), jsx("img", {
|
|
779
|
+
src: item.image,
|
|
780
|
+
alt: `${item.title} — ${item.body}`,
|
|
781
|
+
className: "h-auto w-full object-cover",
|
|
782
|
+
loading: "lazy"
|
|
783
|
+
})]
|
|
784
|
+
})]
|
|
785
|
+
})]
|
|
786
|
+
})
|
|
787
|
+
});
|
|
788
|
+
}
|
|
789
|
+
function Templates({
|
|
790
|
+
block,
|
|
791
|
+
theme
|
|
792
|
+
}) {
|
|
793
|
+
const r = RADIUS[theme.radius];
|
|
794
|
+
const templates = templatesForProduct(block.forProduct, block.limit ?? 6);
|
|
795
|
+
if (templates.length === 0) return null;
|
|
796
|
+
return jsx(Band, {
|
|
797
|
+
background: theme.wash,
|
|
798
|
+
children: jsxs(Container, {
|
|
799
|
+
className: DENSITY[theme.density],
|
|
800
|
+
children: [jsx(SectionHead, {
|
|
801
|
+
eyebrow: block.eyebrow,
|
|
802
|
+
headline: block.headline,
|
|
803
|
+
sub: block.sub,
|
|
804
|
+
theme: theme
|
|
805
|
+
}), jsx("div", {
|
|
806
|
+
className: "mt-10 grid gap-4 sm:grid-cols-2 lg:grid-cols-3",
|
|
807
|
+
children: templates.map((template, index) => jsxs(Reveal, {
|
|
808
|
+
delay: index * 70,
|
|
809
|
+
className: `h-full ${r.card} border border-[#e5e7eb] bg-white p-5`,
|
|
810
|
+
children: [jsxs("div", {
|
|
811
|
+
className: "flex items-center justify-between gap-3",
|
|
812
|
+
children: [jsx("span", {
|
|
813
|
+
className: `${r.pill} px-2.5 py-1 text-[0.65rem] font-semibold uppercase tracking-[0.14em]`,
|
|
814
|
+
style: {
|
|
815
|
+
backgroundColor: theme.wash,
|
|
816
|
+
color: theme.accent
|
|
817
|
+
},
|
|
818
|
+
children: template.category
|
|
819
|
+
}), jsx(Workflow, {
|
|
820
|
+
className: "h-4 w-4 shrink-0 text-[#c3cbc7]"
|
|
821
|
+
})]
|
|
822
|
+
}), jsx("h3", {
|
|
823
|
+
className: "mt-4 text-base font-semibold text-[#111827]",
|
|
824
|
+
children: template.title
|
|
825
|
+
}), jsx("p", {
|
|
826
|
+
className: "mt-2 text-sm leading-6 text-[#6b7280]",
|
|
827
|
+
children: template.description
|
|
828
|
+
}), template.tags.length > 0 && jsx("div", {
|
|
829
|
+
className: "mt-4 flex flex-wrap gap-1.5",
|
|
830
|
+
children: template.tags.map(tag => jsx("span", {
|
|
831
|
+
className: "rounded-full border border-[#e5e7eb] px-2 py-0.5 text-[0.65rem] text-[#9ca3af]",
|
|
832
|
+
children: tag
|
|
833
|
+
}, tag))
|
|
834
|
+
})]
|
|
835
|
+
}, template.slug))
|
|
836
|
+
}), block.cta && jsx("div", {
|
|
837
|
+
className: "mt-8",
|
|
838
|
+
children: jsx(CtaButton, {
|
|
839
|
+
cta: block.cta,
|
|
840
|
+
theme: theme,
|
|
841
|
+
variant: "outline"
|
|
842
|
+
})
|
|
843
|
+
})]
|
|
844
|
+
})
|
|
845
|
+
});
|
|
846
|
+
}
|
|
847
|
+
/**
|
|
848
|
+
* The real landing-page section for a module, embedded on its product page. Reusing the
|
|
849
|
+
* component means the page shows the live feature copy, statistics and screenshots
|
|
850
|
+
* instead of a second copy that has to be kept in sync by hand.
|
|
851
|
+
*/
|
|
852
|
+
function LandingSection({
|
|
853
|
+
block
|
|
854
|
+
}) {
|
|
855
|
+
const reducedMotion = usePrefersReducedMotion();
|
|
856
|
+
switch (block.section) {
|
|
857
|
+
case 'hrm':
|
|
858
|
+
return jsx(HRMFeatureSection, {
|
|
859
|
+
reducedMotion: reducedMotion
|
|
860
|
+
});
|
|
861
|
+
case 'books':
|
|
862
|
+
return jsx(BooksFeatureSection, {
|
|
863
|
+
reducedMotion: reducedMotion
|
|
864
|
+
});
|
|
865
|
+
case 'workflow':
|
|
866
|
+
return jsx(WorkflowFeatureSection, {
|
|
867
|
+
reducedMotion: reducedMotion
|
|
868
|
+
});
|
|
869
|
+
case 'timer':
|
|
870
|
+
return jsx(TimerBarSection, {
|
|
871
|
+
reducedMotion: reducedMotion
|
|
872
|
+
});
|
|
873
|
+
default:
|
|
874
|
+
return null;
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
/**
|
|
878
|
+
* The product's demo. Embeds the real video when there is one; until then it runs an
|
|
879
|
+
* auto-advancing tour of real screenshots, so the slot is useful before it is filled.
|
|
880
|
+
*/
|
|
881
|
+
function DemoVideo({
|
|
882
|
+
block,
|
|
883
|
+
theme,
|
|
884
|
+
specimen
|
|
885
|
+
}) {
|
|
886
|
+
const r = RADIUS[theme.radius];
|
|
887
|
+
const reducedMotion = usePrefersReducedMotion();
|
|
888
|
+
const [playing, setPlaying] = React__default.useState(false);
|
|
889
|
+
const [frame, setFrame] = React__default.useState(0);
|
|
890
|
+
const stills = block.stills ?? [];
|
|
891
|
+
React__default.useEffect(() => {
|
|
892
|
+
if (block.youtubeId || reducedMotion || stills.length < 2) return undefined;
|
|
893
|
+
const id = window.setInterval(() => setFrame(current => (current + 1) % stills.length), 3800);
|
|
894
|
+
return () => window.clearInterval(id);
|
|
895
|
+
}, [block.youtubeId, reducedMotion, stills.length]);
|
|
896
|
+
const poster = stills[frame]?.image;
|
|
897
|
+
// No screenshots and no video yet — show the product's own specimen rather than a void.
|
|
898
|
+
const specimenOnly = !block.youtubeId && stills.length === 0 && Boolean(specimen);
|
|
899
|
+
return jsx(Band, {
|
|
900
|
+
background: theme.ink,
|
|
901
|
+
children: jsxs(Container, {
|
|
902
|
+
className: DENSITY[theme.density],
|
|
903
|
+
children: [jsx(Reveal, {
|
|
904
|
+
children: jsx(SectionHead, {
|
|
905
|
+
eyebrow: block.eyebrow,
|
|
906
|
+
headline: block.headline,
|
|
907
|
+
sub: block.sub,
|
|
908
|
+
theme: theme,
|
|
909
|
+
onInk: true,
|
|
910
|
+
center: true
|
|
911
|
+
})
|
|
912
|
+
}), jsx(Reveal, {
|
|
913
|
+
direction: "scale",
|
|
914
|
+
delay: 120,
|
|
915
|
+
children: jsx("div", {
|
|
916
|
+
className: `mx-auto mt-10 max-w-4xl ${specimenOnly ? '' : `overflow-hidden ${r.frame} border border-white/10 bg-black shadow-[0_40px_90px_rgba(0,0,0,0.45)]`}`,
|
|
917
|
+
children: specimenOnly && specimen ? jsx(ProductSpecimen, {
|
|
918
|
+
spec: specimen
|
|
919
|
+
}) : jsx("div", {
|
|
920
|
+
className: "relative aspect-video w-full",
|
|
921
|
+
children: block.youtubeId && playing ? jsx("iframe", {
|
|
922
|
+
src: `https://www.youtube.com/embed/${block.youtubeId}?autoplay=1`,
|
|
923
|
+
title: block.headline,
|
|
924
|
+
allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",
|
|
925
|
+
allowFullScreen: true,
|
|
926
|
+
className: "absolute inset-0 h-full w-full"
|
|
927
|
+
}) : jsxs(Fragment, {
|
|
928
|
+
children: [poster ? stills.map((still, index) => jsx("img", {
|
|
929
|
+
src: still.image,
|
|
930
|
+
alt: still.caption,
|
|
931
|
+
loading: "lazy",
|
|
932
|
+
className: "absolute inset-0 h-full w-full object-cover object-top transition-opacity duration-700",
|
|
933
|
+
style: {
|
|
934
|
+
opacity: index === frame ? 1 : 0
|
|
935
|
+
}
|
|
936
|
+
}, still.image)) : jsx("div", {
|
|
937
|
+
className: "absolute inset-0 bg-gradient-to-br from-white/[0.06] to-transparent"
|
|
938
|
+
}), jsx("div", {
|
|
939
|
+
className: "absolute inset-0 bg-gradient-to-t from-black/70 via-black/10 to-transparent"
|
|
940
|
+
}), block.youtubeId ? jsx("button", {
|
|
941
|
+
type: "button",
|
|
942
|
+
onClick: () => setPlaying(true),
|
|
943
|
+
"aria-label": `Play ${block.headline}`,
|
|
944
|
+
className: "group absolute inset-0 flex items-center justify-center",
|
|
945
|
+
children: jsx("span", {
|
|
946
|
+
className: "flex h-16 w-16 items-center justify-center rounded-full text-white shadow-[0_12px_30px_rgba(0,0,0,0.45)] transition-transform group-hover:scale-110",
|
|
947
|
+
style: {
|
|
948
|
+
backgroundColor: theme.accent
|
|
949
|
+
},
|
|
950
|
+
children: jsx(Play, {
|
|
951
|
+
className: "ml-0.5 h-7 w-7 fill-current"
|
|
952
|
+
})
|
|
953
|
+
})
|
|
954
|
+
}) : null, stills.length > 0 && jsxs("div", {
|
|
955
|
+
className: "absolute inset-x-0 bottom-0 flex flex-wrap items-center gap-3 p-4",
|
|
956
|
+
children: [jsx("span", {
|
|
957
|
+
className: "text-sm font-medium text-white",
|
|
958
|
+
children: stills[frame]?.caption
|
|
959
|
+
}), jsx("span", {
|
|
960
|
+
className: "ml-auto flex gap-1.5",
|
|
961
|
+
children: stills.map((still, index) => jsx("button", {
|
|
962
|
+
type: "button",
|
|
963
|
+
onClick: () => setFrame(index),
|
|
964
|
+
"aria-label": still.caption,
|
|
965
|
+
className: "h-1.5 w-6 rounded-full transition",
|
|
966
|
+
style: {
|
|
967
|
+
backgroundColor: index === frame ? theme.accentOnInk : 'rgba(255,255,255,0.25)'
|
|
968
|
+
}
|
|
969
|
+
}, still.image))
|
|
970
|
+
})]
|
|
971
|
+
})]
|
|
972
|
+
})
|
|
973
|
+
})
|
|
974
|
+
})
|
|
975
|
+
}), block.cta && jsx("div", {
|
|
976
|
+
className: "mt-8 flex justify-center",
|
|
977
|
+
children: jsx(CtaButton, {
|
|
978
|
+
cta: block.cta,
|
|
979
|
+
theme: theme,
|
|
980
|
+
variant: "ghost"
|
|
981
|
+
})
|
|
982
|
+
})]
|
|
983
|
+
})
|
|
984
|
+
});
|
|
985
|
+
}
|
|
986
|
+
function CtaPaths({
|
|
987
|
+
block,
|
|
988
|
+
theme
|
|
989
|
+
}) {
|
|
990
|
+
const r = RADIUS[theme.radius];
|
|
991
|
+
return jsx(Band, {
|
|
992
|
+
background: theme.surface,
|
|
993
|
+
children: jsxs(Container, {
|
|
994
|
+
className: DENSITY[theme.density],
|
|
995
|
+
children: [jsx(SectionHead, {
|
|
996
|
+
headline: block.headline,
|
|
997
|
+
sub: block.sub,
|
|
998
|
+
theme: theme,
|
|
999
|
+
center: true
|
|
1000
|
+
}), jsx("div", {
|
|
1001
|
+
className: "mt-10 grid gap-4 sm:grid-cols-2 lg:grid-cols-4",
|
|
1002
|
+
children: block.paths.map((path, index) => jsx(Reveal, {
|
|
1003
|
+
delay: index * 80,
|
|
1004
|
+
className: "h-full",
|
|
1005
|
+
children: jsxs(Link, {
|
|
1006
|
+
to: path.to,
|
|
1007
|
+
className: `group block h-full ${r.card} border border-[#e5e7eb] bg-white p-5 transition hover:-translate-y-0.5 hover:shadow-[0_16px_32px_rgba(15,23,42,0.07)]`,
|
|
1008
|
+
children: [jsxs("span", {
|
|
1009
|
+
className: "flex items-center justify-between gap-2 text-base font-semibold text-[#111827]",
|
|
1010
|
+
children: [path.label, jsx(ChevronDown, {
|
|
1011
|
+
className: "h-4 w-4 -rotate-90 transition-transform group-hover:translate-x-1",
|
|
1012
|
+
style: {
|
|
1013
|
+
color: theme.accent
|
|
1014
|
+
}
|
|
1015
|
+
})]
|
|
1016
|
+
}), jsx("span", {
|
|
1017
|
+
className: "mt-2 block text-sm leading-6 text-[#6b7280]",
|
|
1018
|
+
children: path.detail
|
|
1019
|
+
})]
|
|
1020
|
+
})
|
|
1021
|
+
}, path.label))
|
|
1022
|
+
})]
|
|
1023
|
+
})
|
|
1024
|
+
});
|
|
1025
|
+
}
|
|
1026
|
+
/* ---------------------------------------------------------------------- render */
|
|
1027
|
+
function ProductBlock({
|
|
1028
|
+
block,
|
|
1029
|
+
theme,
|
|
1030
|
+
specimen
|
|
1031
|
+
}) {
|
|
1032
|
+
switch (block.kind) {
|
|
1033
|
+
case 'heroCentered':
|
|
1034
|
+
return jsx(HeroCentered, {
|
|
1035
|
+
block: block,
|
|
1036
|
+
theme: theme
|
|
1037
|
+
});
|
|
1038
|
+
case 'heroSplit':
|
|
1039
|
+
return jsx(HeroSplit, {
|
|
1040
|
+
block: block,
|
|
1041
|
+
theme: theme,
|
|
1042
|
+
specimen: specimen
|
|
1043
|
+
});
|
|
1044
|
+
case 'trustBar':
|
|
1045
|
+
return jsx(TrustBar, {
|
|
1046
|
+
block: block,
|
|
1047
|
+
theme: theme
|
|
1048
|
+
});
|
|
1049
|
+
case 'callout':
|
|
1050
|
+
return jsx(Callout, {
|
|
1051
|
+
block: block,
|
|
1052
|
+
theme: theme
|
|
1053
|
+
});
|
|
1054
|
+
case 'featureTrio':
|
|
1055
|
+
return jsx(FeatureTrio, {
|
|
1056
|
+
block: block,
|
|
1057
|
+
theme: theme
|
|
1058
|
+
});
|
|
1059
|
+
case 'spotlight':
|
|
1060
|
+
return jsx(Spotlight, {
|
|
1061
|
+
block: block,
|
|
1062
|
+
theme: theme
|
|
1063
|
+
});
|
|
1064
|
+
case 'moduleGrid':
|
|
1065
|
+
return jsx(ModuleGrid, {
|
|
1066
|
+
block: block,
|
|
1067
|
+
theme: theme
|
|
1068
|
+
});
|
|
1069
|
+
case 'testimonialWall':
|
|
1070
|
+
return jsx(TestimonialWall, {
|
|
1071
|
+
block: block,
|
|
1072
|
+
theme: theme
|
|
1073
|
+
});
|
|
1074
|
+
case 'metricsBand':
|
|
1075
|
+
return jsx(MetricsBand, {
|
|
1076
|
+
block: block,
|
|
1077
|
+
theme: theme
|
|
1078
|
+
});
|
|
1079
|
+
case 'compliance':
|
|
1080
|
+
return jsx(Compliance, {
|
|
1081
|
+
block: block,
|
|
1082
|
+
theme: theme
|
|
1083
|
+
});
|
|
1084
|
+
case 'specimen':
|
|
1085
|
+
return jsx(SpecimenSection, {
|
|
1086
|
+
block: block,
|
|
1087
|
+
theme: theme,
|
|
1088
|
+
specimen: specimen
|
|
1089
|
+
});
|
|
1090
|
+
case 'gallery':
|
|
1091
|
+
return jsx(Gallery, {
|
|
1092
|
+
block: block,
|
|
1093
|
+
theme: theme
|
|
1094
|
+
});
|
|
1095
|
+
case 'templates':
|
|
1096
|
+
return jsx(Templates, {
|
|
1097
|
+
block: block,
|
|
1098
|
+
theme: theme
|
|
1099
|
+
});
|
|
1100
|
+
case 'landingSection':
|
|
1101
|
+
return jsx(LandingSection, {
|
|
1102
|
+
block: block
|
|
1103
|
+
});
|
|
1104
|
+
case 'demoVideo':
|
|
1105
|
+
return jsx(DemoVideo, {
|
|
1106
|
+
block: block,
|
|
1107
|
+
theme: theme,
|
|
1108
|
+
specimen: specimen
|
|
1109
|
+
});
|
|
1110
|
+
case 'faq':
|
|
1111
|
+
return jsx(Faq, {
|
|
1112
|
+
block: block,
|
|
1113
|
+
theme: theme
|
|
1114
|
+
});
|
|
1115
|
+
case 'ctaPaths':
|
|
1116
|
+
return jsx(CtaPaths, {
|
|
1117
|
+
block: block,
|
|
1118
|
+
theme: theme
|
|
1119
|
+
});
|
|
1120
|
+
default:
|
|
1121
|
+
return null;
|
|
1122
|
+
}
|
|
1123
|
+
}export{ProductBlock,ProductBlock as default};//# sourceMappingURL=ProductBlocks.js.map
|