@atelic-action/ui 3.11.0 → 3.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/README.md +1 -1
- package/package.json +1 -1
- package/src/sections/SplitSection.tsx +6 -3
- package/src/styles/sections.css +13 -0
package/README.md
CHANGED
|
@@ -481,7 +481,7 @@ export function SiteShell(props: Omit<SiteShellProps, "currentPath" | "basePath"
|
|
|
481
481
|
| `Hero` | The home page opener: a full bleed image (or the token gradient), a headline with a serif accent, a pair of actions, trust figures, and a scroll cue |
|
|
482
482
|
| `PageHero` | The interior page opener on the alternate band; children sit under the lead |
|
|
483
483
|
| `LogoMarquee` | A dark band of chips scrolling without end: credentials, clients, or press |
|
|
484
|
-
| `SplitSection` | The two column band: copy beside copy, or media beside copy |
|
|
484
|
+
| `SplitSection` | The two column band: copy beside copy, or media beside copy. `ratio` is `even`, `narrow-first`, or `media`, a fixed 420px shot column and the gap a card row uses, so a photo beside copy lines up with a case study entry above it; `even` and `narrow-first` stack below 920px, `media` below 761px |
|
|
485
485
|
| `PricingBand` | A brand colored band with the price in a card beside it, informational by design |
|
|
486
486
|
| `MediaBand` | A plain full bleed image band, cropped from the center |
|
|
487
487
|
| `CTABanner` | A mid page banner behind a directional wash, with the token gradient before any photography |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atelic-action/ui",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.12.0",
|
|
4
4
|
"description": "Shared UI for the Atelic templates: site chrome, base styles, the component library, the access gate, and the app shell they install",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -4,10 +4,13 @@ export interface SplitSectionProps {
|
|
|
4
4
|
left: ReactNode;
|
|
5
5
|
right: ReactNode;
|
|
6
6
|
/**
|
|
7
|
-
* Column proportions
|
|
8
|
-
*
|
|
7
|
+
* Column proportions from 920px up (`media` from 761px, where a card row splits); below that every ratio stacks.
|
|
8
|
+
* "even" (1/1); "narrow-first" (0.9/1.1, a looser media plus copy);
|
|
9
|
+
* or "media", a fixed 420px media column and the gap a card row uses,
|
|
10
|
+
* so a photo beside copy lines up with a case study entry above it,
|
|
11
|
+
* with an `ImageFrame` in it held to the column's left edge.
|
|
9
12
|
*/
|
|
10
|
-
ratio?: "even" | "narrow-first";
|
|
13
|
+
ratio?: "even" | "narrow-first" | "media";
|
|
11
14
|
align?: "start" | "center";
|
|
12
15
|
/** Section background band. */
|
|
13
16
|
surface?: "default" | "alt";
|
package/src/styles/sections.css
CHANGED
|
@@ -2632,6 +2632,19 @@
|
|
|
2632
2632
|
gap: 72px;
|
|
2633
2633
|
}
|
|
2634
2634
|
}
|
|
2635
|
+
/* Two columns from 761px, where a card row does, so the photo lines up. */
|
|
2636
|
+
@media (min-width: 761px) {
|
|
2637
|
+
/* The media column and the gap a card row uses. */
|
|
2638
|
+
.atelic-ui .split.ratio-media {
|
|
2639
|
+
grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
|
|
2640
|
+
gap: clamp(24px, 4vw, 44px);
|
|
2641
|
+
}
|
|
2642
|
+
/* The frame hugs the media column's left edge rather than centering;
|
|
2643
|
+
stacked, it keeps the primitive's centering. */
|
|
2644
|
+
.atelic-ui .split.ratio-media .imgframe {
|
|
2645
|
+
margin-inline: 0;
|
|
2646
|
+
}
|
|
2647
|
+
}
|
|
2635
2648
|
.atelic-ui .split.align-start {
|
|
2636
2649
|
align-items: start;
|
|
2637
2650
|
}
|