@luhtech/site-template 0.12.0 → 0.12.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luhtech/site-template",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "description": "Shared Astro component library + content-instance contract for LuhTech venture marketing sites -- one template renders every site from content/page.schema.json + content/site.schema.json instances.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -70,7 +70,7 @@ if (!Component) {
70
70
  }
71
71
  ---
72
72
  {section.sectionKind === 'cta' ? (
73
- <Cta section={section} leadCapture={site?.leadCapture} companyLabel={companyLabel} />
73
+ <Cta section={section} leadCapture={site?.leadCapture} companyLabel={companyLabel} icons={icons} />
74
74
  ) : section.sectionKind === 'article' ? (
75
75
  <Component section={section} icons={icons} tool={tool} toolSubmitEndpoint={toolSubmitEndpoint} route={route} ventureRef={ventureRef} />
76
76
  ) : (
@@ -11,16 +11,19 @@ import Block from '../Block.astro';
11
11
  import CtaLink from '../CtaLink.astro';
12
12
  import LeadCaptureForm from '../LeadCaptureForm.astro';
13
13
  import SectionHeading from '../SectionHeading.astro';
14
+ import type { SectionIcons } from '../Section.astro';
14
15
 
15
16
  export interface Props {
16
17
  section: any;
17
18
  leadCapture?: { destination: string; source: string; ventureField: string; honeypotField: string; minSubmitMs?: number };
18
19
  companyLabel?: string;
20
+ icons?: SectionIcons;
19
21
  }
20
- const { section, leadCapture, companyLabel } = Astro.props;
22
+ const { section, leadCapture, companyLabel, icons } = Astro.props;
23
+ const sectionIcon = icons?.section?.[section.sectionId];
21
24
  ---
22
25
  <section id={section.sectionId} class="py-12 text-center border-t border-ink/10" data-reveal>
23
- <SectionHeading eyebrow={section.eyebrow} heading={section.heading} subheading={section.subheading} center class="mb-3" />
26
+ <SectionHeading eyebrow={section.eyebrow} heading={section.heading} subheading={section.subheading} icon={sectionIcon} center class="mb-3" />
24
27
  {section.blocks?.map((b: any) => <Block block={b} class="mb-4 max-w-xl mx-auto text-left" />)}
25
28
  {leadCapture ? (
26
29
  <div class="text-left max-w-md mx-auto">