@atelic-action/ui 3.11.0 → 3.12.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/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.11.0",
3
+ "version": "3.12.1",
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",
@@ -104,15 +104,22 @@ export function SiteMenu({
104
104
  function ContactBlock({ contact: { phone, email, address } }: { contact: MenuContact }) {
105
105
  return (
106
106
  <div className="mm-contact">
107
+ {/* The number and the address are the two things a phone can act on, so
108
+ each is a real link: a tel link dials, a mailto opens mail. Protocol
109
+ links never open a new tab (rule 12). Plain text here read as friction. */}
107
110
  {phone && (
108
111
  <>
109
- CALL / TEXT&nbsp;&nbsp;{phone.display}
112
+ <a className="mm-contact-link" href={`tel:${phone.e164}`}>
113
+ CALL / TEXT&nbsp;&nbsp;{phone.display}
114
+ </a>
110
115
  <br />
111
116
  </>
112
117
  )}
113
118
  {email && (
114
119
  <>
115
- {email}
120
+ <a className="mm-contact-link" href={`mailto:${email}`}>
121
+ {email}
122
+ </a>
116
123
  <br />
117
124
  </>
118
125
  )}
@@ -4,10 +4,13 @@ export interface SplitSectionProps {
4
4
  left: ReactNode;
5
5
  right: ReactNode;
6
6
  /**
7
- * Column proportions: "even" (1/1), or "narrow-first" (0.9/1.1,
8
- * the media-plus-copy pattern).
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";
@@ -321,6 +321,12 @@
321
321
  letter-spacing: 0.04em;
322
322
  line-height: 1.9;
323
323
  }
324
+ /* The phone and email lines are links that read as the block's own text:
325
+ no colour change, no underline, the tap is the affordance. */
326
+ .atelic-ui .mobile-menu .mm-contact-link {
327
+ color: inherit;
328
+ text-decoration: none;
329
+ }
324
330
 
325
331
  /* ---- Sticky CTA bar (phones only) ---- */
326
332
  .atelic-ui .sticky-cta {
@@ -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
  }