@luhtech/site-template 0.10.2 → 0.12.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luhtech/site-template",
3
- "version": "0.10.2",
3
+ "version": "0.12.0",
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",
@@ -33,7 +33,7 @@ import Diagram from './Diagram.astro';
33
33
  import Icon from './Icon.astro';
34
34
 
35
35
  export interface Props {
36
- block: { blockType: string; text?: string; label?: string; href?: string; diagramId?: string; src?: string; alt?: string; caption?: string };
36
+ block: { blockType: string; text?: string; label?: string; href?: string; diagramId?: string; src?: string; alt?: string; caption?: string; name?: string; title?: string };
37
37
  // This section's own diagrams[] array, only needed when block.blockType
38
38
  // is "diagram" -- the block is a position, diagrams[] stays the data.
39
39
  diagrams?: { diagramId: string; diagramType: string; caption?: string; data: any }[];
@@ -97,6 +97,23 @@ if (block.blockType === 'diagram') {
97
97
  {block.caption && <figcaption class="text-sm text-ink/60 mt-2 text-center">{block.caption}</figcaption>}
98
98
  </figure>
99
99
  )}
100
+ {block.blockType === 'bio' && (
101
+ <div class={`rounded-md border border-ink/15 p-5 ${className}`}>
102
+ <div class="flex items-center gap-3 mb-3">
103
+ <span
104
+ class="flex items-center justify-center w-10 h-10 rounded-full bg-accent-primary/10 text-accent-primary font-display font-bold text-sm shrink-0"
105
+ aria-hidden="true"
106
+ >
107
+ {(block.name ?? '').split(/\s+/).map((w) => w[0]).join('').slice(0, 2).toUpperCase()}
108
+ </span>
109
+ <div>
110
+ {block.name && <p class="font-display font-semibold leading-tight">{block.name}</p>}
111
+ {block.title && <p class="text-sm text-accent-secondary font-mono uppercase tracking-wide">{block.title}</p>}
112
+ </div>
113
+ </div>
114
+ <p class="text-sm text-ink/80 leading-relaxed">{block.text}</p>
115
+ </div>
116
+ )}
100
117
  {isExternalLink && (
101
118
  <Icon name="external-link" class="inline-block w-3.5 h-3.5 ml-1 align-text-top text-accent-primary/70" />
102
119
  )}
@@ -2,6 +2,12 @@
2
2
  // Renders one page.schema.json figure with its provenance.sourceRef --
3
3
  // provenance.public must be true (schema const), so every figure that
4
4
  // reaches this component is already cleared to appear on a public page.
5
+ //
6
+ // Card treatment (2026-09-13): a bordered card with a top accent rule,
7
+ // rather than bare stacked text -- the same visual register a real
8
+ // published research figure gets on an analyst site, since every figure
9
+ // that reaches here already carries a citable public source. The
10
+ // citation sits below a divider so it reads as a footnote, not body copy.
5
11
  export interface Props {
6
12
  figure: {
7
13
  figureId: string;
@@ -12,11 +18,11 @@ export interface Props {
12
18
  }
13
19
  const { figure } = Astro.props;
14
20
  ---
15
- <div class="flex flex-col gap-1" id={figure.figureId}>
16
- <span class="font-display text-3xl font-bold">
17
- {figure.value}{figure.unit && <span class="text-lg font-normal ml-1">{figure.unit}</span>}
18
- </span>
19
- <span class="text-xs text-ink/60">
21
+ <div class="relative rounded-md border border-ink/15 bg-canvas p-5 overflow-hidden" id={figure.figureId}>
22
+ <span class="absolute top-0 left-0 right-0 h-1 bg-accent-primary" aria-hidden="true"></span>
23
+ <span class="font-display text-4xl font-bold leading-none block">{figure.value}</span>
24
+ {figure.unit && <span class="text-sm text-ink/70 font-medium mt-2 block">{figure.unit}</span>}
25
+ <span class="text-xs text-ink/50 mt-4 pt-3 border-t border-ink/10 block">
20
26
  {figure.provenance.sourceRef}
21
27
  {figure.provenance.observedAt && ` (${figure.provenance.observedAt})`}
22
28
  </span>
@@ -0,0 +1,69 @@
1
+ ---
2
+ // Shared heading treatment for every sectionKind -- eyebrow, heading (with
3
+ // an icon or accent rule beside it), and subheading. Was previously
4
+ // duplicated near-verbatim across Hero/Problem/Approach/Proof/Open/
5
+ // Audiences/Status/Sources/Cta.astro, each with slight drift (Cta.astro
6
+ // silently never rendered section.eyebrow at all -- a real gap, since
7
+ // eyebrow is a top-level section field per page.schema.json, not
8
+ // sectionKind-specific). One component now owns this so every section kind
9
+ // gets the same visual language and no consumer can quietly skip a field
10
+ // the schema already allows.
11
+ //
12
+ // The icon-or-rule choice is deliberate, not decorative: a section with a
13
+ // real, content-matched icon (see Icon.astro's own comment on choosing
14
+ // icons that name what the text says, not what looks nice) shows that
15
+ // icon as its accent; a section with no icon still gets a colored rule in
16
+ // the same accent color, so the visual anchor beside every heading is
17
+ // never absent -- this is what ties body copy back to the hero's own
18
+ // accent-rule-beside-heading motif (index.astro, Hero.astro's h1).
19
+ import Icon from './Icon.astro';
20
+
21
+ export interface Props {
22
+ eyebrow?: string;
23
+ heading?: string;
24
+ subheading?: string;
25
+ icon?: string;
26
+ /** h1 for a page's own hero, h2 for every other sectionKind. */
27
+ level?: 'h1' | 'h2';
28
+ /** 'muted' is Status.astro's own deliberately quiet stage-statement tone. */
29
+ tone?: 'default' | 'muted';
30
+ /** Cta.astro's own centered layout. */
31
+ center?: boolean;
32
+ headingClass?: string;
33
+ subheadingClass?: string;
34
+ class?: string;
35
+ }
36
+ const {
37
+ eyebrow,
38
+ heading,
39
+ subheading,
40
+ icon,
41
+ level = 'h2',
42
+ tone = 'default',
43
+ center = false,
44
+ headingClass = 'text-2xl',
45
+ subheadingClass = '',
46
+ class: rowClass = 'mb-3',
47
+ } = Astro.props;
48
+ const Heading = level;
49
+ const muted = tone === 'muted';
50
+ const eyebrowTone = muted ? 'text-ink/50' : 'text-accent-primary';
51
+ const accentTone = muted ? 'text-ink/30' : 'text-accent-primary';
52
+ const ruleTone = muted ? 'bg-ink/25' : 'bg-accent-primary';
53
+ ---
54
+ {eyebrow && (
55
+ <p class={`text-sm font-mono uppercase tracking-wide ${eyebrowTone} mb-3 ${center ? 'text-center' : ''}`}>{eyebrow}</p>
56
+ )}
57
+ {heading && (
58
+ <div class={`flex items-center gap-3 ${center ? 'justify-center' : ''} ${rowClass}`}>
59
+ {icon ? (
60
+ <Icon name={icon} class={`w-7 h-7 ${accentTone} shrink-0`} />
61
+ ) : (
62
+ <span class={`w-1 self-stretch min-h-[1.4em] ${ruleTone} rounded-full shrink-0`} aria-hidden="true" />
63
+ )}
64
+ <Heading class={`font-display font-bold ${headingClass}`}>{heading}</Heading>
65
+ </div>
66
+ )}
67
+ {subheading && (
68
+ <p class={`text-ink/80 ${center ? 'max-w-xl mx-auto text-center' : 'max-w-2xl'} ${subheadingClass} mb-4`}>{subheading}</p>
69
+ )}
@@ -9,7 +9,7 @@
9
9
  // (see that file's comment): a documented, schema-legal mechanism that
10
10
  // one section-kind component had quietly never wired up.
11
11
  import Block from '../Block.astro';
12
- import Icon from '../Icon.astro';
12
+ import SectionHeading from '../SectionHeading.astro';
13
13
  import type { SectionIcons } from '../Section.astro';
14
14
 
15
15
  export interface Props { section: any; icons?: SectionIcons }
@@ -17,9 +17,6 @@ const { section, icons } = Astro.props;
17
17
  const sectionIcon = icons?.section?.[section.sectionId];
18
18
  ---
19
19
  <section id={section.sectionId} class="py-8" data-reveal>
20
- {section.eyebrow && <p class="text-sm font-mono uppercase tracking-wide text-accent-primary mb-3">{section.eyebrow}</p>}
21
- {sectionIcon && <Icon name={sectionIcon} class="w-8 h-8 text-accent-primary mb-3" />}
22
- {section.heading && <h2 class="font-display text-2xl font-bold mb-3">{section.heading}</h2>}
23
- {section.subheading && <p class="text-ink/80 max-w-2xl mb-4">{section.subheading}</p>}
20
+ <SectionHeading eyebrow={section.eyebrow} heading={section.heading} subheading={section.subheading} icon={sectionIcon} />
24
21
  {section.blocks?.map((b: any) => <Block block={b} class="mb-3" />)}
25
22
  </section>
@@ -17,6 +17,7 @@
17
17
  // fallback strip below, so authored data is never silently dropped.
18
18
  import Block from '../Block.astro';
19
19
  import Diagram from '../Diagram.astro';
20
+ import SectionHeading from '../SectionHeading.astro';
20
21
  import ToolCalculator from '../ToolCalculator.astro';
21
22
 
22
23
  export interface Props {
@@ -35,9 +36,15 @@ const referencedDiagramIds = new Set((section.blocks ?? []).filter((b: any) => b
35
36
  const unreferencedDiagrams = (section.diagrams ?? []).filter((d: any) => !referencedDiagramIds.has(d.diagramId));
36
37
  ---
37
38
  <section id={section.sectionId} class="py-8" data-reveal>
38
- {section.eyebrow && <p class="text-sm font-mono uppercase tracking-wide text-accent-primary mb-3">{section.eyebrow}</p>}
39
- {section.heading && <h1 class="font-display text-3xl sm:text-4xl font-bold mb-3 max-w-2xl">{section.heading}</h1>}
40
- {section.subheading && <p class="text-lg text-ink/80 max-w-2xl mb-6">{section.subheading}</p>}
39
+ <SectionHeading
40
+ level="h1"
41
+ eyebrow={section.eyebrow}
42
+ heading={section.heading}
43
+ subheading={section.subheading}
44
+ headingClass="text-3xl sm:text-4xl"
45
+ subheadingClass="text-lg"
46
+ class="mb-3 max-w-2xl"
47
+ />
41
48
  <div class="max-w-2xl space-y-5">
42
49
  {section.blocks?.map((b: any) => <Block block={b} diagrams={section.diagrams} />)}
43
50
  </div>
@@ -6,14 +6,15 @@
6
6
  import Block from '../Block.astro';
7
7
  import CtaLink from '../CtaLink.astro';
8
8
  import Icon from '../Icon.astro';
9
+ import SectionHeading from '../SectionHeading.astro';
9
10
  import type { SectionIcons } from '../Section.astro';
10
11
 
11
12
  export interface Props { section: any; icons?: SectionIcons }
12
13
  const { section, icons } = Astro.props;
14
+ const sectionIcon = icons?.section?.[section.sectionId];
13
15
  ---
14
16
  <section id={section.sectionId} class="py-8" data-reveal>
15
- {section.eyebrow && <p class="text-sm font-mono uppercase tracking-wide text-accent-primary mb-3">{section.eyebrow}</p>}
16
- {section.heading && <h2 class="font-display text-2xl font-bold mb-4">{section.heading}</h2>}
17
+ <SectionHeading eyebrow={section.eyebrow} heading={section.heading} icon={sectionIcon} class="mb-4" />
17
18
  <div class="grid gap-4 sm:grid-cols-2">
18
19
  {section.blocks?.map((b: any) => (
19
20
  <div class="rounded-md border border-ink/15 p-4">
@@ -10,6 +10,7 @@
10
10
  import Block from '../Block.astro';
11
11
  import CtaLink from '../CtaLink.astro';
12
12
  import LeadCaptureForm from '../LeadCaptureForm.astro';
13
+ import SectionHeading from '../SectionHeading.astro';
13
14
 
14
15
  export interface Props {
15
16
  section: any;
@@ -19,8 +20,7 @@ export interface Props {
19
20
  const { section, leadCapture, companyLabel } = Astro.props;
20
21
  ---
21
22
  <section id={section.sectionId} class="py-12 text-center border-t border-ink/10" data-reveal>
22
- {section.heading && <h2 class="font-display text-2xl font-bold mb-3">{section.heading}</h2>}
23
- {section.subheading && <p class="text-ink/80 max-w-xl mx-auto mb-6">{section.subheading}</p>}
23
+ <SectionHeading eyebrow={section.eyebrow} heading={section.heading} subheading={section.subheading} center class="mb-3" />
24
24
  {section.blocks?.map((b: any) => <Block block={b} class="mb-4 max-w-xl mx-auto text-left" />)}
25
25
  {leadCapture ? (
26
26
  <div class="text-left max-w-md mx-auto">
@@ -1,14 +1,21 @@
1
1
  ---
2
2
  import Block from '../Block.astro';
3
3
  import CtaLink from '../CtaLink.astro';
4
+ import SectionHeading from '../SectionHeading.astro';
4
5
 
5
6
  export interface Props { section: any }
6
7
  const { section } = Astro.props;
7
8
  ---
8
9
  <section id={section.sectionId} class="py-8" data-reveal>
9
- {section.eyebrow && <p class="text-sm font-mono uppercase tracking-wide text-accent-primary mb-3">{section.eyebrow}</p>}
10
- {section.heading && <h1 class="font-display text-4xl sm:text-5xl font-semibold leading-tight mb-4">{section.heading}</h1>}
11
- {section.subheading && <p class="text-lg text-ink/80 max-w-2xl mb-6">{section.subheading}</p>}
10
+ <SectionHeading
11
+ level="h1"
12
+ eyebrow={section.eyebrow}
13
+ heading={section.heading}
14
+ subheading={section.subheading}
15
+ headingClass="text-4xl sm:text-5xl leading-tight"
16
+ subheadingClass="text-lg"
17
+ class="mb-4"
18
+ />
12
19
  {section.blocks?.map((b: any) => <Block block={b} class="mb-3" />)}
13
20
  {section.ctas?.length > 0 && (
14
21
  <div class="mt-6 flex gap-4 flex-wrap">
@@ -3,7 +3,7 @@
3
3
  // (the schema-legal way a section names a sibling brand) render once,
4
4
  // generically, for every sectionKind -- see Section.astro.
5
5
  import Block from '../Block.astro';
6
- import Icon from '../Icon.astro';
6
+ import SectionHeading from '../SectionHeading.astro';
7
7
  import type { SectionIcons } from '../Section.astro';
8
8
 
9
9
  export interface Props { section: any; icons?: SectionIcons }
@@ -11,9 +11,6 @@ const { section, icons } = Astro.props;
11
11
  const sectionIcon = icons?.section?.[section.sectionId];
12
12
  ---
13
13
  <section id={section.sectionId} class="py-8" data-reveal>
14
- {section.eyebrow && <p class="text-sm font-mono uppercase tracking-wide text-accent-primary mb-3">{section.eyebrow}</p>}
15
- {sectionIcon && <Icon name={sectionIcon} class="w-8 h-8 text-accent-primary mb-3" />}
16
- {section.heading && <h2 class="font-display text-2xl font-bold mb-3">{section.heading}</h2>}
17
- {section.subheading && <p class="text-ink/80 max-w-2xl mb-4">{section.subheading}</p>}
14
+ <SectionHeading eyebrow={section.eyebrow} heading={section.heading} subheading={section.subheading} icon={sectionIcon} />
18
15
  {section.blocks?.map((b: any) => <Block block={b} class="mb-3" />)}
19
16
  </section>
@@ -6,7 +6,7 @@
6
6
  // commit -- Proof.astro/Open.astro already read icons?.section?.[sectionId],
7
7
  // this component's Props never declared the prop at all.
8
8
  import Block from '../Block.astro';
9
- import Icon from '../Icon.astro';
9
+ import SectionHeading from '../SectionHeading.astro';
10
10
  import type { SectionIcons } from '../Section.astro';
11
11
 
12
12
  export interface Props { section: any; icons?: SectionIcons }
@@ -14,9 +14,6 @@ const { section, icons } = Astro.props;
14
14
  const sectionIcon = icons?.section?.[section.sectionId];
15
15
  ---
16
16
  <section id={section.sectionId} class="py-8" data-reveal>
17
- {section.eyebrow && <p class="text-sm font-mono uppercase tracking-wide text-accent-primary mb-3">{section.eyebrow}</p>}
18
- {sectionIcon && <Icon name={sectionIcon} class="w-8 h-8 text-accent-primary mb-3" />}
19
- {section.heading && <h2 class="font-display text-2xl font-bold mb-3">{section.heading}</h2>}
20
- {section.subheading && <p class="text-ink/80 max-w-2xl mb-4">{section.subheading}</p>}
17
+ <SectionHeading eyebrow={section.eyebrow} heading={section.heading} subheading={section.subheading} icon={sectionIcon} />
21
18
  {section.blocks?.map((b: any) => <Block block={b} class="mb-3" />)}
22
19
  </section>
@@ -6,26 +6,43 @@
6
6
  // are cited, provenance.public numbers, never customer-use statements.
7
7
  import Block from '../Block.astro';
8
8
  import Figure from '../Figure.astro';
9
- import Icon from '../Icon.astro';
9
+ import SectionHeading from '../SectionHeading.astro';
10
10
  import type { SectionIcons } from '../Section.astro';
11
11
 
12
12
  export interface Props { section: any; icons?: SectionIcons }
13
13
  const { section, icons } = Astro.props;
14
14
  const sectionIcon = icons?.section?.[section.sectionId];
15
+
16
+ // Bio blocks (e.g. a Founders/Team proof section) read as an enterprise
17
+ // team grid -- side by side on desktop -- rather than stacked paragraphs.
18
+ // Contiguous runs of blockType:"bio" group into one grid; every other
19
+ // blockType renders individually, unchanged.
20
+ const blockRuns: { kind: 'bio' | 'other'; blocks: any[] }[] = [];
21
+ for (const b of section.blocks ?? []) {
22
+ const kind = b.blockType === 'bio' ? 'bio' : 'other';
23
+ const last = blockRuns[blockRuns.length - 1];
24
+ if (last && last.kind === kind) last.blocks.push(b);
25
+ else blockRuns.push({ kind, blocks: [b] });
26
+ }
15
27
  ---
16
28
  <section id={section.sectionId} class="py-8" data-reveal>
17
- {section.eyebrow && <p class="text-sm font-mono uppercase tracking-wide text-accent-primary mb-3">{section.eyebrow}</p>}
18
- {sectionIcon && <Icon name={sectionIcon} class="w-8 h-8 text-accent-primary mb-3" />}
19
- {section.heading && <h2 class="font-display text-2xl font-bold mb-3">{section.heading}</h2>}
20
- {section.subheading && <p class="text-ink/80 max-w-2xl mb-4">{section.subheading}</p>}
21
- {section.blocks?.map((b: any) => <Block block={b} class="mb-3" />)}
29
+ <SectionHeading eyebrow={section.eyebrow} heading={section.heading} subheading={section.subheading} icon={sectionIcon} />
30
+ {blockRuns.map((run) =>
31
+ run.kind === 'bio' ? (
32
+ <div class="grid gap-4 sm:grid-cols-2 mb-3">
33
+ {run.blocks.map((b) => <Block block={b} />)}
34
+ </div>
35
+ ) : (
36
+ run.blocks.map((b) => <Block block={b} class="mb-3" />)
37
+ )
38
+ )}
22
39
  {section.claims?.length > 0 && (
23
40
  <ul class="space-y-2 mb-6">
24
41
  {section.claims.map((c: any) => <li class="leading-relaxed">{c.text}</li>)}
25
42
  </ul>
26
43
  )}
27
44
  {section.figures?.length > 0 && (
28
- <div class="grid grid-cols-2 sm:grid-cols-3 gap-6 mt-4">
45
+ <div class="grid gap-4 sm:grid-cols-2 lg:grid-cols-3 mt-4">
29
46
  {section.figures.map((f: any) => <Figure figure={f} />)}
30
47
  </div>
31
48
  )}
@@ -1,11 +1,13 @@
1
1
  ---
2
2
  // sectionKind: sources -- citations for every figure used on the page,
3
3
  // each figure's provenance.sourceRef rendered as a full citation.
4
+ import SectionHeading from '../SectionHeading.astro';
5
+
4
6
  export interface Props { section: any }
5
7
  const { section } = Astro.props;
6
8
  ---
7
9
  <section id={section.sectionId} class="py-8 border-t border-ink/10" data-reveal>
8
- {section.heading && <h2 class="font-display text-xl font-bold mb-4">{section.heading}</h2>}
10
+ <SectionHeading eyebrow={section.eyebrow} heading={section.heading} headingClass="text-xl" class="mb-4" />
9
11
  <ol class="space-y-2 text-sm text-ink/70">
10
12
  {section.figures?.map((f: any) => (
11
13
  <li>
@@ -4,12 +4,12 @@
4
4
  // one status section per page, no hedges ("designed to"/"intended to")
5
5
  // permitted here -- state the stage once, plainly.
6
6
  import Block from '../Block.astro';
7
+ import SectionHeading from '../SectionHeading.astro';
7
8
 
8
9
  export interface Props { section: any }
9
10
  const { section } = Astro.props;
10
11
  ---
11
12
  <section id={section.sectionId} class="py-8 border-t border-ink/10" data-reveal>
12
- {section.eyebrow && <p class="text-sm font-mono uppercase tracking-wide text-ink/50 mb-2">{section.eyebrow}</p>}
13
- {section.heading && <h2 class="font-display text-xl font-bold mb-2">{section.heading}</h2>}
13
+ <SectionHeading eyebrow={section.eyebrow} heading={section.heading} tone="muted" headingClass="text-xl" class="mb-2" />
14
14
  {section.blocks?.map((b: any) => <Block block={b} class="text-ink/80" />)}
15
15
  </section>
@@ -3,7 +3,7 @@ import Ajv from 'ajv';
3
3
  import addFormats from 'ajv-formats';
4
4
  import { fetchSchema, fetchSupportSchema } from './schemaFetch.js';
5
5
 
6
- const PAGE_PIN = '1.3.0';
6
+ const PAGE_PIN = '1.4.0';
7
7
  const CAPABILITY_CLAIM_PIN = '0.2.0';
8
8
 
9
9
  let validatorPromise: ReturnType<typeof buildValidator> | null = null;