@lets-ship/site 3.2.0 → 3.4.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 +3 -2
- package/dist/website/blocks/newsletter-views.d.ts.map +1 -1
- package/dist/website/blocks/newsletter-views.js +15 -27
- 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/signup.d.ts +42 -0
- package/dist/website/blocks/signup.d.ts.map +1 -0
- package/dist/website/blocks/signup.js +39 -0
- package/dist/website/blocks/signup.js.map +1 -0
- 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 +322 -8
|
@@ -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,EAA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OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,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,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testimonial-views.js","sourceRoot":"","sources":["../../../src/website/blocks/testimonial-views.tsx"],"names":[],"mappings":";AAAA;;;;;GAKG;AACH,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MA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AAG,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAC1C,uBACC,KAAC,SAAS,IAAC,IAAI,EAAE,IAAI,YACpB,eAAK,SAAS,EAAC,0BAA0B,aACvC,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAC,MAAM,IAAC,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,GAAI,EACzF,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,aAAI,SAAS,EAAC,iBAAiB,YAAE,IAAI,CAAC,KAAK,GAAM,CAAC,CAAC,CAAC,IAAI,IACjE,GACK,IANJ,GAAG,CAOP,CACL,CAAC,GACE,GACI,CACV,CAAC;AACH,CAAC;AAED,MAAM,KAAK,GAAsF;IAChG,KAAK,EAAE,gBAAgB;IACvB,KAAK,EAAE,iBAAiB;IACxB,SAAS,EAAE,qBAAqB;IAChC,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE,kBAAkB;IAC3B,QAAQ,EAAE,oBAAoB;CAC9B,CAAC;AAEF,MAAM,UAAU,gBAAgB,CAAC,OAA4B,EAAE,KAAwB;IACtF,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;IAC5B,OAAO,KAAC,IAAI,OAAK,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,cAAc,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,GAAI,CAAC;AAC1F,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lets-ship/site",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The white-label site engine of SHIP Sites: a website, blog and docs on Next.js and fumadocs, themed entirely by a brand DNA.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
"unist-util-visit": "^5.1.0",
|
|
149
149
|
"zbsearch": "^4.0.1",
|
|
150
150
|
"zod": "^4.4.3",
|
|
151
|
-
"@lets-ship/brand-dna": "^3.
|
|
151
|
+
"@lets-ship/brand-dna": "^3.3.0"
|
|
152
152
|
},
|
|
153
153
|
"peerDependencies": {
|
|
154
154
|
"fumadocs-core": "16.17.5",
|
package/styles.css
CHANGED
|
@@ -519,14 +519,16 @@
|
|
|
519
519
|
}
|
|
520
520
|
|
|
521
521
|
/* A section heading follows the brand's alignment (composition.align); a variant that centres
|
|
522
|
-
its heading adds .site-block-head-center, which comes later and wins.
|
|
522
|
+
its heading adds .site-block-head-center, which comes later and wins. It takes the brand's
|
|
523
|
+
display role, the size between the opening headline and h1, so a heading reads as a statement
|
|
524
|
+
("Clear prices, parts on top") and not as a label. */
|
|
523
525
|
.site-block-title {
|
|
524
526
|
margin-bottom: var(--dna-space-md);
|
|
525
|
-
font-family: var(--dna-type-
|
|
526
|
-
font-size: var(--dna-type-
|
|
527
|
-
font-weight: var(--dna-type-
|
|
528
|
-
line-height: var(--dna-type-
|
|
529
|
-
letter-spacing: var(--dna-type-
|
|
527
|
+
font-family: var(--dna-type-display-family);
|
|
528
|
+
font-size: var(--dna-type-display-size);
|
|
529
|
+
font-weight: var(--dna-type-display-weight);
|
|
530
|
+
line-height: var(--dna-type-display-line-height);
|
|
531
|
+
letter-spacing: var(--dna-type-display-tracking);
|
|
530
532
|
color: var(--site-fg);
|
|
531
533
|
text-align: var(--dna-head-align);
|
|
532
534
|
text-wrap: balance;
|
|
@@ -688,17 +690,82 @@
|
|
|
688
690
|
color: var(--site-fg-muted);
|
|
689
691
|
}
|
|
690
692
|
|
|
693
|
+
/* Numbered steps: one rule over the row and a rule between the columns, each step a small
|
|
694
|
+
number over a title in the heading face and a line of body text. The row stands well clear of
|
|
695
|
+
the title, as its own part of the band. On a phone the steps stack, a rule between each. */
|
|
696
|
+
.site-steps {
|
|
697
|
+
display: grid;
|
|
698
|
+
grid-template-columns: minmax(0, 1fr);
|
|
699
|
+
row-gap: var(--dna-space-xl);
|
|
700
|
+
border-top: var(--dna-border-width-thin) solid var(--site-border);
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
.site-block-title + .site-steps {
|
|
704
|
+
margin-top: var(--dna-space-2xl);
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
.site-step {
|
|
708
|
+
padding-top: var(--dna-space-lg);
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
.site-step + .site-step {
|
|
712
|
+
border-top: var(--dna-border-width-thin) solid var(--site-border);
|
|
713
|
+
}
|
|
714
|
+
|
|
691
715
|
.site-step-number {
|
|
692
716
|
display: block;
|
|
693
717
|
margin-bottom: var(--dna-space-sm);
|
|
694
718
|
font-family: var(--dna-type-h3-family);
|
|
695
|
-
font-size: var(--dna-type-
|
|
719
|
+
font-size: var(--dna-type-body-sm-size);
|
|
696
720
|
font-weight: var(--dna-type-h3-weight);
|
|
697
|
-
line-height:
|
|
721
|
+
line-height: var(--dna-type-body-sm-line-height);
|
|
698
722
|
font-variant-numeric: var(--dna-numerals);
|
|
699
723
|
color: var(--site-brand-text);
|
|
700
724
|
}
|
|
701
725
|
|
|
726
|
+
.site-step-title {
|
|
727
|
+
margin-bottom: var(--dna-space-sm);
|
|
728
|
+
font-family: var(--dna-type-h3-family);
|
|
729
|
+
font-size: var(--dna-type-h3-size);
|
|
730
|
+
font-weight: var(--dna-type-h3-weight);
|
|
731
|
+
line-height: var(--dna-type-h3-line-height);
|
|
732
|
+
letter-spacing: var(--dna-type-h3-tracking);
|
|
733
|
+
color: var(--site-fg);
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
.site-step-text {
|
|
737
|
+
max-width: var(--dna-measure-lead);
|
|
738
|
+
font-size: var(--dna-type-body-size);
|
|
739
|
+
line-height: var(--dna-type-body-line-height);
|
|
740
|
+
color: var(--site-fg-muted);
|
|
741
|
+
text-wrap: pretty;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
@media (min-width: 48rem) {
|
|
745
|
+
.site-steps[data-cols="2"] {
|
|
746
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
.site-steps:is([data-cols="3"], [data-cols="5"], [data-cols="6"]) {
|
|
750
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
.site-step {
|
|
754
|
+
padding-inline: calc(var(--dna-space-lg) + var(--dna-space-xs));
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
.site-step + .site-step {
|
|
758
|
+
border-top: 0;
|
|
759
|
+
border-inline-start: var(--dna-border-width-thin) solid var(--site-border);
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
.site-steps[data-cols="2"] > .site-step:nth-child(2n + 1),
|
|
763
|
+
.site-steps:is([data-cols="3"], [data-cols="5"], [data-cols="6"]) > .site-step:nth-child(3n + 1) {
|
|
764
|
+
padding-inline-start: 0;
|
|
765
|
+
border-inline-start: 0;
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
|
|
702
769
|
.site-price {
|
|
703
770
|
font-variant-numeric: var(--dna-numerals);
|
|
704
771
|
margin-block: 8px;
|
|
@@ -899,6 +966,117 @@
|
|
|
899
966
|
text-wrap: pretty;
|
|
900
967
|
}
|
|
901
968
|
|
|
969
|
+
/* One quote as a statement (Testimonials statement): the brand's display face at h1 size, from the
|
|
970
|
+
start of the line, the opening mark hung outside the text edge when the brand hangs punctuation.
|
|
971
|
+
A figure beside it, such as an average rating, sits behind a rule in the band's brand colour. */
|
|
972
|
+
.site-statement {
|
|
973
|
+
display: grid;
|
|
974
|
+
gap: var(--dna-space-xl);
|
|
975
|
+
align-items: end;
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
@media (min-width: 768px) {
|
|
979
|
+
.site-statement-with-figure {
|
|
980
|
+
grid-template-columns: minmax(0, 8fr) minmax(0, 3fr);
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
.site-quote-statement {
|
|
985
|
+
max-width: 30ch;
|
|
986
|
+
font-family: var(--dna-type-display-family);
|
|
987
|
+
font-size: var(--dna-type-h1-size);
|
|
988
|
+
font-weight: 500;
|
|
989
|
+
line-height: 1.2;
|
|
990
|
+
letter-spacing: var(--dna-type-h1-tracking);
|
|
991
|
+
text-indent: var(--dna-quote-hang);
|
|
992
|
+
text-wrap: pretty;
|
|
993
|
+
color: var(--site-fg);
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
.site-quote-statement::before {
|
|
997
|
+
content: open-quote;
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
.site-quote-statement::after {
|
|
1001
|
+
content: close-quote;
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
.site-statement-cite {
|
|
1005
|
+
margin-top: var(--dna-space-lg);
|
|
1006
|
+
font-size: var(--dna-type-body-sm-size);
|
|
1007
|
+
color: var(--site-fg-muted);
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
.site-statement-figure {
|
|
1011
|
+
display: grid;
|
|
1012
|
+
gap: 6px;
|
|
1013
|
+
padding-inline-start: var(--dna-space-lg);
|
|
1014
|
+
border-inline-start: 3px solid var(--site-brand-text);
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
.site-statement-figure-value {
|
|
1018
|
+
font-family: var(--dna-type-display-family);
|
|
1019
|
+
font-size: var(--dna-type-display-size);
|
|
1020
|
+
font-weight: var(--dna-type-display-weight);
|
|
1021
|
+
line-height: 1;
|
|
1022
|
+
letter-spacing: var(--dna-type-display-tracking);
|
|
1023
|
+
font-variant-numeric: var(--dna-numerals);
|
|
1024
|
+
color: var(--site-fg);
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
/* The key facts of an opening section, under its buttons and a rule: the value over its label. */
|
|
1028
|
+
.site-hero-facts {
|
|
1029
|
+
display: flex;
|
|
1030
|
+
flex-wrap: wrap;
|
|
1031
|
+
gap: var(--dna-space-md) var(--dna-space-xl);
|
|
1032
|
+
margin-top: var(--dna-space-xl);
|
|
1033
|
+
padding-top: var(--dna-space-md);
|
|
1034
|
+
border-top: var(--dna-border-width-thin) solid var(--site-border);
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
.site-hero-facts > div {
|
|
1038
|
+
display: flex;
|
|
1039
|
+
flex-direction: column-reverse;
|
|
1040
|
+
gap: 2px;
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
.site-hero-fact-value {
|
|
1044
|
+
font-family: var(--dna-type-display-family);
|
|
1045
|
+
font-size: var(--dna-type-h4-size);
|
|
1046
|
+
font-weight: var(--dna-type-display-weight);
|
|
1047
|
+
line-height: 1.2;
|
|
1048
|
+
font-variant-numeric: var(--dna-numerals);
|
|
1049
|
+
color: var(--site-fg);
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
.site-hero-fact-label {
|
|
1053
|
+
font-size: var(--dna-type-body-sm-size);
|
|
1054
|
+
color: var(--site-fg-muted);
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
/* A second action as underlined text (an Action with look "link"), beside the first button. */
|
|
1058
|
+
.site-text-action {
|
|
1059
|
+
display: inline-flex;
|
|
1060
|
+
align-items: center;
|
|
1061
|
+
min-height: var(--dna-control-height-md);
|
|
1062
|
+
font-family: var(--dna-type-button-family);
|
|
1063
|
+
font-weight: 600;
|
|
1064
|
+
color: var(--site-fg);
|
|
1065
|
+
text-decoration-line: underline;
|
|
1066
|
+
text-decoration-color: var(--site-brand-text);
|
|
1067
|
+
text-decoration-thickness: 2px;
|
|
1068
|
+
text-underline-offset: 6px;
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
.site-text-action:hover {
|
|
1072
|
+
text-decoration-thickness: 3px;
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
.site-text-action:focus-visible {
|
|
1076
|
+
outline: var(--dna-focus-width) solid var(--dna-focus-color);
|
|
1077
|
+
outline-offset: var(--dna-focus-offset);
|
|
1078
|
+
}
|
|
1079
|
+
|
|
902
1080
|
/* A question whose caret turns when it opens. */
|
|
903
1081
|
.site-faq-summary {
|
|
904
1082
|
display: flex;
|
|
@@ -982,6 +1160,139 @@ details[open] > .site-faq-summary .site-faq-caret {
|
|
|
982
1160
|
outline-offset: 1px;
|
|
983
1161
|
}
|
|
984
1162
|
|
|
1163
|
+
/* A sign-up is one control: the field and its button share one edge, and the button sits inside
|
|
1164
|
+
it. The control takes the brand's button radius, grown by its own inset, so the two curves stay
|
|
1165
|
+
parallel. On a narrow screen the button moves under the field. */
|
|
1166
|
+
.site-signup-fields {
|
|
1167
|
+
width: 100%;
|
|
1168
|
+
max-width: 34rem;
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
.site-signup-center .site-signup-fields {
|
|
1172
|
+
margin-inline: auto;
|
|
1173
|
+
}
|
|
1174
|
+
|
|
1175
|
+
.site-signup {
|
|
1176
|
+
--site-signup-inset: 4px;
|
|
1177
|
+
display: flex;
|
|
1178
|
+
align-items: center;
|
|
1179
|
+
gap: var(--site-signup-inset);
|
|
1180
|
+
padding: var(--site-signup-inset);
|
|
1181
|
+
border: var(--dna-border-width-thin) solid var(--site-border);
|
|
1182
|
+
border-radius: calc(var(--dna-component-button-primary-radius) + var(--site-signup-inset));
|
|
1183
|
+
background: var(--color-fd-background);
|
|
1184
|
+
transition: border-color var(--dna-motion-fast) var(--dna-motion-ease);
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
.site-signup:hover {
|
|
1188
|
+
border-color: color-mix(in oklab, var(--site-border), var(--site-fg) 30%);
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1191
|
+
/* The ring goes around the whole control, so the field never shows a second edge inside it. */
|
|
1192
|
+
.site-signup:has(.site-signup-input:focus-visible) {
|
|
1193
|
+
outline: var(--dna-focus-width) solid var(--dna-focus-color);
|
|
1194
|
+
outline-offset: var(--dna-focus-offset);
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
.site-signup[data-invalid] {
|
|
1198
|
+
border-color: var(--site-fg);
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
.site-signup-input {
|
|
1202
|
+
flex: 1;
|
|
1203
|
+
min-width: 0;
|
|
1204
|
+
min-height: var(--dna-control-height-md);
|
|
1205
|
+
padding: 0 12px;
|
|
1206
|
+
border: 0;
|
|
1207
|
+
background: transparent;
|
|
1208
|
+
color: var(--color-fd-foreground);
|
|
1209
|
+
font: inherit;
|
|
1210
|
+
outline: none;
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
.site-signup-input::placeholder {
|
|
1214
|
+
color: var(--color-fd-muted-foreground);
|
|
1215
|
+
opacity: 1;
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
.site-signup-button {
|
|
1219
|
+
flex: none;
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
.site-signup-button:disabled {
|
|
1223
|
+
cursor: default;
|
|
1224
|
+
opacity: 0.6;
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
.site-signup-message,
|
|
1228
|
+
.site-signup-note {
|
|
1229
|
+
margin-top: 10px;
|
|
1230
|
+
font-size: var(--dna-type-body-sm-size);
|
|
1231
|
+
line-height: var(--dna-type-body-sm-line-height);
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
.site-signup-message {
|
|
1235
|
+
font-weight: 600;
|
|
1236
|
+
color: var(--site-fg);
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
.site-signup-note {
|
|
1240
|
+
color: var(--site-fg-muted);
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
/* A check that the visitor is a person takes room only when it shows something. */
|
|
1244
|
+
.site-signup-check:not(:empty) {
|
|
1245
|
+
margin-top: 10px;
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
/* After a sign-up the control's own box stays, so the page does not move. */
|
|
1249
|
+
.site-signup-done {
|
|
1250
|
+
display: flex;
|
|
1251
|
+
align-items: center;
|
|
1252
|
+
gap: 10px;
|
|
1253
|
+
min-height: calc(var(--dna-control-height-md) + 2 * 4px + 2 * var(--dna-border-width-thin));
|
|
1254
|
+
padding: 8px 16px;
|
|
1255
|
+
border: var(--dna-border-width-thin) solid var(--site-border);
|
|
1256
|
+
border-radius: calc(var(--dna-component-button-primary-radius) + 4px);
|
|
1257
|
+
background: var(--color-fd-background);
|
|
1258
|
+
color: var(--color-fd-foreground);
|
|
1259
|
+
font-weight: 500;
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
.site-signup-done-icon {
|
|
1263
|
+
flex: none;
|
|
1264
|
+
width: 20px;
|
|
1265
|
+
height: 20px;
|
|
1266
|
+
color: var(--color-fd-primary);
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
/* The words on one side and the form on the other, in a rounded panel. */
|
|
1270
|
+
.site-signup-panel {
|
|
1271
|
+
display: grid;
|
|
1272
|
+
align-items: center;
|
|
1273
|
+
gap: 24px;
|
|
1274
|
+
padding: 32px;
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1277
|
+
@media (min-width: 768px) {
|
|
1278
|
+
.site-signup-panel {
|
|
1279
|
+
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
|
1280
|
+
gap: 48px;
|
|
1281
|
+
padding: 48px;
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
@media (max-width: 479px) {
|
|
1286
|
+
.site-signup {
|
|
1287
|
+
flex-direction: column;
|
|
1288
|
+
align-items: stretch;
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
.site-signup-input {
|
|
1292
|
+
padding: 0 10px;
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1295
|
+
|
|
985
1296
|
.site-contact-detail {
|
|
986
1297
|
color: var(--site-fg);
|
|
987
1298
|
font-weight: 500;
|
|
@@ -1289,8 +1600,11 @@ details[open] > .site-faq-summary .site-faq-caret {
|
|
|
1289
1600
|
--site-band-numerals: var(--dna-accent-numerals-brand);
|
|
1290
1601
|
}
|
|
1291
1602
|
|
|
1603
|
+
/* A strong band is the page's one statement, so it takes the brand's large section space and
|
|
1604
|
+
more, as the Kade concept's dark band does. */
|
|
1292
1605
|
.site-block[data-tone="inverse"],
|
|
1293
1606
|
.site-block[data-tone="brand"] {
|
|
1607
|
+
padding-block: calc(var(--dna-section-lg) + var(--dna-space-xl));
|
|
1294
1608
|
--site-fg: var(--site-band-fg);
|
|
1295
1609
|
--site-fg-muted: var(--site-band-muted);
|
|
1296
1610
|
--site-border: color-mix(in oklab, var(--site-band-fg) 24%, var(--site-band-bg));
|