@tempoxyz/ds 0.3.19 → 0.3.20
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/dist/arsenal/icons/Icon.d.ts +57 -0
- package/dist/arsenal/icons/Icon.d.ts.map +1 -0
- package/dist/arsenal/icons/Icon.js +117 -0
- package/dist/arsenal/icons/Icon.js.map +1 -0
- package/dist/arsenal/icons/glyphs.d.ts +5238 -0
- package/dist/arsenal/icons/glyphs.d.ts.map +1 -0
- package/dist/arsenal/icons/glyphs.js +2888 -0
- package/dist/arsenal/icons/glyphs.js.map +1 -0
- package/dist/arsenal/icons/index.d.ts +4 -0
- package/dist/arsenal/icons/index.d.ts.map +1 -0
- package/dist/arsenal/icons/index.js +4 -0
- package/dist/arsenal/icons/index.js.map +1 -0
- package/dist/docs/AGENTS.md +2 -2
- package/dist/docs/arsenal.md +4555 -0
- package/dist/docs/marketing.md +7082 -480
- package/dist/document/templates/brief.html +3 -3
- package/dist/document/templates/essay.html +3 -3
- package/dist/document/templates/post.html +3 -3
- package/dist/marketing/components/ArticleBody.css +1 -0
- package/dist/marketing/components/ArticleBody.d.ts +1013 -0
- package/dist/marketing/components/ArticleBody.d.ts.map +1 -0
- package/dist/marketing/components/ArticleBody.js +120 -0
- package/dist/marketing/components/ArticleBody.js.map +1 -0
- package/dist/marketing/components/ArticleBody.js.zyzz.json +1 -0
- package/dist/marketing/components/ArticleHero.css +1 -0
- package/dist/marketing/components/ArticleHero.d.ts +168 -0
- package/dist/marketing/components/ArticleHero.d.ts.map +1 -0
- package/dist/marketing/components/ArticleHero.js +74 -0
- package/dist/marketing/components/ArticleHero.js.map +1 -0
- package/dist/marketing/components/ArticleHero.js.zyzz.json +1 -0
- package/dist/marketing/components/ArticleIndex.css +1 -0
- package/dist/marketing/components/ArticleIndex.d.ts +164 -0
- package/dist/marketing/components/ArticleIndex.d.ts.map +1 -0
- package/dist/marketing/components/ArticleIndex.js +100 -0
- package/dist/marketing/components/ArticleIndex.js.map +1 -0
- package/dist/marketing/components/ArticleIndex.js.zyzz.json +1 -0
- package/dist/marketing/components/ArticleRail.css +1 -0
- package/dist/marketing/components/ArticleRail.d.ts +105 -0
- package/dist/marketing/components/ArticleRail.d.ts.map +1 -0
- package/dist/marketing/components/ArticleRail.js +96 -0
- package/dist/marketing/components/ArticleRail.js.map +1 -0
- package/dist/marketing/components/ArticleRail.js.zyzz.json +1 -0
- package/dist/marketing/components/AsideLayout.css +1 -0
- package/dist/marketing/components/AsideLayout.d.ts +39 -0
- package/dist/marketing/components/AsideLayout.d.ts.map +1 -0
- package/dist/marketing/components/AsideLayout.js +24 -0
- package/dist/marketing/components/AsideLayout.js.map +1 -0
- package/dist/marketing/components/AsideLayout.js.zyzz.json +1 -0
- package/dist/marketing/components/Breadcrumbs.css +1 -0
- package/dist/marketing/components/Breadcrumbs.d.ts +132 -0
- package/dist/marketing/components/Breadcrumbs.d.ts.map +1 -0
- package/dist/marketing/components/Breadcrumbs.js +75 -0
- package/dist/marketing/components/Breadcrumbs.js.map +1 -0
- package/dist/marketing/components/Breadcrumbs.js.zyzz.json +1 -0
- package/dist/marketing/components/Button.css +1 -0
- package/dist/marketing/components/Button.d.ts +421 -0
- package/dist/marketing/components/Button.d.ts.map +1 -0
- package/dist/marketing/components/Button.js +87 -0
- package/dist/marketing/components/Button.js.map +1 -0
- package/dist/marketing/components/Button.js.zyzz.json +1 -0
- package/dist/marketing/components/Card.css +1 -0
- package/dist/marketing/components/Card.d.ts +563 -0
- package/dist/marketing/components/Card.d.ts.map +1 -0
- package/dist/marketing/components/Card.js +171 -0
- package/dist/marketing/components/Card.js.map +1 -0
- package/dist/marketing/components/Card.js.zyzz.json +1 -0
- package/dist/marketing/components/Contact.css +1 -0
- package/dist/marketing/components/Contact.d.ts +51 -0
- package/dist/marketing/components/Contact.d.ts.map +1 -0
- package/dist/marketing/components/Contact.js +44 -0
- package/dist/marketing/components/Contact.js.map +1 -0
- package/dist/marketing/components/Contact.js.zyzz.json +1 -0
- package/dist/marketing/components/Cta.css +1 -0
- package/dist/marketing/components/Cta.d.ts +138 -0
- package/dist/marketing/components/Cta.d.ts.map +1 -0
- package/dist/marketing/components/Cta.js +71 -0
- package/dist/marketing/components/Cta.js.map +1 -0
- package/dist/marketing/components/Cta.js.zyzz.json +1 -0
- package/dist/marketing/components/CustomerStoryFeature.css +1 -0
- package/dist/marketing/components/CustomerStoryFeature.d.ts +48 -0
- package/dist/marketing/components/CustomerStoryFeature.d.ts.map +1 -0
- package/dist/marketing/components/CustomerStoryFeature.js +58 -0
- package/dist/marketing/components/CustomerStoryFeature.js.map +1 -0
- package/dist/marketing/components/CustomerStoryFeature.js.zyzz.json +1 -0
- package/dist/marketing/components/Faq.css +1 -0
- package/dist/marketing/components/Faq.d.ts +99 -0
- package/dist/marketing/components/Faq.d.ts.map +1 -0
- package/dist/marketing/components/Faq.js +83 -0
- package/dist/marketing/components/Faq.js.map +1 -0
- package/dist/marketing/components/Faq.js.zyzz.json +1 -0
- package/dist/marketing/components/FeatureAccordion.css +1 -0
- package/dist/marketing/components/FeatureAccordion.d.ts +230 -0
- package/dist/marketing/components/FeatureAccordion.d.ts.map +1 -0
- package/dist/marketing/components/FeatureAccordion.js +117 -0
- package/dist/marketing/components/FeatureAccordion.js.map +1 -0
- package/dist/marketing/components/FeatureAccordion.js.zyzz.json +1 -0
- package/dist/marketing/components/Footer.css +1 -0
- package/dist/marketing/components/Footer.d.ts +178 -0
- package/dist/marketing/components/Footer.d.ts.map +1 -0
- package/dist/marketing/components/Footer.js +109 -0
- package/dist/marketing/components/Footer.js.map +1 -0
- package/dist/marketing/components/Footer.js.zyzz.json +1 -0
- package/dist/marketing/components/Hero.css +1 -0
- package/dist/marketing/components/Hero.d.ts +200 -0
- package/dist/marketing/components/Hero.d.ts.map +1 -0
- package/dist/marketing/components/Hero.js +67 -0
- package/dist/marketing/components/Hero.js.map +1 -0
- package/dist/marketing/components/Hero.js.zyzz.json +1 -0
- package/dist/marketing/components/LeadCapture.css +1 -0
- package/dist/marketing/components/LeadCapture.d.ts +102 -0
- package/dist/marketing/components/LeadCapture.d.ts.map +1 -0
- package/dist/marketing/components/LeadCapture.js +78 -0
- package/dist/marketing/components/LeadCapture.js.map +1 -0
- package/dist/marketing/components/LeadCapture.js.zyzz.json +1 -0
- package/dist/marketing/components/Link.css +1 -0
- package/dist/marketing/components/Link.d.ts +342 -0
- package/dist/marketing/components/Link.d.ts.map +1 -0
- package/dist/marketing/components/Link.js +152 -0
- package/dist/marketing/components/Link.js.map +1 -0
- package/dist/marketing/components/Link.js.zyzz.json +1 -0
- package/dist/marketing/components/Logo.css +1 -0
- package/dist/marketing/components/Logo.d.ts +30 -0
- package/dist/marketing/components/Logo.d.ts.map +1 -0
- package/dist/marketing/components/Logo.js +38 -0
- package/dist/marketing/components/Logo.js.map +1 -0
- package/dist/marketing/components/Logo.js.zyzz.json +1 -0
- package/dist/marketing/components/LogoWall.css +1 -0
- package/dist/marketing/components/LogoWall.d.ts +156 -0
- package/dist/marketing/components/LogoWall.d.ts.map +1 -0
- package/dist/marketing/components/LogoWall.js +41 -0
- package/dist/marketing/components/LogoWall.js.map +1 -0
- package/dist/marketing/components/LogoWall.js.zyzz.json +1 -0
- package/dist/marketing/components/Mark.css +1 -0
- package/dist/marketing/components/Mark.d.ts +30 -0
- package/dist/marketing/components/Mark.d.ts.map +1 -0
- package/dist/marketing/components/Mark.js +38 -0
- package/dist/marketing/components/Mark.js.map +1 -0
- package/dist/marketing/components/Mark.js.zyzz.json +1 -0
- package/dist/marketing/components/Media.css +1 -0
- package/dist/marketing/components/Media.d.ts +74 -0
- package/dist/marketing/components/Media.d.ts.map +1 -0
- package/dist/marketing/components/Media.js +80 -0
- package/dist/marketing/components/Media.js.map +1 -0
- package/dist/marketing/components/Media.js.zyzz.json +1 -0
- package/dist/marketing/components/Nav.css +1 -0
- package/dist/marketing/components/Nav.d.ts +303 -0
- package/dist/marketing/components/Nav.d.ts.map +1 -0
- package/dist/marketing/components/Nav.js +166 -0
- package/dist/marketing/components/Nav.js.map +1 -0
- package/dist/marketing/components/Nav.js.zyzz.json +1 -0
- package/dist/marketing/components/PartnersIndex.css +1 -0
- package/dist/marketing/components/PartnersIndex.d.ts +267 -0
- package/dist/marketing/components/PartnersIndex.d.ts.map +1 -0
- package/dist/marketing/components/PartnersIndex.js +96 -0
- package/dist/marketing/components/PartnersIndex.js.map +1 -0
- package/dist/marketing/components/PartnersIndex.js.zyzz.json +1 -0
- package/dist/marketing/components/QuoteBand.css +1 -0
- package/dist/marketing/components/QuoteBand.d.ts +128 -0
- package/dist/marketing/components/QuoteBand.d.ts.map +1 -0
- package/dist/marketing/components/QuoteBand.js +73 -0
- package/dist/marketing/components/QuoteBand.js.map +1 -0
- package/dist/marketing/components/QuoteBand.js.zyzz.json +1 -0
- package/dist/marketing/components/Section.css +1 -0
- package/dist/marketing/components/Section.d.ts +132 -0
- package/dist/marketing/components/Section.d.ts.map +1 -0
- package/dist/marketing/components/Section.js +33 -0
- package/dist/marketing/components/Section.js.map +1 -0
- package/dist/marketing/components/Section.js.zyzz.json +1 -0
- package/dist/marketing/components/SectionHeading.css +1 -0
- package/dist/marketing/components/SectionHeading.d.ts +215 -0
- package/dist/marketing/components/SectionHeading.d.ts.map +1 -0
- package/dist/marketing/components/SectionHeading.js +48 -0
- package/dist/marketing/components/SectionHeading.js.map +1 -0
- package/dist/marketing/components/SectionHeading.js.zyzz.json +1 -0
- package/dist/marketing/components/Showcase.css +1 -0
- package/dist/marketing/components/Showcase.d.ts +269 -0
- package/dist/marketing/components/Showcase.d.ts.map +1 -0
- package/dist/marketing/components/Showcase.js +67 -0
- package/dist/marketing/components/Showcase.js.map +1 -0
- package/dist/marketing/components/Showcase.js.zyzz.json +1 -0
- package/dist/marketing/components/Stats.css +1 -0
- package/dist/marketing/components/Stats.d.ts +133 -0
- package/dist/marketing/components/Stats.d.ts.map +1 -0
- package/dist/marketing/components/Stats.js +34 -0
- package/dist/marketing/components/Stats.js.map +1 -0
- package/dist/marketing/components/Stats.js.zyzz.json +1 -0
- package/dist/marketing/components/Steps.css +1 -0
- package/dist/marketing/components/Steps.d.ts +53 -0
- package/dist/marketing/components/Steps.d.ts.map +1 -0
- package/dist/marketing/components/Steps.js +78 -0
- package/dist/marketing/components/Steps.js.map +1 -0
- package/dist/marketing/components/Steps.js.zyzz.json +1 -0
- package/dist/marketing/components/SymbolTile.css +1 -0
- package/dist/marketing/components/SymbolTile.d.ts +85 -0
- package/dist/marketing/components/SymbolTile.d.ts.map +1 -0
- package/dist/marketing/components/SymbolTile.js +35 -0
- package/dist/marketing/components/SymbolTile.js.map +1 -0
- package/dist/marketing/components/SymbolTile.js.zyzz.json +1 -0
- package/dist/marketing/components/Tab.css +1 -0
- package/dist/marketing/components/Tab.d.ts +280 -0
- package/dist/marketing/components/Tab.d.ts.map +1 -0
- package/dist/marketing/components/Tab.js +43 -0
- package/dist/marketing/components/Tab.js.map +1 -0
- package/dist/marketing/components/Tab.js.zyzz.json +1 -0
- package/dist/marketing/components/Table.css +1 -0
- package/dist/marketing/components/Table.d.ts +157 -0
- package/dist/marketing/components/Table.d.ts.map +1 -0
- package/dist/marketing/components/Table.js +80 -0
- package/dist/marketing/components/Table.js.map +1 -0
- package/dist/marketing/components/Table.js.zyzz.json +1 -0
- package/dist/marketing/components/Tag.css +1 -0
- package/dist/marketing/components/Tag.d.ts +254 -0
- package/dist/marketing/components/Tag.d.ts.map +1 -0
- package/dist/marketing/components/Tag.js +59 -0
- package/dist/marketing/components/Tag.js.map +1 -0
- package/dist/marketing/components/Tag.js.zyzz.json +1 -0
- package/dist/marketing/components/internal/Links.d.ts +9 -0
- package/dist/marketing/components/internal/Links.d.ts.map +1 -0
- package/dist/marketing/components/internal/Links.js +15 -0
- package/dist/marketing/components/internal/Links.js.map +1 -0
- package/dist/marketing/icons/ArrowUpRight.d.ts +6 -0
- package/dist/marketing/icons/ArrowUpRight.d.ts.map +1 -0
- package/dist/marketing/icons/ArrowUpRight.js +5 -0
- package/dist/marketing/icons/ArrowUpRight.js.map +1 -0
- package/dist/marketing/icons/Checkmark.d.ts +6 -0
- package/dist/marketing/icons/Checkmark.d.ts.map +1 -0
- package/dist/marketing/icons/Checkmark.js +5 -0
- package/dist/marketing/icons/Checkmark.js.map +1 -0
- package/dist/marketing/icons/ChevronRight.d.ts +6 -0
- package/dist/marketing/icons/ChevronRight.d.ts.map +1 -0
- package/dist/marketing/icons/ChevronRight.js +5 -0
- package/dist/marketing/icons/ChevronRight.js.map +1 -0
- package/dist/marketing/icons/Link.d.ts +6 -0
- package/dist/marketing/icons/Link.d.ts.map +1 -0
- package/dist/marketing/icons/Link.js +5 -0
- package/dist/marketing/icons/Link.js.map +1 -0
- package/dist/marketing/icons/Play.d.ts +6 -0
- package/dist/marketing/icons/Play.d.ts.map +1 -0
- package/dist/marketing/icons/Play.js +5 -0
- package/dist/marketing/icons/Play.js.map +1 -0
- package/dist/marketing/icons/Spinner.d.ts +6 -0
- package/dist/marketing/icons/Spinner.d.ts.map +1 -0
- package/dist/marketing/icons/Spinner.js +5 -0
- package/dist/marketing/icons/Spinner.js.map +1 -0
- package/dist/marketing/icons/Xmark.d.ts +6 -0
- package/dist/marketing/icons/Xmark.d.ts.map +1 -0
- package/dist/marketing/icons/Xmark.js +5 -0
- package/dist/marketing/icons/Xmark.js.map +1 -0
- package/dist/marketing/index.d.ts +34 -1
- package/dist/marketing/index.d.ts.map +1 -1
- package/dist/marketing/index.js +34 -1
- package/dist/marketing/index.js.map +1 -1
- package/dist/marketing/index.js.zyzz.json +1 -1
- package/package.json +8 -2
- package/src/arsenal/icons/CATALOGUE.md +471 -0
- package/src/arsenal/icons/CHANGELOG.md +181 -0
- package/src/arsenal/icons/Icon.tsx +187 -0
- package/src/arsenal/icons/README.md +53 -0
- package/src/arsenal/icons/glyphs.ts +2901 -0
- package/src/arsenal/icons/index.ts +12 -0
- package/src/marketing/README.md +13 -1
- package/src/marketing/components/ArticleBody.tsx +784 -0
- package/src/marketing/components/ArticleHero.tsx +331 -0
- package/src/marketing/components/ArticleIndex.tsx +457 -0
- package/src/marketing/components/ArticleRail.tsx +384 -0
- package/src/marketing/components/AsideLayout.tsx +52 -0
- package/src/marketing/components/Breadcrumbs.tsx +197 -0
- package/src/marketing/components/Button.tsx +469 -0
- package/src/marketing/components/Card.tsx +865 -0
- package/src/marketing/components/Contact.tsx +157 -0
- package/src/marketing/components/Cta.tsx +297 -0
- package/src/marketing/components/CustomerStoryFeature.tsx +218 -0
- package/src/marketing/components/Faq.tsx +334 -0
- package/src/marketing/components/FeatureAccordion.tsx +459 -0
- package/src/marketing/components/Footer.tsx +440 -0
- package/src/marketing/components/Hero.tsx +275 -0
- package/src/marketing/components/LeadCapture.tsx +322 -0
- package/src/marketing/components/Link.tsx +508 -0
- package/src/marketing/components/Logo.tsx +71 -0
- package/src/marketing/components/LogoWall.tsx +185 -0
- package/src/marketing/components/Mark.tsx +67 -0
- package/src/marketing/components/Media.tsx +275 -0
- package/src/marketing/components/Nav.tsx +1030 -0
- package/src/marketing/components/PartnersIndex.tsx +448 -0
- package/src/marketing/components/QuoteBand.tsx +288 -0
- package/src/marketing/components/Section.tsx +110 -0
- package/src/marketing/components/SectionHeading.tsx +227 -0
- package/src/marketing/components/Showcase.tsx +301 -0
- package/src/marketing/components/Stats.tsx +130 -0
- package/src/marketing/components/Steps.tsx +215 -0
- package/src/marketing/components/SymbolTile.tsx +89 -0
- package/src/marketing/components/Tab.tsx +306 -0
- package/src/marketing/components/Table.tsx +255 -0
- package/src/marketing/components/Tag.tsx +289 -0
- package/src/marketing/components/internal/Links.ts +19 -0
- package/src/marketing/icons/ArrowUpRight.tsx +25 -0
- package/src/marketing/icons/Checkmark.tsx +25 -0
- package/src/marketing/icons/ChevronRight.tsx +25 -0
- package/src/marketing/icons/Link.tsx +25 -0
- package/src/marketing/icons/Play.tsx +25 -0
- package/src/marketing/icons/Spinner.tsx +25 -0
- package/src/marketing/icons/Xmark.tsx +25 -0
- package/src/marketing/index.ts +34 -1
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
/** Renders the Marketing contact band: the white card that closes a page on its contact form. @module */
|
|
2
|
+
import { type ComponentPropsWithRef, type ReactNode, useId } from 'react'
|
|
3
|
+
import type * as zyzz from 'zyzz'
|
|
4
|
+
import { style, variants } from '../zyzz.config.js'
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The `<section>` that closes a page on its contact form: one white card holding a title, an
|
|
8
|
+
* optional line and the form, inset on the page's columns from 1024px, with optional fine print
|
|
9
|
+
* under it. It has no states or motion, and the form keeps its own.
|
|
10
|
+
*
|
|
11
|
+
* - Pass the form as `children`. The card pads it 32px on each side, and 48px from 1024px, the
|
|
12
|
+
* same inset as the copy above it.
|
|
13
|
+
* - Keep the title to the next step, such as Build with Tempo Routes, and the line to one sentence.
|
|
14
|
+
* - The section takes its title as its name. Leave the `Section` around it unnamed.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* <Contact title="Build with Tempo Routes" description="Work with Tempo to design your payment flows.">
|
|
18
|
+
* <form action="/contact">…</form>
|
|
19
|
+
* </Contact>
|
|
20
|
+
*/
|
|
21
|
+
export function Contact(props: Contact.Props) {
|
|
22
|
+
const { children, className, description, disclaimer, title, vars, ...attributes } = props
|
|
23
|
+
|
|
24
|
+
const titleId = useId()
|
|
25
|
+
const named =
|
|
26
|
+
attributes['aria-label'] !== undefined || attributes['aria-labelledby'] !== undefined
|
|
27
|
+
|
|
28
|
+
return (
|
|
29
|
+
<section
|
|
30
|
+
aria-labelledby={named ? undefined : titleId}
|
|
31
|
+
{...attributes}
|
|
32
|
+
{...styles.root({ className, style: props.style, vars })}
|
|
33
|
+
>
|
|
34
|
+
<div {...styles.card()}>
|
|
35
|
+
<div {...styles.copy()}>
|
|
36
|
+
<h2 id={titleId} {...styles.title()}>
|
|
37
|
+
{title}
|
|
38
|
+
</h2>
|
|
39
|
+
{description !== undefined && <p {...styles.text()}>{description}</p>}
|
|
40
|
+
</div>
|
|
41
|
+
<div {...styles.body()}>{children}</div>
|
|
42
|
+
</div>
|
|
43
|
+
{disclaimer !== undefined && <p {...styles.disclaimer()}>{disclaimer}</p>}
|
|
44
|
+
</section>
|
|
45
|
+
)
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export namespace Contact {
|
|
49
|
+
export type Props = Omit<ComponentPropsWithRef<'section'>, 'title'> &
|
|
50
|
+
zyzz.Props.Variants<typeof styles.root> & {
|
|
51
|
+
/** The contact form, inset in the card below the copy. */
|
|
52
|
+
children?: ReactNode | undefined
|
|
53
|
+
/** One line under the title, in Body B2 up to 360px. */
|
|
54
|
+
description?: ReactNode | undefined
|
|
55
|
+
/** Fine print under the card, such as a lender's disclaimer, in italic Body B2. */
|
|
56
|
+
disclaimer?: ReactNode | undefined
|
|
57
|
+
/** The section's `h2`, which also names it. */
|
|
58
|
+
title: ReactNode
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
namespace styles {
|
|
63
|
+
export const body = style(
|
|
64
|
+
{ padding: '32', '@media >=1024': { padding: '48' } },
|
|
65
|
+
{ id: 'tds/marketing/contact/body' },
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
// One white card holding the copy and the form, so the two read as one: a 24px corner, 40px from
|
|
69
|
+
// 1024px, where it takes 10 of the page's 12 columns and no more than 720px, centered on them.
|
|
70
|
+
export const card = style(
|
|
71
|
+
{
|
|
72
|
+
backgroundColor: 'background.secondary',
|
|
73
|
+
borderRadius: 'md',
|
|
74
|
+
margin: '0',
|
|
75
|
+
overflow: 'clip',
|
|
76
|
+
'@media >=1024': {
|
|
77
|
+
borderRadius: 'xl',
|
|
78
|
+
gridColumn: '2 / span 10 !custom',
|
|
79
|
+
justifySelf: 'center',
|
|
80
|
+
maxWidth: '720',
|
|
81
|
+
width: '100% !custom',
|
|
82
|
+
},
|
|
83
|
+
// Forced colors drop the fill, so an edge draws the card.
|
|
84
|
+
'@media (forced-colors: active)': {
|
|
85
|
+
borderColor: 'CanvasText !custom',
|
|
86
|
+
borderStyle: 'solid',
|
|
87
|
+
borderWidth: 'regular',
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
{ id: 'tds/marketing/contact/card' },
|
|
91
|
+
)
|
|
92
|
+
|
|
93
|
+
// The title, and its line 12px under it, at the form's inset from the card's top and sides.
|
|
94
|
+
export const copy = style(
|
|
95
|
+
{
|
|
96
|
+
display: 'flex',
|
|
97
|
+
flexDirection: 'column',
|
|
98
|
+
gap: 'textPair.h4B1',
|
|
99
|
+
paddingBlockStart: '32',
|
|
100
|
+
paddingInline: '32',
|
|
101
|
+
'@media >=1024': { paddingBlockStart: '48', paddingInline: '48' },
|
|
102
|
+
},
|
|
103
|
+
{ id: 'tds/marketing/contact/copy' },
|
|
104
|
+
)
|
|
105
|
+
|
|
106
|
+
// Fine print under the card, on the card's columns and at the copy's inset.
|
|
107
|
+
export const disclaimer = style(
|
|
108
|
+
{
|
|
109
|
+
color: 'content.secondary',
|
|
110
|
+
fontStyle: 'italic !custom',
|
|
111
|
+
margin: '0',
|
|
112
|
+
marginBlockStart: '24',
|
|
113
|
+
paddingInline: '32',
|
|
114
|
+
typography: 'body.b2',
|
|
115
|
+
'@media >=1024': {
|
|
116
|
+
boxSizing: 'border-box',
|
|
117
|
+
gridColumn: '2 / span 10 !custom',
|
|
118
|
+
justifySelf: 'center',
|
|
119
|
+
maxWidth: '720',
|
|
120
|
+
paddingInline: '48',
|
|
121
|
+
width: '100% !custom',
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
{ id: 'tds/marketing/contact/disclaimer' },
|
|
125
|
+
)
|
|
126
|
+
|
|
127
|
+
// From 1024px the band takes the page's 12 columns, a gutter apart, so the card sits inset on them.
|
|
128
|
+
export const root = variants(
|
|
129
|
+
{
|
|
130
|
+
base: {
|
|
131
|
+
margin: '0',
|
|
132
|
+
'@media >=1024': {
|
|
133
|
+
columnGap: 'page.gutter',
|
|
134
|
+
display: 'grid',
|
|
135
|
+
gridTemplateColumns: 'repeat(12, minmax(0, 1fr)) !custom',
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
{ id: 'tds/marketing/contact' },
|
|
140
|
+
)
|
|
141
|
+
|
|
142
|
+
export const text = style(
|
|
143
|
+
{
|
|
144
|
+
color: 'content.secondary',
|
|
145
|
+
margin: '0',
|
|
146
|
+
maxWidth: '360',
|
|
147
|
+
textWrap: 'pretty',
|
|
148
|
+
typography: 'body.b2',
|
|
149
|
+
},
|
|
150
|
+
{ id: 'tds/marketing/contact/text' },
|
|
151
|
+
)
|
|
152
|
+
|
|
153
|
+
export const title = style(
|
|
154
|
+
{ color: 'content.primary', margin: '0', typography: 'heading.h3' },
|
|
155
|
+
{ id: 'tds/marketing/contact/title' },
|
|
156
|
+
)
|
|
157
|
+
}
|
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
/** Renders the Marketing call to action that closes a page: a white banner, or a heading over cards. @module */
|
|
2
|
+
import { type ComponentPropsWithRef, type ReactNode, useId } from 'react'
|
|
3
|
+
import type * as zyzz from 'zyzz'
|
|
4
|
+
import { style, variants } from '../zyzz.config.js'
|
|
5
|
+
import { SectionHeading } from './SectionHeading.js'
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* The `<section>` that closes a page or an article on its next step. The `banner` form is one white
|
|
9
|
+
* card: a title, a line of copy and the actions, with the copy above the actions and beside them
|
|
10
|
+
* from 1024px. The `cards` form sets a section heading over two white `Cta.Card`s, one per
|
|
11
|
+
* audience, side by side from 1024px. It has no states or motion, and its buttons keep theirs.
|
|
12
|
+
*
|
|
13
|
+
* - Use `banner` for one next step, with one or two `Button.Link`s with `layout="card"`, or a form
|
|
14
|
+
* such as a newsletter sign-up, which fills the actions up to 480px.
|
|
15
|
+
* - Use `cards` for two paths, each a `Cta.Card` with its own action.
|
|
16
|
+
* - The section takes its title as its name. Leave the `Section` around it unnamed.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* <Cta title="Build with Tempo Routes" description="Work with Tempo to design your payment flows.">
|
|
20
|
+
* <Button.Link href="/contact" layout="card">Talk with our team</Button.Link>
|
|
21
|
+
* </Cta>
|
|
22
|
+
*/
|
|
23
|
+
export function Cta(props: Cta.Props) {
|
|
24
|
+
const { children, className, description, eyebrow, form, title, vars, ...attributes } = props
|
|
25
|
+
|
|
26
|
+
const titleId = useId()
|
|
27
|
+
const named =
|
|
28
|
+
attributes['aria-label'] !== undefined || attributes['aria-labelledby'] !== undefined
|
|
29
|
+
const root = {
|
|
30
|
+
'aria-labelledby': named ? undefined : titleId,
|
|
31
|
+
...attributes,
|
|
32
|
+
...styles.root({ className, form, style: props.style, vars }),
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
if (form === 'cards')
|
|
36
|
+
return (
|
|
37
|
+
<section {...root}>
|
|
38
|
+
<SectionHeading
|
|
39
|
+
description={description}
|
|
40
|
+
eyebrow={eyebrow}
|
|
41
|
+
title={title}
|
|
42
|
+
titleId={titleId}
|
|
43
|
+
/>
|
|
44
|
+
<div {...styles.grid()}>{children}</div>
|
|
45
|
+
</section>
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
return (
|
|
49
|
+
<section {...root}>
|
|
50
|
+
<div {...styles.copy()}>
|
|
51
|
+
{eyebrow !== undefined && <p {...styles.eyebrow()}>{eyebrow}</p>}
|
|
52
|
+
<h2 id={titleId} {...styles.title()}>
|
|
53
|
+
{title}
|
|
54
|
+
</h2>
|
|
55
|
+
{description !== undefined && <p {...styles.text()}>{description}</p>}
|
|
56
|
+
</div>
|
|
57
|
+
<div {...styles.actions()}>{children}</div>
|
|
58
|
+
</section>
|
|
59
|
+
)
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export namespace Cta {
|
|
63
|
+
/**
|
|
64
|
+
* A white `<article>` for one audience in the `cards` form: an eyebrow, an `<h3>` title, a line,
|
|
65
|
+
* and one action below them, such as a `Button.Link` with `layout="card"`.
|
|
66
|
+
*/
|
|
67
|
+
export function Card(props: Card.Props) {
|
|
68
|
+
const { children, className, description, eyebrow, title, vars, ...attributes } = props
|
|
69
|
+
|
|
70
|
+
return (
|
|
71
|
+
<article {...attributes} {...styles.card({ className, style: props.style, vars })}>
|
|
72
|
+
{eyebrow !== undefined && <p {...styles.eyebrow()}>{eyebrow}</p>}
|
|
73
|
+
<div {...styles.cardCopy()}>
|
|
74
|
+
<h3 {...styles.cardTitle()}>{title}</h3>
|
|
75
|
+
{description !== undefined && <p {...styles.cardText()}>{description}</p>}
|
|
76
|
+
</div>
|
|
77
|
+
{children}
|
|
78
|
+
</article>
|
|
79
|
+
)
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export namespace Card {
|
|
83
|
+
export type Props = Omit<ComponentPropsWithRef<'article'>, 'title'> &
|
|
84
|
+
zyzz.Props.Variants<typeof styles.card> & {
|
|
85
|
+
/** The card's one action, 32px below the copy (48px from 768px). */
|
|
86
|
+
children?: ReactNode | undefined
|
|
87
|
+
/** One line under the title, in Body B1. */
|
|
88
|
+
description?: ReactNode | undefined
|
|
89
|
+
/** The audience above the title, such as Developers. */
|
|
90
|
+
eyebrow?: ReactNode | undefined
|
|
91
|
+
/** The card's title, in Heading H4. */
|
|
92
|
+
title: ReactNode
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export type Props = Omit<ComponentPropsWithRef<'section'>, 'title'> &
|
|
97
|
+
zyzz.Props.Variants<typeof styles.root> & {
|
|
98
|
+
/**
|
|
99
|
+
* The `banner`'s actions, one or two buttons or one form, or the `cards` form's `Cta.Card`s.
|
|
100
|
+
*/
|
|
101
|
+
children?: ReactNode | undefined
|
|
102
|
+
/**
|
|
103
|
+
* One line under the title: Body B2 up to 480px in the `banner`, the heading's subtitle in
|
|
104
|
+
* `cards`.
|
|
105
|
+
*/
|
|
106
|
+
description?: ReactNode | undefined
|
|
107
|
+
/** A few uppercase words above the title, such as Tempo updates. */
|
|
108
|
+
eyebrow?: ReactNode | undefined
|
|
109
|
+
/** The section's `h2`, which also names it. */
|
|
110
|
+
title: ReactNode
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
namespace styles {
|
|
115
|
+
// Buttons 8px apart, kept on one row beside the copy from 1024px. A form fills the card's width up
|
|
116
|
+
// to 480px, and from 1024px shares the row with the copy.
|
|
117
|
+
export const actions = style(
|
|
118
|
+
{
|
|
119
|
+
display: 'flex',
|
|
120
|
+
flexShrink: '0 !custom',
|
|
121
|
+
flexWrap: 'wrap',
|
|
122
|
+
gap: '8',
|
|
123
|
+
selectors: {
|
|
124
|
+
'&:has(> form)': { maxWidth: '480', width: '100% !custom' },
|
|
125
|
+
'& > form': { width: '100% !custom' },
|
|
126
|
+
},
|
|
127
|
+
'@media >=1024': {
|
|
128
|
+
selectors: {
|
|
129
|
+
'&:has(> form)': {
|
|
130
|
+
flexBasis: '0 !custom',
|
|
131
|
+
flexGrow: '1 !custom',
|
|
132
|
+
flexShrink: '1 !custom',
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
{ id: 'tds/marketing/cta/actions' },
|
|
138
|
+
)
|
|
139
|
+
|
|
140
|
+
// White on the page: a 16px corner with 32px inside, and from 768px a 32px corner with 64px
|
|
141
|
+
// inside. The action's label balances its lines where it wraps.
|
|
142
|
+
export const card = variants(
|
|
143
|
+
{
|
|
144
|
+
base: {
|
|
145
|
+
alignItems: 'flex-start',
|
|
146
|
+
backgroundColor: 'background.secondary',
|
|
147
|
+
borderRadius: 'sm',
|
|
148
|
+
boxSizing: 'border-box',
|
|
149
|
+
display: 'flex',
|
|
150
|
+
flexDirection: 'column',
|
|
151
|
+
gap: '32',
|
|
152
|
+
margin: '0',
|
|
153
|
+
minWidth: '0',
|
|
154
|
+
padding: '32',
|
|
155
|
+
textWrap: 'balance',
|
|
156
|
+
'@media >=768': { borderRadius: 'lg', gap: '48', padding: '64' },
|
|
157
|
+
// Forced colors drop the fill, so an edge draws the card.
|
|
158
|
+
'@media (forced-colors: active)': {
|
|
159
|
+
borderColor: 'CanvasText !custom',
|
|
160
|
+
borderStyle: 'solid',
|
|
161
|
+
borderWidth: 'regular',
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
{ id: 'tds/marketing/cta/card' },
|
|
166
|
+
)
|
|
167
|
+
|
|
168
|
+
export const cardCopy = style(
|
|
169
|
+
{ maxWidth: '400', textWrap: 'pretty', width: '100% !custom' },
|
|
170
|
+
{ id: 'tds/marketing/cta/card-copy' },
|
|
171
|
+
)
|
|
172
|
+
|
|
173
|
+
export const cardText = style(
|
|
174
|
+
{
|
|
175
|
+
color: 'content.secondary',
|
|
176
|
+
margin: '0',
|
|
177
|
+
marginBlockStart: 'textPair.h4B1',
|
|
178
|
+
typography: 'body.b1',
|
|
179
|
+
},
|
|
180
|
+
{ id: 'tds/marketing/cta/card-text' },
|
|
181
|
+
)
|
|
182
|
+
|
|
183
|
+
// Steps straight to 22px at 768px, so it takes the 22px tracking of Heading H4 there too.
|
|
184
|
+
export const cardTitle = style(
|
|
185
|
+
{
|
|
186
|
+
color: 'content.primary',
|
|
187
|
+
margin: '0',
|
|
188
|
+
maxWidth: '600',
|
|
189
|
+
typography: 'heading.h4',
|
|
190
|
+
'@media >=768': { fontSize: '22px !custom', letterSpacing: '-0.012em !custom' },
|
|
191
|
+
},
|
|
192
|
+
{ id: 'tds/marketing/cta/card-title' },
|
|
193
|
+
)
|
|
194
|
+
|
|
195
|
+
// The eyebrow 16px over the title, and the line 12px under it. From 1024px the copy takes the room
|
|
196
|
+
// the actions leave in the row.
|
|
197
|
+
export const copy = style(
|
|
198
|
+
{
|
|
199
|
+
display: 'flex',
|
|
200
|
+
flexDirection: 'column',
|
|
201
|
+
selectors: {
|
|
202
|
+
'& > p + h2': { marginBlockStart: '16' },
|
|
203
|
+
'& > h2 + p': { marginBlockStart: 'textPair.h4B1' },
|
|
204
|
+
},
|
|
205
|
+
'@media >=1024': { flexBasis: '0 !custom', flexGrow: '1 !custom' },
|
|
206
|
+
},
|
|
207
|
+
{ id: 'tds/marketing/cta/copy' },
|
|
208
|
+
)
|
|
209
|
+
|
|
210
|
+
export const eyebrow = style(
|
|
211
|
+
{
|
|
212
|
+
color: 'content.secondary',
|
|
213
|
+
margin: '0',
|
|
214
|
+
textTransform: 'uppercase',
|
|
215
|
+
typography: 'utility.eyebrow',
|
|
216
|
+
},
|
|
217
|
+
{ id: 'tds/marketing/cta/eyebrow' },
|
|
218
|
+
)
|
|
219
|
+
|
|
220
|
+
// One column, 16px apart (24px from 768px), and two columns from 1024px.
|
|
221
|
+
export const grid = style(
|
|
222
|
+
{
|
|
223
|
+
display: 'grid',
|
|
224
|
+
gap: '16',
|
|
225
|
+
gridTemplateColumns: 'minmax(0, 1fr) !custom',
|
|
226
|
+
'@media >=768': { gap: '24' },
|
|
227
|
+
'@media >=1024': { gridTemplateColumns: 'repeat(2, minmax(0, 1fr)) !custom' },
|
|
228
|
+
},
|
|
229
|
+
{ id: 'tds/marketing/cta/grid' },
|
|
230
|
+
)
|
|
231
|
+
|
|
232
|
+
export const root = variants(
|
|
233
|
+
{
|
|
234
|
+
base: { boxSizing: 'border-box', margin: '0' },
|
|
235
|
+
defaultVariants: { form: 'banner' },
|
|
236
|
+
variants: {
|
|
237
|
+
/**
|
|
238
|
+
* The layout: one white `banner` card with its actions, or a heading over `cards`, one per
|
|
239
|
+
* audience.
|
|
240
|
+
*
|
|
241
|
+
* @default 'banner'
|
|
242
|
+
*/
|
|
243
|
+
form: {
|
|
244
|
+
// White, with a 24px corner and 32px inside, from 768px a 40px corner and 48px inside, and
|
|
245
|
+
// 64px inside from 1024px, where the copy moves beside the actions.
|
|
246
|
+
banner: {
|
|
247
|
+
alignItems: 'flex-start',
|
|
248
|
+
backgroundColor: 'background.secondary',
|
|
249
|
+
borderRadius: 'md',
|
|
250
|
+
display: 'flex',
|
|
251
|
+
flexDirection: 'column',
|
|
252
|
+
gap: '24',
|
|
253
|
+
padding: '32',
|
|
254
|
+
'@media >=768': { borderRadius: 'xl', gap: '32', padding: '48' },
|
|
255
|
+
'@media >=1024': {
|
|
256
|
+
alignItems: 'center',
|
|
257
|
+
flexDirection: 'row',
|
|
258
|
+
gap: '48',
|
|
259
|
+
justifyContent: 'space-between',
|
|
260
|
+
padding: '64',
|
|
261
|
+
},
|
|
262
|
+
// Forced colors drop the fill, so an edge draws the card.
|
|
263
|
+
'@media (forced-colors: active)': {
|
|
264
|
+
borderColor: 'CanvasText !custom',
|
|
265
|
+
borderStyle: 'solid',
|
|
266
|
+
borderWidth: 'regular',
|
|
267
|
+
},
|
|
268
|
+
},
|
|
269
|
+
cards: {},
|
|
270
|
+
},
|
|
271
|
+
},
|
|
272
|
+
},
|
|
273
|
+
{ id: 'tds/marketing/cta' },
|
|
274
|
+
)
|
|
275
|
+
|
|
276
|
+
export const text = style(
|
|
277
|
+
{
|
|
278
|
+
color: 'content.secondary',
|
|
279
|
+
margin: '0',
|
|
280
|
+
maxWidth: '480',
|
|
281
|
+
textWrap: 'pretty',
|
|
282
|
+
typography: 'body.b2',
|
|
283
|
+
},
|
|
284
|
+
{ id: 'tds/marketing/cta/text' },
|
|
285
|
+
)
|
|
286
|
+
|
|
287
|
+
export const title = style(
|
|
288
|
+
{
|
|
289
|
+
color: 'content.primary',
|
|
290
|
+
margin: '0',
|
|
291
|
+
maxWidth: '600',
|
|
292
|
+
textWrap: 'balance',
|
|
293
|
+
typography: 'heading.h3',
|
|
294
|
+
},
|
|
295
|
+
{ id: 'tds/marketing/cta/title' },
|
|
296
|
+
)
|
|
297
|
+
}
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
/** Renders one customer's story on a dark panel over their photo, with a link to the whole story. @module */
|
|
2
|
+
import { type ReactNode, useId } from 'react'
|
|
3
|
+
import { style, vars } from '../zyzz.config.js'
|
|
4
|
+
import { Section } from './Section.js'
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* One customer's story, last before a page's questions. Renders a `Section` with the turn above it,
|
|
8
|
+
* named by its `h2`. Below 1024px the photo sits over the logo, title, line and link on the page.
|
|
9
|
+
* From 1024px they share one 16:9 dark panel: the photo fills it under a shade from the start edge,
|
|
10
|
+
* and the copy reads near-white over the shade.
|
|
11
|
+
*
|
|
12
|
+
* - Pass the photo in `image`. The panel hides it from screen readers and crops it to cover.
|
|
13
|
+
* - Pass the logo in `logo`, such as an `img` named by the company. It draws black on the page and
|
|
14
|
+
* white on the panel.
|
|
15
|
+
* - Pass the link in `action` as a Marketing `Link` with its default tone, and name the story in it,
|
|
16
|
+
* such as Read the ARQ customer story. The panel keeps the link near-white while it is hovered or
|
|
17
|
+
* pressed.
|
|
18
|
+
* - Use Marketing `Card`s for several stories at once, and a `QuoteBand` for a quote that speaks for
|
|
19
|
+
* the whole page.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* <CustomerStoryFeature
|
|
23
|
+
* action={<Link href="/customer-stories/arq">Read the ARQ customer story</Link>}
|
|
24
|
+
* description="ARQ is using Tempo to improve settlement speed and costs."
|
|
25
|
+
* image={<img alt="" src="/arq.webp" />}
|
|
26
|
+
* logo={<img alt="ARQ" src="/arq.svg" />}
|
|
27
|
+
* title="ARQ is scaling cross-border payments across Latin America"
|
|
28
|
+
* />
|
|
29
|
+
*
|
|
30
|
+
* @see {@link https://www.w3.org/WAI/WCAG22/Understanding/link-purpose-in-context.html | WCAG 2.2 Link Purpose (In Context)}
|
|
31
|
+
* @see {@link https://www.w3.org/WAI/WCAG22/Understanding/non-text-content.html | WCAG 2.2 Non-text Content}
|
|
32
|
+
*/
|
|
33
|
+
export function CustomerStoryFeature(props: CustomerStoryFeature.Props) {
|
|
34
|
+
const { action, description, image, logo, title, titleId, ...attributes } = props
|
|
35
|
+
|
|
36
|
+
const generated = useId()
|
|
37
|
+
const id = titleId ?? generated
|
|
38
|
+
|
|
39
|
+
return (
|
|
40
|
+
<Section aria-labelledby={id} space="turn" {...attributes}>
|
|
41
|
+
<div {...styles.panel()}>
|
|
42
|
+
{image && (
|
|
43
|
+
<div aria-hidden="true" {...styles.media()}>
|
|
44
|
+
{image}
|
|
45
|
+
</div>
|
|
46
|
+
)}
|
|
47
|
+
<div {...styles.content()}>
|
|
48
|
+
{logo && <div {...styles.logo()}>{logo}</div>}
|
|
49
|
+
<div>
|
|
50
|
+
<h2 id={id} {...styles.title()}>
|
|
51
|
+
{title}
|
|
52
|
+
</h2>
|
|
53
|
+
{description && <p {...styles.description()}>{description}</p>}
|
|
54
|
+
{action}
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
</Section>
|
|
59
|
+
)
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export namespace CustomerStoryFeature {
|
|
63
|
+
export type Props = Omit<Section.Props, 'children' | 'title'> & {
|
|
64
|
+
/** The link to the whole story, such as a Marketing `Link` that names the customer. */
|
|
65
|
+
action?: ReactNode | undefined
|
|
66
|
+
/** One line on what the customer does with Tempo. */
|
|
67
|
+
description?: ReactNode | undefined
|
|
68
|
+
/** The customer's photo, such as an `img` or a `picture`. It covers the panel from 1024px. */
|
|
69
|
+
image?: ReactNode | undefined
|
|
70
|
+
/** The customer's logo, such as an `img` named by the company, 18px tall and 32px from 1024px. */
|
|
71
|
+
logo?: ReactNode | undefined
|
|
72
|
+
/** The story's `h2`, which names the section. */
|
|
73
|
+
title: ReactNode
|
|
74
|
+
/** The title's `id`. Absent by default, when the band generates one. */
|
|
75
|
+
titleId?: string | undefined
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
namespace styles {
|
|
80
|
+
// On the panel the link keeps its near-white and fades on hover and press, as the inverse tone of
|
|
81
|
+
// a Marketing `Link` does: its default tone would turn black on hover. The type selector lifts these
|
|
82
|
+
// rules above the link's own hover and press.
|
|
83
|
+
export const content = style(
|
|
84
|
+
{
|
|
85
|
+
display: 'flex',
|
|
86
|
+
flexDirection: 'column',
|
|
87
|
+
gap: '24',
|
|
88
|
+
position: 'relative',
|
|
89
|
+
'@media >=1024': {
|
|
90
|
+
justifyContent: 'space-between',
|
|
91
|
+
padding: '48',
|
|
92
|
+
selectors: {
|
|
93
|
+
'& a:active': { color: 'inherit !custom' },
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
'@media (hover: hover) and (pointer: fine) and (min-width: 1024px)': {
|
|
97
|
+
selectors: {
|
|
98
|
+
'& a:hover:not(:active)': {
|
|
99
|
+
color: 'inherit !custom',
|
|
100
|
+
opacity: '0.64 !custom',
|
|
101
|
+
transitionDuration: 'hoverIn',
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
{ id: 'tds/marketing/customer-story-feature/content' },
|
|
107
|
+
)
|
|
108
|
+
|
|
109
|
+
export const description = style(
|
|
110
|
+
{
|
|
111
|
+
color: 'content.secondary',
|
|
112
|
+
margin: '0',
|
|
113
|
+
marginBlockEnd: '12',
|
|
114
|
+
marginBlockStart: '24',
|
|
115
|
+
maxWidth: '400',
|
|
116
|
+
textWrap: 'wrap',
|
|
117
|
+
'@media >=1024': { color: 'neutral.tint.064' },
|
|
118
|
+
},
|
|
119
|
+
{ id: 'tds/marketing/customer-story-feature/description' },
|
|
120
|
+
)
|
|
121
|
+
|
|
122
|
+
// Any logo draws black on the page, and white on the panel: brightness takes it to black, and
|
|
123
|
+
// invert to white.
|
|
124
|
+
export const logo = style(
|
|
125
|
+
{
|
|
126
|
+
display: 'flex',
|
|
127
|
+
height: '18px !custom',
|
|
128
|
+
selectors: {
|
|
129
|
+
'& > img, & > svg': {
|
|
130
|
+
display: 'block',
|
|
131
|
+
filter: 'brightness(0) !custom',
|
|
132
|
+
height: '100% !custom',
|
|
133
|
+
maxWidth: '100% !custom',
|
|
134
|
+
objectFit: 'contain',
|
|
135
|
+
objectPosition: 'left !custom',
|
|
136
|
+
width: 'auto !custom',
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
'@media >=1024': {
|
|
140
|
+
height: '32px !custom',
|
|
141
|
+
selectors: { '& > img, & > svg': { filter: 'brightness(0) invert(1) !custom' } },
|
|
142
|
+
},
|
|
143
|
+
'@media (forced-colors: active)': {
|
|
144
|
+
selectors: { '& > img, & > svg': { filter: 'none !custom' } },
|
|
145
|
+
},
|
|
146
|
+
},
|
|
147
|
+
{ id: 'tds/marketing/customer-story-feature/logo' },
|
|
148
|
+
)
|
|
149
|
+
|
|
150
|
+
// A 16:9 photo with its own corners, which fills the panel from 1024px under a shade from the
|
|
151
|
+
// start edge, so the copy holds its contrast.
|
|
152
|
+
export const media = style(
|
|
153
|
+
{
|
|
154
|
+
aspectRatio: '16 / 9 !custom',
|
|
155
|
+
borderRadius: 'sm',
|
|
156
|
+
overflow: 'hidden',
|
|
157
|
+
position: 'relative',
|
|
158
|
+
selectors: {
|
|
159
|
+
'& > *': { display: 'block', height: '100% !custom', width: '100% !custom' },
|
|
160
|
+
'& img, & video': {
|
|
161
|
+
display: 'block',
|
|
162
|
+
height: '100% !custom',
|
|
163
|
+
objectFit: 'cover',
|
|
164
|
+
width: '100% !custom',
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
'@media >=1024': {
|
|
168
|
+
aspectRatio: 'auto !custom',
|
|
169
|
+
borderRadius: 'none',
|
|
170
|
+
inset: '0',
|
|
171
|
+
position: 'absolute',
|
|
172
|
+
selectors: {
|
|
173
|
+
'&::after': {
|
|
174
|
+
backgroundImage: `linear-gradient(270deg, transparent 65%, color-mix(in srgb, ${vars.color.neutral['100']} 70%, transparent)) !custom`,
|
|
175
|
+
content: '"" !custom',
|
|
176
|
+
inset: '0',
|
|
177
|
+
position: 'absolute',
|
|
178
|
+
},
|
|
179
|
+
'[dir="rtl"] &::after': {
|
|
180
|
+
backgroundImage: `linear-gradient(90deg, transparent 65%, color-mix(in srgb, ${vars.color.neutral['100']} 70%, transparent)) !custom`,
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
{ id: 'tds/marketing/customer-story-feature/media' },
|
|
186
|
+
)
|
|
187
|
+
|
|
188
|
+
export const panel = style(
|
|
189
|
+
{
|
|
190
|
+
color: 'content.primary',
|
|
191
|
+
display: 'grid',
|
|
192
|
+
gap: '40',
|
|
193
|
+
position: 'relative',
|
|
194
|
+
// The link takes the type around it.
|
|
195
|
+
typography: 'body.b1',
|
|
196
|
+
'@media >=1024': {
|
|
197
|
+
aspectRatio: '16 / 9 !custom',
|
|
198
|
+
backgroundColor: 'neutral.096',
|
|
199
|
+
borderRadius: 'md',
|
|
200
|
+
color: 'inverse.content.primary',
|
|
201
|
+
overflow: 'hidden',
|
|
202
|
+
},
|
|
203
|
+
},
|
|
204
|
+
{ id: 'tds/marketing/customer-story-feature/panel' },
|
|
205
|
+
)
|
|
206
|
+
|
|
207
|
+
export const title = style(
|
|
208
|
+
{
|
|
209
|
+
color: 'inherit !custom',
|
|
210
|
+
margin: '0',
|
|
211
|
+
maxWidth: '600',
|
|
212
|
+
overflowWrap: 'break-word',
|
|
213
|
+
textWrap: 'wrap',
|
|
214
|
+
typography: 'heading.h2',
|
|
215
|
+
},
|
|
216
|
+
{ id: 'tds/marketing/customer-story-feature/title' },
|
|
217
|
+
)
|
|
218
|
+
}
|