@lets-ship/site 3.2.0 → 3.3.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/dist/website/blocks/call-to-action-views.d.ts.map +1 -1
- package/dist/website/blocks/call-to-action-views.js +3 -3
- package/dist/website/blocks/call-to-action-views.js.map +1 -1
- package/dist/website/blocks/card-grid-views.d.ts.map +1 -1
- package/dist/website/blocks/card-grid-views.js +1 -1
- package/dist/website/blocks/card-grid-views.js.map +1 -1
- package/dist/website/blocks/catalog.d.ts +1 -1
- package/dist/website/blocks/catalog.js +1 -1
- package/dist/website/blocks/catalog.js.map +1 -1
- package/dist/website/blocks/commerce.d.ts +3 -1
- package/dist/website/blocks/commerce.d.ts.map +1 -1
- package/dist/website/blocks/commerce.js +2 -2
- package/dist/website/blocks/commerce.js.map +1 -1
- package/dist/website/blocks/contact-views.d.ts.map +1 -1
- package/dist/website/blocks/contact-views.js +3 -3
- package/dist/website/blocks/contact-views.js.map +1 -1
- package/dist/website/blocks/content.d.ts +5 -2
- package/dist/website/blocks/content.d.ts.map +1 -1
- package/dist/website/blocks/content.js +4 -3
- package/dist/website/blocks/content.js.map +1 -1
- package/dist/website/blocks/empty-state-views.d.ts.map +1 -1
- package/dist/website/blocks/empty-state-views.js +2 -2
- package/dist/website/blocks/empty-state-views.js.map +1 -1
- package/dist/website/blocks/faq-views.d.ts.map +1 -1
- package/dist/website/blocks/faq-views.js +1 -1
- package/dist/website/blocks/faq-views.js.map +1 -1
- package/dist/website/blocks/feature-views.d.ts.map +1 -1
- package/dist/website/blocks/feature-views.js +5 -5
- package/dist/website/blocks/feature-views.js.map +1 -1
- package/dist/website/blocks/hero-views.d.ts +5 -0
- package/dist/website/blocks/hero-views.d.ts.map +1 -1
- package/dist/website/blocks/hero-views.js +13 -11
- package/dist/website/blocks/hero-views.js.map +1 -1
- package/dist/website/blocks/local-views.d.ts.map +1 -1
- package/dist/website/blocks/local-views.js +6 -6
- package/dist/website/blocks/local-views.js.map +1 -1
- package/dist/website/blocks/logo-stats-views.d.ts.map +1 -1
- package/dist/website/blocks/logo-stats-views.js +5 -5
- package/dist/website/blocks/logo-stats-views.js.map +1 -1
- package/dist/website/blocks/media-views.d.ts.map +1 -1
- package/dist/website/blocks/media-views.js +2 -2
- package/dist/website/blocks/media-views.js.map +1 -1
- package/dist/website/blocks/newsletter-views.d.ts.map +1 -1
- package/dist/website/blocks/newsletter-views.js +3 -3
- package/dist/website/blocks/newsletter-views.js.map +1 -1
- package/dist/website/blocks/parts.d.ts +27 -3
- package/dist/website/blocks/parts.d.ts.map +1 -1
- package/dist/website/blocks/parts.js +23 -4
- package/dist/website/blocks/parts.js.map +1 -1
- package/dist/website/blocks/team-views.d.ts.map +1 -1
- package/dist/website/blocks/team-views.js +3 -3
- package/dist/website/blocks/team-views.js.map +1 -1
- package/dist/website/blocks/testimonial-views.d.ts +6 -1
- package/dist/website/blocks/testimonial-views.d.ts.map +1 -1
- package/dist/website/blocks/testimonial-views.js +22 -7
- package/dist/website/blocks/testimonial-views.js.map +1 -1
- package/package.json +2 -2
- package/styles.css +189 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-views.d.ts","sourceRoot":"","sources":["../../../src/website/blocks/local-views.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAG1C,OAAO,EAAE,KAAK,MAAM,EAAW,KAAK,MAAM,
|
|
1
|
+
{"version":3,"file":"local-views.d.ts","sourceRoot":"","sources":["../../../src/website/blocks/local-views.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAG1C,OAAO,EAAE,KAAK,MAAM,EAAW,KAAK,MAAM,EAAgC,KAAK,UAAU,EAAW,MAAM,YAAY,CAAC;AAGvH,eAAO,MAAM,mBAAmB,8BAA2B,CAAC;AAC5D,MAAM,MAAM,g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AAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,0FAA0F;AAC1F,wBAAgB,SAAS,CAAC,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,UAAU,GAAG,YAAY,CAuChF;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG;IACpC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,0DAA0D;IAC1D,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,yFAAyF;IACzF,QAAQ,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC;IAC5B,0EAA0E;IAC1E,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS;QAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACjF,oCAAoC;IACpC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAWF,oFAAoF;AACpF,wBAAgB,YAAY,CAAC,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,aAAa,GAAG,YAAY,CAmCzF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { BLOCK_VARIANTS } from "./catalog.js";
|
|
3
3
|
import { keyed } from "./list.js";
|
|
4
|
-
import { Actions, bandAttrs, Media, Section } from "./parts.js";
|
|
4
|
+
import { Actions, BlockTitle, bandAttrs, Media, Section } from "./parts.js";
|
|
5
5
|
import { filled } from "./variant.js";
|
|
6
6
|
export const PRICE_LIST_VARIANTS = BLOCK_VARIANTS.PriceList;
|
|
7
7
|
export const HOURS_VARIANTS = BLOCK_VARIANTS.Hours;
|
|
@@ -13,16 +13,16 @@ function PriceRows({ items }) {
|
|
|
13
13
|
export function priceListView(variant, props) {
|
|
14
14
|
const items = filled("PriceList", variant, "items", props.items);
|
|
15
15
|
if (variant === "columns")
|
|
16
|
-
return (_jsx(Section, { name: "PriceList", id: props.id, tone: props.tone, title: props.title, intro: props.intro, children: _jsx("div", { className: "site-price-columns", "data-variant": "columns", children: _jsx(PriceRows, { items: items }) }) }));
|
|
17
|
-
return (_jsx("section", { ...bandAttrs("PriceList", props, "site-block"), children: _jsxs("div", { className: "site-container site-split-end", children: [_jsxs("div", { children: [props.title ? _jsx(
|
|
16
|
+
return (_jsx(Section, { name: "PriceList", id: props.id, tone: props.tone, title: props.title, highlight: props.highlight, intro: props.intro, children: _jsx("div", { className: "site-price-columns", "data-variant": "columns", children: _jsx(PriceRows, { items: items }) }) }));
|
|
17
|
+
return (_jsx("section", { ...bandAttrs("PriceList", props, "site-block"), children: _jsxs("div", { className: "site-container site-split-end", children: [_jsxs("div", { children: [props.title ? _jsx(BlockTitle, { block: "PriceList", title: props.title, highlight: props.highlight }) : null, props.intro ? _jsx("p", { className: "site-block-intro", children: props.intro }) : null] }), _jsx(PriceRows, { items: items })] }) }));
|
|
18
18
|
}
|
|
19
19
|
/** The hours as a table under the heading (table), or the heading beside them (split). */
|
|
20
20
|
export function hoursView(variant, props) {
|
|
21
21
|
const rows = filled("Hours", variant, "rows", props.rows);
|
|
22
22
|
const table = (_jsxs("div", { children: [_jsx("dl", { className: "site-hours", children: keyed(rows).map(({ key, item }) => (_jsxs("div", { className: "site-hours-row", children: [_jsx("dt", { children: item.days }), _jsx("dd", { children: item.hours })] }, key))) }), props.note ? _jsx("p", { className: "site-card-text mt-4", children: props.note }) : null] }));
|
|
23
23
|
if (variant === "split")
|
|
24
|
-
return (_jsx("section", { ...bandAttrs("Hours", props, "site-block"), "data-variant": "split", children: _jsxs("div", { className: "site-container site-split-end", children: [_jsxs("div", { children: [props.title ? _jsx(
|
|
25
|
-
return (_jsx(Section, { name: "Hours", id: props.id, tone: props.tone, title: props.title, intro: props.intro, children: _jsx("div", { className: "site-hours-table", children: table }) }));
|
|
24
|
+
return (_jsx("section", { ...bandAttrs("Hours", props, "site-block"), "data-variant": "split", children: _jsxs("div", { className: "site-container site-split-end", children: [_jsxs("div", { children: [props.title ? _jsx(BlockTitle, { block: "Hours", title: props.title, highlight: props.highlight }) : null, props.intro ? _jsx("p", { className: "site-block-intro", children: props.intro }) : null] }), table] }) }));
|
|
25
|
+
return (_jsx(Section, { name: "Hours", id: props.id, tone: props.tone, title: props.title, highlight: props.highlight, intro: props.intro, children: _jsx("div", { className: "site-hours-table", children: table }) }));
|
|
26
26
|
}
|
|
27
27
|
/** A drawn plan of streets and a pin, for a location with no picture. It names nothing. */
|
|
28
28
|
function Plan() {
|
|
@@ -32,7 +32,7 @@ function Plan() {
|
|
|
32
32
|
export function locationView(variant, props) {
|
|
33
33
|
const address = filled("Location", variant, "address", props.address);
|
|
34
34
|
const picture = props.image ? _jsx(Media, { image: props.image, className: "site-location-media" }) : _jsx(Plan, {});
|
|
35
|
-
const words = (_jsxs("div", { className: "site-location-words", children: [props.title ? _jsx(
|
|
35
|
+
const words = (_jsxs("div", { className: "site-location-words", children: [props.title ? _jsx(BlockTitle, { block: "Hours", title: props.title, highlight: props.highlight }) : null, props.intro ? _jsx("p", { className: "site-block-intro", children: props.intro }) : null, _jsx("address", { className: "site-location-address", children: keyed(address).map(({ key, item }) => (_jsx("span", { className: "block", children: item }, key))) }), props.details ? (_jsx("dl", { className: "site-hours mt-6", children: keyed(props.details).map(({ key, item }) => (_jsxs("div", { className: "site-hours-row", children: [_jsx("dt", { children: item.label }), _jsx("dd", { children: item.value })] }, key))) })) : null, _jsx(Actions, { primary: props.primary, secondary: props.secondary })] }));
|
|
36
36
|
return (_jsx("section", { ...bandAttrs("Location", props, "site-block"), "data-variant": variant === "split" ? undefined : variant, children: _jsxs("div", { className: variant === "split" ? "site-container site-split items-center" : "site-container grid gap-10", children: [variant === "split" ? picture : words, variant === "split" ? words : picture] }) }));
|
|
37
37
|
}
|
|
38
38
|
//# sourceMappingURL=local-views.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-views.js","sourceRoot":"","sources":["../../../src/website/blocks/local-views.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAe,OAAO,EAAe,SAAS,EAAE,KAAK,EAAmB,OAAO,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"local-views.js","sourceRoot":"","sources":["../../../src/website/blocks/local-views.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAe,OAAO,EAAe,UAAU,EAAE,SAAS,EAAE,KAAK,EAAmB,OAAO,EAAE,MAAM,YAAY,CAAC;AACvH,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,MAAM,CAAC,MAAM,mBAAmB,GAAG,cAAc,CAAC,SAAS,CAAC;AAE5D,MAAM,CAAC,MAAM,cAAc,GAAG,cAAc,CAAC,KAAK,CAAC;AAEnD,MAAM,CAAC,MAAM,iBAAiB,GAAG,cAAc,CAAC,QAAQ,CAAC;AAiBzD,SAAS,SAAS,CAAC,EAAE,KAAK,EAA4C;IACrE,OAAO,CACN,aAAI,SAAS,EAAC,iBAAiB,YAC7B,KAAK,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CACpC,cAAc,SAAS,EAAC,gBAAgB,aACvC,eAAK,SAAS,EAAC,SAAS,aACvB,aAAI,SAAS,EAAC,iBAAiB,YAAE,IAAI,CAAC,IAAI,GAAM,EAC/C,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,Y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C;IACxB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,SAAS,IAAI,EAAE,CAAC;IAChC,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;CAC9B,CAAC;AAsFF,wBAAgB,aAAa,CAAC,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,cAAc,GAAG,YAAY,CAK5F;AAED,eAAO,MAAM,cAAc,qDAAuB,CAAC;AACnD,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAE3D,KAAK,IAAI,GAAG;IAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAC/D,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG;IAAE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,SAAS,IAAI,EAAE,CAAA;CAAE,CAAC;AA6DxH,wBAAgB,SAAS,CAAC,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,UAAU,GAAG,YAAY,CAGhF"}
|
|
@@ -11,16 +11,16 @@ function LogoImage({ logo, className }) {
|
|
|
11
11
|
}
|
|
12
12
|
/** The block's own look: one centred row of logos. */
|
|
13
13
|
function RowLogos(props) {
|
|
14
|
-
return (_jsx(Section, { name: "LogoCloud", id: props.id, tone: props.tone, title: props.title, intro: props.intro, children: _jsx("ul", { className: "flex flex-wrap items-center justify-center gap-10", children: keyed(props.logos).map(({ key, item: logo }) => (_jsx("li", { children: _jsx(LogoImage, { logo: logo, className: "site-logo" }) }, key))) }) }));
|
|
14
|
+
return (_jsx(Section, { name: "LogoCloud", id: props.id, tone: props.tone, title: props.title, highlight: props.highlight, intro: props.intro, children: _jsx("ul", { className: "flex flex-wrap items-center justify-center gap-10", children: keyed(props.logos).map(({ key, item: logo }) => (_jsx("li", { children: _jsx(LogoImage, { logo: logo, className: "site-logo" }) }, key))) }) }));
|
|
15
15
|
}
|
|
16
16
|
/** Logos in a grid of equal cells, in grey until a pointer rests on one (grid), or on tiles (tiles). */
|
|
17
17
|
function GridLogos({ props, variant }) {
|
|
18
18
|
const tiles = variant === "tiles";
|
|
19
|
-
return (_jsx(Section, { name: "LogoCloud", id: props.id, tone: props.tone, title: props.title, intro: props.intro, align: tiles ? undefined : "center", children: _jsx("ul", { className: tiles ? "site-logo-tiles site-grid site-grid-hairline overflow-hidden" : "site-grid site-grid-flush", "data-cols": gridColumns(props.logos.length, 4), "data-phone": "2", "data-variant": variant, children: keyed(props.logos).map(({ key, item: logo }) => (_jsx("li", { className: tiles ? "site-logo-tile grid aspect-video place-content-center p-4" : "grid place-content-center p-4", children: _jsx(LogoImage, { logo: logo, className: "site-logo site-logo-muted" }) }, key))) }) }));
|
|
19
|
+
return (_jsx(Section, { name: "LogoCloud", id: props.id, tone: props.tone, title: props.title, highlight: props.highlight, intro: props.intro, align: tiles ? undefined : "center", children: _jsx("ul", { className: tiles ? "site-logo-tiles site-grid site-grid-hairline overflow-hidden" : "site-grid site-grid-flush", "data-cols": gridColumns(props.logos.length, 4), "data-phone": "2", "data-variant": variant, children: keyed(props.logos).map(({ key, item: logo }) => (_jsx("li", { className: tiles ? "site-logo-tile grid aspect-video place-content-center p-4" : "grid place-content-center p-4", children: _jsx(LogoImage, { logo: logo, className: "site-logo site-logo-muted" }) }, key))) }) }));
|
|
20
20
|
}
|
|
21
21
|
/** The logos in one row the reader scrolls, for more logos than one row holds. */
|
|
22
22
|
function CarouselLogos(props) {
|
|
23
|
-
return (_jsx(Section, { name: "LogoCloud", id: props.id, tone: props.tone, title: props.title, intro: props.intro, align: "center", children: _jsx(CarouselRow, { kind: "logos", label: props.title, items: props.logos, strings: props.strings, render: (logo) => _jsx(LogoImage, { logo: logo, className: "site-logo" }) }) }));
|
|
23
|
+
return (_jsx(Section, { name: "LogoCloud", id: props.id, tone: props.tone, title: props.title, highlight: props.highlight, intro: props.intro, align: "center", children: _jsx(CarouselRow, { kind: "logos", label: props.title, items: props.logos, strings: props.strings, render: (logo) => _jsx(LogoImage, { logo: logo, className: "site-logo" }) }) }));
|
|
24
24
|
}
|
|
25
25
|
export function logoCloudView(variant, props) {
|
|
26
26
|
const full = { ...props, logos: filled("LogoCloud", variant, "logos", props.logos) };
|
|
@@ -33,7 +33,7 @@ export function logoCloudView(variant, props) {
|
|
|
33
33
|
export const STATS_VARIANTS = BLOCK_VARIANTS.Stats;
|
|
34
34
|
/** The block's own look: a card for each figure, its label above it. */
|
|
35
35
|
function CardStats(props) {
|
|
36
|
-
return (_jsx(Section, { name: "Stats", id: props.id, tone: props.tone, title: props.title, intro: props.intro, children: _jsx("dl", { className: "site-grid", "data-cols": gridColumns(props.items.length, 4), "data-phone": "2", children: keyed(props.items).map(({ key, item }) => (_jsxs("div", { className: "site-card", children: [_jsx("dt", { className: "site-stat-label", children: item.label }), _jsx("dd", { className: "site-stat-value", children: item.value })] }, key))) }) }));
|
|
36
|
+
return (_jsx(Section, { name: "Stats", id: props.id, tone: props.tone, title: props.title, highlight: props.highlight, intro: props.intro, children: _jsx("dl", { className: "site-grid", "data-cols": gridColumns(props.items.length, 4), "data-phone": "2", children: keyed(props.items).map(({ key, item }) => (_jsxs("div", { className: "site-card", children: [_jsx("dt", { className: "site-stat-label", children: item.label }), _jsx("dd", { className: "site-stat-value", children: item.value })] }, key))) }) }));
|
|
37
37
|
}
|
|
38
38
|
const STAT_CELL = {
|
|
39
39
|
outlined: "site-stat-outlined",
|
|
@@ -42,7 +42,7 @@ const STAT_CELL = {
|
|
|
42
42
|
};
|
|
43
43
|
/** Large figures in the brand colour, centred, each over its label. */
|
|
44
44
|
function FeatureStats({ props, variant, }) {
|
|
45
|
-
return (_jsx(Section, { name: "Stats", id: props.id, tone: props.tone, title: props.title, intro: props.intro, align: "center", children: _jsx("dl", { className: "site-grid site-grid-tight", "data-cols": gridColumns(props.items.length, 4), "data-variant": variant, children: keyed(props.items).map(({ key, item }) => (_jsxs("div", { className: `${STAT_CELL[variant]} flex flex-col px-4 py-8 text-center`, children: [_jsx("dt", { className: "site-stat-caption order-last", children: item.label }), _jsx("dd", { className: "site-stat-figure", children: item.value })] }, key))) }) }));
|
|
45
|
+
return (_jsx(Section, { name: "Stats", id: props.id, tone: props.tone, title: props.title, highlight: props.highlight, intro: props.intro, align: "center", children: _jsx("dl", { className: "site-grid site-grid-tight", "data-cols": gridColumns(props.items.length, 4), "data-variant": variant, children: keyed(props.items).map(({ key, item }) => (_jsxs("div", { className: `${STAT_CELL[variant]} flex flex-col px-4 py-8 text-center`, children: [_jsx("dt", { className: "site-stat-caption order-last", children: item.label }), _jsx("dd", { className: "site-stat-figure", children: item.value })] }, key))) }) }));
|
|
46
46
|
}
|
|
47
47
|
export function statsView(variant, props) {
|
|
48
48
|
const full = { ...props, items: filled("Stats", variant, "items", props.items) };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logo-stats-views.js","sourceRoot":"","sources":["../../../src/website/blocks/logo-stats-views.tsx"],"names":[],"mappings":";AASA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAgC,QAAQ,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAC7E,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,MAAM,CAAC,MAAM,mBAAmB,GAAG,cAAc,CAAC,SAAS,CAAC;AAW5D,SAAS,SAAS,CAAC,EAAE,IAAI,EAAE,SAAS,EAAuD;IAC1F,MAAM,GAAG,GAAG,KAAC,QAAQ,IAAC,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,GAAI,CAAC;IA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C,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAC1C,eAAe,SAAS,EAAE,GAAG,SAAS,CAAC,OAAO,CAAC,sCAAsC,aACpF,aAAI,SAAS,EAAC,8BAA8B,YAAE,IAAI,CAAC,KAAK,GAAM,EAC9D,aAAI,SAAS,EAAC,kBAAkB,YAAE,IAAI,CAAC,KAAK,GAAM,KAFzC,GAAG,CAGP,CACN,CAAC,GACE,GACI,CACV,CAAC;AACH,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,OAAqB,EAAE,KAAiB;IACjE,MAAM,IAAI,GAAG,EAAE,GAAG,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC;IACjF,OAAO,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,KAAC,SAAS,OAAK,IAAI,GAAI,CAAC,CAAC,CAAC,KAAC,YAAY,IAAC,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,GAAI,CAAC;AACxG,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"media-views.d.ts","sourceRoot":"","sources":["../../../src/website/blocks/media-views.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,KAAK,MAAM,EAAW,KAAK,MAAM,
|
|
1
|
+
{"version":3,"file":"media-views.d.ts","sourceRoot":"","sources":["../../../src/website/blocks/media-views.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,KAAK,MAAM,EAAW,KAAK,MAAM,EAAgC,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAE9G,eAAO,MAAM,sBAAsB,wDAA8B,CAAC;AAClE,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1E,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG;IACxC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC;IAC3B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAcF;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,mBAAmB,EAAE,KAAK,EAAE,iBAAiB,GAAG,YAAY,CAiBrG"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { BLOCK_VARIANTS } from "./catalog.js";
|
|
3
|
-
import { Actions, bandAttrs, Media } from "./parts.js";
|
|
3
|
+
import { Actions, BlockTitle, bandAttrs, Media } from "./parts.js";
|
|
4
4
|
export const MEDIA_SECTION_VARIANTS = BLOCK_VARIANTS.MediaSection;
|
|
5
5
|
/** The grid of each layout, and the share of it the words take. */
|
|
6
6
|
const LAYOUT = {
|
|
@@ -19,6 +19,6 @@ const LAYOUT = {
|
|
|
19
19
|
*/
|
|
20
20
|
export function mediaSectionView(variant, props) {
|
|
21
21
|
const layout = LAYOUT[variant];
|
|
22
|
-
return (_jsx("section", { ...bandAttrs("MediaSection", props, "site-block"), "data-variant": variant === "split" ? undefined : variant, children: _jsxs("div", { className: `site-container grid grid-cols-1 items-center gap-6 ${layout.grid}`, children: [_jsxs("div", { className: layout.words, children: [_jsx(
|
|
22
|
+
return (_jsx("section", { ...bandAttrs("MediaSection", props, "site-block"), "data-variant": variant === "split" ? undefined : variant, children: _jsxs("div", { className: `site-container grid grid-cols-1 items-center gap-6 ${layout.grid}`, children: [_jsxs("div", { className: layout.words, children: [_jsx(BlockTitle, { block: "MediaSection", title: props.title, highlight: props.highlight }), _jsx("p", { className: "site-media-text", children: props.text }), _jsx(Actions, { primary: props.primary, secondary: props.secondary })] }), _jsx(Media, { image: props.image, bleed: variant === "split", className: `site-media-image ${layout.image}` })] }) }));
|
|
23
23
|
}
|
|
24
24
|
//# sourceMappingURL=media-views.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"media-views.js","sourceRoot":"","sources":["../../../src/website/blocks/media-views.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAe,OAAO,EAAe,SAAS,EAAE,KAAK,EAAmB,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"media-views.js","sourceRoot":"","sources":["../../../src/website/blocks/media-views.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAe,OAAO,EAAe,UAAU,EAAE,SAAS,EAAE,KAAK,EAAmB,MAAM,YAAY,CAAC;AAE9G,MAAM,CAAC,MAAM,sBAAsB,GAAG,cAAc,CAAC,YAAY,CAAC;AAWlE,mEAAmE;AACnE,MAAM,MAAM,GAAgF;IAC3F,8EAA8E;IAC9E,KAAK,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE;IACvD,2FAA2F;IAC3F,gCAAgC;IAChC,IAAI,EAAE,EAAE,IAAI,EAAE,0BAA0B,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,eAAe,EAAE;IAC7E,eAAe,EAAE,EAAE,IAAI,EAAE,0BAA0B,EAAE,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,eAAe,EAAE;IACrG,wFAAwF;IACxF,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,eAAe,EAAE;CACjE,CAAC;AAEF;;;GAGG;AACH,MAAM,UAAU,gBAAgB,CAAC,OAA4B,EAAE,KAAwB;IACtF,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;IAC/B,OAAO,CACN,qBACK,SAAS,CAAC,cAAc,EAAE,KAAK,EAAE,YAAY,CAAC,kBACpC,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,YAEvD,eAAK,SAAS,EAAE,sDAAsD,MAAM,CAAC,IAAI,EAAE,aAClF,eAAK,SAAS,EAAE,MAAM,CAAC,KAAK,aAC3B,KAAC,UAAU,IAAC,KAAK,EAAC,cAAc,EAAC,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,GAAI,EACnF,YAAG,SAAS,EAAC,iBAAiB,YAAE,KAAK,CAAC,IAAI,GAAK,EAC/C,KAAC,OAAO,IAAC,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,GAAI,IAC1D,EACN,KAAC,KAAK,IAAC,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,KAAK,OAAO,EAAE,SAAS,EAAE,oBAAoB,MAAM,CAAC,KAAK,EAAE,GAAI,IACnG,GACG,CACV,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"newsletter-views.d.ts","sourceRoot":"","sources":["../../../src/website/blocks/newsletter-views.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,YAAY,EAAS,MAAM,OAAO,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,EAAE,KAAK,MAAM,
|
|
1
|
+
{"version":3,"file":"newsletter-views.d.ts","sourceRoot":"","sources":["../../../src/website/blocks/newsletter-views.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,YAAY,EAAS,MAAM,OAAO,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,EAAE,KAAK,MAAM,EAAyB,MAAM,YAAY,CAAC;AAGhE,eAAO,MAAM,mBAAmB,yCAA4B,CAAC;AAC7D,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAErE,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG;IACtC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,oFAAoF;IACpF,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;CAC9B,CAAC;AAEF,2EAA2E;AAC3E,wBAAgB,WAAW,CAAC,EAC3B,MAAM,EACN,OAAO,EACP,MAAc,GACd,EAAE;IACF,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;IAC9B,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;CAC1B,GAAG,YAAY,CA0Bf;AAoED,0EAA0E;AAC1E,wBAAgB,cAAc,CAAC,OAAO,EAAE,iBAAiB,EAAE,KAAK,EAAE,eAAe,GAAG,YAAY,CAG/F"}
|
|
@@ -6,7 +6,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
6
6
|
*/
|
|
7
7
|
import { useId } from "react";
|
|
8
8
|
import { BLOCK_VARIANTS } from "./catalog.js";
|
|
9
|
-
import { bandAttrs } from "./parts.js";
|
|
9
|
+
import { BlockTitle, bandAttrs } from "./parts.js";
|
|
10
10
|
import { required } from "./variant.js";
|
|
11
11
|
export const NEWSLETTER_VARIANTS = BLOCK_VARIANTS.Newsletter;
|
|
12
12
|
/** One email field and its button, side by side from a small screen up. */
|
|
@@ -17,7 +17,7 @@ export function EmailSignup({ action, strings, center = false, }) {
|
|
|
17
17
|
}
|
|
18
18
|
function Words({ props, center }) {
|
|
19
19
|
const head = center ? "site-block-head-center" : "";
|
|
20
|
-
return (_jsxs(_Fragment, { children: [_jsx("
|
|
20
|
+
return (_jsxs(_Fragment, { children: [_jsx(BlockTitle, { block: "Newsletter", title: props.title, highlight: props.highlight, className: `site-block-title ${head}` }), props.text ? _jsx("p", { className: `site-block-intro ${head}`, children: props.text }) : null] }));
|
|
21
21
|
}
|
|
22
22
|
function Note({ note, center }) {
|
|
23
23
|
if (!note)
|
|
@@ -33,7 +33,7 @@ function BandNewsletter({ props, variant, }) {
|
|
|
33
33
|
/** A rounded panel with the words on one side and the form on the other. */
|
|
34
34
|
function PanelNewsletter(props) {
|
|
35
35
|
const action = required("Newsletter", "panel", "action", props.action, 'add action="<the URL the form posts to>"');
|
|
36
|
-
return (_jsx("section", { ...bandAttrs("Newsletter", props, "site-block"), "data-variant": "panel", children: _jsx("div", { className: "site-container", children: _jsxs("div", { className: "site-cta-panel grid items-center gap-6 p-8 md:grid-cols-2 md:p-12", children: [_jsxs("div", { children: [_jsx(
|
|
36
|
+
return (_jsx("section", { ...bandAttrs("Newsletter", props, "site-block"), "data-variant": "panel", children: _jsx("div", { className: "site-container", children: _jsxs("div", { className: "site-cta-panel grid items-center gap-6 p-8 md:grid-cols-2 md:p-12", children: [_jsxs("div", { children: [_jsx(BlockTitle, { block: "Newsletter", title: props.title, highlight: props.highlight }), props.text ? _jsx("p", { className: "site-media-text", children: props.text }) : null] }), _jsxs("div", { children: [_jsx(EmailSignup, { action: action, strings: props.strings }), _jsx(Note, { note: props.note, center: false })] })] }) }) }));
|
|
37
37
|
}
|
|
38
38
|
/** A signup for the site's mailing list: one email field and a button. */
|
|
39
39
|
export function newsletterView(variant, props) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"newsletter-views.js","sourceRoot":"","sources":["../../../src/website/blocks/newsletter-views.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;AACH,OAAO,EAAqB,KAAK,EAAE,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAe,SAAS,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"newsletter-views.js","sourceRoot":"","sources":["../../../src/website/blocks/newsletter-views.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;AACH,OAAO,EAAqB,KAAK,EAAE,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAe,UAAU,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,MAAM,CAAC,MAAM,mBAAmB,GAAG,cAAc,CAAC,UAAU,CAAC;AAgB7D,2EAA2E;AAC3E,MAAM,UAAU,WAAW,CAAC,EAC3B,MAAM,EACN,OAAO,EACP,MAAM,GAAG,KAAK,GAKd;IACA,yFAAyF;IACzF,MAAM,EAAE,GAAG,GAAG,KAAK,EAAE,QAAQ,CAAC;IAC9B,OAAO,CACN,gBACC,MAAM,EAAC,MAAM,EACb,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,6DAA6D,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,aAEjG,gBAAO,OAAO,EAAE,EAAE,EAAE,SAAS,EAAC,SAAS,YACrC,OAAO,CAAC,YAAY,GACd,EACR,gBACC,EAAE,EAAE,EAAE,EACN,IAAI,EAAC,OAAO,EACZ,IAAI,EAAC,OAAO,EACZ,YAAY,EAAC,OAAO,EACpB,QAAQ,QACR,WAAW,EAAE,OAAO,CAAC,YAAY,EACjC,SAAS,EAAC,mBAAmB,GAC5B,EACF,iBAAQ,IAAI,EAAC,QAAQ,EAAC,SAAS,EAAC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K,EAAE,OAAO,EAAE,OAAO,GAAI,CAAC;AAC3D,CAAC"}
|
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
import type { ReactElement, ReactNode } from "react";
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* A link a block shows as a button. `look: "link"` shows it as underlined text instead, for a
|
|
4
|
+
* second action that should not compete with the first.
|
|
5
|
+
*/
|
|
3
6
|
export type Action = {
|
|
4
7
|
readonly label: string;
|
|
5
8
|
readonly href: string;
|
|
9
|
+
readonly look?: "link";
|
|
6
10
|
};
|
|
11
|
+
/**
|
|
12
|
+
* A heading's text with its key words in the brand's emphasis (a colour, a marker, an underline or
|
|
13
|
+
* none). The words must appear in the heading as written: a highlight that is not there is a
|
|
14
|
+
* `BlockPropError`, never a heading shown without it.
|
|
15
|
+
*/
|
|
16
|
+
export declare function highlighted(at: {
|
|
17
|
+
readonly block: string;
|
|
18
|
+
readonly variant: string | undefined;
|
|
19
|
+
}, text: string, highlight: string | undefined): ReactNode;
|
|
7
20
|
/** An image a block shows: a path in the site's `public/` folder or an absolute URL. */
|
|
8
21
|
export type BlockImage = {
|
|
9
22
|
readonly src: string;
|
|
@@ -18,12 +31,21 @@ export type MediaImage = BlockImage & {
|
|
|
18
31
|
};
|
|
19
32
|
/**
|
|
20
33
|
* What every block takes besides its content: an optional anchor, so a link to "#pricing" scrolls
|
|
21
|
-
* to `id="pricing"`,
|
|
34
|
+
* to `id="pricing"`, an optional section tone (SECTION_TONES), the band's background, and the
|
|
35
|
+
* optional key words of its title, which the title shows in the brand's emphasis.
|
|
22
36
|
*/
|
|
23
37
|
export type Anchor = {
|
|
24
38
|
readonly id?: string;
|
|
25
39
|
readonly tone?: string;
|
|
40
|
+
readonly highlight?: string;
|
|
26
41
|
};
|
|
42
|
+
/** A block's own heading, for a layout that places it outside `Section`: the title with its highlight. */
|
|
43
|
+
export declare function BlockTitle({ block, title, highlight, className, }: {
|
|
44
|
+
readonly block: string;
|
|
45
|
+
readonly title: string;
|
|
46
|
+
readonly highlight?: string;
|
|
47
|
+
readonly className?: string;
|
|
48
|
+
}): ReactElement;
|
|
27
49
|
/** The attributes of a block's own `<section>`, in the order of every band: anchor, class, name, tone. */
|
|
28
50
|
export declare function bandAttrs(name: string, anchor: Anchor, className?: string): {
|
|
29
51
|
readonly id: string | undefined;
|
|
@@ -35,11 +57,13 @@ export declare function bandAttrs(name: string, anchor: Anchor, className?: stri
|
|
|
35
57
|
* The frame of every block: a full-width band with the content in the site container, a heading
|
|
36
58
|
* when the block has a title, and a `data-block` name that tests and the site's own CSS can find.
|
|
37
59
|
*/
|
|
38
|
-
export declare function Section({ name, id, tone, title, intro, align, children, }: {
|
|
60
|
+
export declare function Section({ name, id, tone, title, highlight, intro, align, children, }: {
|
|
39
61
|
readonly name: string;
|
|
40
62
|
readonly id?: string;
|
|
41
63
|
readonly tone?: string;
|
|
42
64
|
readonly title?: string;
|
|
65
|
+
/** The key words of the title, in the brand's emphasis; they must appear in the title. */
|
|
66
|
+
readonly highlight?: string;
|
|
43
67
|
readonly intro?: string;
|
|
44
68
|
/** "center" centres the heading and the intro over the content. */
|
|
45
69
|
readonly align?: "center";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parts.d.ts","sourceRoot":"","sources":["../../../src/website/blocks/parts.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGrD
|
|
1
|
+
{"version":3,"file":"parts.d.ts","sourceRoot":"","sources":["../../../src/website/blocks/parts.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGrD;;;GAGG;AACH,MAAM,MAAM,MAAM,GAAG;IAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE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AGf;AAED;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,EACrB,KAAK,EACL,KAAa,EACb,SAAS,GACT,EAAE;IACF,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC;IAC3B,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC5B,GAAG,YAAY,CAUf;AAED,wBAAgB,UAAU,CAAC,EAC1B,MAAM,EACN,SAAiB,EACjB,IAAW,GACX,EAAE;IACF,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CAC5B,GAAG,YAAY,CAaf"}
|
|
@@ -1,6 +1,23 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import Link from "next/link";
|
|
3
|
-
import { anchorOf, toneOf } from "./variant.js";
|
|
3
|
+
import { anchorOf, BlockPropError, toneOf } from "./variant.js";
|
|
4
|
+
/**
|
|
5
|
+
* A heading's text with its key words in the brand's emphasis (a colour, a marker, an underline or
|
|
6
|
+
* none). The words must appear in the heading as written: a highlight that is not there is a
|
|
7
|
+
* `BlockPropError`, never a heading shown without it.
|
|
8
|
+
*/
|
|
9
|
+
export function highlighted(at, text, highlight) {
|
|
10
|
+
if (highlight === undefined)
|
|
11
|
+
return text;
|
|
12
|
+
const start = text.indexOf(highlight);
|
|
13
|
+
if (start < 0 || highlight === "")
|
|
14
|
+
throw new BlockPropError(at.block, at.variant, "highlight", `"${highlight}" is not in the title "${text}"`);
|
|
15
|
+
return (_jsxs(_Fragment, { children: [text.slice(0, start), _jsx("strong", { className: "site-highlight", children: highlight }), text.slice(start + highlight.length)] }));
|
|
16
|
+
}
|
|
17
|
+
/** A block's own heading, for a layout that places it outside `Section`: the title with its highlight. */
|
|
18
|
+
export function BlockTitle({ block, title, highlight, className = "site-block-title", }) {
|
|
19
|
+
return _jsx("h2", { className: className, children: highlighted({ block, variant: undefined }, title, highlight) });
|
|
20
|
+
}
|
|
4
21
|
/** The attributes of a block's own `<section>`, in the order of every band: anchor, class, name, tone. */
|
|
5
22
|
export function bandAttrs(name, anchor, className = "site-block") {
|
|
6
23
|
return { id: anchorOf(name, anchor.id), className, "data-block": name, "data-tone": toneOf(name, anchor.tone) };
|
|
@@ -9,9 +26,9 @@ export function bandAttrs(name, anchor, className = "site-block") {
|
|
|
9
26
|
* The frame of every block: a full-width band with the content in the site container, a heading
|
|
10
27
|
* when the block has a title, and a `data-block` name that tests and the site's own CSS can find.
|
|
11
28
|
*/
|
|
12
|
-
export function Section({ name, id, tone, title, intro, align, children, }) {
|
|
29
|
+
export function Section({ name, id, tone, title, highlight, intro, align, children, }) {
|
|
13
30
|
const head = align === "center" ? "site-block-head-center" : undefined;
|
|
14
|
-
return (_jsx("section", { ...bandAttrs(name, { id, tone }), children: _jsxs("div", { className: "site-container", children: [title ? _jsx("h2", { className: head ? `site-block-title ${head}` : "site-block-title", children: title }) : null, intro ? _jsx("p", { className: head ? `site-block-intro ${head}` : "site-block-intro", children: intro }) : null, children] }) }));
|
|
31
|
+
return (_jsx("section", { ...bandAttrs(name, { id, tone }), children: _jsxs("div", { className: "site-container", children: [title ? (_jsx("h2", { className: head ? `site-block-title ${head}` : "site-block-title", children: highlighted({ block: name, variant: undefined }, title, highlight) })) : null, intro ? _jsx("p", { className: head ? `site-block-intro ${head}` : "site-block-intro", children: intro }) : null, children] }) }));
|
|
15
32
|
}
|
|
16
33
|
/** The buttons of a block, primary first; nothing when it has none. */
|
|
17
34
|
export function Actions({ primary, secondary, center = false, size = "md", }) {
|
|
@@ -34,6 +51,8 @@ export function Media({ image, bleed = false, className, }) {
|
|
|
34
51
|
return (_jsx("figure", { className: classes, children: _jsxs("div", { className: "site-media-picture", children: [_jsx(BlockImg, { image: image, className: "site-media-img" }), image.note ? _jsx("figcaption", { className: "site-media-note", children: image.note }) : null] }) }));
|
|
35
52
|
}
|
|
36
53
|
export function ActionLink({ action, secondary = false, size = "md", }) {
|
|
54
|
+
if (action.look === "link")
|
|
55
|
+
return (_jsx(Link, { href: action.href, className: "site-text-action", children: action.label }));
|
|
37
56
|
const classes = ["site-button", secondary ? "site-button-secondary" : "", size === "lg" ? "site-button-lg" : ""];
|
|
38
57
|
return (_jsx(Link, { href: action.href, className: classes.filter(Boolean).join(" "), children: action.label }));
|
|
39
58
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parts.js","sourceRoot":"","sources":["../../../src/website/blocks/parts.tsx"],"names":[],"mappings":";AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"parts.js","sourceRoot":"","sources":["../../../src/website/blocks/parts.tsx"],"names":[],"mappings":";AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAQhE;;;;GAIG;AACH,MAAM,UAAU,WAAW,CAC1B,EAAoE,EACpE,IAAY,EACZ,SAA6B;IAE7B,IAAI,SAAS,KAAK,SAAS;QAAE,OAAO,IAAI,CAAC;IACzC,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACtC,IAAI,KAAK,GAAG,CAAC,IAAI,SAAS,KAAK,EAAE;QAChC,MAAM,IAAI,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,EAAE,WAAW,EAAE,IAAI,SAAS,0BAA0B,IAAI,GAAG,CAAC,CAAC;IAC7G,OAAO,CACN,8BACE,IAAI,CAAC,KAAK,CAAC,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AAC,CAAC,MAAM,CAAC,CAAC;AAEzD,mHAAmH;AACnH,MAAM,MAAM,UAAU,GAAG;IAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAElG,MAAM,MAAM,MAAM,GAAG;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC;IAC5B,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,UAAU,EAAE,CAAC;CACvC,CAAC;AACF,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG;IAChC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;CACpC,CAAC;AA6HF,wBAAgB,QAAQ,CAAC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,GAAG,YAAY,CAG7E"}
|
|
@@ -23,15 +23,15 @@ function photoOf(variant, member) {
|
|
|
23
23
|
}
|
|
24
24
|
/** The block's own look: a card per member, the photo optional. */
|
|
25
25
|
function CardTeam(props) {
|
|
26
|
-
return (_jsx(Section, { name: "Team", id: props.id, tone: props.tone, title: props.title, intro: props.intro, children: _jsx("ul", { className: "site-grid", "data-cols": "4", "data-phone": "2", children: keyed(props.members).map(({ key, item: member }) => (_jsxs("li", { className: "site-card", children: [member.image ? _jsx(BlockImg, { image: member.image, className: "site-avatar" }) : null, _jsx("h3", { className: "site-card-title", children: member.name }), _jsx("p", { className: "site-card-text", children: member.role }), member.bio ? _jsx("p", { className: "site-card-text mt-2", children: member.bio }) : null, member.links?.length ? (_jsx("div", { className: "mt-3", children: _jsx(MemberLinks, { links: member.links }) })) : null] }, key))) }) }));
|
|
26
|
+
return (_jsx(Section, { name: "Team", id: props.id, tone: props.tone, title: props.title, highlight: props.highlight, intro: props.intro, children: _jsx("ul", { className: "site-grid", "data-cols": "4", "data-phone": "2", children: keyed(props.members).map(({ key, item: member }) => (_jsxs("li", { className: "site-card", children: [member.image ? _jsx(BlockImg, { image: member.image, className: "site-avatar" }) : null, _jsx("h3", { className: "site-card-title", children: member.name }), _jsx("p", { className: "site-card-text", children: member.role }), member.bio ? _jsx("p", { className: "site-card-text mt-2", children: member.bio }) : null, member.links?.length ? (_jsx("div", { className: "mt-3", children: _jsx(MemberLinks, { links: member.links }) })) : null] }, key))) }) }));
|
|
27
27
|
}
|
|
28
28
|
/** Wide photos in three columns, the name, role and links under each. */
|
|
29
29
|
function PhotoTeam(props) {
|
|
30
|
-
return (_jsx(Section, { name: "Team", id: props.id, tone: props.tone, title: props.title, intro: props.intro, children: _jsx("ul", { className: "site-grid site-grid-roomy", "data-cols": "3", "data-variant": "photos", children: keyed(props.members).map(({ key, item: member }) => (_jsxs("li", { children: [_jsx(BlockImg, { image: photoOf("photos", member), className: "site-team-photo aspect-video w-full object-cover" }), _jsxs("div", { className: "mt-4 flex items-center justify-between gap-4", children: [_jsxs("div", { children: [_jsx("h3", { className: "site-card-title", children: member.name }), _jsx("p", { className: "site-card-text", children: member.role })] }), _jsx(MemberLinks, { links: member.links })] }), member.bio ? _jsx("p", { className: "site-card-text mt-2", children: member.bio }) : null] }, key))) }) }));
|
|
30
|
+
return (_jsx(Section, { name: "Team", id: props.id, tone: props.tone, title: props.title, highlight: props.highlight, intro: props.intro, children: _jsx("ul", { className: "site-grid site-grid-roomy", "data-cols": "3", "data-variant": "photos", children: keyed(props.members).map(({ key, item: member }) => (_jsxs("li", { children: [_jsx(BlockImg, { image: photoOf("photos", member), className: "site-team-photo aspect-video w-full object-cover" }), _jsxs("div", { className: "mt-4 flex items-center justify-between gap-4", children: [_jsxs("div", { children: [_jsx("h3", { className: "site-card-title", children: member.name }), _jsx("p", { className: "site-card-text", children: member.role })] }), _jsx(MemberLinks, { links: member.links })] }), member.bio ? _jsx("p", { className: "site-card-text mt-2", children: member.bio }) : null] }, key))) }) }));
|
|
31
31
|
}
|
|
32
32
|
/** Round photos in up to six columns, each name centred under its photo. */
|
|
33
33
|
function AvatarTeam(props) {
|
|
34
|
-
return (_jsx(Section, { name: "Team", id: props.id, tone: props.tone, title: props.title, intro: props.intro, align: "center", children: _jsx("ul", { className: "site-grid site-grid-roomy", "data-cols": "6", "data-phone": "2", "data-variant": "avatars", children: keyed(props.members).map(({ key, item: member }) => (_jsxs("li", { className: "flex flex-col items-center text-center", children: [_jsx(BlockImg, { image: photoOf("avatars", member), className: "site-avatar-round aspect-square w-full object-cover" }), _jsx("h3", { className: "site-card-title mt-4", children: member.name }), _jsx("p", { className: "site-card-text", children: member.role }), _jsx(MemberLinks, { links: member.links })] }, key))) }) }));
|
|
34
|
+
return (_jsx(Section, { name: "Team", id: props.id, tone: props.tone, title: props.title, highlight: props.highlight, intro: props.intro, align: "center", children: _jsx("ul", { className: "site-grid site-grid-roomy", "data-cols": "6", "data-phone": "2", "data-variant": "avatars", children: keyed(props.members).map(({ key, item: member }) => (_jsxs("li", { className: "flex flex-col items-center text-center", children: [_jsx(BlockImg, { image: photoOf("avatars", member), className: "site-avatar-round aspect-square w-full object-cover" }), _jsx("h3", { className: "site-card-title mt-4", children: member.name }), _jsx("p", { className: "site-card-text", children: member.role }), _jsx(MemberLinks, { links: member.links })] }, key))) }) }));
|
|
35
35
|
}
|
|
36
36
|
const VIEWS = {
|
|
37
37
|
cards: CardTeam,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"team-views.js","sourceRoot":"","sources":["../../../src/website/blocks/team-views.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE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AE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CACpD,cAAc,SAAS,EAAC,wCAAwC,aAC/D,KAAC,QAAQ,IACR,KAAK,EAAE,OAAO,CAAC,SAAS,EAAE,MAAM,CAAC,EACjC,SAAS,EAAC,qDAAqD,GAC9D,EACF,aAAI,SAAS,EAAC,sBAAsB,YAAE,MAAM,CAAC,IAAI,GAAM,EACvD,YAAG,SAAS,EAAC,gBAAgB,YAAE,MAAM,CAAC,IAAI,GAAK,EAC/C,KAAC,WAAW,IAAC,KAAK,EAAE,MAAM,CAAC,KAAK,GAAI,KAP5B,GAAG,CAQP,CACL,CAAC,GACE,GACI,CACV,CAAC;AACH,CAAC;AAED,MAAM,KAAK,GAAsE;IAChF,KAAK,EAAE,QAAQ;IACf,MAAM,EAAE,SAAS;IACjB,OAAO,EAAE,UAAU;CACnB,CAAC;AAEF,MAAM,UAAU,QAAQ,CAAC,OAAoB,EAAE,KAAgB;IAC9D,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;IAC5B,OAAO,KAAC,IAAI,OAAK,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,GAAI,CAAC;AACxF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ReactElement } from "react";
|
|
2
2
|
import { type SiteStrings } from "../../i18n/strings.js";
|
|
3
3
|
import { type Anchor, type BlockImage } from "./parts.js";
|
|
4
|
-
export declare const TESTIMONIALS_VARIANTS: readonly ["cards", "quote", "grid", "reviews", "carousel"];
|
|
4
|
+
export declare const TESTIMONIALS_VARIANTS: readonly ["cards", "quote", "grid", "reviews", "carousel", "statement"];
|
|
5
5
|
export type TestimonialsVariant = (typeof TESTIMONIALS_VARIANTS)[number];
|
|
6
6
|
export type Testimonial = {
|
|
7
7
|
readonly quote: string;
|
|
@@ -18,6 +18,11 @@ export type TestimonialsProps = Anchor & {
|
|
|
18
18
|
readonly title?: string;
|
|
19
19
|
readonly intro?: string;
|
|
20
20
|
readonly items: readonly Testimonial[];
|
|
21
|
+
/** The statement layout's number beside the quote, such as an average rating, and what it counts. */
|
|
22
|
+
readonly figure?: {
|
|
23
|
+
readonly value: string;
|
|
24
|
+
readonly label: string;
|
|
25
|
+
};
|
|
21
26
|
readonly strings: SiteStrings;
|
|
22
27
|
};
|
|
23
28
|
export declare function testimonialsView(variant: TestimonialsVariant, props: TestimonialsProps): ReactElement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testimonial-views.d.ts","sourceRoot":"","sources":["../../../src/website/blocks/testimonial-views.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAQ,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAI/D,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,UAAU,EAAqB,MAAM,YAAY,CAAC;AAG7E,eAAO,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"testimonial-views.d.ts","sourceRoot":"","sources":["../../../src/website/blocks/testimonial-views.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAQ,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAI/D,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,UAAU,EAAqB,MAAM,YAAY,CAAC;AAG7E,eAAO,MAAM,qBAAqB,yEAA8B,CAAC;AACjE,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzE,MAAM,MAAM,WAAW,GAAG;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,iDAAiD;IACjD,QAAQ,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC;IAC5B,4DAA4D;IAC5D,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,+CAA+C;IAC/C,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AACF,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG;IACxC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,SAAS,WAAW,EAAE,CAAC;IACvC,qGAAqG;IACrG,QAAQ,CAAC,MAAM,CAAC,EAAE;QAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IACrE,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;CAC9B,CAAC;AA8OF,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,mBAAmB,EAAE,KAAK,EAAE,iBAAiB,GAAG,YAAY,CAGrG"}
|
|
@@ -33,30 +33,45 @@ function MarkedQuoteCard({ item }) {
|
|
|
33
33
|
}
|
|
34
34
|
/** The block's own look: a card per quote in two columns, each under a quotation mark. */
|
|
35
35
|
function CardTestimonials(props) {
|
|
36
|
-
return (_jsx(Section, { name: "Testimonials", id: props.id, tone: props.tone, title: props.title, intro: props.intro, children: _jsx("ul", { className: "site-grid", "data-cols": gridColumns(props.items.length, 2), children: keyed(props.items).map(({ key, item }) => (_jsx("li", { children: _jsx(MarkedQuoteCard, { item: item }) }, key))) }) }));
|
|
36
|
+
return (_jsx(Section, { name: "Testimonials", id: props.id, tone: props.tone, title: props.title, highlight: props.highlight, intro: props.intro, children: _jsx("ul", { className: "site-grid", "data-cols": gridColumns(props.items.length, 2), children: keyed(props.items).map(({ key, item }) => (_jsx("li", { children: _jsx(MarkedQuoteCard, { item: item }) }, key))) }) }));
|
|
37
37
|
}
|
|
38
38
|
/** The quote cards in one row the reader scrolls, for more quotes than a page wants to stack. */
|
|
39
39
|
function CarouselTestimonials(props) {
|
|
40
|
-
return (_jsx(Section, { name: "Testimonials", id: props.id, tone: props.tone, title: props.title, intro: props.intro, children: _jsx(CarouselRow, { kind: "cards", label: props.title, items: props.items, strings: props.strings, render: (item) => _jsx(MarkedQuoteCard, { item: item }) }) }));
|
|
40
|
+
return (_jsx(Section, { name: "Testimonials", id: props.id, tone: props.tone, title: props.title, highlight: props.highlight, intro: props.intro, children: _jsx(CarouselRow, { kind: "cards", label: props.title, items: props.items, strings: props.strings, render: (item) => _jsx(MarkedQuoteCard, { item: item }) }) }));
|
|
41
41
|
}
|
|
42
42
|
/** One quote, large and centred, under a quotation mark in the brand colour. */
|
|
43
43
|
function QuoteTestimonials(props) {
|
|
44
|
-
const
|
|
44
|
+
const item = oneQuote("quote", props.items);
|
|
45
|
+
return (_jsx(Section, { name: "Testimonials", id: props.id, tone: props.tone, title: props.title, highlight: props.highlight, intro: props.intro, align: "center", children: _jsxs("figure", { className: "mx-auto flex max-w-2xl flex-col items-center text-center", "data-variant": "quote", children: [_jsx(Quotes, { "aria-hidden": "true", weight: "fill", className: "site-quote-mark size-8" }), _jsx("blockquote", { className: "site-quote-large mt-4", children: item.quote }), _jsx("figcaption", { className: "mt-6", children: _jsx(Person, { item: item, center: true }) })] }) }));
|
|
46
|
+
}
|
|
47
|
+
/** One quote that carries the band: exactly one item, or a `BlockPropError` that names the layouts for more. */
|
|
48
|
+
function oneQuote(variant, items) {
|
|
49
|
+
const [item, ...rest] = items;
|
|
45
50
|
if (item === undefined || rest.length > 0)
|
|
46
|
-
throw new BlockPropError("Testimonials",
|
|
47
|
-
return
|
|
51
|
+
throw new BlockPropError("Testimonials", variant, `exactly one item in items, not ${items.length}`, "it shows one quote large; use cards, grid, reviews or carousel for more");
|
|
52
|
+
return item;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* One quote as a statement: large, from the start of the line, in the brand's display face with
|
|
56
|
+
* its opening mark hung outside the text edge, and who said it under it. With `figure`, a large
|
|
57
|
+
* number beside it, such as an average rating, marked by a rule in the brand's accent.
|
|
58
|
+
*/
|
|
59
|
+
function StatementTestimonials(props) {
|
|
60
|
+
const item = oneQuote("statement", props.items);
|
|
61
|
+
return (_jsx(Section, { name: "Testimonials", id: props.id, tone: props.tone, title: props.title, highlight: props.highlight, intro: props.intro, children: _jsxs("div", { className: props.figure ? "site-statement site-statement-with-figure" : "site-statement", "data-variant": "statement", children: [_jsxs("figure", { children: [_jsx("blockquote", { className: "site-quote-statement", children: item.quote }), _jsx("figcaption", { className: "site-statement-cite", children: item.role ? `${item.name}, ${item.role}` : item.name })] }), props.figure ? (_jsxs("p", { className: "site-statement-figure", children: [_jsx("span", { className: "site-statement-figure-value", children: props.figure.value }), _jsx("span", { className: "site-card-text", children: props.figure.label })] })) : null] }) }));
|
|
48
62
|
}
|
|
49
63
|
/** Three columns of cards, each led by the person, then the words. */
|
|
50
64
|
function GridTestimonials(props) {
|
|
51
|
-
return (_jsx(Section, { name: "Testimonials", id: props.id, tone: props.tone, title: props.title, intro: props.intro, children: _jsx("ul", { className: "site-grid", "data-cols": gridColumns(props.items.length, 3), "data-variant": "grid", children: keyed(props.items).map(({ key, item }) => (_jsx("li", { children: _jsxs("figure", { className: "site-card flex h-full flex-col", children: [_jsx("figcaption", { className: "mb-4", children: _jsx(Person, { item: item }) }), _jsx("blockquote", { className: "site-quote", children: item.quote })] }) }, key))) }) }));
|
|
65
|
+
return (_jsx(Section, { name: "Testimonials", id: props.id, tone: props.tone, title: props.title, highlight: props.highlight, intro: props.intro, children: _jsx("ul", { className: "site-grid", "data-cols": gridColumns(props.items.length, 3), "data-variant": "grid", children: keyed(props.items).map(({ key, item }) => (_jsx("li", { children: _jsxs("figure", { className: "site-card flex h-full flex-col", children: [_jsx("figcaption", { className: "mb-4", children: _jsx(Person, { item: item }) }), _jsx("blockquote", { className: "site-quote", children: item.quote })] }) }, key))) }) }));
|
|
52
66
|
}
|
|
53
67
|
/** Review cards in three columns: the stars, a heading, the words, and who wrote them at the foot. */
|
|
54
68
|
function ReviewTestimonials(props) {
|
|
55
|
-
return (_jsx(Section, { name: "Testimonials", id: props.id, tone: props.tone, title: props.title, intro: props.intro, children: _jsx("ul", { className: "site-grid", "data-cols": gridColumns(props.items.length, 3), "data-variant": "reviews", children: keyed(props.items).map(({ key, item }) => (_jsx("li", { children: _jsx(QuoteCard, { item: item, children: _jsxs("div", { className: "mb-3 flex flex-col gap-3", children: [item.rating === undefined ? null : _jsx(Rating, { value: item.rating, strings: props.strings }), item.title ? _jsx("h3", { className: "site-card-title", children: item.title }) : null] }) }) }, key))) }) }));
|
|
69
|
+
return (_jsx(Section, { name: "Testimonials", id: props.id, tone: props.tone, title: props.title, highlight: props.highlight, intro: props.intro, children: _jsx("ul", { className: "site-grid", "data-cols": gridColumns(props.items.length, 3), "data-variant": "reviews", children: keyed(props.items).map(({ key, item }) => (_jsx("li", { children: _jsx(QuoteCard, { item: item, children: _jsxs("div", { className: "mb-3 flex flex-col gap-3", children: [item.rating === undefined ? null : _jsx(Rating, { value: item.rating, strings: props.strings }), item.title ? _jsx("h3", { className: "site-card-title", children: item.title }) : null] }) }) }, key))) }) }));
|
|
56
70
|
}
|
|
57
71
|
const VIEWS = {
|
|
58
72
|
cards: CardTestimonials,
|
|
59
73
|
quote: QuoteTestimonials,
|
|
74
|
+
statement: StatementTestimonials,
|
|
60
75
|
grid: GridTestimonials,
|
|
61
76
|
reviews: ReviewTestimonials,
|
|
62
77
|
carousel: CarouselTestimonials,
|