@luhtech/site-template 0.9.0 → 0.9.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.9.
|
|
3
|
+
"version": "0.9.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",
|
|
@@ -1,12 +1,24 @@
|
|
|
1
1
|
---
|
|
2
2
|
// sectionKind: approach -- how it works.
|
|
3
|
+
//
|
|
4
|
+
// icons.section support (2026-09-11): Proof.astro and Open.astro already
|
|
5
|
+
// read icons?.section?.[sectionId] (SectionIcons' own doc comment,
|
|
6
|
+
// Section.astro) -- Approach.astro's Props never even declared the prop,
|
|
7
|
+
// so any consumer passing one for an approach-kind section got nothing,
|
|
8
|
+
// silently. Same fix shape as Section.astro's own crossLinks[] fix
|
|
9
|
+
// (see that file's comment): a documented, schema-legal mechanism that
|
|
10
|
+
// one section-kind component had quietly never wired up.
|
|
3
11
|
import Block from '../Block.astro';
|
|
12
|
+
import Icon from '../Icon.astro';
|
|
13
|
+
import type { SectionIcons } from '../Section.astro';
|
|
4
14
|
|
|
5
|
-
export interface Props { section: any }
|
|
6
|
-
const { section } = Astro.props;
|
|
15
|
+
export interface Props { section: any; icons?: SectionIcons }
|
|
16
|
+
const { section, icons } = Astro.props;
|
|
17
|
+
const sectionIcon = icons?.section?.[section.sectionId];
|
|
7
18
|
---
|
|
8
19
|
<section id={section.sectionId} class="py-8" data-reveal>
|
|
9
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" />}
|
|
10
22
|
{section.heading && <h2 class="font-display text-2xl font-bold mb-3">{section.heading}</h2>}
|
|
11
23
|
{section.subheading && <p class="text-ink/80 max-w-2xl mb-4">{section.subheading}</p>}
|
|
12
24
|
{section.blocks?.map((b: any) => <Block block={b} class="mb-3" />)}
|
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
---
|
|
2
2
|
// sectionKind: problem -- the system-level framing, never worker-blame
|
|
3
3
|
// (per the schema's own description of this sectionKind).
|
|
4
|
+
//
|
|
5
|
+
// icons.section support (2026-09-11): same fix as Approach.astro's own
|
|
6
|
+
// commit -- Proof.astro/Open.astro already read icons?.section?.[sectionId],
|
|
7
|
+
// this component's Props never declared the prop at all.
|
|
4
8
|
import Block from '../Block.astro';
|
|
9
|
+
import Icon from '../Icon.astro';
|
|
10
|
+
import type { SectionIcons } from '../Section.astro';
|
|
5
11
|
|
|
6
|
-
export interface Props { section: any }
|
|
7
|
-
const { section } = Astro.props;
|
|
12
|
+
export interface Props { section: any; icons?: SectionIcons }
|
|
13
|
+
const { section, icons } = Astro.props;
|
|
14
|
+
const sectionIcon = icons?.section?.[section.sectionId];
|
|
8
15
|
---
|
|
9
16
|
<section id={section.sectionId} class="py-8" data-reveal>
|
|
10
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" />}
|
|
11
19
|
{section.heading && <h2 class="font-display text-2xl font-bold mb-3">{section.heading}</h2>}
|
|
12
20
|
{section.subheading && <p class="text-ink/80 max-w-2xl mb-4">{section.subheading}</p>}
|
|
13
21
|
{section.blocks?.map((b: any) => <Block block={b} class="mb-3" />)}
|