@luhtech/site-template 0.3.1 → 0.3.2
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.3.
|
|
3
|
+
"version": "0.3.2",
|
|
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",
|
|
@@ -24,8 +24,6 @@
|
|
|
24
24
|
// Hero.astro for a page that wants the trigger-flow treatment, not a
|
|
25
25
|
// different binding rule. A consumer still calls applyBrandDefaults()
|
|
26
26
|
// and reads heading/lede off the result the same way.
|
|
27
|
-
import CtaLink from './CtaLink.astro';
|
|
28
|
-
|
|
29
27
|
export interface Props {
|
|
30
28
|
photoSrc: string;
|
|
31
29
|
photoAlt: string;
|
|
@@ -63,7 +61,7 @@ const {
|
|
|
63
61
|
|
|
64
62
|
const rowPositions = [4, 24, 40, 62, 80, 96];
|
|
65
63
|
---
|
|
66
|
-
<section class="relative w-
|
|
64
|
+
<section class="relative w-screen left-1/2 -translate-x-1/2 h-[85vh] min-h-[520px] overflow-hidden hero-motion" id="hero">
|
|
67
65
|
<img src={photoSrc} alt={photoAlt} width="1376" height="768" class="absolute inset-0 w-full h-full object-cover" />
|
|
68
66
|
<div class="absolute inset-0 hero-gradient"></div>
|
|
69
67
|
{dataLines.length > 0 && (
|
|
@@ -81,8 +79,17 @@ const rowPositions = [4, 24, 40, 62, 80, 96];
|
|
|
81
79
|
</div>
|
|
82
80
|
<p class="mt-5 text-lg text-canvas/85 max-w-2xl">{lede}</p>
|
|
83
81
|
{ctas.length > 0 && (
|
|
84
|
-
<div class="mt-8 flex gap-4">
|
|
85
|
-
{ctas.map((cta, i) =>
|
|
82
|
+
<div class="mt-8 flex gap-4 flex-wrap">
|
|
83
|
+
{ctas.map((cta, i) => (
|
|
84
|
+
<a
|
|
85
|
+
href={cta.href}
|
|
86
|
+
class={i === 0
|
|
87
|
+
? 'px-5 py-2.5 rounded-md bg-accent-secondary text-ink font-medium transition-all duration-200 hover:opacity-90 hover:shadow-lg hover:-translate-y-0.5 focus-visible:outline focus-visible:outline-2 focus-visible:outline-accent-secondary focus-visible:rounded'
|
|
88
|
+
: 'px-5 py-2.5 rounded-md border border-canvas/40 text-canvas font-medium transition-all duration-200 hover:border-canvas/70 hover:-translate-y-0.5 focus-visible:outline focus-visible:outline-2 focus-visible:outline-accent-secondary focus-visible:rounded'}
|
|
89
|
+
>
|
|
90
|
+
{cta.label}
|
|
91
|
+
</a>
|
|
92
|
+
))}
|
|
86
93
|
</div>
|
|
87
94
|
)}
|
|
88
95
|
</div>
|