@netlify/spark-ui 1.14.6 → 1.15.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,7 +1,7 @@
1
1
  {
2
2
  "name": "@netlify/spark-ui",
3
3
  "description": "Assets, design tokens, components, and utilities",
4
- "version": "1.14.6",
4
+ "version": "1.15.0",
5
5
  "type": "module",
6
6
  "main": "dist/components/preact/index.js",
7
7
  "types": "dist/components/preact/index.d.ts",
@@ -0,0 +1,32 @@
1
+ ---
2
+ import HeadingBlock from './HeadingBlock.astro';
3
+ import PageSection from './PageSection.astro';
4
+
5
+ const { class: className, heading, text, ctas, ...rest } = Astro.props;
6
+ ---
7
+
8
+ <PageSection class:list={['n-page-hero-graphic', className]} {...rest}>
9
+ <div class="n-page-hero-graphic-container n-flex-grid">
10
+ <HeadingBlock heading={heading} headingLevel="1" text={text} alignment="start" ctas={ctas} />
11
+ <slot name="graphic" />
12
+ </div>
13
+ <slot />
14
+ </PageSection>
15
+
16
+ <style>
17
+ .n-page-hero {
18
+ --n-page-section-space: var(--space-4xl);
19
+ --n-page-section-bg-color: var(
20
+ --n-page-section-bg,
21
+ linear-gradient(to bottom, var(--color-bg) 50%, var(--teal-800))
22
+ );
23
+ --n-heading-block-heading-font-size: var(--font-size-display-3xl);
24
+ --n-heading-block-text-font-size: var(--font-size-text-xl);
25
+ }
26
+
27
+ .n-page-hero-graphic-container {
28
+ --n-grid-column-min-size: var(--n--column-min-size, min(400px, 100%));
29
+ align-items: var(--n-hero-align, center);
30
+ grid-column-gap: var(--n-hero-column-gap, var(--space-l));
31
+ }
32
+ </style>