@marktiderman/genesis-sites 0.4.1 → 0.5.1

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.
Files changed (65) hide show
  1. package/README.md +155 -18
  2. package/SKILL.md +46 -0
  3. package/dist/assets/fonts/LICENSES.txt +1469 -0
  4. package/dist/assets/{form-island.dc9aedd556.js → form-island.c521219f1b.js} +1 -1
  5. package/dist/assets/{islands.88abb49942.js → islands.f275dc88cb.js} +1 -1
  6. package/dist/assets/sites-forms.490d10e01b.css +10 -0
  7. package/dist/assets/sites-forms.css +1 -1
  8. package/dist/assets/sites.1a40b828a5.css +2 -0
  9. package/dist/assets/sites.css +1 -1
  10. package/dist/assets.generated-P7NPIZHO.js +3 -0
  11. package/dist/{assets.generated-7FRY6LHS.js.map → assets.generated-P7NPIZHO.js.map} +1 -1
  12. package/dist/{chunk-P5MR34QQ.js → chunk-3XCKSU4Z.js} +143 -85
  13. package/dist/chunk-3XCKSU4Z.js.map +1 -0
  14. package/dist/{chunk-PN2VXOA5.js → chunk-BJ6NXVZI.js} +9 -8
  15. package/dist/chunk-BJ6NXVZI.js.map +1 -0
  16. package/dist/{chunk-3VKTBE7S.js → chunk-MU2Z2C4F.js} +2 -2
  17. package/dist/{chunk-3VKTBE7S.js.map → chunk-MU2Z2C4F.js.map} +1 -1
  18. package/dist/chunk-OFJISW3T.js +3 -0
  19. package/dist/chunk-OFJISW3T.js.map +1 -0
  20. package/dist/{chunk-FBQF2L7O.js → chunk-VLY75P7W.js} +190 -40
  21. package/dist/chunk-VLY75P7W.js.map +1 -0
  22. package/dist/{chunk-PA7IZF4X.js → chunk-VMJ67LCW.js} +97 -28
  23. package/dist/chunk-VMJ67LCW.js.map +1 -0
  24. package/dist/{chunk-KPOX7D4S.js → chunk-XOM334IK.js} +5 -5
  25. package/dist/chunk-XOM334IK.js.map +1 -0
  26. package/dist/{chunk-ZGWGQGT2.js → chunk-YAASBQTJ.js} +35 -22
  27. package/dist/chunk-YAASBQTJ.js.map +1 -0
  28. package/dist/editor.d.ts +5 -3
  29. package/dist/editor.js +14 -10
  30. package/dist/editor.js.map +1 -1
  31. package/dist/fonts.generated-HTXRHNVY.js +4 -0
  32. package/dist/handler-ESFMOYYF.js +10 -0
  33. package/dist/{handler-P7RRXR6K.js.map → handler-ESFMOYYF.js.map} +1 -1
  34. package/dist/import.d.ts +26 -62
  35. package/dist/import.js +11 -258
  36. package/dist/import.js.map +1 -1
  37. package/dist/index.d.ts +10 -95
  38. package/dist/index.js +5 -4
  39. package/dist/{registry-HBn1X60x.d.ts → registry-CeSBSfU8.d.ts} +187 -13
  40. package/dist/sections.d.ts +124 -9
  41. package/dist/sections.js +3 -3
  42. package/dist/{store-BXiZeZzH.d.ts → store-CUsfzNmK.d.ts} +42 -119
  43. package/dist/supabase.d.ts +5 -3
  44. package/dist/supabase.js +15 -6
  45. package/dist/supabase.js.map +1 -1
  46. package/dist/templates-DALVa71A.d.ts +92 -0
  47. package/dist/templates.d.ts +78 -0
  48. package/dist/templates.js +146 -0
  49. package/dist/templates.js.map +1 -0
  50. package/dist/theme-B3Vh_b-P.d.ts +136 -0
  51. package/dist/web.d.ts +72 -13
  52. package/dist/web.js +7 -6
  53. package/migrations/tests/0001_genesis_sites.test.sql +4 -4
  54. package/migrations/tests/0002_genesis_sites_posts.test.sql +2 -2
  55. package/package.json +47 -12
  56. package/dist/assets/sites-forms.e506c7dda2.css +0 -10
  57. package/dist/assets/sites.716b4ac1a5.css +0 -2
  58. package/dist/assets.generated-7FRY6LHS.js +0 -3
  59. package/dist/chunk-FBQF2L7O.js.map +0 -1
  60. package/dist/chunk-KPOX7D4S.js.map +0 -1
  61. package/dist/chunk-P5MR34QQ.js.map +0 -1
  62. package/dist/chunk-PA7IZF4X.js.map +0 -1
  63. package/dist/chunk-PN2VXOA5.js.map +0 -1
  64. package/dist/chunk-ZGWGQGT2.js.map +0 -1
  65. package/dist/handler-P7RRXR6K.js +0 -9
@@ -1,10 +1,11 @@
1
1
  import { mailtoHref } from './chunk-VZUDRPFG.js';
2
- import { Link, Surface, Copy, Line, defineSection, Image, Href, RichText, FileRef, registerBuiltInSection, safeJsonForHtml, postPath, opensInNewTab } from './chunk-ZGWGQGT2.js';
3
- import { isSafeImageSrc, isSafeHref, isExternalHref } from './chunk-3VKTBE7S.js';
2
+ import { Link, Surface, Copy, Line, defineSection, Image, Href, RichText, FileRef, registerBuiltInSection, safeJsonForHtml, postPath, opensInNewTab } from './chunk-YAASBQTJ.js';
3
+ import { isSafeImageSrc, isSafeHref, isExternalHref } from './chunk-MU2Z2C4F.js';
4
4
  import { z } from 'zod';
5
5
  import { BandLead, Band, Display } from '@marktiderman/genesis-ui/band';
6
6
  import { buttonVariants } from '@marktiderman/genesis-ui/button';
7
7
  import { cn } from '@marktiderman/genesis-ui/utils';
8
+ import { responsiveImage } from '@marktiderman/genesis-media';
8
9
  import { Zap, Users, Trophy, Target, Star, Sparkles, Smile, Shield, Phone, MessageCircle, MapPin, Mail, Leaf, Heart, Dumbbell, Clock, Check, Calendar, Award, Activity, ChevronDown, FileText, ArrowLeft, Menu, Download } from 'lucide-react';
9
10
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
10
11
  import { parseForm, choiceOptions } from '@marktiderman/genesis-forms';
@@ -76,8 +77,9 @@ var TONE = {
76
77
  inverse: cn(buttonVariants({ variant: "default", size: "lg" }), "bg-background text-foreground hover:bg-background/90"),
77
78
  ghost: buttonVariants({ variant: "ghost", size: "lg" })
78
79
  };
80
+ var BUTTON_RADIUS = "rounded-[var(--ds-radius-button,calc(var(--radius)_-_2px))]";
79
81
  function ButtonLink({ link, ctx, tone = "primary", className }) {
80
- return /* @__PURE__ */ jsxs("a", { ...withEventLast(linkAttrs(link, ctx, "cta"), cn(TONE[tone], "min-h-11", className)), children: [
82
+ return /* @__PURE__ */ jsxs("a", { ...withEventLast(linkAttrs(link, ctx, "cta"), cn(TONE[tone], "min-h-11", BUTTON_RADIUS, className)), children: [
81
83
  link.label,
82
84
  /* @__PURE__ */ jsx(NewTabHint, { link })
83
85
  ] });
@@ -123,30 +125,64 @@ function fileHref(file, ctx) {
123
125
  }
124
126
  return file.src.startsWith("/") ? ctx.href(file.src) : file.src;
125
127
  }
126
- function SiteImage({ image, className, sizes, priority, ctx }) {
127
- if (!isSafeImageSrc(image.src)) {
128
+ function claimPriority(ctx, large) {
129
+ if (!large || !ctx.media || ctx.media.firstLarge.claimed) return false;
130
+ ctx.media.firstLarge.claimed = true;
131
+ return true;
132
+ }
133
+ function SiteImage({ image, className, sizes, large, eager, ctx }) {
134
+ if (!isSafeImageSrc(image.src) || image.phone && !isSafeImageSrc(image.phone.src)) {
128
135
  console.error(`[genesis-sites] refused an unsafe image source on ${ctx.pagePath}.`);
129
136
  return null;
130
137
  }
131
- const src = image.src.startsWith("/") ? ctx.href(image.src) : image.src;
132
- return /* @__PURE__ */ jsx(
138
+ const at = (src) => src.startsWith("/") ? ctx.href(src) : src;
139
+ const priority = claimPriority(ctx, large);
140
+ const r = responsiveImage(
141
+ { ...image, src: at(image.src), ...image.phone ? { phone: { ...image.phone, src: at(image.phone.src) } } : {} },
142
+ { ...ctx.media ? { imageUrl: ctx.media.imageUrl } : {}, ...sizes ? { sizes } : {}, priority, eager: eager ?? false }
143
+ );
144
+ const phonePosition = r.phone?.objectPosition && r.phone.objectPosition !== r.objectPosition ? r.phone.objectPosition : void 0;
145
+ const style = {
146
+ ...r.objectPosition ? { objectPosition: r.objectPosition } : {},
147
+ // A different focal point on phones: sites.css swaps it in under the phone width.
148
+ ...phonePosition ? { "--gs-pos-phone": phonePosition } : {},
149
+ ...r.placeholder ? { backgroundImage: `url("${r.placeholder}")`, backgroundSize: "cover", backgroundPosition: r.objectPosition ?? "50% 50%" } : {}
150
+ };
151
+ const img = /* @__PURE__ */ jsx(
133
152
  "img",
134
153
  {
135
- src,
136
- alt: image.decorative ? "" : image.alt,
137
- ...image.width ? { width: image.width } : {},
138
- ...image.height ? { height: image.height } : {},
139
- ...sizes ? { sizes } : {},
140
- loading: priority ? "eager" : "lazy",
141
- decoding: priority ? "sync" : "async",
142
- ...priority ? { fetchPriority: "high" } : {},
143
- style: image.focal ? { objectPosition: `${image.focal.x}% ${image.focal.y}%` } : void 0,
154
+ src: r.src,
155
+ ...r.srcset ? { srcSet: r.srcset } : {},
156
+ alt: r.alt,
157
+ ...r.width ? { width: r.width } : {},
158
+ ...r.height ? { height: r.height } : {},
159
+ ...r.sizes ? { sizes: r.sizes } : {},
160
+ loading: r.loading,
161
+ decoding: r.decoding,
162
+ ...r.fetchpriority ? { fetchPriority: r.fetchpriority } : {},
163
+ style: Object.keys(style).length ? style : void 0,
164
+ ...phonePosition ? { "data-gs-phone-focal": "" } : {},
144
165
  className
145
166
  }
146
167
  );
168
+ if (!r.phone) return img;
169
+ return /* @__PURE__ */ jsxs("picture", { className: "contents", children: [
170
+ /* @__PURE__ */ jsx(
171
+ "source",
172
+ {
173
+ media: r.phone.media,
174
+ srcSet: r.phone.srcset ?? r.phone.src,
175
+ ...r.phone.sizes ? { sizes: r.phone.sizes } : {},
176
+ ...r.phone.width ? { width: r.phone.width } : {},
177
+ ...r.phone.height ? { height: r.phone.height } : {}
178
+ }
179
+ ),
180
+ img
181
+ ] });
147
182
  }
148
183
  function SectionTitle({ ctx, id, size, className, children }) {
149
- return /* @__PURE__ */ jsx(Display, { as: ctx.headingLevel === 1 ? "h1" : "h2", id, size: size ?? (ctx.headingLevel === 1 ? "xl" : "lg"), className, children });
184
+ const step = size ?? (ctx.headingLevel === 1 ? "xl" : "lg");
185
+ return /* @__PURE__ */ jsx(Display, { as: ctx.headingLevel === 1 ? "h1" : "h2", id, size: step, "data-gs-size": step, className, children });
150
186
  }
151
187
  function ItemTitle({ ctx, className, children }) {
152
188
  const Tag = ctx.headingLevel === 1 ? "h2" : "h3";
@@ -176,7 +212,19 @@ function SectionBand({
176
212
  children
177
213
  }) {
178
214
  const attrs = bandAttrs(node, ctx, anchor, labelled);
179
- return /* @__PURE__ */ jsx(Band, { ...attrs, as: labelled ? "section" : "div", surface, spacing, width, className: cn(attrs.className, className), children });
215
+ return /* @__PURE__ */ jsx(
216
+ Band,
217
+ {
218
+ ...attrs,
219
+ as: labelled ? "section" : "div",
220
+ surface,
221
+ spacing,
222
+ ...spacing && spacing !== "none" ? { "data-gs-spacing": spacing } : {},
223
+ width,
224
+ className: cn(attrs.className, className),
225
+ children
226
+ }
227
+ );
180
228
  }
181
229
  function SectionIntro({
182
230
  ctx,
@@ -189,9 +237,9 @@ function SectionIntro({
189
237
  }) {
190
238
  if (!heading && !body) return null;
191
239
  return /* @__PURE__ */ jsxs("div", { className: cn("flex max-w-3xl flex-col gap-4", align === "center" ? "mx-auto items-center text-center" : "items-start text-left"), children: [
192
- eyebrow ? /* @__PURE__ */ jsx("p", { className: "text-sm font-semibold uppercase tracking-wider", children: eyebrow }) : null,
240
+ eyebrow ? /* @__PURE__ */ jsx("p", { "data-gs-text": "eyebrow", className: "text-sm font-semibold uppercase tracking-wider", children: eyebrow }) : null,
193
241
  heading ? /* @__PURE__ */ jsx(SectionTitle, { ctx, id: titleId(ctx), size, children: heading }) : null,
194
- body ? /* @__PURE__ */ jsx(BandLead, { tone, children: body }) : null
242
+ body ? /* @__PURE__ */ jsx(BandLead, { "data-gs-text": "lead", tone, children: body }) : null
195
243
  ] });
196
244
  }
197
245
  function HiddenTitle({ ctx, children }) {
@@ -230,7 +278,7 @@ var ctaSection = defineSection({
230
278
  const card = props.surface === "accent" ? "bg-primary text-primary-foreground" : props.surface === "inverse" ? "bg-foreground text-background" : props.surface === "muted" ? "bg-muted" : "border border-border";
231
279
  return /* @__PURE__ */ jsx(SectionBand, { node, ctx, anchor: props.anchor, width: "md", children: /* @__PURE__ */ jsxs("div", { className: `flex flex-col items-center gap-6 rounded-2xl px-6 py-12 text-center sm:px-12 ${card}`, children: [
232
280
  /* @__PURE__ */ jsx(SectionTitle, { ctx, id: titleId(ctx), size: "lg", children: props.heading }),
233
- props.body ? /* @__PURE__ */ jsx(BandLead, { tone: inverted2 ? "inherit" : "muted", children: props.body }) : null,
281
+ props.body ? /* @__PURE__ */ jsx(BandLead, { "data-gs-text": "lead", tone: inverted2 ? "inherit" : "muted", children: props.body }) : null,
234
282
  /* @__PURE__ */ jsx(Actions, { primary: props.primaryCta, secondary: props.secondaryCta, ctx, onAccent: inverted2, className: "sm:justify-center" })
235
283
  ] }) });
236
284
  }
@@ -239,14 +287,14 @@ var ctaSection = defineSection({
239
287
  return /* @__PURE__ */ jsx(SectionBand, { node, ctx, anchor: props.anchor, surface: props.surface, children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-8 md:flex-row md:items-center md:justify-between", children: [
240
288
  /* @__PURE__ */ jsxs("div", { className: "flex max-w-2xl flex-col gap-3", children: [
241
289
  /* @__PURE__ */ jsx(SectionTitle, { ctx, id: titleId(ctx), size: "lg", children: props.heading }),
242
- props.body ? /* @__PURE__ */ jsx(BandLead, { tone: inverted ? "inherit" : "muted", children: props.body }) : null
290
+ props.body ? /* @__PURE__ */ jsx(BandLead, { "data-gs-text": "lead", tone: inverted ? "inherit" : "muted", children: props.body }) : null
243
291
  ] }),
244
292
  /* @__PURE__ */ jsx(Actions, { primary: props.primaryCta, secondary: props.secondaryCta, ctx, onAccent: inverted, className: "shrink-0" })
245
293
  ] }) });
246
294
  }
247
295
  return /* @__PURE__ */ jsx(SectionBand, { node, ctx, anchor: props.anchor, surface: props.surface, children: /* @__PURE__ */ jsxs("div", { className: "mx-auto flex max-w-3xl flex-col items-center gap-6 text-center", children: [
248
296
  /* @__PURE__ */ jsx(SectionTitle, { ctx, id: titleId(ctx), size: "lg", children: props.heading }),
249
- props.body ? /* @__PURE__ */ jsx(BandLead, { tone: inverted ? "inherit" : "muted", children: props.body }) : null,
297
+ props.body ? /* @__PURE__ */ jsx(BandLead, { "data-gs-text": "lead", tone: inverted ? "inherit" : "muted", children: props.body }) : null,
250
298
  /* @__PURE__ */ jsx(Actions, { primary: props.primaryCta, secondary: props.secondaryCta, ctx, onAccent: inverted, className: "sm:justify-center" })
251
299
  ] }) });
252
300
  }
@@ -367,8 +415,8 @@ var featuresSection = defineSection({
367
415
  props: {
368
416
  heading: "How to start",
369
417
  items: [
370
- { title: "Come to a free class", body: "Meet the coaches and try a session.", cta: { label: "Book a free class", href: "#contact" } },
371
- { title: "Learn the basics", body: "A few sessions on the movements, with a coach." },
418
+ { title: "Book a free first visit", body: "Meet the team and see how it works.", cta: { label: "Book a free visit", href: "#contact" } },
419
+ { title: "Get set up", body: "We walk you through the first steps, one to one." },
372
420
  { title: "Pick a plan", body: "Choose what fits your week.", cta: { label: "See the plans", href: "/plans" } }
373
421
  ]
374
422
  }
@@ -395,7 +443,7 @@ var featuresSection = defineSection({
395
443
  intro,
396
444
  /* @__PURE__ */ jsx("ol", { className: cn("mt-12 grid gap-6", props.items.length > 3 ? "md:grid-cols-2" : "", props.items.length === 3 && "lg:grid-cols-3"), children: props.items.map((item, i) => /* @__PURE__ */ jsxs("li", { className: "flex flex-col gap-4 rounded-xl border border-border bg-background p-6 text-foreground sm:p-8", children: [
397
445
  /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: "font-display text-4xl font-bold leading-none", children: String(i + 1).padStart(2, "0") }),
398
- item.image ? /* @__PURE__ */ jsx(SiteImage, { image: item.image, ctx, sizes: "(min-width: 1024px) 33vw, 100vw", className: "aspect-video w-full rounded-lg object-cover" }) : null,
446
+ item.image ? /* @__PURE__ */ jsx(SiteImage, { image: item.image, ctx, sizes: "(min-width: 1280px) 400px, (min-width: 1024px) 33vw, 100vw", className: "aspect-video w-full rounded-lg object-cover" }) : null,
399
447
  /* @__PURE__ */ jsx(ItemTitle, { ctx, className: "text-2xl", children: item.title }),
400
448
  /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: item.body }),
401
449
  item.note ? /* @__PURE__ */ jsx("p", { className: "border-l-2 border-primary pl-3 text-sm italic", children: item.note }) : null,
@@ -415,7 +463,7 @@ var featuresSection = defineSection({
415
463
  /* @__PURE__ */ jsx("p", { className: inverted ? void 0 : "text-muted-foreground", children: item.body }),
416
464
  extras(item)
417
465
  ] }),
418
- item.image ? /* @__PURE__ */ jsx(SiteImage, { image: item.image, ctx, sizes: "(min-width: 768px) 50vw, 100vw", className: "aspect-[4/3] w-full rounded-xl object-cover" }) : /* @__PURE__ */ jsx("div", { "aria-hidden": "true", className: "hidden aspect-[4/3] w-full rounded-xl bg-muted md:block" })
466
+ item.image ? /* @__PURE__ */ jsx(SiteImage, { image: item.image, ctx, large: true, sizes: "(min-width: 1280px) 640px, (min-width: 768px) 50vw, 100vw", className: "aspect-[4/3] w-full rounded-xl object-cover" }) : /* @__PURE__ */ jsx("div", { "aria-hidden": "true", className: "hidden aspect-[4/3] w-full rounded-xl bg-muted md:block" })
419
467
  ] }, i)) }),
420
468
  sectionCta
421
469
  ] });
@@ -437,7 +485,7 @@ var featuresSection = defineSection({
437
485
  return /* @__PURE__ */ jsxs(SectionBand, { node, ctx, anchor: props.anchor, surface: props.surface, children: [
438
486
  intro,
439
487
  /* @__PURE__ */ jsx(List, { className: cn("mt-12 grid gap-6", COLUMNS[props.columns]), children: props.items.map((item, i) => /* @__PURE__ */ jsxs("li", { className: "flex flex-col gap-3 rounded-xl border border-border bg-background p-6 text-foreground", children: [
440
- item.image ? /* @__PURE__ */ jsx(SiteImage, { image: item.image, ctx, sizes: "(min-width: 1024px) 33vw, (min-width: 640px) 50vw, 100vw", className: "aspect-video w-full rounded-lg object-cover" }) : null,
488
+ item.image ? /* @__PURE__ */ jsx(SiteImage, { image: item.image, ctx, sizes: "(min-width: 1280px) 400px, (min-width: 1024px) 33vw, (min-width: 640px) 50vw, 100vw", className: "aspect-video w-full rounded-lg object-cover" }) : null,
441
489
  props.numbered ? numberBadge(i) : item.image ? null : Icon(item.icon),
442
490
  /* @__PURE__ */ jsx(ItemTitle, { ctx, children: item.title }),
443
491
  /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: item.body }),
@@ -823,7 +871,7 @@ var formEmbedSection = defineSection({
823
871
  const inverted = onAccent(props.surface);
824
872
  const copy = /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col gap-4", variant === "card" && "items-center text-center"), children: [
825
873
  /* @__PURE__ */ jsx(SectionTitle, { ctx, id: titleId(ctx), size: "lg", children: props.heading }),
826
- props.body ? /* @__PURE__ */ jsx(BandLead, { tone: inverted ? "inherit" : "muted", children: props.body }) : null
874
+ props.body ? /* @__PURE__ */ jsx(BandLead, { "data-gs-text": "lead", tone: inverted ? "inherit" : "muted", children: props.body }) : null
827
875
  ] });
828
876
  if (variant === "split") {
829
877
  return /* @__PURE__ */ jsx(SectionBand, { node, ctx, anchor: props.anchor, surface: props.surface, children: /* @__PURE__ */ jsxs("div", { className: "grid gap-10 md:grid-cols-2 md:gap-12", children: [
@@ -874,7 +922,7 @@ var gallerySection = defineSection({
874
922
  {
875
923
  image,
876
924
  ctx,
877
- sizes: "(min-width: 1024px) 33vw, (min-width: 640px) 50vw, 100vw",
925
+ sizes: "(min-width: 1280px) 400px, (min-width: 1024px) 33vw, (min-width: 640px) 50vw, 100vw",
878
926
  className: masonry ? "w-full rounded-lg" : "aspect-square w-full rounded-lg object-cover"
879
927
  }
880
928
  ),
@@ -921,22 +969,22 @@ var heroSection = defineSection({
921
969
  ],
922
970
  render: ({ props, variant, node, ctx }) => {
923
971
  const intro = (align, tone = "muted") => /* @__PURE__ */ jsxs("div", { className: align === "center" ? "mx-auto flex max-w-3xl flex-col items-center gap-6 text-center" : "flex flex-col items-start gap-6", children: [
924
- props.eyebrow ? /* @__PURE__ */ jsx("p", { className: "text-sm font-semibold uppercase tracking-wider", children: props.eyebrow }) : null,
972
+ props.eyebrow ? /* @__PURE__ */ jsx("p", { "data-gs-text": "eyebrow", className: "text-sm font-semibold uppercase tracking-wider", children: props.eyebrow }) : null,
925
973
  /* @__PURE__ */ jsx(SectionTitle, { ctx, id: titleId(ctx), size: "xl", children: props.heading }),
926
- props.body ? /* @__PURE__ */ jsx(BandLead, { tone, children: props.body }) : null,
974
+ props.body ? /* @__PURE__ */ jsx(BandLead, { "data-gs-text": "lead", tone, children: props.body }) : null,
927
975
  /* @__PURE__ */ jsx(Actions, { primary: props.primaryCta, secondary: props.secondaryCta, ctx, onAccent: tone === "inherit", className: align === "center" ? "sm:justify-center" : void 0 })
928
976
  ] });
929
977
  if (variant === "image-bg" && props.image) {
930
978
  return /* @__PURE__ */ jsxs(SectionBand, { node, ctx, anchor: props.anchor, surface: "inverse", spacing: "lg", className: "isolate overflow-hidden", children: [
931
- /* @__PURE__ */ jsx(SiteImage, { image: { ...props.image, decorative: true }, ctx, priority: true, sizes: "100vw", className: "absolute inset-0 -z-10 h-full w-full object-cover" }),
932
- /* @__PURE__ */ jsx("div", { "aria-hidden": "true", className: "absolute inset-0 -z-10 bg-foreground/80" }),
979
+ /* @__PURE__ */ jsx(SiteImage, { image: { ...props.image, decorative: true }, ctx, large: true, sizes: "100vw", className: "absolute inset-0 -z-10 h-full w-full object-cover" }),
980
+ /* @__PURE__ */ jsx("div", { "aria-hidden": "true", "data-gs-scrim": "", className: "absolute inset-0 -z-10 bg-foreground/80" }),
933
981
  intro("center", "inherit")
934
982
  ] });
935
983
  }
936
984
  if (variant === "split") {
937
985
  return /* @__PURE__ */ jsx(SectionBand, { node, ctx, anchor: props.anchor, spacing: "lg", children: /* @__PURE__ */ jsxs("div", { className: "grid items-center gap-10 md:grid-cols-2 md:gap-12", children: [
938
986
  intro("left"),
939
- props.image ? /* @__PURE__ */ jsx(SiteImage, { image: props.image, ctx, priority: true, sizes: "(min-width: 768px) 50vw, 100vw", className: "aspect-[4/3] w-full rounded-xl object-cover" }) : /* @__PURE__ */ jsx("div", { "aria-hidden": "true", className: "hidden aspect-[4/3] w-full rounded-xl bg-muted md:block" })
987
+ props.image ? /* @__PURE__ */ jsx(SiteImage, { image: props.image, ctx, large: true, sizes: "(min-width: 1280px) 640px, (min-width: 768px) 50vw, 100vw", className: "aspect-[4/3] w-full rounded-xl object-cover" }) : /* @__PURE__ */ jsx("div", { "aria-hidden": "true", className: "hidden aspect-[4/3] w-full rounded-xl bg-muted md:block" })
940
988
  ] }) });
941
989
  }
942
990
  return /* @__PURE__ */ jsx(SectionBand, { node, ctx, anchor: props.anchor, spacing: "lg", children: intro("center") });
@@ -953,7 +1001,7 @@ var schema8 = z.object({
953
1001
  href: Href.optional()
954
1002
  })
955
1003
  ).min(1).max(24),
956
- /** The trust bar's short claim ("Small classes, friendly coaches"). */
1004
+ /** The trust bar's short claim ("Friendly people, fair prices"). */
957
1005
  claim: Copy(200).optional(),
958
1006
  surface: Surface.default("base"),
959
1007
  anchor: Anchor
@@ -980,7 +1028,7 @@ var logosSection = defineSection({
980
1028
  {
981
1029
  name: "Trust bar",
982
1030
  variant: "trust-bar",
983
- props: { claim: "Why people trust us", items: [{ name: "Small classes" }, { name: "Friendly coaches" }, { name: "Free first visit" }], surface: "inverse" }
1031
+ props: { claim: "Why people trust us", items: [{ name: "Friendly people" }, { name: "Fair prices" }, { name: "Free first visit" }], surface: "inverse" }
984
1032
  }
985
1033
  ],
986
1034
  render: ({ props, variant, node, ctx }) => {
@@ -1026,7 +1074,7 @@ function Brand({ props, ctx }) {
1026
1074
  href: ctx.href("/"),
1027
1075
  className: "inline-flex min-h-11 items-center gap-3 rounded-md font-display text-lg font-bold tracking-tight focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring",
1028
1076
  children: [
1029
- logo ? /* @__PURE__ */ jsx(SiteImage, { image: { ...logo, alt: showName ? "" : logo.alt || ctx.site.name, decorative: showName }, ctx, priority: true, className: "h-8 w-auto" }) : null,
1077
+ logo ? /* @__PURE__ */ jsx(SiteImage, { image: { ...logo, alt: showName ? "" : logo.alt || ctx.site.name, decorative: showName }, ctx, eager: true, sizes: "240px", className: "h-8 w-auto" }) : null,
1030
1078
  showName ? /* @__PURE__ */ jsx("span", { children: ctx.site.name }) : null,
1031
1079
  /* @__PURE__ */ jsx("span", { className: "sr-only", children: ", home" })
1032
1080
  ]
@@ -1151,9 +1199,9 @@ var pricingSection = defineSection({
1151
1199
  name: "Plan groups",
1152
1200
  variant: "cards",
1153
1201
  props: {
1154
- heading: "Memberships",
1202
+ heading: "Plans and prices",
1155
1203
  groups: [
1156
- { heading: "Start here", anchor: "start", tiers: [{ name: "Single visit", price: "$20", description: "One class", cta: { label: "Book a visit", href: "#contact" } }] },
1204
+ { heading: "Start here", anchor: "start", tiers: [{ name: "Single visit", price: "$20", description: "One visit", cta: { label: "Book a visit", href: "#contact" } }] },
1157
1205
  { heading: "Every week", anchor: "weekly", tiers: [{ name: "Monthly", price: "$99", period: "per month", cta: { label: "Join monthly", href: "#contact" } }, { name: "Yearly", price: "$89", period: "per month", description: "Paid yearly", highlighted: true, cta: { label: "Join for a year", href: "#contact" } }] }
1158
1206
  ]
1159
1207
  }
@@ -1228,7 +1276,7 @@ var pricingSection = defineSection({
1228
1276
  const id = `${ctx.idPrefix}-group-${gi}`;
1229
1277
  return /* @__PURE__ */ jsxs("section", { "aria-labelledby": id, ...group.anchor ? { id: group.anchor } : {}, className: cn("flex flex-col gap-3", group.anchor && "scroll-mt-20"), children: [
1230
1278
  /* @__PURE__ */ jsxs("div", { className: "mx-auto flex max-w-3xl flex-col items-center gap-2 text-center", children: [
1231
- group.eyebrow ? /* @__PURE__ */ jsx("p", { className: "text-sm font-semibold uppercase tracking-wider", children: group.eyebrow }) : null,
1279
+ group.eyebrow ? /* @__PURE__ */ jsx("p", { "data-gs-text": "eyebrow", className: "text-sm font-semibold uppercase tracking-wider", children: group.eyebrow }) : null,
1232
1280
  /* @__PURE__ */ jsx(GroupTitle, { ctx, id, children: group.heading }),
1233
1281
  group.body ? /* @__PURE__ */ jsx("p", { className: inverted ? void 0 : "text-muted-foreground", children: group.body }) : null
1234
1282
  ] }),
@@ -1316,7 +1364,7 @@ var statsSection = defineSection({
1316
1364
  {
1317
1365
  name: "Three numbers",
1318
1366
  variant: "row",
1319
- props: { items: [{ value: "12", label: "years open" }, { value: "40+", label: "classes a week" }, { value: "6", label: "coaches" }] }
1367
+ props: { items: [{ value: "12", label: "years open" }, { value: "500+", label: "people served" }, { value: "6", label: "on the team" }] }
1320
1368
  }
1321
1369
  ],
1322
1370
  render: ({ props, variant, node, ctx }) => {
@@ -1475,7 +1523,7 @@ var blogListSection = defineSection({
1475
1523
  shown.length ? /* @__PURE__ */ jsx("ul", { className: cn("mt-10", grid ? "grid gap-6 sm:grid-cols-2 lg:grid-cols-3" : "mx-auto flex max-w-3xl flex-col divide-y divide-border"), children: shown.map((post) => /* @__PURE__ */ jsx("li", { className: grid ? "flex" : "py-6 first:pt-0", children: /* @__PURE__ */ jsxs("article", { className: cn("flex w-full flex-col gap-3", grid && "rounded-xl border border-border bg-background text-foreground"), children: [
1476
1524
  grid ? post.cover ? (
1477
1525
  // The title says what the post is; its cover is decoration here.
1478
- /* @__PURE__ */ jsx(SiteImage, { image: { ...post.cover, decorative: true }, ctx, sizes: "(min-width: 1024px) 33vw, (min-width: 640px) 50vw, 100vw", className: "aspect-[16/10] w-full rounded-t-xl object-cover" })
1526
+ /* @__PURE__ */ jsx(SiteImage, { image: { ...post.cover, decorative: true }, ctx, sizes: "(min-width: 1280px) 400px, (min-width: 1024px) 33vw, (min-width: 640px) 50vw, 100vw", className: "aspect-[16/10] w-full rounded-t-xl object-cover" })
1479
1527
  ) : /* @__PURE__ */ jsx("div", { "aria-hidden": "true", className: "aspect-[16/10] w-full rounded-t-xl bg-muted" }) : null,
1480
1528
  /* @__PURE__ */ jsxs("div", { className: cn("flex flex-1 flex-col gap-2", grid && "p-5 pt-2"), children: [
1481
1529
  /* @__PURE__ */ jsx(PostMeta, { post, ctx, showDate: props.showDate, muted: grid || !inverted }),
@@ -1550,8 +1598,8 @@ var fileSection = defineSection({
1550
1598
  ],
1551
1599
  defaultVariant: "list",
1552
1600
  presets: [
1553
- { name: "Downloads", variant: "list", props: { heading: "Downloads", files: [{ label: "Timetable", file: { src: "/files/timetable.pdf", mime: "application/pdf" } }] } },
1554
- { name: "File cards", variant: "cards", props: { heading: "Forms to bring", files: [{ label: "Waiver", description: "Sign it before your first class.", file: { src: "/files/waiver.pdf", mime: "application/pdf" } }] } }
1601
+ { name: "Downloads", variant: "list", props: { heading: "Downloads", files: [{ label: "Price list", file: { src: "/files/price-list.pdf", mime: "application/pdf" } }] } },
1602
+ { name: "File cards", variant: "cards", props: { heading: "Forms to bring", files: [{ label: "Sign-up form", description: "Fill it in before your first visit.", file: { src: "/files/sign-up.pdf", mime: "application/pdf" } }] } }
1555
1603
  ],
1556
1604
  render: ({ props, variant, node, ctx }) => {
1557
1605
  const inverted = onAccent(props.surface);
@@ -1670,7 +1718,7 @@ var mapSection = defineSection({
1670
1718
  "data-gs-map-title": frameTitle,
1671
1719
  className: "relative isolate flex aspect-[4/3] w-full flex-col justify-end overflow-hidden rounded-xl border border-border bg-muted text-foreground",
1672
1720
  children: [
1673
- props.image ? /* @__PURE__ */ jsx("span", { "data-gs-map-drop": "", className: "absolute inset-0 -z-10", children: /* @__PURE__ */ jsx(SiteImage, { image: props.image, ctx, sizes: "(min-width: 768px) 50vw, 100vw", className: "h-full w-full object-cover" }) }) : /* @__PURE__ */ jsx(MapPin, { "data-gs-map-drop": "", "aria-hidden": "true", className: "absolute left-1/2 top-1/3 -z-10 size-12 -translate-x-1/2 text-muted-foreground" }),
1721
+ props.image ? /* @__PURE__ */ jsx("span", { "data-gs-map-drop": "", className: "absolute inset-0 -z-10", children: /* @__PURE__ */ jsx(SiteImage, { image: props.image, ctx, large: true, sizes: "(min-width: 1280px) 640px, (min-width: 768px) 50vw, 100vw", className: "h-full w-full object-cover" }) }) : /* @__PURE__ */ jsx(MapPin, { "data-gs-map-drop": "", "aria-hidden": "true", className: "absolute left-1/2 top-1/3 -z-10 size-12 -translate-x-1/2 text-muted-foreground" }),
1674
1722
  /* @__PURE__ */ jsxs("div", { className: "relative flex flex-col items-start gap-3 bg-background p-4 text-foreground", children: [
1675
1723
  /* @__PURE__ */ jsx("p", { "data-gs-map-drop": "", className: "text-sm", children: note }),
1676
1724
  /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-4", children: [
@@ -1682,7 +1730,7 @@ var mapSection = defineSection({
1682
1730
  }
1683
1731
  );
1684
1732
  const copy = /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4", children: [
1685
- props.eyebrow ? /* @__PURE__ */ jsx("p", { className: "text-sm font-semibold uppercase tracking-wider", children: props.eyebrow }) : null,
1733
+ props.eyebrow ? /* @__PURE__ */ jsx("p", { "data-gs-text": "eyebrow", className: "text-sm font-semibold uppercase tracking-wider", children: props.eyebrow }) : null,
1686
1734
  /* @__PURE__ */ jsx(SectionTitle, { ctx, id: titleId(ctx), size: "lg", children: props.heading }),
1687
1735
  props.body ? /* @__PURE__ */ jsx("p", { className: inverted ? void 0 : "text-muted-foreground", children: props.body }) : null,
1688
1736
  /* @__PURE__ */ jsx("address", { className: "flex flex-col not-italic", children: props.address.map((line, i) => /* @__PURE__ */ jsx("span", { className: i === 0 ? "font-semibold" : void 0, children: line }, i)) }),
@@ -1765,11 +1813,11 @@ var postBodySection = defineSection({
1765
1813
  if (variant === "cover" && d.cover && props.showCover) {
1766
1814
  return /* @__PURE__ */ jsxs("article", { "aria-labelledby": titleId(ctx), "data-gs-section": node.type, "data-gs-variant": node.variant, children: [
1767
1815
  /* @__PURE__ */ jsxs(SectionBand, { node, ctx, surface: "inverse", spacing: "lg", labelled: false, className: "isolate overflow-hidden", children: [
1768
- /* @__PURE__ */ jsx(SiteImage, { image: { ...d.cover, decorative: true }, ctx, priority: true, sizes: "100vw", className: "absolute inset-0 -z-10 h-full w-full object-cover" }),
1769
- /* @__PURE__ */ jsx("div", { "aria-hidden": "true", className: "absolute inset-0 -z-10 bg-foreground/80" }),
1816
+ /* @__PURE__ */ jsx(SiteImage, { image: { ...d.cover, decorative: true }, ctx, large: true, sizes: "100vw", className: "absolute inset-0 -z-10 h-full w-full object-cover" }),
1817
+ /* @__PURE__ */ jsx("div", { "aria-hidden": "true", "data-gs-scrim": "", className: "absolute inset-0 -z-10 bg-foreground/80" }),
1770
1818
  /* @__PURE__ */ jsxs("div", { className: "mx-auto flex max-w-3xl flex-col gap-4", children: [
1771
1819
  back,
1772
- d.category ? /* @__PURE__ */ jsx("p", { className: "text-sm font-semibold uppercase tracking-wider", children: d.category }) : null,
1820
+ d.category ? /* @__PURE__ */ jsx("p", { "data-gs-text": "eyebrow", className: "text-sm font-semibold uppercase tracking-wider", children: d.category }) : null,
1773
1821
  title,
1774
1822
  meta
1775
1823
  ] })
@@ -1780,23 +1828,24 @@ var postBodySection = defineSection({
1780
1828
  return /* @__PURE__ */ jsx(SectionBand, { node, ctx, surface: props.surface, width: "prose", labelled: false, children: /* @__PURE__ */ jsxs("article", { "aria-labelledby": titleId(ctx), className: "flex flex-col gap-6", children: [
1781
1829
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4", children: [
1782
1830
  back,
1783
- d.category ? /* @__PURE__ */ jsx("p", { className: "text-sm font-semibold uppercase tracking-wider", children: d.category }) : null,
1831
+ d.category ? /* @__PURE__ */ jsx("p", { "data-gs-text": "eyebrow", className: "text-sm font-semibold uppercase tracking-wider", children: d.category }) : null,
1784
1832
  title,
1785
1833
  meta
1786
1834
  ] }),
1787
- props.showCover && d.cover ? /* @__PURE__ */ jsx(SiteImage, { image: d.cover, ctx, priority: true, sizes: "(min-width: 768px) 48rem, 100vw", className: "aspect-[16/9] w-full rounded-xl object-cover" }) : null,
1835
+ props.showCover && d.cover ? /* @__PURE__ */ jsx(SiteImage, { image: d.cover, ctx, large: true, sizes: "(min-width: 768px) 48rem, 100vw", className: "aspect-[16/9] w-full rounded-xl object-cover" }) : null,
1788
1836
  body
1789
1837
  ] }) });
1790
1838
  }
1791
1839
  });
1792
1840
  var WEEKDAYS = ["mon", "tue", "wed", "thu", "fri", "sat", "sun"];
1793
1841
  var Day = z.enum(WEEKDAYS);
1842
+ var LEGACY_HOST = "coach";
1794
1843
  var DAY_NAMES = { mon: "Monday", tue: "Tuesday", wed: "Wednesday", thu: "Thursday", fri: "Friday", sat: "Saturday", sun: "Sunday" };
1795
1844
  var DAY_SHORT = { mon: "Mon", tue: "Tue", wed: "Wed", thu: "Thu", fri: "Fri", sat: "Sat", sun: "Sun" };
1796
1845
  var Time = z.string().regex(/^([01]\d|2[0-3]):[0-5]\d$/, "A time is HH:MM on the 24-hour clock (06:15, 18:00).");
1797
- var TypeId = z.string().regex(/^[a-z0-9][a-z0-9-]{0,39}$/, "A class type id is lowercase letters, digits and hyphens.");
1846
+ var TypeId = z.string().regex(/^[a-z0-9][a-z0-9-]{0,39}$/, "A session type id is lowercase letters, digits and hyphens.");
1798
1847
  var CHIP_TONES = ["primary", "inverse", "soft", "outline", "plain"];
1799
- var ClassType = z.object({
1848
+ var SessionType = z.object({
1800
1849
  id: TypeId,
1801
1850
  name: Line(60),
1802
1851
  description: Copy(300).optional(),
@@ -1807,15 +1856,15 @@ var Session = z.object({
1807
1856
  start: Time,
1808
1857
  end: Time.optional(),
1809
1858
  title: Line(60),
1810
- /** A class type's id, for its chip colour and the legend. */
1859
+ /** A session type's id, for its chip colour and the legend. */
1811
1860
  type: TypeId.optional(),
1812
1861
  /** Who leads it: shown as "with …". */
1813
1862
  host: Line(60).optional(),
1814
1863
  /** @deprecated Use `host`. Still accepted; version 2 moves it into `host`, and the editor hides it. */
1815
- coach: Line(60).optional().meta({ deprecated: true }),
1864
+ [LEGACY_HOST]: Line(60).optional().meta({ deprecated: true }),
1816
1865
  location: Line(60).optional(),
1817
1866
  note: Line(80).optional(),
1818
- /** Book this class (an outbound link, say). */
1867
+ /** Book this session (an outbound link, say). */
1819
1868
  link: Link.optional()
1820
1869
  });
1821
1870
  var schema18 = z.object({
@@ -1827,10 +1876,19 @@ var schema18 = z.object({
1827
1876
  /** Day names in the site's language (default English). */
1828
1877
  dayNames: z.partialRecord(Day, Line(20)).optional(),
1829
1878
  clock: z.enum(["12h", "24h"]).default("12h"),
1830
- types: z.array(ClassType).max(16).default([]),
1879
+ types: z.array(SessionType).max(16).default([]),
1831
1880
  sessions: z.array(Session).max(200),
1832
1881
  /** What an empty slot or day says. */
1833
1882
  emptyText: Line(60).default("Nothing scheduled"),
1883
+ /**
1884
+ * The nouns a visitor hears for what's on: `items` in the table's caption
1885
+ * ("…: sessions by time and day") and the phone day picker ("Show the
1886
+ * sessions on"), `types` as the legend's name. A template sets its own.
1887
+ */
1888
+ labels: z.object({
1889
+ items: Line(40).default("sessions").meta({ title: "What's on, plural (sessions)" }),
1890
+ types: Line(60).default("Session types").meta({ title: "The legend's name" })
1891
+ }).default({ items: "sessions", types: "Session types" }).meta({ title: "Words" }),
1834
1892
  footnote: Copy(300).optional(),
1835
1893
  surface: Surface.default("base"),
1836
1894
  anchor: Anchor
@@ -1868,7 +1926,7 @@ function Chip({ session, types }) {
1868
1926
  ] });
1869
1927
  }
1870
1928
  function Details({ session, muted }) {
1871
- const host = session.host ?? session.coach;
1929
+ const host = session.host ?? session[LEGACY_HOST];
1872
1930
  const parts = [host ? `with ${host}` : null, session.location, session.note].filter(Boolean);
1873
1931
  if (!parts.length) return null;
1874
1932
  return /* @__PURE__ */ jsx("span", { className: cn("block text-xs", muted && "text-muted-foreground"), children: parts.join(" \xB7 ") });
@@ -1903,27 +1961,27 @@ function Legend({ props, days }) {
1903
1961
  if (!shown.length) return null;
1904
1962
  return (
1905
1963
  // A list, not a <dl>: a type with no description has nothing to pair with.
1906
- /* @__PURE__ */ jsx("ul", { "aria-label": "Class types", className: "mt-8 grid gap-4 sm:grid-cols-2", children: shown.map((t) => /* @__PURE__ */ jsxs("li", { className: "flex flex-col items-start gap-1", children: [
1964
+ /* @__PURE__ */ jsx("ul", { "aria-label": props.labels.types, className: "mt-8 grid gap-4 sm:grid-cols-2", children: shown.map((t) => /* @__PURE__ */ jsxs("li", { className: "flex flex-col items-start gap-1", children: [
1907
1965
  /* @__PURE__ */ jsx("span", { className: cn("inline-flex rounded-md px-2 py-1 text-sm font-semibold", TONE2[t.tone]), children: t.name }),
1908
1966
  t.description ? /* @__PURE__ */ jsx("span", { className: "text-sm", children: t.description }) : null
1909
1967
  ] }, t.id)) })
1910
1968
  );
1911
1969
  }
1912
- function coachToHost(props) {
1970
+ function legacyHostToHost(props) {
1913
1971
  if (!Array.isArray(props.sessions)) return props;
1914
1972
  const sessions = props.sessions.map((s) => {
1915
- if (!s || typeof s !== "object" || !("coach" in s)) return s;
1916
- const { coach, ...rest } = s;
1917
- return rest.host === void 0 || rest.host === "" ? coach === void 0 ? rest : { ...rest, host: coach } : rest;
1973
+ if (!s || typeof s !== "object" || !(LEGACY_HOST in s)) return s;
1974
+ const { [LEGACY_HOST]: legacy, ...rest } = s;
1975
+ return rest.host === void 0 || rest.host === "" ? legacy === void 0 ? rest : { ...rest, host: legacy } : rest;
1918
1976
  });
1919
1977
  return { ...props, sessions };
1920
1978
  }
1921
1979
  var scheduleSection = defineSection({
1922
1980
  type: "schedule",
1923
1981
  version: 2,
1924
- migrations: { 2: coachToHost },
1982
+ migrations: { 2: legacyHostToHost },
1925
1983
  label: "Timetable",
1926
- description: "The week's classes by time and day, with host and place: a table on wider screens and a day picker on a phone.",
1984
+ description: "The week's sessions by time and day, with host and place: a table on wider screens and a day picker on a phone.",
1927
1985
  category: "content",
1928
1986
  schema: schema18,
1929
1987
  variants: [
@@ -1936,22 +1994,22 @@ var scheduleSection = defineSection({
1936
1994
  name: "Weekly timetable",
1937
1995
  variant: "grid",
1938
1996
  props: {
1939
- heading: "Class times",
1997
+ heading: "This week",
1940
1998
  types: [
1941
- { id: "strength", name: "Strength", description: "Barbell work in a coached group.", tone: "primary" },
1942
- { id: "open", name: "Open gym", description: "Train on your own; a coach is on the floor.", tone: "soft" }
1999
+ { id: "main", name: "Session type", description: "A line about this kind of session.", tone: "primary" },
2000
+ { id: "open", name: "Open session", description: "Drop by any time it runs.", tone: "soft" }
1943
2001
  ],
1944
2002
  sessions: [
1945
- { day: "mon", start: "06:00", title: "Strength", type: "strength", host: "Host name" },
1946
- { day: "wed", start: "06:00", title: "Strength", type: "strength", host: "Host name" },
1947
- { day: "sat", start: "09:00", title: "Open gym", type: "open" }
2003
+ { day: "mon", start: "09:00", title: "Session name", type: "main", host: "Host name" },
2004
+ { day: "wed", start: "09:00", title: "Session name", type: "main", host: "Host name" },
2005
+ { day: "sat", start: "10:00", title: "Open session", type: "open" }
1948
2006
  ]
1949
2007
  }
1950
2008
  },
1951
2009
  {
1952
2010
  name: "Day by day",
1953
2011
  variant: "agenda",
1954
- props: { heading: "This week", days: ["mon", "tue", "wed", "thu", "fri"], sessions: [{ day: "mon", start: "18:00", end: "19:00", title: "Class name" }] }
2012
+ props: { heading: "This week", days: ["mon", "tue", "wed", "thu", "fri"], sessions: [{ day: "mon", start: "18:00", end: "19:00", title: "Session name" }] }
1955
2013
  }
1956
2014
  ],
1957
2015
  render: ({ props, variant, node, ctx }) => {
@@ -1972,7 +2030,7 @@ var scheduleSection = defineSection({
1972
2030
  ] });
1973
2031
  }
1974
2032
  const times = [...new Set(props.sessions.filter((s) => days.includes(s.day)).map((s) => s.start))].sort();
1975
- const caption = `${props.heading}: classes by time and day`;
2033
+ const caption = `${props.heading}: ${props.labels.items} by time and day`;
1976
2034
  return /* @__PURE__ */ jsxs(SectionBand, { node, ctx, anchor: props.anchor, surface: props.surface, children: [
1977
2035
  intro,
1978
2036
  /* @__PURE__ */ jsxs("div", { role: "region", "aria-label": caption, tabIndex: 0, className: cn("mt-10 overflow-x-auto max-md:hidden", card), children: [
@@ -1997,7 +2055,7 @@ var scheduleSection = defineSection({
1997
2055
  ] }),
1998
2056
  /* @__PURE__ */ jsxs("div", { "data-gs-schedule": "", className: cn("mt-8 md:hidden", card), children: [
1999
2057
  /* @__PURE__ */ jsxs("fieldset", { className: "min-w-0", children: [
2000
- /* @__PURE__ */ jsx("legend", { className: "sr-only", children: "Show the classes on" }),
2058
+ /* @__PURE__ */ jsx("legend", { className: "sr-only", children: `Show the ${props.labels.items} on` }),
2001
2059
  /* @__PURE__ */ jsx("div", { className: "-mx-1 flex gap-1 overflow-x-auto px-1 pb-2", children: days.map((day, i) => /* @__PURE__ */ jsxs("label", { className: "relative shrink-0", children: [
2002
2060
  /* @__PURE__ */ jsx("input", { type: "radio", name: `${ctx.idPrefix}-day`, value: day, "data-day": i, defaultChecked: i === 0, "aria-controls": `${ctx.idPrefix}-panel-${day}`, className: "peer sr-only" }),
2003
2061
  /* @__PURE__ */ jsx("span", { className: "inline-flex min-h-11 min-w-11 cursor-pointer items-center justify-center rounded-md border border-border px-3 text-sm font-semibold peer-checked:border-primary peer-checked:bg-primary peer-checked:text-primary-foreground peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-ring", children: /* @__PURE__ */ jsx(DayLabel, { day, props }) })
@@ -2012,7 +2070,7 @@ var scheduleSection = defineSection({
2012
2070
  var Member = z.object({
2013
2071
  name: Line(80),
2014
2072
  role: Line(80).optional(),
2015
- /** Qualifications, as one line ("Level 2 coach, nutrition coach"). */
2073
+ /** Qualifications, as one line ("Chartered accountant, 12 years in practice"). */
2016
2074
  credentials: Copy(300).optional(),
2017
2075
  photo: Image.optional(),
2018
2076
  /** A line or two, shown on the card. */
@@ -2056,7 +2114,7 @@ var teamSection = defineSection({
2056
2114
  type: "team",
2057
2115
  version: 1,
2058
2116
  label: "Team",
2059
- description: "Your coaches or staff: a photo, a role, credentials and a long bio that opens in place, with a link to each person's page.",
2117
+ description: "The people behind the business: a photo, a role, credentials and a long bio that opens in place, with a link to each person's page.",
2060
2118
  category: "content",
2061
2119
  schema: schema19,
2062
2120
  variants: [
@@ -2069,17 +2127,17 @@ var teamSection = defineSection({
2069
2127
  name: "Team cards",
2070
2128
  variant: "cards",
2071
2129
  props: {
2072
- heading: "Meet the coaches",
2130
+ heading: "Meet the team",
2073
2131
  members: [
2074
- { name: "Coach name", role: "Head coach", summary: "A line about what they love to coach.", bio: "Their story, in a few short paragraphs.\n\nWhat they love about coaching." },
2075
- { name: "Coach name", role: "Coach", summary: "A line about what they love to coach." }
2132
+ { name: "Person's name", role: "Their role", summary: "A line about what they do best.", bio: "Their story, in a few short paragraphs.\n\nWhat they love about their work." },
2133
+ { name: "Person's name", role: "Their role", summary: "A line about what they do best." }
2076
2134
  ]
2077
2135
  }
2078
2136
  },
2079
2137
  {
2080
2138
  name: "Team list",
2081
2139
  variant: "list",
2082
- props: { heading: "The team", members: [{ name: "Coach name", credentials: "Their qualifications", bio: "Their story, in a few short paragraphs." }] }
2140
+ props: { heading: "The team", members: [{ name: "Person's name", credentials: "Their qualifications", bio: "Their story, in a few short paragraphs." }] }
2083
2141
  }
2084
2142
  ],
2085
2143
  render: ({ props, variant, node, ctx }) => {
@@ -2107,7 +2165,7 @@ var teamSection = defineSection({
2107
2165
  return /* @__PURE__ */ jsxs(SectionBand, { node, ctx, anchor: props.anchor, surface: props.surface, children: [
2108
2166
  intro,
2109
2167
  /* @__PURE__ */ jsx("ul", { className: cn("mt-12 grid gap-6", COLUMNS2[props.columns]), children: props.members.map((m, i) => /* @__PURE__ */ jsxs("li", { ...m.anchor ? { id: m.anchor } : {}, className: cn("flex flex-col gap-4 rounded-xl border border-border bg-background p-6 text-foreground", m.anchor && "scroll-mt-20"), children: [
2110
- m.photo ? /* @__PURE__ */ jsx(SiteImage, { image: m.photo, ctx, sizes: "(min-width: 1024px) 25vw, (min-width: 640px) 50vw, 100vw", className: "aspect-square w-full rounded-lg object-cover" }) : null,
2168
+ m.photo ? /* @__PURE__ */ jsx(SiteImage, { image: m.photo, ctx, sizes: "(min-width: 1280px) 320px, (min-width: 1024px) 25vw, (min-width: 640px) 50vw, 100vw", className: "aspect-square w-full rounded-lg object-cover" }) : null,
2111
2169
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1", children: [
2112
2170
  /* @__PURE__ */ jsx(ItemTitle, { ctx, children: m.name }),
2113
2171
  m.role ? /* @__PURE__ */ jsx("p", { className: "text-sm font-medium", children: m.role }) : null,
@@ -2189,7 +2247,7 @@ var timelineSection = defineSection({
2189
2247
  return /* @__PURE__ */ jsxs(SectionBand, { node, ctx, anchor: props.anchor, surface: props.surface, children: [
2190
2248
  intro,
2191
2249
  /* @__PURE__ */ jsx("ol", { className: "mt-12 grid gap-6 sm:grid-cols-2 lg:grid-cols-3", children: props.steps.map((step, i) => /* @__PURE__ */ jsxs("li", { className: "flex flex-col gap-3 rounded-xl border border-border bg-background p-6 text-foreground", children: [
2192
- step.image ? /* @__PURE__ */ jsx(SiteImage, { image: step.image, ctx, sizes: "(min-width: 1024px) 33vw, (min-width: 640px) 50vw, 100vw", className: "aspect-video w-full rounded-lg object-cover" }) : null,
2250
+ step.image ? /* @__PURE__ */ jsx(SiteImage, { image: step.image, ctx, sizes: "(min-width: 1280px) 400px, (min-width: 1024px) 33vw, (min-width: 640px) 50vw, 100vw", className: "aspect-video w-full rounded-lg object-cover" }) : null,
2193
2251
  /* @__PURE__ */ jsxs("p", { className: "flex items-baseline gap-3 text-sm font-semibold", children: [
2194
2252
  props.numbered ? /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: "font-display text-2xl", children: number(i) }) : null,
2195
2253
  step.label ? /* @__PURE__ */ jsx("span", { className: "uppercase tracking-wide text-muted-foreground", children: step.label }) : null
@@ -2251,5 +2309,5 @@ var builtInSections = Object.freeze([
2251
2309
  for (const def of builtInSections) registerBuiltInSection(def);
2252
2310
 
2253
2311
  export { Anchor, ButtonLink, CHIP_TONES, HiddenTitle, ICONS, IconName, ItemTitle, MAP_PROVIDERS, SectionBand, SectionIntro, SectionTitle, SiteFormHeader, SiteImage, TextLink, WEEKDAYS, blogListSection, builtInSections, ctaSection, faqSection, featuresSection, fileDescription, fileHref, fileSection, footerSection, formDrawMode, formEmbedSection, formatPostDate, formatTime, gallerySection, heroSection, linkAttrs, logosSection, mapEmbedUrl, mapPageUrl, mapSection, navSection, postBodySection, pricingSection, resolveHref, richTextSection, scheduleSection, siteFormSlots, statsSection, teamSection, testimonialsSection, timelineSection, titleId };
2254
- //# sourceMappingURL=chunk-P5MR34QQ.js.map
2255
- //# sourceMappingURL=chunk-P5MR34QQ.js.map
2312
+ //# sourceMappingURL=chunk-3XCKSU4Z.js.map
2313
+ //# sourceMappingURL=chunk-3XCKSU4Z.js.map