@tempoxyz/ds 3.7.20261201045010 → 3.8.20261201045338
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/docs/AGENTS.md +1 -1
- package/dist/docs/marketing.md +637 -862
- 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/ArticleIndex.d.ts +1 -1
- package/dist/marketing/components/ArticleIndex.js +3 -3
- package/dist/marketing/components/ArticleIndex.js.map +1 -1
- package/dist/marketing/components/ArticleIndex.js.zyzz.json +1 -1
- package/dist/marketing/components/Cta.css +1 -1
- package/dist/marketing/components/Cta.d.ts +58 -18
- package/dist/marketing/components/Cta.d.ts.map +1 -1
- package/dist/marketing/components/Cta.js +41 -17
- package/dist/marketing/components/Cta.js.map +1 -1
- package/dist/marketing/components/Cta.js.zyzz.json +1 -1
- package/dist/marketing/components/Filter.css +1 -0
- package/dist/marketing/components/{Tab.d.ts → Filter.d.ts} +67 -48
- package/dist/marketing/components/Filter.d.ts.map +1 -0
- package/dist/marketing/components/Filter.js +56 -0
- package/dist/marketing/components/Filter.js.map +1 -0
- package/dist/marketing/components/{Contact.js.zyzz.json → Filter.js.zyzz.json} +1 -1
- package/dist/marketing/components/Footer.css +1 -1
- package/dist/marketing/components/Footer.d.ts +3 -3
- package/dist/marketing/components/Footer.d.ts.map +1 -1
- package/dist/marketing/components/Footer.js +7 -7
- package/dist/marketing/components/Footer.js.map +1 -1
- package/dist/marketing/components/Footer.js.zyzz.json +1 -1
- package/dist/marketing/components/Logo.d.ts +33 -13
- package/dist/marketing/components/Logo.d.ts.map +1 -1
- package/dist/marketing/components/Logo.js +24 -11
- package/dist/marketing/components/Logo.js.map +1 -1
- package/dist/marketing/components/PartnersIndex.d.ts +1 -1
- package/dist/marketing/components/PartnersIndex.js +3 -3
- package/dist/marketing/components/PartnersIndex.js.map +1 -1
- package/dist/marketing/components/PartnersIndex.js.zyzz.json +1 -1
- package/dist/marketing/components/Story.css +1 -0
- package/dist/marketing/components/Story.d.ts +195 -0
- package/dist/marketing/components/Story.d.ts.map +1 -0
- package/dist/marketing/components/Story.js +132 -0
- package/dist/marketing/components/Story.js.map +1 -0
- package/dist/marketing/components/{QuoteBand.js.zyzz.json → Story.js.zyzz.json} +1 -1
- package/dist/marketing/index.d.ts +4 -7
- package/dist/marketing/index.d.ts.map +1 -1
- package/dist/marketing/index.js +4 -7
- package/dist/marketing/index.js.map +1 -1
- package/dist/marketing/index.js.zyzz.json +1 -1
- package/package.json +2 -2
- package/src/marketing/README.md +1 -1
- package/src/marketing/components/ArticleIndex.tsx +4 -4
- package/src/marketing/components/Cta.tsx +168 -21
- package/src/marketing/components/{Tab.tsx → Filter.tsx} +86 -59
- package/src/marketing/components/Footer.tsx +8 -8
- package/src/marketing/components/Logo.tsx +57 -15
- package/src/marketing/components/PartnersIndex.tsx +6 -6
- package/src/marketing/components/Story.tsx +556 -0
- package/src/marketing/index.ts +4 -7
- package/dist/marketing/components/Contact.css +0 -1
- package/dist/marketing/components/Contact.d.ts +0 -52
- package/dist/marketing/components/Contact.d.ts.map +0 -1
- package/dist/marketing/components/Contact.js +0 -45
- package/dist/marketing/components/Contact.js.map +0 -1
- package/dist/marketing/components/CustomerStoryFeature.css +0 -1
- package/dist/marketing/components/CustomerStoryFeature.d.ts +0 -48
- package/dist/marketing/components/CustomerStoryFeature.d.ts.map +0 -1
- package/dist/marketing/components/CustomerStoryFeature.js +0 -58
- package/dist/marketing/components/CustomerStoryFeature.js.map +0 -1
- package/dist/marketing/components/CustomerStoryFeature.js.zyzz.json +0 -1
- package/dist/marketing/components/Mark.css +0 -1
- package/dist/marketing/components/Mark.d.ts +0 -30
- package/dist/marketing/components/Mark.d.ts.map +0 -1
- package/dist/marketing/components/Mark.js +0 -38
- package/dist/marketing/components/Mark.js.map +0 -1
- package/dist/marketing/components/Mark.js.zyzz.json +0 -1
- package/dist/marketing/components/QuoteBand.css +0 -1
- package/dist/marketing/components/QuoteBand.d.ts +0 -128
- package/dist/marketing/components/QuoteBand.d.ts.map +0 -1
- package/dist/marketing/components/QuoteBand.js +0 -72
- package/dist/marketing/components/QuoteBand.js.map +0 -1
- package/dist/marketing/components/Tab.css +0 -1
- package/dist/marketing/components/Tab.d.ts.map +0 -1
- package/dist/marketing/components/Tab.js +0 -44
- package/dist/marketing/components/Tab.js.map +0 -1
- package/dist/marketing/components/Tab.js.zyzz.json +0 -1
- package/src/marketing/components/Contact.tsx +0 -157
- package/src/marketing/components/CustomerStoryFeature.tsx +0 -218
- package/src/marketing/components/Mark.tsx +0 -67
- package/src/marketing/components/QuoteBand.tsx +0 -296
package/dist/docs/marketing.md
CHANGED
|
@@ -9,13 +9,12 @@ Each section below is one page of the documentation at ds.tehq.dev.
|
|
|
9
9
|
- [Breadcrumbs](#breadcrumbs): Links each level above a page.
|
|
10
10
|
- [Button](#button): Starts an action or opens a page.
|
|
11
11
|
- [Field](#field): Labels a text control, sets its submit action, and shows its messages.
|
|
12
|
+
- [Filter](#filter): Toggles a choice that changes what a page shows, such as a category.
|
|
12
13
|
- [Link](#link): Links quietly to another page, ending in an icon.
|
|
13
|
-
- [Logo](#logo): Shows the Tempo wordmark where
|
|
14
|
-
- [Mark](#mark): Shows the Tempo T where only a square fits.
|
|
14
|
+
- [Logo](#logo): Shows the Tempo wordmark, or its T where only a square fits.
|
|
15
15
|
- [Symbol Tile](#symbol-tile): Sets a glyph, icon, or mark on a square tile beside its label.
|
|
16
|
-
- [Tab](#tab): Toggles a choice, such as a filter.
|
|
17
16
|
- [Tag](#tag): Labels one fixed fact, or links to its topic.
|
|
18
|
-
- [Accessibility](#accessibility-
|
|
17
|
+
- [Accessibility](#accessibility-9): Focus rings, hit areas, contrast, and reduced motion on marketing pages.
|
|
19
18
|
- [Color](#color-1): Roles for each background, container, text, and line, with a few accents.
|
|
20
19
|
- [Iconography](#iconography): Tempo's icon family, drawn on one grid in the color of its text.
|
|
21
20
|
- [Layout](#layout-1): The page grid, section spacing, gaps, and widths of marketing pages.
|
|
@@ -29,25 +28,23 @@ Each section below is one page of the documentation at ds.tehq.dev.
|
|
|
29
28
|
- [Article Rail](#article-rail): Sets share links, then the contents, beside a blog post or a Learn guide.
|
|
30
29
|
- [Block Frame](#block-frame): Holds one block of a generated answer, with a skeleton while it loads.
|
|
31
30
|
- [Card](#card): Links a story, an article, a partner or a guide as one card or ruled row.
|
|
32
|
-
- [Contact](#contact): Closes a page on the contact form, in one white card.
|
|
33
31
|
- [CTA](#cta): Closes a page or an article on its next step, on white cards.
|
|
34
|
-
- [Customer Story Feature](#customer-story-feature): Sums up one customer's story on a dark panel, with a link to the whole story.
|
|
35
32
|
- [FAQ](#faq): Holds a page's common questions in rows that open to their answers.
|
|
36
33
|
- [Feature Accordion](#feature-accordion): Opens one feature at a time, with its art beside it.
|
|
37
|
-
- [Footer](#footer): Ends every page with the whole site map, on a black
|
|
34
|
+
- [Footer](#footer): Ends every page with the whole site map, on a black ground.
|
|
38
35
|
- [Hero](#hero): Opens a marketing, index or answer page: its title, a subtitle and its actions.
|
|
39
36
|
- [Lead Capture](#lead-capture): Opens a report's page with its title, summary, key figures and download form.
|
|
40
37
|
- [Logo Wall](#logo-wall): Shows the companies Tempo was designed with, as a wall of logos on About.
|
|
41
38
|
- [Media](#media): A 4:3 picture, or a video's poster that opens the video.
|
|
42
39
|
- [Nav](#nav): Leads from every page to the site's sections, in a bar fixed at the top.
|
|
43
40
|
- [Partners Index](#partners-index): Lists the partners or assets a page covers, as cards.
|
|
44
|
-
- [Quote Band](#quote-band): Sets one customer's words large on a full-bleed band over a photo.
|
|
45
41
|
- [Section](#section): Holds a page section: its container and the space above its content.
|
|
46
42
|
- [Section Heading](#section-heading): Opens a page section with an eyebrow and an H2 title.
|
|
47
43
|
- [Showcase](#showcase): Tells one feature through a large picture, with its steps, cards or tools.
|
|
48
44
|
- [Sources](#sources): Lists every page and file a generated answer read, each as a link.
|
|
49
45
|
- [Stats](#stats): Sets a few figures side by side, each over its label under a rule.
|
|
50
46
|
- [Steps](#steps): Sets a numbered sequence on one rail, such as how an engagement runs.
|
|
47
|
+
- [Story](#story): Tells one customer's story over their photo, as a large quote or a feature.
|
|
51
48
|
- [Table](#table): Links a few articles as cards, each with its title, a line and its label.
|
|
52
49
|
- [Article](#article): A blog post or a Learn guide, its text beside the rail.
|
|
53
50
|
- [Contact](#contact-1): The contact page: a short pitch beside the form, in every site language.
|
|
@@ -1591,6 +1588,263 @@ Use for the site's condensed sign-up on the black band.
|
|
|
1591
1588
|
|
|
1592
1589
|
Use for a report's download form.
|
|
1593
1590
|
|
|
1591
|
+
## Filter
|
|
1592
|
+
|
|
1593
|
+
Toggles a choice that changes what a page shows, such as a category.
|
|
1594
|
+
|
|
1595
|
+
### Overview
|
|
1596
|
+
|
|
1597
|
+
A native toggle button for a choice that changes what a page shows in place, such as the blog's category filters. A filter reports whether it is on. It is never a tab in a tablist, so it switches no panels.
|
|
1598
|
+
|
|
1599
|
+
> [!NOTE]
|
|
1600
|
+
> `Filter` was named `Tab`, and its `tone` was named `appearance`, whose `base` is the `page` tone. `Tab` and `appearance` still work for one release.
|
|
1601
|
+
|
|
1602
|
+
A filter rests as an outline and fills gray when selected, so a row of filters never reads as a row of buttons.
|
|
1603
|
+
|
|
1604
|
+
### Examples
|
|
1605
|
+
|
|
1606
|
+
#### Filter Group
|
|
1607
|
+
|
|
1608
|
+
Set `selected` on the chosen filter, and update it from `onPressedChange`, in a named group, as the blog's category filters do.
|
|
1609
|
+
|
|
1610
|
+
```tsx
|
|
1611
|
+
/** Demonstrates a named group of small Marketing filters that filters posts by category. @module */
|
|
1612
|
+
import { Filter, style } from '@tempoxyz/ds/marketing'
|
|
1613
|
+
import { useState } from 'react'
|
|
1614
|
+
|
|
1615
|
+
export function Demo() {
|
|
1616
|
+
const [category, setCategory] = useState<string | undefined>('Partners')
|
|
1617
|
+
|
|
1618
|
+
return (
|
|
1619
|
+
<div aria-label="Filter posts by category" role="group" {...styles.row()}>
|
|
1620
|
+
{['Partners', 'Product', 'Stablecoins', 'Research'].map((label) => (
|
|
1621
|
+
<Filter
|
|
1622
|
+
key={label}
|
|
1623
|
+
onPressedChange={(pressed) => setCategory(pressed ? label : undefined)}
|
|
1624
|
+
selected={category === label}
|
|
1625
|
+
size="small"
|
|
1626
|
+
>
|
|
1627
|
+
{label}
|
|
1628
|
+
</Filter>
|
|
1629
|
+
))}
|
|
1630
|
+
</div>
|
|
1631
|
+
)
|
|
1632
|
+
}
|
|
1633
|
+
|
|
1634
|
+
namespace styles {
|
|
1635
|
+
export const row = style({ display: 'flex', flexWrap: 'wrap', gap: '8' })
|
|
1636
|
+
}
|
|
1637
|
+
```
|
|
1638
|
+
|
|
1639
|
+
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Filter/FilterGroup.tsx)
|
|
1640
|
+
|
|
1641
|
+
#### Size
|
|
1642
|
+
|
|
1643
|
+
Set `size` to `small` for an index's filters, or to `medium` (default) or `large` for a directory's rows.
|
|
1644
|
+
|
|
1645
|
+
```tsx
|
|
1646
|
+
/** Demonstrates each Marketing filter size. @module */
|
|
1647
|
+
import { Filter, style } from '@tempoxyz/ds/marketing'
|
|
1648
|
+
import { useState } from 'react'
|
|
1649
|
+
|
|
1650
|
+
const sizes = ['small', 'medium', 'large'] as const
|
|
1651
|
+
|
|
1652
|
+
export function Demo() {
|
|
1653
|
+
const [size, setSize] = useState<string | undefined>('medium')
|
|
1654
|
+
|
|
1655
|
+
return (
|
|
1656
|
+
<div aria-label="Sizes" role="group" {...styles.row()}>
|
|
1657
|
+
{sizes.map((option) => (
|
|
1658
|
+
<Filter
|
|
1659
|
+
key={option}
|
|
1660
|
+
onPressedChange={(pressed) => setSize(pressed ? option : undefined)}
|
|
1661
|
+
selected={size === option}
|
|
1662
|
+
size={option}
|
|
1663
|
+
>
|
|
1664
|
+
{option.charAt(0).toUpperCase() + option.slice(1)}
|
|
1665
|
+
</Filter>
|
|
1666
|
+
))}
|
|
1667
|
+
</div>
|
|
1668
|
+
)
|
|
1669
|
+
}
|
|
1670
|
+
|
|
1671
|
+
namespace styles {
|
|
1672
|
+
export const row = style({ alignItems: 'center', display: 'flex', flexWrap: 'wrap', gap: '8' })
|
|
1673
|
+
}
|
|
1674
|
+
```
|
|
1675
|
+
|
|
1676
|
+
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Filter/Size.tsx)
|
|
1677
|
+
|
|
1678
|
+
#### Inverse
|
|
1679
|
+
|
|
1680
|
+
Set `tone="inverse"` in a dark section. The outline and the gray fill turn white.
|
|
1681
|
+
|
|
1682
|
+
```tsx
|
|
1683
|
+
/** Demonstrates Marketing filters in a dark section, led by an All filter. @module */
|
|
1684
|
+
import { Filter, style } from '@tempoxyz/ds/marketing'
|
|
1685
|
+
import { useState } from 'react'
|
|
1686
|
+
|
|
1687
|
+
export const surface = 'inverse'
|
|
1688
|
+
|
|
1689
|
+
export function Demo() {
|
|
1690
|
+
const [region, setRegion] = useState<string>()
|
|
1691
|
+
|
|
1692
|
+
return (
|
|
1693
|
+
<div aria-label="Filter by region" role="group" {...styles.section()}>
|
|
1694
|
+
<Filter
|
|
1695
|
+
tone="inverse"
|
|
1696
|
+
onPressedChange={() => setRegion(undefined)}
|
|
1697
|
+
selected={!region}
|
|
1698
|
+
size="small"
|
|
1699
|
+
>
|
|
1700
|
+
All
|
|
1701
|
+
</Filter>
|
|
1702
|
+
{['Americas', 'Europe'].map((label) => (
|
|
1703
|
+
<Filter
|
|
1704
|
+
tone="inverse"
|
|
1705
|
+
key={label}
|
|
1706
|
+
onPressedChange={(pressed) => setRegion(pressed ? label : undefined)}
|
|
1707
|
+
selected={region === label}
|
|
1708
|
+
size="small"
|
|
1709
|
+
>
|
|
1710
|
+
{label}
|
|
1711
|
+
</Filter>
|
|
1712
|
+
))}
|
|
1713
|
+
</div>
|
|
1714
|
+
)
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1717
|
+
namespace styles {
|
|
1718
|
+
export const section = style({
|
|
1719
|
+
backgroundColor: 'inverse.background.primary',
|
|
1720
|
+
borderRadius: 'lg',
|
|
1721
|
+
display: 'flex',
|
|
1722
|
+
flexWrap: 'wrap',
|
|
1723
|
+
gap: '8',
|
|
1724
|
+
padding: '24',
|
|
1725
|
+
})
|
|
1726
|
+
}
|
|
1727
|
+
```
|
|
1728
|
+
|
|
1729
|
+
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Filter/Inverse.tsx)
|
|
1730
|
+
|
|
1731
|
+
#### Overlay
|
|
1732
|
+
|
|
1733
|
+
Set `tone="overlay"` over a photo or video. A dark glass keeps each label legible, and the selected filter deepens it.
|
|
1734
|
+
|
|
1735
|
+
```tsx
|
|
1736
|
+
/** Demonstrates Marketing filters over a photo. @module */
|
|
1737
|
+
import { Filter, style } from '@tempoxyz/ds/marketing'
|
|
1738
|
+
import { useState } from 'react'
|
|
1739
|
+
|
|
1740
|
+
export const surface = 'overlay'
|
|
1741
|
+
|
|
1742
|
+
export function Demo() {
|
|
1743
|
+
const [view, setView] = useState<string | undefined>('Video')
|
|
1744
|
+
|
|
1745
|
+
return (
|
|
1746
|
+
<div aria-label="Media" role="group" {...styles.photo()}>
|
|
1747
|
+
{['Video', 'Photos'].map((label) => (
|
|
1748
|
+
<Filter
|
|
1749
|
+
tone="overlay"
|
|
1750
|
+
key={label}
|
|
1751
|
+
onPressedChange={(pressed) => setView(pressed ? label : undefined)}
|
|
1752
|
+
selected={view === label}
|
|
1753
|
+
>
|
|
1754
|
+
{label}
|
|
1755
|
+
</Filter>
|
|
1756
|
+
))}
|
|
1757
|
+
</div>
|
|
1758
|
+
)
|
|
1759
|
+
}
|
|
1760
|
+
|
|
1761
|
+
namespace styles {
|
|
1762
|
+
// A mid-tone gradient stands in for a photo.
|
|
1763
|
+
export const photo = style({
|
|
1764
|
+
backgroundImage: 'linear-gradient(135deg, #6b7f99, #a3866a) !custom',
|
|
1765
|
+
borderRadius: 'lg',
|
|
1766
|
+
display: 'flex',
|
|
1767
|
+
flexWrap: 'wrap',
|
|
1768
|
+
gap: '8',
|
|
1769
|
+
padding: '24',
|
|
1770
|
+
})
|
|
1771
|
+
}
|
|
1772
|
+
```
|
|
1773
|
+
|
|
1774
|
+
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Filter/Overlay.tsx)
|
|
1775
|
+
|
|
1776
|
+
### Anatomy
|
|
1777
|
+
|
|
1778
|
+
```tsx
|
|
1779
|
+
import { Filter } from '@tempoxyz/ds/marketing'
|
|
1780
|
+
|
|
1781
|
+
<Filter />
|
|
1782
|
+
```
|
|
1783
|
+
|
|
1784
|
+
### Guidelines
|
|
1785
|
+
|
|
1786
|
+
#### When to Use
|
|
1787
|
+
|
|
1788
|
+
* Filter an index page, such as the blog by category.
|
|
1789
|
+
* Switch between segmented views of one list.
|
|
1790
|
+
|
|
1791
|
+
#### When Not to Use
|
|
1792
|
+
|
|
1793
|
+
* Use [Link](/marketing/components/link), or [Button](/marketing/components/button) as a link, to go to another page.
|
|
1794
|
+
* Use [Tag](/marketing/components/tag) for a fixed label.
|
|
1795
|
+
* Use a tablist with arrow keys for tabbed panels.
|
|
1796
|
+
|
|
1797
|
+
#### Let a Visitor Clear a Filter
|
|
1798
|
+
|
|
1799
|
+
Clear the filter on a second press of the selected filter, or put an All filter first in the row.
|
|
1800
|
+
|
|
1801
|
+
#### Show the Choice With the Fill
|
|
1802
|
+
|
|
1803
|
+
The gray fill alone marks the selected filter, so a filter keeps its size in both states.
|
|
1804
|
+
|
|
1805
|
+
* **Unselected (Outline):** Rests as an outline, and tints on hover.
|
|
1806
|
+
* **Selected (Gray Fill):** Fills gray, and deepens a step on press.
|
|
1807
|
+
|
|
1808
|
+
#### Give Filters in a Row One Size
|
|
1809
|
+
|
|
1810
|
+
Use `small` for an index's filters and `medium` or `large` for a directory's rows. Never mix sizes in one row.
|
|
1811
|
+
|
|
1812
|
+
### Content
|
|
1813
|
+
|
|
1814
|
+
#### Keep Labels Short & Fixed
|
|
1815
|
+
|
|
1816
|
+
Label each filter in one or two words, and keep the label the same whether it is selected or not.
|
|
1817
|
+
|
|
1818
|
+
**Do:** Write Partners, the same in both states.
|
|
1819
|
+
|
|
1820
|
+
**Don't:** Change the label to Showing partners when the filter is on.
|
|
1821
|
+
|
|
1822
|
+
### Accessibility
|
|
1823
|
+
|
|
1824
|
+
`Filter` renders a native toggle `<button>`. It follows the [WAI-ARIA button pattern](https://www.w3.org/WAI/ARIA/apg/patterns/button/) for toggle buttons.
|
|
1825
|
+
|
|
1826
|
+
* **Toggle Button (aria-pressed):** Reports `true` when selected and `false` when not. Enter and Space toggle it.
|
|
1827
|
+
* **Tab Order (Tab):** Each filter is its own stop in the tab order. A row has no arrow keys.
|
|
1828
|
+
* **Unavailable (aria-disabled):** Keeps an unavailable filter focusable and named, and a press does nothing.
|
|
1829
|
+
|
|
1830
|
+
#### Your Responsibilities
|
|
1831
|
+
|
|
1832
|
+
* **Name the Row (role="group"):** Set each row in a group with an `aria-label`, such as Filter posts by category.
|
|
1833
|
+
|
|
1834
|
+
### Related
|
|
1835
|
+
|
|
1836
|
+
[Tag](/marketing/components/tag)
|
|
1837
|
+
|
|
1838
|
+
Use for a fixed label.
|
|
1839
|
+
|
|
1840
|
+
[Button](/marketing/components/button)
|
|
1841
|
+
|
|
1842
|
+
Use for an action.
|
|
1843
|
+
|
|
1844
|
+
[Article Index](/marketing/sections/article-index)
|
|
1845
|
+
|
|
1846
|
+
Use for a hub's list of articles with its filters.
|
|
1847
|
+
|
|
1594
1848
|
## Link
|
|
1595
1849
|
|
|
1596
1850
|
Links quietly to another page, ending in an icon.
|
|
@@ -1901,11 +2155,14 @@ Covers hover, press, and focus for every part.
|
|
|
1901
2155
|
|
|
1902
2156
|
## Logo
|
|
1903
2157
|
|
|
1904
|
-
Shows the Tempo wordmark where
|
|
2158
|
+
Shows the Tempo wordmark, or its T where only a square fits.
|
|
1905
2159
|
|
|
1906
2160
|
### Overview
|
|
1907
2161
|
|
|
1908
|
-
The Tempo
|
|
2162
|
+
The Tempo logo, an inline SVG in black. The `wordmark` (default) draws the whole name, which the navigation shows on every page as the link home. The `mark` draws its T in a square, which the footer shows. The logo loads no file, keeps its drawing's ratio, and follows forced colors.
|
|
2163
|
+
|
|
2164
|
+
> [!NOTE]
|
|
2165
|
+
> `Logo variant="mark"` replaces `Mark`, which still works for one release.
|
|
1909
2166
|
|
|
1910
2167
|
### Examples
|
|
1911
2168
|
|
|
@@ -1982,150 +2239,30 @@ namespace styles {
|
|
|
1982
2239
|
|
|
1983
2240
|
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Logo/White.tsx)
|
|
1984
2241
|
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
```tsx
|
|
1988
|
-
import { Logo } from '@tempoxyz/ds/marketing'
|
|
1989
|
-
|
|
1990
|
-
<Logo />
|
|
1991
|
-
```
|
|
1992
|
-
|
|
1993
|
-
### Guidelines
|
|
1994
|
-
|
|
1995
|
-
#### When to Use
|
|
1996
|
-
|
|
1997
|
-
* Link home where the whole name fits, as in the navigation.
|
|
1998
|
-
|
|
1999
|
-
#### When Not to Use
|
|
2000
|
-
|
|
2001
|
-
* Use [Mark](/marketing/components/mark) in a square or small space, such as a footer's link home.
|
|
2002
|
-
* Use [Symbol Tile](/marketing/components/symbol-tile) for a partner's logo.
|
|
2003
|
-
* Write Tempo as a word in running text.
|
|
2004
|
-
|
|
2005
|
-
#### Keep Its Shape
|
|
2006
|
-
|
|
2007
|
-
Set `width` and `height` in the drawing's 207 to 46 ratio, such as 91 by 20. A box of another ratio leaves space beside the wordmark.
|
|
2008
|
-
|
|
2009
|
-
**Do:** Scale both sides together.
|
|
2010
|
-
|
|
2011
|
-
```tsx
|
|
2012
|
-
<Logo height={20} width={91} />
|
|
2013
|
-
```
|
|
2014
|
-
|
|
2015
|
-
**Don't:** Set a box of another ratio, which leaves space around the wordmark.
|
|
2016
|
-
|
|
2017
|
-
```tsx
|
|
2018
|
-
<Logo height={40} width={91} />
|
|
2019
|
-
```
|
|
2020
|
-
|
|
2021
|
-
#### Keep the Wordmark Neutral
|
|
2022
|
-
|
|
2023
|
-
Draw it in black on the light page, or white on a dark ground. Hue stays for status and art.
|
|
2024
|
-
|
|
2025
|
-
#### Draw It From Code
|
|
2026
|
-
|
|
2027
|
-
Use `Logo`, never an image file, so the wordmark loads no file and takes the system text color in forced colors.
|
|
2028
|
-
|
|
2029
|
-
### Accessibility
|
|
2030
|
-
|
|
2031
|
-
* **Hidden Drawing (aria-hidden):** Renders an `<svg>` hidden from screen readers that never takes focus.
|
|
2032
|
-
* **Forced Colors (CanvasText):** Takes the system text color, unless it has a `fill`. Leave `fill` unset for black.
|
|
2033
|
-
|
|
2034
|
-
#### Your Responsibilities
|
|
2035
|
-
|
|
2036
|
-
* **Name the Link Around It (aria-label):** The wordmark has no name of its own. Name the link around it, such as Tempo home.
|
|
2037
|
-
|
|
2038
|
-
### Related
|
|
2039
|
-
|
|
2040
|
-
[Mark](/marketing/components/mark)
|
|
2041
|
-
|
|
2042
|
-
Use for a square or small space.
|
|
2043
|
-
|
|
2044
|
-
[Symbol Tile](/marketing/components/symbol-tile)
|
|
2045
|
-
|
|
2046
|
-
Use for a partner's logo.
|
|
2047
|
-
|
|
2048
|
-
[Nav](/marketing/sections/nav)
|
|
2049
|
-
|
|
2050
|
-
Use for the bar that links home with the wordmark.
|
|
2051
|
-
|
|
2052
|
-
## Mark
|
|
2053
|
-
|
|
2054
|
-
Shows the Tempo T where only a square fits.
|
|
2055
|
-
|
|
2056
|
-
### Overview
|
|
2057
|
-
|
|
2058
|
-
The T of the Tempo wordmark, drawn as an inline SVG centered in a square. On tempo.xyz, the footer shows it on every page as the link home. Like the wordmark, it loads no file and follows forced colors.
|
|
2059
|
-
|
|
2060
|
-
### Examples
|
|
2061
|
-
|
|
2062
|
-
#### Default
|
|
2063
|
-
|
|
2064
|
-
The T at its own size, 20 by 20, in black.
|
|
2065
|
-
|
|
2066
|
-
```tsx
|
|
2067
|
-
/** Demonstrates the Tempo mark at its own size. @module */
|
|
2068
|
-
import { Mark } from '@tempoxyz/ds/marketing'
|
|
2242
|
+
#### Mark
|
|
2069
2243
|
|
|
2070
|
-
|
|
2071
|
-
return <Mark />
|
|
2072
|
-
}
|
|
2073
|
-
```
|
|
2074
|
-
|
|
2075
|
-
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Mark/Default.tsx)
|
|
2076
|
-
|
|
2077
|
-
#### Size
|
|
2078
|
-
|
|
2079
|
-
Set `width` and `height` to the same size.
|
|
2244
|
+
Set `variant="mark"` for the T in a square or small space, with `width` and `height` set to the same size.
|
|
2080
2245
|
|
|
2081
2246
|
```tsx
|
|
2082
|
-
/** Demonstrates the Tempo mark at the sizes the site draws it. @module */
|
|
2083
|
-
import {
|
|
2247
|
+
/** Demonstrates the Tempo logo's mark at the sizes the site draws it. @module */
|
|
2248
|
+
import { Logo, style } from '@tempoxyz/ds/marketing'
|
|
2084
2249
|
|
|
2085
2250
|
export function Demo() {
|
|
2086
2251
|
return (
|
|
2087
2252
|
<div {...styles.row()}>
|
|
2088
|
-
<
|
|
2089
|
-
<
|
|
2090
|
-
<
|
|
2091
|
-
</div>
|
|
2092
|
-
)
|
|
2093
|
-
}
|
|
2094
|
-
|
|
2095
|
-
namespace styles {
|
|
2096
|
-
export const row = style({ alignItems: 'center', display: 'flex', gap: '16' })
|
|
2097
|
-
}
|
|
2098
|
-
```
|
|
2099
|
-
|
|
2100
|
-
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Mark/Size.tsx)
|
|
2101
|
-
|
|
2102
|
-
#### White
|
|
2103
|
-
|
|
2104
|
-
Set `fill="white"` on a dark ground.
|
|
2105
|
-
|
|
2106
|
-
```tsx
|
|
2107
|
-
/** Demonstrates the Tempo mark in white on a dark ground. @module */
|
|
2108
|
-
import { Mark, style } from '@tempoxyz/ds/marketing'
|
|
2109
|
-
|
|
2110
|
-
export function Demo() {
|
|
2111
|
-
return (
|
|
2112
|
-
<div {...styles.ground()}>
|
|
2113
|
-
<Mark fill="white" />
|
|
2114
|
-
</div>
|
|
2115
|
-
)
|
|
2116
|
-
}
|
|
2117
|
-
|
|
2118
|
-
namespace styles {
|
|
2119
|
-
export const ground = style({
|
|
2120
|
-
backgroundColor: 'inverse.background.primary',
|
|
2121
|
-
borderRadius: 'lg',
|
|
2122
|
-
display: 'flex',
|
|
2123
|
-
padding: '24',
|
|
2124
|
-
})
|
|
2253
|
+
<Logo variant="mark" />
|
|
2254
|
+
<Logo height={16} variant="mark" width={16} />
|
|
2255
|
+
<Logo height={10} variant="mark" width={10} />
|
|
2256
|
+
</div>
|
|
2257
|
+
)
|
|
2258
|
+
}
|
|
2259
|
+
|
|
2260
|
+
namespace styles {
|
|
2261
|
+
export const row = style({ alignItems: 'center', display: 'flex', gap: '16' })
|
|
2125
2262
|
}
|
|
2126
2263
|
```
|
|
2127
2264
|
|
|
2128
|
-
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Mark
|
|
2265
|
+
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Logo/Mark.tsx)
|
|
2129
2266
|
|
|
2130
2267
|
#### Text Color
|
|
2131
2268
|
|
|
@@ -2133,12 +2270,12 @@ Set `fill="currentColor"` to take the color of the text beside it, as on the par
|
|
|
2133
2270
|
|
|
2134
2271
|
```tsx
|
|
2135
2272
|
/** Demonstrates the Tempo mark in the text color beside it. @module */
|
|
2136
|
-
import {
|
|
2273
|
+
import { Logo, style } from '@tempoxyz/ds/marketing'
|
|
2137
2274
|
|
|
2138
2275
|
export function Demo() {
|
|
2139
2276
|
return (
|
|
2140
2277
|
<span {...styles.label()}>
|
|
2141
|
-
<
|
|
2278
|
+
<Logo fill="currentColor" height={10} variant="mark" width={10} />
|
|
2142
2279
|
Built on Tempo
|
|
2143
2280
|
</span>
|
|
2144
2281
|
)
|
|
@@ -2155,48 +2292,51 @@ namespace styles {
|
|
|
2155
2292
|
}
|
|
2156
2293
|
```
|
|
2157
2294
|
|
|
2158
|
-
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/
|
|
2295
|
+
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Logo/TextColor.tsx)
|
|
2159
2296
|
|
|
2160
2297
|
### Anatomy
|
|
2161
2298
|
|
|
2162
2299
|
```tsx
|
|
2163
|
-
import {
|
|
2300
|
+
import { Logo } from '@tempoxyz/ds/marketing'
|
|
2164
2301
|
|
|
2165
|
-
<
|
|
2302
|
+
<Logo />
|
|
2166
2303
|
```
|
|
2167
2304
|
|
|
2168
2305
|
### Guidelines
|
|
2169
2306
|
|
|
2170
2307
|
#### When to Use
|
|
2171
2308
|
|
|
2172
|
-
* Link home
|
|
2173
|
-
*
|
|
2309
|
+
* Link home where the whole name fits, as in the navigation, with the `wordmark`.
|
|
2310
|
+
* Link home in a square or small space, such as a footer, with the `mark`.
|
|
2174
2311
|
|
|
2175
2312
|
#### When Not to Use
|
|
2176
2313
|
|
|
2177
|
-
* Use [Logo](/marketing/components/logo) in the navigation, or anywhere the whole name fits.
|
|
2178
2314
|
* Use [Symbol Tile](/marketing/components/symbol-tile) for a partner's logo.
|
|
2179
|
-
*
|
|
2315
|
+
* Write Tempo as a word in running text.
|
|
2180
2316
|
|
|
2181
|
-
#### Keep
|
|
2317
|
+
#### Keep Its Shape
|
|
2182
2318
|
|
|
2183
|
-
Set `width` and `height` to the
|
|
2319
|
+
Set `width` and `height` in the drawing's ratio: 207 to 46 for the `wordmark`, such as 91 by 20, and square for the `mark`. A box of another ratio leaves space beside the drawing.
|
|
2184
2320
|
|
|
2185
|
-
**Do:**
|
|
2321
|
+
**Do:** Scale both sides together.
|
|
2186
2322
|
|
|
2187
2323
|
```tsx
|
|
2188
|
-
<
|
|
2324
|
+
<Logo height={20} width={91} />
|
|
2189
2325
|
```
|
|
2190
2326
|
|
|
2191
|
-
**Don't:**
|
|
2327
|
+
**Don't:** Set a box of another ratio, which leaves space around the wordmark.
|
|
2192
2328
|
|
|
2193
2329
|
```tsx
|
|
2194
|
-
<
|
|
2330
|
+
<Logo height={40} width={91} />
|
|
2195
2331
|
```
|
|
2196
2332
|
|
|
2197
|
-
#### Keep the
|
|
2333
|
+
#### Keep the Wordmark Neutral
|
|
2334
|
+
|
|
2335
|
+
Draw it in black on the light page, or white on a dark ground. Hue stays for status and art.
|
|
2336
|
+
|
|
2337
|
+
#### Draw It From Code
|
|
2198
2338
|
|
|
2199
|
-
|
|
2339
|
+
Use `Logo`, never an image file, so the wordmark loads no file and takes the system text color in forced colors.
|
|
2200
2340
|
|
|
2201
2341
|
### Accessibility
|
|
2202
2342
|
|
|
@@ -2205,21 +2345,21 @@ Draw it in black, white, or the text color beside it. Hue stays for status and a
|
|
|
2205
2345
|
|
|
2206
2346
|
#### Your Responsibilities
|
|
2207
2347
|
|
|
2208
|
-
* **Name It
|
|
2348
|
+
* **Name the Link Around It (aria-label):** The wordmark has no name of its own. Name the link around it, such as Tempo home.
|
|
2209
2349
|
|
|
2210
2350
|
### Related
|
|
2211
2351
|
|
|
2212
|
-
[
|
|
2352
|
+
[Footer](/marketing/sections/footer)
|
|
2213
2353
|
|
|
2214
|
-
Use for the
|
|
2354
|
+
Use for the site map that links home with the mark.
|
|
2215
2355
|
|
|
2216
|
-
[
|
|
2356
|
+
[Symbol Tile](/marketing/components/symbol-tile)
|
|
2217
2357
|
|
|
2218
|
-
|
|
2358
|
+
Use for a partner's logo.
|
|
2219
2359
|
|
|
2220
|
-
[
|
|
2360
|
+
[Nav](/marketing/sections/nav)
|
|
2221
2361
|
|
|
2222
|
-
Use for the
|
|
2362
|
+
Use for the bar that links home with the wordmark.
|
|
2223
2363
|
|
|
2224
2364
|
## Symbol Tile
|
|
2225
2365
|
|
|
@@ -2478,260 +2618,6 @@ Use for a short label with a small icon inside it.
|
|
|
2478
2618
|
|
|
2479
2619
|
Covers the icons a tile holds and the sizes they draw at.
|
|
2480
2620
|
|
|
2481
|
-
## Tab
|
|
2482
|
-
|
|
2483
|
-
Toggles a choice, such as a filter.
|
|
2484
|
-
|
|
2485
|
-
### Overview
|
|
2486
|
-
|
|
2487
|
-
A native toggle button for a choice that changes what a page shows in place, such as the blog's category filters. A tab reports whether it is on. It is never a tab in a tablist, so it switches no panels.
|
|
2488
|
-
|
|
2489
|
-
A tab rests as an outline and fills gray when selected, so a row of tabs never reads as a row of buttons.
|
|
2490
|
-
|
|
2491
|
-
### Examples
|
|
2492
|
-
|
|
2493
|
-
#### Filter Group
|
|
2494
|
-
|
|
2495
|
-
Set `selected` on the chosen tab, and update it from `onPressedChange`, in a named group, as the blog's category filters do.
|
|
2496
|
-
|
|
2497
|
-
```tsx
|
|
2498
|
-
/** Demonstrates a named group of small Marketing tabs that filters posts by category. @module */
|
|
2499
|
-
import { style, Tab } from '@tempoxyz/ds/marketing'
|
|
2500
|
-
import { useState } from 'react'
|
|
2501
|
-
|
|
2502
|
-
export function Demo() {
|
|
2503
|
-
const [category, setCategory] = useState<string | undefined>('Partners')
|
|
2504
|
-
|
|
2505
|
-
return (
|
|
2506
|
-
<div aria-label="Filter posts by category" role="group" {...styles.row()}>
|
|
2507
|
-
{['Partners', 'Product', 'Stablecoins', 'Research'].map((label) => (
|
|
2508
|
-
<Tab
|
|
2509
|
-
key={label}
|
|
2510
|
-
onPressedChange={(pressed) => setCategory(pressed ? label : undefined)}
|
|
2511
|
-
selected={category === label}
|
|
2512
|
-
size="small"
|
|
2513
|
-
>
|
|
2514
|
-
{label}
|
|
2515
|
-
</Tab>
|
|
2516
|
-
))}
|
|
2517
|
-
</div>
|
|
2518
|
-
)
|
|
2519
|
-
}
|
|
2520
|
-
|
|
2521
|
-
namespace styles {
|
|
2522
|
-
export const row = style({ display: 'flex', flexWrap: 'wrap', gap: '8' })
|
|
2523
|
-
}
|
|
2524
|
-
```
|
|
2525
|
-
|
|
2526
|
-
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Tab/FilterGroup.tsx)
|
|
2527
|
-
|
|
2528
|
-
#### Size
|
|
2529
|
-
|
|
2530
|
-
Set `size` to `small` for an index's filters, or to `medium` (default) or `large` for a directory's rows.
|
|
2531
|
-
|
|
2532
|
-
```tsx
|
|
2533
|
-
/** Demonstrates each Marketing tab size. @module */
|
|
2534
|
-
import { style, Tab } from '@tempoxyz/ds/marketing'
|
|
2535
|
-
import { useState } from 'react'
|
|
2536
|
-
|
|
2537
|
-
const sizes = ['small', 'medium', 'large'] as const
|
|
2538
|
-
|
|
2539
|
-
export function Demo() {
|
|
2540
|
-
const [size, setSize] = useState<string | undefined>('medium')
|
|
2541
|
-
|
|
2542
|
-
return (
|
|
2543
|
-
<div aria-label="Sizes" role="group" {...styles.row()}>
|
|
2544
|
-
{sizes.map((option) => (
|
|
2545
|
-
<Tab
|
|
2546
|
-
key={option}
|
|
2547
|
-
onPressedChange={(pressed) => setSize(pressed ? option : undefined)}
|
|
2548
|
-
selected={size === option}
|
|
2549
|
-
size={option}
|
|
2550
|
-
>
|
|
2551
|
-
{option.charAt(0).toUpperCase() + option.slice(1)}
|
|
2552
|
-
</Tab>
|
|
2553
|
-
))}
|
|
2554
|
-
</div>
|
|
2555
|
-
)
|
|
2556
|
-
}
|
|
2557
|
-
|
|
2558
|
-
namespace styles {
|
|
2559
|
-
export const row = style({ alignItems: 'center', display: 'flex', flexWrap: 'wrap', gap: '8' })
|
|
2560
|
-
}
|
|
2561
|
-
```
|
|
2562
|
-
|
|
2563
|
-
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Tab/Size.tsx)
|
|
2564
|
-
|
|
2565
|
-
#### Inverse
|
|
2566
|
-
|
|
2567
|
-
Set `appearance="inverse"` in a dark section. The outline and the gray fill turn white.
|
|
2568
|
-
|
|
2569
|
-
```tsx
|
|
2570
|
-
/** Demonstrates Marketing tabs in a dark section, led by an All tab. @module */
|
|
2571
|
-
import { style, Tab } from '@tempoxyz/ds/marketing'
|
|
2572
|
-
import { useState } from 'react'
|
|
2573
|
-
|
|
2574
|
-
export const surface = 'inverse'
|
|
2575
|
-
|
|
2576
|
-
export function Demo() {
|
|
2577
|
-
const [region, setRegion] = useState<string>()
|
|
2578
|
-
|
|
2579
|
-
return (
|
|
2580
|
-
<div aria-label="Filter by region" role="group" {...styles.section()}>
|
|
2581
|
-
<Tab
|
|
2582
|
-
appearance="inverse"
|
|
2583
|
-
onPressedChange={() => setRegion(undefined)}
|
|
2584
|
-
selected={!region}
|
|
2585
|
-
size="small"
|
|
2586
|
-
>
|
|
2587
|
-
All
|
|
2588
|
-
</Tab>
|
|
2589
|
-
{['Americas', 'Europe'].map((label) => (
|
|
2590
|
-
<Tab
|
|
2591
|
-
appearance="inverse"
|
|
2592
|
-
key={label}
|
|
2593
|
-
onPressedChange={(pressed) => setRegion(pressed ? label : undefined)}
|
|
2594
|
-
selected={region === label}
|
|
2595
|
-
size="small"
|
|
2596
|
-
>
|
|
2597
|
-
{label}
|
|
2598
|
-
</Tab>
|
|
2599
|
-
))}
|
|
2600
|
-
</div>
|
|
2601
|
-
)
|
|
2602
|
-
}
|
|
2603
|
-
|
|
2604
|
-
namespace styles {
|
|
2605
|
-
export const section = style({
|
|
2606
|
-
backgroundColor: 'inverse.background.primary',
|
|
2607
|
-
borderRadius: 'lg',
|
|
2608
|
-
display: 'flex',
|
|
2609
|
-
flexWrap: 'wrap',
|
|
2610
|
-
gap: '8',
|
|
2611
|
-
padding: '24',
|
|
2612
|
-
})
|
|
2613
|
-
}
|
|
2614
|
-
```
|
|
2615
|
-
|
|
2616
|
-
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Tab/Inverse.tsx)
|
|
2617
|
-
|
|
2618
|
-
#### Overlay
|
|
2619
|
-
|
|
2620
|
-
Set `appearance="overlay"` over a photo or video. A dark glass keeps each label legible, and the selected tab deepens it.
|
|
2621
|
-
|
|
2622
|
-
```tsx
|
|
2623
|
-
/** Demonstrates Marketing tabs over a photo. @module */
|
|
2624
|
-
import { style, Tab } from '@tempoxyz/ds/marketing'
|
|
2625
|
-
import { useState } from 'react'
|
|
2626
|
-
|
|
2627
|
-
export const surface = 'overlay'
|
|
2628
|
-
|
|
2629
|
-
export function Demo() {
|
|
2630
|
-
const [view, setView] = useState<string | undefined>('Video')
|
|
2631
|
-
|
|
2632
|
-
return (
|
|
2633
|
-
<div aria-label="Media" role="group" {...styles.photo()}>
|
|
2634
|
-
{['Video', 'Photos'].map((label) => (
|
|
2635
|
-
<Tab
|
|
2636
|
-
appearance="overlay"
|
|
2637
|
-
key={label}
|
|
2638
|
-
onPressedChange={(pressed) => setView(pressed ? label : undefined)}
|
|
2639
|
-
selected={view === label}
|
|
2640
|
-
>
|
|
2641
|
-
{label}
|
|
2642
|
-
</Tab>
|
|
2643
|
-
))}
|
|
2644
|
-
</div>
|
|
2645
|
-
)
|
|
2646
|
-
}
|
|
2647
|
-
|
|
2648
|
-
namespace styles {
|
|
2649
|
-
// A mid-tone gradient stands in for a photo.
|
|
2650
|
-
export const photo = style({
|
|
2651
|
-
backgroundImage: 'linear-gradient(135deg, #6b7f99, #a3866a) !custom',
|
|
2652
|
-
borderRadius: 'lg',
|
|
2653
|
-
display: 'flex',
|
|
2654
|
-
flexWrap: 'wrap',
|
|
2655
|
-
gap: '8',
|
|
2656
|
-
padding: '24',
|
|
2657
|
-
})
|
|
2658
|
-
}
|
|
2659
|
-
```
|
|
2660
|
-
|
|
2661
|
-
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Tab/Overlay.tsx)
|
|
2662
|
-
|
|
2663
|
-
### Anatomy
|
|
2664
|
-
|
|
2665
|
-
```tsx
|
|
2666
|
-
import { Tab } from '@tempoxyz/ds/marketing'
|
|
2667
|
-
|
|
2668
|
-
<Tab />
|
|
2669
|
-
```
|
|
2670
|
-
|
|
2671
|
-
### Guidelines
|
|
2672
|
-
|
|
2673
|
-
#### When to Use
|
|
2674
|
-
|
|
2675
|
-
* Filter an index page, such as the blog by category.
|
|
2676
|
-
* Switch between segmented views of one list.
|
|
2677
|
-
|
|
2678
|
-
#### When Not to Use
|
|
2679
|
-
|
|
2680
|
-
* Use [Link](/marketing/components/link), or [Button](/marketing/components/button) as a link, to go to another page.
|
|
2681
|
-
* Use [Tag](/marketing/components/tag) for a fixed label.
|
|
2682
|
-
* Use a tablist with arrow keys for tabbed panels.
|
|
2683
|
-
|
|
2684
|
-
#### Let a Visitor Clear a Filter
|
|
2685
|
-
|
|
2686
|
-
Clear the filter on a second press of the selected tab, or put an All tab first in the row.
|
|
2687
|
-
|
|
2688
|
-
#### Show the Choice With the Fill
|
|
2689
|
-
|
|
2690
|
-
The gray fill alone marks the selected tab, so a tab keeps its size in both states.
|
|
2691
|
-
|
|
2692
|
-
* **Unselected (Outline):** Rests as an outline, and tints on hover.
|
|
2693
|
-
* **Selected (Gray Fill):** Fills gray, and deepens a step on press.
|
|
2694
|
-
|
|
2695
|
-
#### Give Tabs in a Row One Size
|
|
2696
|
-
|
|
2697
|
-
Use `small` for an index's filters and `medium` or `large` for a directory's rows. Never mix sizes in one row.
|
|
2698
|
-
|
|
2699
|
-
### Content
|
|
2700
|
-
|
|
2701
|
-
#### Keep Labels Short & Fixed
|
|
2702
|
-
|
|
2703
|
-
Label each tab in one or two words, and keep the label the same whether it is selected or not.
|
|
2704
|
-
|
|
2705
|
-
**Do:** Write Partners, the same in both states.
|
|
2706
|
-
|
|
2707
|
-
**Don't:** Change the label to Showing partners when the tab is on.
|
|
2708
|
-
|
|
2709
|
-
### Accessibility
|
|
2710
|
-
|
|
2711
|
-
`Tab` renders a native toggle `<button>`. It follows the [WAI-ARIA button pattern](https://www.w3.org/WAI/ARIA/apg/patterns/button/) for toggle buttons.
|
|
2712
|
-
|
|
2713
|
-
* **Toggle Button (aria-pressed):** Reports `true` when selected and `false` when not. Enter and Space toggle it.
|
|
2714
|
-
* **Tab Order (Tab):** Each tab is its own stop in the tab order. A row has no arrow keys.
|
|
2715
|
-
* **Unavailable (aria-disabled):** Keeps an unavailable tab focusable and named, and a press does nothing.
|
|
2716
|
-
|
|
2717
|
-
#### Your Responsibilities
|
|
2718
|
-
|
|
2719
|
-
* **Name the Row (role="group"):** Set each row in a group with an `aria-label`, such as Filter posts by category.
|
|
2720
|
-
|
|
2721
|
-
### Related
|
|
2722
|
-
|
|
2723
|
-
[Tag](/marketing/components/tag)
|
|
2724
|
-
|
|
2725
|
-
Use for a fixed label.
|
|
2726
|
-
|
|
2727
|
-
[Button](/marketing/components/button)
|
|
2728
|
-
|
|
2729
|
-
Use for an action.
|
|
2730
|
-
|
|
2731
|
-
[Article Index](/marketing/sections/article-index)
|
|
2732
|
-
|
|
2733
|
-
Use for a hub's list of articles with its filters.
|
|
2734
|
-
|
|
2735
2621
|
## Tag
|
|
2736
2622
|
|
|
2737
2623
|
Labels one fixed fact, or links to its topic.
|
|
@@ -3739,7 +3625,7 @@ How every part reacts to a pointer, a keyboard and a screen reader.
|
|
|
3739
3625
|
|
|
3740
3626
|
Marketing parts respond to a pointer, a keyboard, and a screen reader the same way on every page. A state changes a part's color, fill, or opacity, never its size, so nothing shifts as a visitor moves through a page.
|
|
3741
3627
|
|
|
3742
|
-
Each part draws its own states. A page sets only what it knows, such as `busy` while an action runs, `aria-disabled` when it cannot run, or which [
|
|
3628
|
+
Each part draws its own states. A page sets only what it knows, such as `busy` while an action runs, `aria-disabled` when it cannot run, or which [Filter](/marketing/components/filter) is selected.
|
|
3743
3629
|
|
|
3744
3630
|
### Examples
|
|
3745
3631
|
|
|
@@ -3771,8 +3657,8 @@ namespace styles {
|
|
|
3771
3657
|
#### Selected
|
|
3772
3658
|
|
|
3773
3659
|
```tsx
|
|
3774
|
-
/** Demonstrates a named group of small Marketing
|
|
3775
|
-
import {
|
|
3660
|
+
/** Demonstrates a named group of small Marketing filters that filters posts by category. @module */
|
|
3661
|
+
import { Filter, style } from '@tempoxyz/ds/marketing'
|
|
3776
3662
|
import { useState } from 'react'
|
|
3777
3663
|
|
|
3778
3664
|
export function Demo() {
|
|
@@ -3781,14 +3667,14 @@ export function Demo() {
|
|
|
3781
3667
|
return (
|
|
3782
3668
|
<div aria-label="Filter posts by category" role="group" {...styles.row()}>
|
|
3783
3669
|
{['Partners', 'Product', 'Stablecoins', 'Research'].map((label) => (
|
|
3784
|
-
<
|
|
3670
|
+
<Filter
|
|
3785
3671
|
key={label}
|
|
3786
3672
|
onPressedChange={(pressed) => setCategory(pressed ? label : undefined)}
|
|
3787
3673
|
selected={category === label}
|
|
3788
3674
|
size="small"
|
|
3789
3675
|
>
|
|
3790
3676
|
{label}
|
|
3791
|
-
</
|
|
3677
|
+
</Filter>
|
|
3792
3678
|
))}
|
|
3793
3679
|
</div>
|
|
3794
3680
|
)
|
|
@@ -3799,7 +3685,7 @@ namespace styles {
|
|
|
3799
3685
|
}
|
|
3800
3686
|
```
|
|
3801
3687
|
|
|
3802
|
-
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/
|
|
3688
|
+
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Filter/FilterGroup.tsx)
|
|
3803
3689
|
|
|
3804
3690
|
#### Busy & Unavailable
|
|
3805
3691
|
|
|
@@ -3839,7 +3725,7 @@ namespace styles {
|
|
|
3839
3725
|
|
|
3840
3726
|
How far a press dims a part, and how far the focus ring sits outside it.
|
|
3841
3727
|
|
|
3842
|
-
* **Pressed Control (press):** A pressed dark Button or
|
|
3728
|
+
* **Pressed Control (press):** A pressed dark Button or Filter, or a Tag over media, dims to 0.65.
|
|
3843
3729
|
* **Pressed Link or Card (pressSurface):** A pressed link, row, or card dims to 0.72.
|
|
3844
3730
|
* **Receding Items (recede):** The rest of a list that spotlights the item under the pointer reads at 0.56.
|
|
3845
3731
|
* **Disabled (disabled):** A disabled part reads at 0.4 and takes no hover or press.
|
|
@@ -3892,7 +3778,7 @@ Covers names, targets, and forced colors.
|
|
|
3892
3778
|
|
|
3893
3779
|
Use for an action that can be busy or unavailable.
|
|
3894
3780
|
|
|
3895
|
-
[
|
|
3781
|
+
[Filter](/marketing/components/filter)
|
|
3896
3782
|
|
|
3897
3783
|
Use for a choice that reports `aria-pressed`.
|
|
3898
3784
|
|
|
@@ -4082,7 +3968,31 @@ export function Demo() {
|
|
|
4082
3968
|
}
|
|
4083
3969
|
```
|
|
4084
3970
|
|
|
4085
|
-
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/ArticleBody/Default.tsx)
|
|
3971
|
+
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/ArticleBody/Default.tsx)
|
|
3972
|
+
|
|
3973
|
+
#### Quote
|
|
3974
|
+
|
|
3975
|
+
Set one person's words apart in a story's text with `ArticleBody.Quote`, its `author` and `affiliation`. Set `marks` for words written without quotation marks.
|
|
3976
|
+
|
|
3977
|
+
```tsx
|
|
3978
|
+
/** Demonstrates a credited quote in a story's text, drawn with its quotation marks. @module */
|
|
3979
|
+
import { ArticleBody } from '@tempoxyz/ds/marketing'
|
|
3980
|
+
|
|
3981
|
+
export const fill = true
|
|
3982
|
+
|
|
3983
|
+
export function Demo() {
|
|
3984
|
+
return (
|
|
3985
|
+
<ArticleBody>
|
|
3986
|
+
<ArticleBody.Quote affiliation="Co-founder, DoorDash" author="Andy Fang" marks>
|
|
3987
|
+
There’s real promise with stablecoins transforming financial infrastructure, not just in
|
|
3988
|
+
America, but globally. We want to be a proactive participant and not just passive.
|
|
3989
|
+
</ArticleBody.Quote>
|
|
3990
|
+
</ArticleBody>
|
|
3991
|
+
)
|
|
3992
|
+
}
|
|
3993
|
+
```
|
|
3994
|
+
|
|
3995
|
+
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/ArticleBody/Quote.tsx)
|
|
4086
3996
|
|
|
4087
3997
|
#### Legal
|
|
4088
3998
|
|
|
@@ -4458,7 +4368,7 @@ Pass `render` for router links, such as a Next.js link. It renders every row's l
|
|
|
4458
4368
|
### Accessibility
|
|
4459
4369
|
|
|
4460
4370
|
* **Region (section):** The section takes its name from its heading, such as Latest posts.
|
|
4461
|
-
* **Filters (aria-controls):** The filters sit in a named group, and each [
|
|
4371
|
+
* **Filters (aria-controls):** The filters sit in a named group, and each [Filter](/marketing/components/filter) points to the list.
|
|
4462
4372
|
* **Toggle a Filter (aria-pressed):** Each filter is a toggle button. A second press clears it and shows every article.
|
|
4463
4373
|
|
|
4464
4374
|
#### Your Responsibilities
|
|
@@ -4467,7 +4377,7 @@ Pass `render` for router links, such as a Next.js link. It renders every row's l
|
|
|
4467
4377
|
|
|
4468
4378
|
### Related
|
|
4469
4379
|
|
|
4470
|
-
[
|
|
4380
|
+
[Filter](/marketing/components/filter)
|
|
4471
4381
|
|
|
4472
4382
|
Covers the label filters.
|
|
4473
4383
|
|
|
@@ -5152,148 +5062,16 @@ Use for the heading over a set of cards.
|
|
|
5152
5062
|
|
|
5153
5063
|
Covers the two stories that close each story.
|
|
5154
5064
|
|
|
5155
|
-
## Contact
|
|
5156
|
-
|
|
5157
|
-
Closes a page on the contact form, in one white card.
|
|
5158
|
-
|
|
5159
|
-
### Overview
|
|
5160
|
-
|
|
5161
|
-
The `<section>` that closes a page on its contact form: one white card that holds a title, an optional line, and the form, inset on the page's columns from 1024px. Optional fine print sits under the card. The page passes its own form.
|
|
5162
|
-
|
|
5163
|
-
### Examples
|
|
5164
|
-
|
|
5165
|
-
#### Default
|
|
5166
|
-
|
|
5167
|
-
Set `title` and `description` over the form, passed as `children`, as a product page closes. Build each field from a [Field](/marketing/components/field) with a visible label. Resize the preview to see the card inset on the columns at 1024px.
|
|
5168
|
-
|
|
5169
|
-
```tsx
|
|
5170
|
-
/** Demonstrates the Marketing contact band around a contact form of labeled fields. @module */
|
|
5171
|
-
import { Button, Contact, Field, style } from '@tempoxyz/ds/marketing'
|
|
5172
|
-
|
|
5173
|
-
export const fill = true
|
|
5174
|
-
|
|
5175
|
-
export function Demo() {
|
|
5176
|
-
return (
|
|
5177
|
-
<Contact
|
|
5178
|
-
description="Work with Tempo to scope currencies, access custom pricing, and design your payment flows."
|
|
5179
|
-
title="Build with Tempo Routes"
|
|
5180
|
-
>
|
|
5181
|
-
<form onSubmit={(event) => event.preventDefault()} {...styles.form()}>
|
|
5182
|
-
<Field.Root name="email">
|
|
5183
|
-
<Field.Label>Work email</Field.Label>
|
|
5184
|
-
<Field.Control autoComplete="email" required type="email" />
|
|
5185
|
-
<Field.Error>Enter a valid work email.</Field.Error>
|
|
5186
|
-
</Field.Root>
|
|
5187
|
-
<Field.Root name="company">
|
|
5188
|
-
<Field.Label>Company</Field.Label>
|
|
5189
|
-
<Field.Control autoComplete="organization" required />
|
|
5190
|
-
<Field.Error>Enter your company.</Field.Error>
|
|
5191
|
-
</Field.Root>
|
|
5192
|
-
<Field.Root name="role">
|
|
5193
|
-
<Field.Label>Job title (optional)</Field.Label>
|
|
5194
|
-
<Field.Control autoComplete="organization-title" />
|
|
5195
|
-
</Field.Root>
|
|
5196
|
-
<div>
|
|
5197
|
-
<Button size="large" type="submit">
|
|
5198
|
-
Submit
|
|
5199
|
-
</Button>
|
|
5200
|
-
</div>
|
|
5201
|
-
</form>
|
|
5202
|
-
</Contact>
|
|
5203
|
-
)
|
|
5204
|
-
}
|
|
5205
|
-
|
|
5206
|
-
namespace styles {
|
|
5207
|
-
export const form = style({ display: 'flex', flexDirection: 'column', gap: '24' })
|
|
5208
|
-
}
|
|
5209
|
-
```
|
|
5210
|
-
|
|
5211
|
-
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Contact/Default.tsx)
|
|
5212
|
-
|
|
5213
|
-
### Anatomy
|
|
5214
|
-
|
|
5215
|
-
```tsx
|
|
5216
|
-
import { Contact } from '@tempoxyz/ds/marketing'
|
|
5217
|
-
|
|
5218
|
-
<Contact />
|
|
5219
|
-
```
|
|
5220
|
-
|
|
5221
|
-
### Guidelines
|
|
5222
|
-
|
|
5223
|
-
#### When to Use
|
|
5224
|
-
|
|
5225
|
-
* Close a product or solution page after its questions.
|
|
5226
|
-
|
|
5227
|
-
#### When Not to Use
|
|
5228
|
-
|
|
5229
|
-
* Use [CTA](/marketing/sections/cta) for a close on buttons or the newsletter form.
|
|
5230
|
-
* Use the [Contact](/marketing/templates/contact) template for a page whose whole job is the form.
|
|
5231
|
-
|
|
5232
|
-
#### Label Every Field
|
|
5233
|
-
|
|
5234
|
-
Give each field a visible `Field.Label` above it, and mark the optional ones Optional. A placeholder alone disappears as the visitor types.
|
|
5235
|
-
|
|
5236
|
-
#### Hold the Form & Only It
|
|
5237
|
-
|
|
5238
|
-
Pass the contact form as `children`. The card pads it by the same inset as the copy above it, so nothing else belongs in the card.
|
|
5239
|
-
|
|
5240
|
-
#### Credit Each Lead to Its Page
|
|
5241
|
-
|
|
5242
|
-
If the form records where a lead came from, name this page, such as Tempo Routes product page, so each lead says where it started.
|
|
5243
|
-
|
|
5244
|
-
**Do:** Credit leads on the Routes page to Tempo Routes product page.
|
|
5245
|
-
|
|
5246
|
-
**Don't:** Reuse Tempo Earn product page on Routes, which credits its leads to Earn.
|
|
5247
|
-
|
|
5248
|
-
#### Add a Disclaimer Only When Required
|
|
5249
|
-
|
|
5250
|
-
Set `disclaimer` where the page makes regulated or credit claims, in approved legal wording.
|
|
5251
|
-
|
|
5252
|
-
### Content
|
|
5253
|
-
|
|
5254
|
-
#### Name the Product or Solution
|
|
5255
|
-
|
|
5256
|
-
Title the card in about four words, in sentence case with no closing period, and write `description` as one sentence.
|
|
5257
|
-
|
|
5258
|
-
**Do:** Write Build with Tempo Routes, the product by name.
|
|
5259
|
-
|
|
5260
|
-
**Don't:** Write Contact us, a generic ask.
|
|
5261
|
-
|
|
5262
|
-
### Accessibility
|
|
5263
|
-
|
|
5264
|
-
* **Region (section):** Renders a `<section>` named by its title, which is its `h2`.
|
|
5265
|
-
* **Disclaimer (p):** The disclaimer is a paragraph under the card, read after the form.
|
|
5266
|
-
|
|
5267
|
-
#### Your Responsibilities
|
|
5268
|
-
|
|
5269
|
-
* **Label the Form (Field.Label):** Give every field a visible label, never a placeholder alone, and an error.
|
|
5270
|
-
* **Leave the Section Unnamed:** The card names itself. Leave the [Section](/marketing/sections/section) around it without a name.
|
|
5271
|
-
|
|
5272
|
-
### Related
|
|
5273
|
-
|
|
5274
|
-
[CTA](/marketing/sections/cta)
|
|
5275
|
-
|
|
5276
|
-
Use for a close on buttons or the newsletter form.
|
|
5277
|
-
|
|
5278
|
-
[Field](/marketing/components/field)
|
|
5279
|
-
|
|
5280
|
-
Use for each labeled field of the form.
|
|
5281
|
-
|
|
5282
|
-
[Section](/marketing/sections/section)
|
|
5283
|
-
|
|
5284
|
-
Covers the closing section that places it.
|
|
5285
|
-
|
|
5286
|
-
[Product](/marketing/templates/product)
|
|
5287
|
-
|
|
5288
|
-
Covers a product page's close, from its title to its form.
|
|
5289
|
-
|
|
5290
5065
|
## CTA
|
|
5291
5066
|
|
|
5292
5067
|
Closes a page or an article on its next step, on white cards.
|
|
5293
5068
|
|
|
5294
5069
|
### Overview
|
|
5295
5070
|
|
|
5296
|
-
The `<section>` that closes a page or an article on its next step. The `
|
|
5071
|
+
The `<section>` that closes a page or an article on its next step. The `single` variant is one white card: a title, a line of copy, and the actions, with the copy beside the actions from 1024px. The `cards` variant sets a heading over two white `Cta.Card`s, one per audience. The `contact` variant holds the contact form in one white card.
|
|
5072
|
+
|
|
5073
|
+
> [!NOTE]
|
|
5074
|
+
> `variant` replaces `form`, and `single` replaces its `banner` value. `<Cta variant="contact">` replaces `Contact`. The old names still work for one release.
|
|
5297
5075
|
|
|
5298
5076
|
### Examples
|
|
5299
5077
|
|
|
@@ -5302,7 +5080,7 @@ The `<section>` that closes a page or an article on its next step. The `banner`
|
|
|
5302
5080
|
Pass one or two [Button](/marketing/components/button) links with `layout="card"`, the first `primary`. Resize the preview to see the copy move beside the actions at 1024px.
|
|
5303
5081
|
|
|
5304
5082
|
```tsx
|
|
5305
|
-
/** Demonstrates the Marketing call to action
|
|
5083
|
+
/** Demonstrates the Marketing single call to action with a primary and a secondary action. @module */
|
|
5306
5084
|
import { Button, Cta } from '@tempoxyz/ds/marketing'
|
|
5307
5085
|
|
|
5308
5086
|
export const fill = true
|
|
@@ -5331,7 +5109,7 @@ export function Demo() {
|
|
|
5331
5109
|
Pass the newsletter form as the one action, as under a Learn guide, with an `eyebrow` over the title. Build it from an inline [Field](/marketing/components/field) with its submit `action`. The form fills the actions up to 480px.
|
|
5332
5110
|
|
|
5333
5111
|
```tsx
|
|
5334
|
-
/** Demonstrates the Marketing call to action
|
|
5112
|
+
/** Demonstrates the Marketing single call to action around a newsletter sign-up built from an inline field. @module */
|
|
5335
5113
|
import { Button, Cta, Field } from '@tempoxyz/ds/marketing'
|
|
5336
5114
|
|
|
5337
5115
|
export const fill = true
|
|
@@ -5368,7 +5146,7 @@ export function Demo() {
|
|
|
5368
5146
|
|
|
5369
5147
|
#### Cards
|
|
5370
5148
|
|
|
5371
|
-
Set `
|
|
5149
|
+
Set `variant="cards"` for two paths, such as Home's close, each a `Cta.Card` with its own audience, line, and action.
|
|
5372
5150
|
|
|
5373
5151
|
```tsx
|
|
5374
5152
|
/** Demonstrates the cards Marketing call to action: a heading over one card per audience. @module */
|
|
@@ -5380,7 +5158,7 @@ export function Demo() {
|
|
|
5380
5158
|
return (
|
|
5381
5159
|
<Cta
|
|
5382
5160
|
eyebrow="Start using Tempo"
|
|
5383
|
-
|
|
5161
|
+
variant="cards"
|
|
5384
5162
|
title="Take your stablecoin strategy into production"
|
|
5385
5163
|
>
|
|
5386
5164
|
<Cta.Card
|
|
@@ -5408,6 +5186,55 @@ export function Demo() {
|
|
|
5408
5186
|
|
|
5409
5187
|
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Cta/Cards.tsx)
|
|
5410
5188
|
|
|
5189
|
+
#### Contact
|
|
5190
|
+
|
|
5191
|
+
Set `variant="contact"` to close a product or solution page on its form, passed as `children`. Build each field from a [Field](/marketing/components/field) with a visible label. Resize the preview to see the card inset on the columns at 1024px.
|
|
5192
|
+
|
|
5193
|
+
```tsx
|
|
5194
|
+
/** Demonstrates the contact variant of the Marketing call to action around a form of labeled fields. @module */
|
|
5195
|
+
import { Button, Cta, Field, style } from '@tempoxyz/ds/marketing'
|
|
5196
|
+
|
|
5197
|
+
export const fill = true
|
|
5198
|
+
|
|
5199
|
+
export function Demo() {
|
|
5200
|
+
return (
|
|
5201
|
+
<Cta
|
|
5202
|
+
description="Work with Tempo to scope currencies, access custom pricing, and design your payment flows."
|
|
5203
|
+
title="Build with Tempo Routes"
|
|
5204
|
+
variant="contact"
|
|
5205
|
+
>
|
|
5206
|
+
<form onSubmit={(event) => event.preventDefault()} {...styles.form()}>
|
|
5207
|
+
<Field.Root name="email">
|
|
5208
|
+
<Field.Label>Work email</Field.Label>
|
|
5209
|
+
<Field.Control autoComplete="email" required type="email" />
|
|
5210
|
+
<Field.Error>Enter a valid work email.</Field.Error>
|
|
5211
|
+
</Field.Root>
|
|
5212
|
+
<Field.Root name="company">
|
|
5213
|
+
<Field.Label>Company</Field.Label>
|
|
5214
|
+
<Field.Control autoComplete="organization" required />
|
|
5215
|
+
<Field.Error>Enter your company.</Field.Error>
|
|
5216
|
+
</Field.Root>
|
|
5217
|
+
<Field.Root name="role">
|
|
5218
|
+
<Field.Label>Job title (optional)</Field.Label>
|
|
5219
|
+
<Field.Control autoComplete="organization-title" />
|
|
5220
|
+
</Field.Root>
|
|
5221
|
+
<div>
|
|
5222
|
+
<Button size="large" type="submit">
|
|
5223
|
+
Submit
|
|
5224
|
+
</Button>
|
|
5225
|
+
</div>
|
|
5226
|
+
</form>
|
|
5227
|
+
</Cta>
|
|
5228
|
+
)
|
|
5229
|
+
}
|
|
5230
|
+
|
|
5231
|
+
namespace styles {
|
|
5232
|
+
export const form = style({ display: 'flex', flexDirection: 'column', gap: '24' })
|
|
5233
|
+
}
|
|
5234
|
+
```
|
|
5235
|
+
|
|
5236
|
+
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Cta/Contact.tsx)
|
|
5237
|
+
|
|
5411
5238
|
### Anatomy
|
|
5412
5239
|
|
|
5413
5240
|
```tsx
|
|
@@ -5425,13 +5252,14 @@ import { Cta } from '@tempoxyz/ds/marketing'
|
|
|
5425
5252
|
#### When to Use
|
|
5426
5253
|
|
|
5427
5254
|
* Close a blog post, a Learn guide, or the stories index on the newsletter sign-up.
|
|
5428
|
-
* Close a page on one or two links, with the `
|
|
5429
|
-
* Close Home, About, the FAQ, or a customer story on two paths, with the `cards`
|
|
5255
|
+
* Close a page on one or two links, with the `single` variant.
|
|
5256
|
+
* Close Home, About, the FAQ, or a customer story on two paths, with the `cards` variant.
|
|
5257
|
+
* Close a product or solution page after its questions on the contact form, with the `contact` variant.
|
|
5430
5258
|
|
|
5431
5259
|
#### When Not to Use
|
|
5432
5260
|
|
|
5433
|
-
* Use [Contact](/marketing/sections/contact) for a close on the contact form.
|
|
5434
5261
|
* Use [Section Heading](/marketing/sections/section-heading) with a [Button](/marketing/components/button) for an action that belongs to one section.
|
|
5262
|
+
* Use the [Contact](/marketing/templates/contact) template for a page whose whole job is the form.
|
|
5435
5263
|
|
|
5436
5264
|
#### Close the Page With One
|
|
5437
5265
|
|
|
@@ -5439,11 +5267,19 @@ Place it after the content, so a reader meets it last. Set the [Section](/market
|
|
|
5439
5267
|
|
|
5440
5268
|
#### Lead With One Primary Action
|
|
5441
5269
|
|
|
5442
|
-
In the `
|
|
5270
|
+
In the `single` variant, follow the `primary` button with one `secondary` button at most. In `cards`, give each card one action.
|
|
5271
|
+
|
|
5272
|
+
#### Label Every Field
|
|
5273
|
+
|
|
5274
|
+
Give the newsletter's field and each field of the contact form a visible label, such as Email address, and let the title say what the visitor signs up for. See [Field](/marketing/components/field) for its submit and outcome states.
|
|
5275
|
+
|
|
5276
|
+
#### Hold the Contact Form & Only It
|
|
5277
|
+
|
|
5278
|
+
Pass the contact form as `children`. The card pads it by the same inset as the copy above it, so nothing else belongs in the card.
|
|
5443
5279
|
|
|
5444
|
-
####
|
|
5280
|
+
#### Add a Disclaimer Only When Required
|
|
5445
5281
|
|
|
5446
|
-
|
|
5282
|
+
Set `disclaimer` on the `contact` variant where the page makes regulated or credit claims, in approved legal wording.
|
|
5447
5283
|
|
|
5448
5284
|
### Content
|
|
5449
5285
|
|
|
@@ -5455,131 +5291,38 @@ Name the next step in the title, such as Build with Tempo Routes, and why to tak
|
|
|
5455
5291
|
|
|
5456
5292
|
**Don't:** Write Ready to get started?, which names no step.
|
|
5457
5293
|
|
|
5458
|
-
|
|
5459
|
-
|
|
5460
|
-
* **Region (section):** Renders a `<section>` named by its title, so screen readers list it as a region.
|
|
5461
|
-
* **Title (h2):** The title is an `h2`, and each `Cta.Card` title an `h3` under it.
|
|
5462
|
-
|
|
5463
|
-
### Related
|
|
5464
|
-
|
|
5465
|
-
[Contact](/marketing/sections/contact)
|
|
5466
|
-
|
|
5467
|
-
Use for a close on the contact form.
|
|
5468
|
-
|
|
5469
|
-
[Button](/marketing/components/button)
|
|
5470
|
-
|
|
5471
|
-
Covers its actions, in the `card` layout.
|
|
5472
|
-
|
|
5473
|
-
[Field](/marketing/components/field)
|
|
5474
|
-
|
|
5475
|
-
Use for the newsletter's email field and its submit action.
|
|
5476
|
-
|
|
5477
|
-
[Customer Story](/marketing/templates/customer-story)
|
|
5478
|
-
|
|
5479
|
-
Covers the close of every story.
|
|
5480
|
-
|
|
5481
|
-
## Customer Story Feature
|
|
5482
|
-
|
|
5483
|
-
Sums up one customer's story on a dark panel, with a link to the whole story.
|
|
5484
|
-
|
|
5485
|
-
### Overview
|
|
5486
|
-
|
|
5487
|
-
One customer's story, last before a page's questions: the customer's photo and logo, a title, a line, and the link to their story. Below 1024px, the photo sits over the copy on the page. From 1024px, they share one 16:9 dark panel, with the copy near-white over a shade.
|
|
5488
|
-
|
|
5489
|
-
### Examples
|
|
5490
|
-
|
|
5491
|
-
#### Default
|
|
5492
|
-
|
|
5493
|
-
ARQ's story on the cross-border payments solution page. Resize the preview to see the copy move onto the panel at 1024px.
|
|
5494
|
-
|
|
5495
|
-
```tsx
|
|
5496
|
-
/** Demonstrates a Marketing customer story feature: a photo, logo, title, line and story link. @module */
|
|
5497
|
-
import { CustomerStoryFeature, Link, style } from '@tempoxyz/ds/marketing'
|
|
5498
|
-
|
|
5499
|
-
export const fill = true
|
|
5500
|
-
|
|
5501
|
-
export function Demo() {
|
|
5502
|
-
return (
|
|
5503
|
-
<CustomerStoryFeature
|
|
5504
|
-
action={<Link href="#story">Read the customer story</Link>}
|
|
5505
|
-
description="The company, which serves 2+ million customers across Mexico, Colombia, Argentina, and Brazil, is using Tempo to improve settlement speed and costs."
|
|
5506
|
-
image={<div {...styles.photo()} />}
|
|
5507
|
-
logo={
|
|
5508
|
-
<svg aria-label="Customer" fill="currentColor" role="img" viewBox="0 0 90 28">
|
|
5509
|
-
<circle cx="14" cy="14" r="12" />
|
|
5510
|
-
<rect height="16" rx="4" width="56" x="34" y="6" />
|
|
5511
|
-
</svg>
|
|
5512
|
-
}
|
|
5513
|
-
title="Scaling cross-border payments across Latin America"
|
|
5514
|
-
/>
|
|
5515
|
-
)
|
|
5516
|
-
}
|
|
5517
|
-
|
|
5518
|
-
namespace styles {
|
|
5519
|
-
// Stands in for the customer's photo.
|
|
5520
|
-
export const photo = style({
|
|
5521
|
-
backgroundImage: 'linear-gradient(135deg, #6b7f99, #a3866a) !custom',
|
|
5522
|
-
})
|
|
5523
|
-
}
|
|
5524
|
-
```
|
|
5525
|
-
|
|
5526
|
-
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/CustomerStoryFeature/Default.tsx)
|
|
5527
|
-
|
|
5528
|
-
### Anatomy
|
|
5529
|
-
|
|
5530
|
-
```tsx
|
|
5531
|
-
import { CustomerStoryFeature } from '@tempoxyz/ds/marketing'
|
|
5532
|
-
|
|
5533
|
-
<CustomerStoryFeature />
|
|
5534
|
-
```
|
|
5535
|
-
|
|
5536
|
-
### Guidelines
|
|
5537
|
-
|
|
5538
|
-
#### When to Use
|
|
5539
|
-
|
|
5540
|
-
* Sum up a published story about this product or use case, last before the questions.
|
|
5541
|
-
|
|
5542
|
-
#### When Not to Use
|
|
5543
|
-
|
|
5544
|
-
* Use [Card](/marketing/sections/card) for several stories at once.
|
|
5545
|
-
* Use [Quote Band](/marketing/sections/quote-band) for a quote that speaks for the whole page.
|
|
5546
|
-
|
|
5547
|
-
#### Pass the Photo, Logo & Link
|
|
5548
|
-
|
|
5549
|
-
Pass the photo in `image`, which covers the panel, and the logo in `logo`, which draws black on the page and white on the panel. Pass the link in `action` as a [Link](/marketing/components/link) with its default tone.
|
|
5550
|
-
|
|
5551
|
-
### Content
|
|
5552
|
-
|
|
5553
|
-
#### Name the Story in the Link
|
|
5554
|
-
|
|
5555
|
-
Write the link as the story it opens, such as Read the ARQ customer story, so it makes sense read alone.
|
|
5556
|
-
|
|
5557
|
-
**Do:** Write Read the ARQ customer story.
|
|
5294
|
+
#### Credit Each Lead to Its Page
|
|
5558
5295
|
|
|
5559
|
-
|
|
5296
|
+
If the contact form records where a lead came from, name this page, such as Tempo Routes product page, so each lead says where it started.
|
|
5560
5297
|
|
|
5561
5298
|
### Accessibility
|
|
5562
5299
|
|
|
5563
|
-
* **Region (section):** Renders a
|
|
5564
|
-
* **
|
|
5300
|
+
* **Region (section):** Renders a `<section>` named by its title, so screen readers list it as a region.
|
|
5301
|
+
* **Title (h2):** The title is an `h2`, and each `Cta.Card` title an `h3` under it.
|
|
5302
|
+
* **Disclaimer (p):** The disclaimer is a paragraph under the card, read after the form.
|
|
5565
5303
|
|
|
5566
5304
|
#### Your Responsibilities
|
|
5567
5305
|
|
|
5568
|
-
* **
|
|
5306
|
+
* **Label the Form (Field.Label):** Give every field a visible label, never a placeholder alone.
|
|
5307
|
+
* **Leave the Section Unnamed:** The CTA names itself. Leave the [Section](/marketing/sections/section) around it unnamed.
|
|
5569
5308
|
|
|
5570
5309
|
### Related
|
|
5571
5310
|
|
|
5572
|
-
[
|
|
5311
|
+
[Button](/marketing/components/button)
|
|
5573
5312
|
|
|
5574
|
-
Covers
|
|
5313
|
+
Covers its actions, in the `card` layout.
|
|
5575
5314
|
|
|
5576
|
-
[
|
|
5315
|
+
[Field](/marketing/components/field)
|
|
5577
5316
|
|
|
5578
|
-
|
|
5317
|
+
Use for the newsletter's email field and each field of the contact form.
|
|
5579
5318
|
|
|
5580
|
-
[
|
|
5319
|
+
[Product](/marketing/templates/product)
|
|
5320
|
+
|
|
5321
|
+
Covers a product page's close, from its title to its form.
|
|
5322
|
+
|
|
5323
|
+
[Customer Story](/marketing/templates/customer-story)
|
|
5581
5324
|
|
|
5582
|
-
Covers the
|
|
5325
|
+
Covers the close of every story.
|
|
5583
5326
|
|
|
5584
5327
|
## FAQ
|
|
5585
5328
|
|
|
@@ -5845,11 +5588,11 @@ Use for questions that open to their answers.
|
|
|
5845
5588
|
|
|
5846
5589
|
## Footer
|
|
5847
5590
|
|
|
5848
|
-
Ends every page with the whole site map, on a black
|
|
5591
|
+
Ends every page with the whole site map, on a black ground.
|
|
5849
5592
|
|
|
5850
5593
|
### Overview
|
|
5851
5594
|
|
|
5852
|
-
The
|
|
5595
|
+
The section that ends every page: the Tempo [Logo](/marketing/components/logo) mark that links home and the sign-up, a group of links for each of the site's sections, then the social links, the legal links, and the language picker.
|
|
5853
5596
|
|
|
5854
5597
|
While a link has the pointer or keyboard focus, the group headings recede, so the link stands out.
|
|
5855
5598
|
|
|
@@ -5997,7 +5740,7 @@ Pass `linkRender` for router links, such as a Next.js link. Every link renders t
|
|
|
5997
5740
|
|
|
5998
5741
|
### Related
|
|
5999
5742
|
|
|
6000
|
-
[
|
|
5743
|
+
[Logo](/marketing/components/logo)
|
|
6001
5744
|
|
|
6002
5745
|
Covers the mark that links home.
|
|
6003
5746
|
|
|
@@ -6869,7 +6612,7 @@ Pass `render` for router links. A card whose `href` starts with `http` opens in
|
|
|
6869
6612
|
|
|
6870
6613
|
### Accessibility
|
|
6871
6614
|
|
|
6872
|
-
* **Category Filter (role="group"):** A named group of [
|
|
6615
|
+
* **Category Filter (role="group"):** A named group of [Filter](/marketing/components/filter) toggles, with All first.
|
|
6873
6616
|
* **Cards (link):** Each card is one link, named by the partner. An external card names its new tab.
|
|
6874
6617
|
|
|
6875
6618
|
#### Your Responsibilities
|
|
@@ -6887,146 +6630,10 @@ Covers the index, category, and asset list views it fills.
|
|
|
6887
6630
|
|
|
6888
6631
|
Covers each partner's logo tile.
|
|
6889
6632
|
|
|
6890
|
-
[
|
|
6633
|
+
[Filter](/marketing/components/filter)
|
|
6891
6634
|
|
|
6892
6635
|
Covers the index's category filter.
|
|
6893
6636
|
|
|
6894
|
-
## Quote Band
|
|
6895
|
-
|
|
6896
|
-
Sets one customer's words large on a full-bleed band over a photo.
|
|
6897
|
-
|
|
6898
|
-
### Overview
|
|
6899
|
-
|
|
6900
|
-
One customer's words set large on a full-bleed band over a photo, as on Home. The band renders a [Section](/marketing/sections/section) run to the page's edges, around the logo, the quote in the serif display face, the speaker, and an optional action.
|
|
6901
|
-
|
|
6902
|
-
`QuoteBand.Block` sets the same quote as a centered pull quote without a photo.
|
|
6903
|
-
|
|
6904
|
-
### Examples
|
|
6905
|
-
|
|
6906
|
-
#### Default
|
|
6907
|
-
|
|
6908
|
-
Home's quote: the logo, the quote, and the speaker over a photo, with an overlay action. Resize the preview to see the quote scale with the width.
|
|
6909
|
-
|
|
6910
|
-
```tsx
|
|
6911
|
-
/** Demonstrates a Marketing quote band: one customer's words over a photo, with an action. @module */
|
|
6912
|
-
import { Button, QuoteBand, style } from '@tempoxyz/ds/marketing'
|
|
6913
|
-
|
|
6914
|
-
export const fill = true
|
|
6915
|
-
|
|
6916
|
-
export function Demo() {
|
|
6917
|
-
return (
|
|
6918
|
-
<QuoteBand
|
|
6919
|
-
action={
|
|
6920
|
-
<Button.Link appearance="overlay" href="#story" size="large" variant="secondary">
|
|
6921
|
-
Read the case study
|
|
6922
|
-
</Button.Link>
|
|
6923
|
-
}
|
|
6924
|
-
author="Patrick Collison"
|
|
6925
|
-
image={<div {...styles.photo()} />}
|
|
6926
|
-
jobTitle="CEO, Stripe"
|
|
6927
|
-
logo={
|
|
6928
|
-
<svg aria-label="Customer" fill="currentColor" role="img" viewBox="0 0 58 24">
|
|
6929
|
-
<circle cx="12" cy="12" r="10" />
|
|
6930
|
-
<rect height="10" rx="3" width="30" x="28" y="7" />
|
|
6931
|
-
</svg>
|
|
6932
|
-
}
|
|
6933
|
-
>
|
|
6934
|
-
Tempo is now Stripe’s default blockchain for new features.
|
|
6935
|
-
</QuoteBand>
|
|
6936
|
-
)
|
|
6937
|
-
}
|
|
6938
|
-
|
|
6939
|
-
namespace styles {
|
|
6940
|
-
// Stands in for the band's photo.
|
|
6941
|
-
export const photo = style({
|
|
6942
|
-
backgroundImage: 'linear-gradient(135deg, #6b7f99, #a3866a) !custom',
|
|
6943
|
-
})
|
|
6944
|
-
}
|
|
6945
|
-
```
|
|
6946
|
-
|
|
6947
|
-
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/QuoteBand/Default.tsx)
|
|
6948
|
-
|
|
6949
|
-
#### Block
|
|
6950
|
-
|
|
6951
|
-
Use `QuoteBand.Block` for one customer's words in a section of their own, such as inside a customer story. Set `author` and `jobTitle`.
|
|
6952
|
-
|
|
6953
|
-
```tsx
|
|
6954
|
-
/** Demonstrates the Marketing pull quote: one person's words centered, with their name and job title. @module */
|
|
6955
|
-
import { QuoteBand } from '@tempoxyz/ds/marketing'
|
|
6956
|
-
|
|
6957
|
-
export const fill = true
|
|
6958
|
-
|
|
6959
|
-
export function Demo() {
|
|
6960
|
-
return (
|
|
6961
|
-
<QuoteBand.Block author="Andy Fang" jobTitle="Co-founder, DoorDash">
|
|
6962
|
-
There’s real promise with stablecoins transforming financial infrastructure, not just in
|
|
6963
|
-
America, but globally. We want to be a proactive participant and not just passive.
|
|
6964
|
-
</QuoteBand.Block>
|
|
6965
|
-
)
|
|
6966
|
-
}
|
|
6967
|
-
```
|
|
6968
|
-
|
|
6969
|
-
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/QuoteBand/Block.tsx)
|
|
6970
|
-
|
|
6971
|
-
### Anatomy
|
|
6972
|
-
|
|
6973
|
-
```tsx
|
|
6974
|
-
import { QuoteBand } from '@tempoxyz/ds/marketing'
|
|
6975
|
-
|
|
6976
|
-
<QuoteBand />
|
|
6977
|
-
<QuoteBand.Block />
|
|
6978
|
-
```
|
|
6979
|
-
|
|
6980
|
-
### Guidelines
|
|
6981
|
-
|
|
6982
|
-
#### When to Use
|
|
6983
|
-
|
|
6984
|
-
* Set one short customer quote that speaks for the whole page, as on Home.
|
|
6985
|
-
* Set one customer's words apart in a section of their own, with `QuoteBand.Block`.
|
|
6986
|
-
|
|
6987
|
-
#### When Not to Use
|
|
6988
|
-
|
|
6989
|
-
* Use [Article Body](/marketing/sections/article-body) for a credited quote inside a story's or article's text.
|
|
6990
|
-
* Use [Customer Story Feature](/marketing/sections/customer-story-feature) for a customer's case on a product or solution page.
|
|
6991
|
-
|
|
6992
|
-
#### Leave Out the Quotation Marks
|
|
6993
|
-
|
|
6994
|
-
Pass the quote as `children` without marks. The part adds the curly marks the page's language uses, so typed marks would double them.
|
|
6995
|
-
|
|
6996
|
-
#### Pass the Photo & the Action
|
|
6997
|
-
|
|
6998
|
-
Pass the photo in `image`, which covers the band. Pass the action as a [Button](/marketing/components/button) link with `appearance="overlay"` and `variant="secondary"`, such as Read the case study.
|
|
6999
|
-
|
|
7000
|
-
### Content
|
|
7001
|
-
|
|
7002
|
-
#### Quote One Person by Name
|
|
7003
|
-
|
|
7004
|
-
Use their approved words, as they said them. Write the job title, then the company, separated by a comma, such as Co-founder, DoorDash.
|
|
7005
|
-
|
|
7006
|
-
### Accessibility
|
|
7007
|
-
|
|
7008
|
-
* **Figure (figure):** The quote is a `<blockquote>`, and its `<figcaption>` names who said it.
|
|
7009
|
-
* **Quotation Marks (aria-hidden):** The band's quotation marks are hidden, so screen readers read the words alone.
|
|
7010
|
-
* **Photo (aria-hidden):** The photo behind the quote is hidden from screen readers.
|
|
7011
|
-
|
|
7012
|
-
#### Your Responsibilities
|
|
7013
|
-
|
|
7014
|
-
* **Name the Logo (alt):** Give the company's logo its name, such as Stripe. It draws white at 24px tall.
|
|
7015
|
-
|
|
7016
|
-
### Related
|
|
7017
|
-
|
|
7018
|
-
[Section](/marketing/sections/section)
|
|
7019
|
-
|
|
7020
|
-
Covers the full-bleed band and the turns above and below it.
|
|
7021
|
-
|
|
7022
|
-
[Button](/marketing/components/button)
|
|
7023
|
-
|
|
7024
|
-
Covers its action, in the `overlay` appearance.
|
|
7025
|
-
|
|
7026
|
-
[Customer Story](/marketing/templates/customer-story)
|
|
7027
|
-
|
|
7028
|
-
Covers where a story's approved quote goes.
|
|
7029
|
-
|
|
7030
6637
|
## Section
|
|
7031
6638
|
|
|
7032
6639
|
Holds a page section: its container and the space above its content.
|
|
@@ -7936,6 +7543,172 @@ Use for items with no order.
|
|
|
7936
7543
|
|
|
7937
7544
|
Covers the draw token the rail moves on.
|
|
7938
7545
|
|
|
7546
|
+
## Story
|
|
7547
|
+
|
|
7548
|
+
Tells one customer's story over their photo, as a large quote or a feature.
|
|
7549
|
+
|
|
7550
|
+
### Overview
|
|
7551
|
+
|
|
7552
|
+
One customer's story, the page's proof. The `quote` variant sets their words large in the serif display face, run to the page's edges over their photo, as on Home. The `feature` variant sums up their story on a 16:9 dark panel, with a title, a line, and the link to the whole story. Both lay the photo under the scrim.
|
|
7553
|
+
|
|
7554
|
+
> [!NOTE]
|
|
7555
|
+
> `Story` replaces `QuoteBand`, now `variant="quote"`, and `CustomerStoryFeature`, now `variant="feature"`. The old names still work for one release. `QuoteBand.Block` is deprecated: set a quote in a story's text with [Article Body](/marketing/sections/article-body).
|
|
7556
|
+
|
|
7557
|
+
### Examples
|
|
7558
|
+
|
|
7559
|
+
#### Quote
|
|
7560
|
+
|
|
7561
|
+
Home's quote: the logo, the quote, and the speaker over a photo, with an overlay action. Resize the preview to see the quote scale with the width.
|
|
7562
|
+
|
|
7563
|
+
```tsx
|
|
7564
|
+
/** Demonstrates the quote variant of the Marketing story: one customer's words over a photo, with an action. @module */
|
|
7565
|
+
import { Button, Story, style } from '@tempoxyz/ds/marketing'
|
|
7566
|
+
|
|
7567
|
+
export const fill = true
|
|
7568
|
+
|
|
7569
|
+
export function Demo() {
|
|
7570
|
+
return (
|
|
7571
|
+
<Story
|
|
7572
|
+
action={
|
|
7573
|
+
<Button.Link href="#story" size="large" tone="overlay" variant="secondary">
|
|
7574
|
+
Read the case study
|
|
7575
|
+
</Button.Link>
|
|
7576
|
+
}
|
|
7577
|
+
author="Patrick Collison"
|
|
7578
|
+
image={<div {...styles.photo()} />}
|
|
7579
|
+
jobTitle="CEO, Stripe"
|
|
7580
|
+
logo={
|
|
7581
|
+
<svg aria-label="Customer" fill="currentColor" role="img" viewBox="0 0 58 24">
|
|
7582
|
+
<circle cx="12" cy="12" r="10" />
|
|
7583
|
+
<rect height="10" rx="3" width="30" x="28" y="7" />
|
|
7584
|
+
</svg>
|
|
7585
|
+
}
|
|
7586
|
+
variant="quote"
|
|
7587
|
+
>
|
|
7588
|
+
Tempo is now Stripe’s default blockchain for new features.
|
|
7589
|
+
</Story>
|
|
7590
|
+
)
|
|
7591
|
+
}
|
|
7592
|
+
|
|
7593
|
+
namespace styles {
|
|
7594
|
+
// Stands in for the band's photo.
|
|
7595
|
+
export const photo = style({
|
|
7596
|
+
backgroundImage: 'linear-gradient(135deg, #6b7f99, #a3866a) !custom',
|
|
7597
|
+
})
|
|
7598
|
+
}
|
|
7599
|
+
```
|
|
7600
|
+
|
|
7601
|
+
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Story/Quote.tsx)
|
|
7602
|
+
|
|
7603
|
+
#### Feature
|
|
7604
|
+
|
|
7605
|
+
ARQ's story on the cross-border payments solution page. Resize the preview to see the copy move onto the panel at 1024px.
|
|
7606
|
+
|
|
7607
|
+
```tsx
|
|
7608
|
+
/** Demonstrates the feature variant of the Marketing story: a photo, logo, title, line and story link. @module */
|
|
7609
|
+
import { Link, Story, style } from '@tempoxyz/ds/marketing'
|
|
7610
|
+
|
|
7611
|
+
export const fill = true
|
|
7612
|
+
|
|
7613
|
+
export function Demo() {
|
|
7614
|
+
return (
|
|
7615
|
+
<Story
|
|
7616
|
+
action={<Link href="#story">Read the customer story</Link>}
|
|
7617
|
+
description="The company, which serves 2+ million customers across Mexico, Colombia, Argentina, and Brazil, is using Tempo to improve settlement speed and costs."
|
|
7618
|
+
image={<div {...styles.photo()} />}
|
|
7619
|
+
logo={
|
|
7620
|
+
<svg aria-label="Customer" fill="currentColor" role="img" viewBox="0 0 90 28">
|
|
7621
|
+
<circle cx="14" cy="14" r="12" />
|
|
7622
|
+
<rect height="16" rx="4" width="56" x="34" y="6" />
|
|
7623
|
+
</svg>
|
|
7624
|
+
}
|
|
7625
|
+
title="Scaling cross-border payments across Latin America"
|
|
7626
|
+
variant="feature"
|
|
7627
|
+
/>
|
|
7628
|
+
)
|
|
7629
|
+
}
|
|
7630
|
+
|
|
7631
|
+
namespace styles {
|
|
7632
|
+
// Stands in for the customer's photo.
|
|
7633
|
+
export const photo = style({
|
|
7634
|
+
backgroundImage: 'linear-gradient(135deg, #6b7f99, #a3866a) !custom',
|
|
7635
|
+
})
|
|
7636
|
+
}
|
|
7637
|
+
```
|
|
7638
|
+
|
|
7639
|
+
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Story/Feature.tsx)
|
|
7640
|
+
|
|
7641
|
+
### Anatomy
|
|
7642
|
+
|
|
7643
|
+
```tsx
|
|
7644
|
+
import { Story } from '@tempoxyz/ds/marketing'
|
|
7645
|
+
|
|
7646
|
+
<Story />
|
|
7647
|
+
```
|
|
7648
|
+
|
|
7649
|
+
### Guidelines
|
|
7650
|
+
|
|
7651
|
+
#### When to Use
|
|
7652
|
+
|
|
7653
|
+
* Set one short customer quote that speaks for the whole page, as on Home, with `quote`.
|
|
7654
|
+
* Sum up a published story about this product or use case, last before the questions, with `feature`.
|
|
7655
|
+
|
|
7656
|
+
#### When Not to Use
|
|
7657
|
+
|
|
7658
|
+
* Use [Card](/marketing/sections/card) for several stories at once.
|
|
7659
|
+
* Use [Article Body](/marketing/sections/article-body) for a credited quote inside a story's or article's text.
|
|
7660
|
+
|
|
7661
|
+
#### Tell One Story per Page
|
|
7662
|
+
|
|
7663
|
+
A story is the page's proof. Place one in the back half of the page, never next to the hero or the close. The `quote` variant is also the page's one dark section.
|
|
7664
|
+
|
|
7665
|
+
#### Leave Out the Quotation Marks
|
|
7666
|
+
|
|
7667
|
+
Pass a quote as `children` without marks. The `quote` variant adds the curly marks the page's language uses, so typed marks would double them.
|
|
7668
|
+
|
|
7669
|
+
#### Pass the Photo, Logo & Action
|
|
7670
|
+
|
|
7671
|
+
Pass the photo in `image`, which covers the story, and the logo in `logo`. Pass the action of a `quote` as a [Button](/marketing/components/button) link with `tone="overlay"` and `variant="secondary"`, and the action of a `feature` as a [Link](/marketing/components/link) with its default tone.
|
|
7672
|
+
|
|
7673
|
+
### Content
|
|
7674
|
+
|
|
7675
|
+
#### Quote One Person by Name
|
|
7676
|
+
|
|
7677
|
+
Use their approved words, as they said them. Write the job title, then the company, separated by a comma, such as Co-founder, DoorDash.
|
|
7678
|
+
|
|
7679
|
+
#### Name the Story in the Link
|
|
7680
|
+
|
|
7681
|
+
Write the link as the story it opens, such as Read the ARQ customer story, so it makes sense read alone.
|
|
7682
|
+
|
|
7683
|
+
**Do:** Write Read the ARQ customer story.
|
|
7684
|
+
|
|
7685
|
+
**Don't:** Write Read more, which names no story.
|
|
7686
|
+
|
|
7687
|
+
### Accessibility
|
|
7688
|
+
|
|
7689
|
+
* **Figure (figure):** A quote is a `<blockquote>`, and its `<figcaption>` names who said it.
|
|
7690
|
+
* **Region (section):** A feature renders a [Section](/marketing/sections/section) named by its `h2`.
|
|
7691
|
+
* **Quotation Marks (aria-hidden):** The quotation marks are hidden, so screen readers read the words alone.
|
|
7692
|
+
* **Photo (aria-hidden):** The photo is hidden from screen readers and cropped to cover.
|
|
7693
|
+
|
|
7694
|
+
#### Your Responsibilities
|
|
7695
|
+
|
|
7696
|
+
* **Name the Logo (alt):** Name the logo by the company, such as ARQ. It draws near-white on the photo.
|
|
7697
|
+
|
|
7698
|
+
### Related
|
|
7699
|
+
|
|
7700
|
+
[Section](/marketing/sections/section)
|
|
7701
|
+
|
|
7702
|
+
Covers the full-bleed section and the turns above and below it.
|
|
7703
|
+
|
|
7704
|
+
[Product](/marketing/templates/product)
|
|
7705
|
+
|
|
7706
|
+
Covers when a product page draws a story.
|
|
7707
|
+
|
|
7708
|
+
[Customer Story](/marketing/templates/customer-story)
|
|
7709
|
+
|
|
7710
|
+
Covers the page a story links to.
|
|
7711
|
+
|
|
7939
7712
|
## Table
|
|
7940
7713
|
|
|
7941
7714
|
Links a few articles as cards, each with its title, a line and its label.
|
|
@@ -8404,7 +8177,7 @@ The body is the pitch, then the contact form. Each language has its own page, wi
|
|
|
8404
8177
|
|
|
8405
8178
|
#### When Not to Use
|
|
8406
8179
|
|
|
8407
|
-
* Use [
|
|
8180
|
+
* Use [CTA](/marketing/sections/cta) with `variant="contact"` to close a product or solution page on the form.
|
|
8408
8181
|
* Use the [Event](/marketing/templates/event) template to book meetings at an event.
|
|
8409
8182
|
|
|
8410
8183
|
#### Keep the Logos in the Template
|
|
@@ -8421,9 +8194,9 @@ The pitch is a heading and a few short lines, in the page's language.
|
|
|
8421
8194
|
|
|
8422
8195
|
### Related
|
|
8423
8196
|
|
|
8424
|
-
[
|
|
8197
|
+
[CTA](/marketing/sections/cta)
|
|
8425
8198
|
|
|
8426
|
-
Covers the form that closes product and solution pages.
|
|
8199
|
+
Covers the contact form that closes product and solution pages.
|
|
8427
8200
|
|
|
8428
8201
|
[Event](/marketing/templates/event)
|
|
8429
8202
|
|
|
@@ -8457,7 +8230,6 @@ import {
|
|
|
8457
8230
|
Cta,
|
|
8458
8231
|
Footer,
|
|
8459
8232
|
Nav,
|
|
8460
|
-
QuoteBand,
|
|
8461
8233
|
Section,
|
|
8462
8234
|
SectionHeading,
|
|
8463
8235
|
Stats,
|
|
@@ -8492,13 +8264,16 @@ export function Demo() {
|
|
|
8492
8264
|
title="A clearer path from payment to reconciliation"
|
|
8493
8265
|
/>
|
|
8494
8266
|
<div {...styles.quote()}>
|
|
8495
|
-
<
|
|
8496
|
-
|
|
8497
|
-
|
|
8498
|
-
|
|
8499
|
-
|
|
8500
|
-
|
|
8501
|
-
|
|
8267
|
+
<ArticleBody>
|
|
8268
|
+
<ArticleBody.Quote
|
|
8269
|
+
affiliation="Operations lead, Northwind (fictional)"
|
|
8270
|
+
author="Alex Morgan (sample quote)"
|
|
8271
|
+
marks
|
|
8272
|
+
>
|
|
8273
|
+
We wanted everyone to work from the same payment record, from the first instruction
|
|
8274
|
+
to the final reconciliation.
|
|
8275
|
+
</ArticleBody.Quote>
|
|
8276
|
+
</ArticleBody>
|
|
8502
8277
|
</div>
|
|
8503
8278
|
<div id="story-results" {...styles.results()}>
|
|
8504
8279
|
<Stats
|
|
@@ -8565,7 +8340,7 @@ export function Demo() {
|
|
|
8565
8340
|
<div {...styles.railCta()}>
|
|
8566
8341
|
<p {...styles.inverseEyebrow()}>Build with Tempo</p>
|
|
8567
8342
|
<h2 {...styles.railTitle()}>Bring your payment flow into focus</h2>
|
|
8568
|
-
<Button.Link
|
|
8343
|
+
<Button.Link href="#story-next-steps" layout="card" tone="inverse">
|
|
8569
8344
|
Explore next steps
|
|
8570
8345
|
</Button.Link>
|
|
8571
8346
|
</div>
|
|
@@ -8816,7 +8591,7 @@ Top to bottom, between the [Nav](/marketing/sections/nav) and the [Footer](/mark
|
|
|
8816
8591
|
#### When Not to Use
|
|
8817
8592
|
|
|
8818
8593
|
* Use the [Article](/marketing/templates/article) template for the post that announces a story.
|
|
8819
|
-
* Use [
|
|
8594
|
+
* Use [Story](/marketing/sections/story) with `variant="feature"` to sum up a story on a product or solution page.
|
|
8820
8595
|
|
|
8821
8596
|
#### Set Every Card Image
|
|
8822
8597
|
|
|
@@ -8826,9 +8601,9 @@ Set `thumbnail`, since the story's card draws it on the index and at the close o
|
|
|
8826
8601
|
|
|
8827
8602
|
Set `videoUrl`, `videoThumbnail`, and `videoPreview` together, or none, so a video always has its still and its card's loop.
|
|
8828
8603
|
|
|
8829
|
-
#### Put Results in the Results
|
|
8604
|
+
#### Put Results in the Results Row
|
|
8830
8605
|
|
|
8831
|
-
Set three figures in `impactMetrics`, each with its period or source, since the
|
|
8606
|
+
Set three figures in `impactMetrics`, each with its period or source, since the row draws only those.
|
|
8832
8607
|
|
|
8833
8608
|
#### Vary Within These Limits
|
|
8834
8609
|
|
|
@@ -8848,7 +8623,7 @@ Covers the story's text and its credited quotes.
|
|
|
8848
8623
|
|
|
8849
8624
|
[Stats](/marketing/sections/stats)
|
|
8850
8625
|
|
|
8851
|
-
Covers the results
|
|
8626
|
+
Covers the results row.
|
|
8852
8627
|
|
|
8853
8628
|
## Event
|
|
8854
8629
|
|
|
@@ -9282,12 +9057,12 @@ Built from the section examples, in the template's order.
|
|
|
9282
9057
|
```tsx
|
|
9283
9058
|
/** Demonstrates a Product page: the hero, three benefits, how it works, capabilities, a customer story, questions and the contact form, composed from the section demos. @module */
|
|
9284
9059
|
import { Demo as CardFeatureSet } from '../Card/FeatureSet.js'
|
|
9285
|
-
import { Demo as
|
|
9286
|
-
import { Demo as CustomerStoryFeature } from '../CustomerStoryFeature/Default.js'
|
|
9060
|
+
import { Demo as CtaContact } from '../Cta/Contact.js'
|
|
9287
9061
|
import { Demo as Faq } from '../Faq/Default.js'
|
|
9288
9062
|
import { Demo as FeatureAccordion } from '../FeatureAccordion/Default.js'
|
|
9289
9063
|
import { Demo as Hero } from '../Hero/Centered.js'
|
|
9290
9064
|
import { Demo as Showcase } from '../Showcase/Default.js'
|
|
9065
|
+
import { Demo as StoryFeature } from '../Story/Feature.js'
|
|
9291
9066
|
|
|
9292
9067
|
export const fill = true
|
|
9293
9068
|
|
|
@@ -9298,9 +9073,9 @@ export function Demo() {
|
|
|
9298
9073
|
<CardFeatureSet />
|
|
9299
9074
|
<Showcase />
|
|
9300
9075
|
<FeatureAccordion />
|
|
9301
|
-
<
|
|
9076
|
+
<StoryFeature />
|
|
9302
9077
|
<Faq />
|
|
9303
|
-
<
|
|
9078
|
+
<CtaContact />
|
|
9304
9079
|
</>
|
|
9305
9080
|
)
|
|
9306
9081
|
}
|
|
@@ -9316,9 +9091,9 @@ Top to bottom, between the [Nav](/marketing/sections/nav) and the [Footer](/mark
|
|
|
9316
9091
|
2. [Card](/marketing/sections/card): Three business benefits, as a feature set.
|
|
9317
9092
|
3. [Showcase](/marketing/sections/showcase): How it works, as steps, cards, or options.
|
|
9318
9093
|
4. [Feature Accordion](/marketing/sections/feature-accordion): Three capabilities, one open at a time.
|
|
9319
|
-
5. [
|
|
9094
|
+
5. [Story](/marketing/sections/story): A customer story as a `feature`, only on products with a published story, such as Zones and Earn.
|
|
9320
9095
|
6. [FAQ](/marketing/sections/faq): Four to eight questions.
|
|
9321
|
-
7. [
|
|
9096
|
+
7. [CTA](/marketing/sections/cta): The contact form, as the `contact` variant.
|
|
9322
9097
|
|
|
9323
9098
|
#### Content Fields
|
|
9324
9099
|
|
|
@@ -9370,9 +9145,9 @@ Use for what a business builds, rather than one product.
|
|
|
9370
9145
|
|
|
9371
9146
|
Covers the forms a product's middle takes.
|
|
9372
9147
|
|
|
9373
|
-
[
|
|
9148
|
+
[CTA](/marketing/sections/cta)
|
|
9374
9149
|
|
|
9375
|
-
Covers the close every product page takes.
|
|
9150
|
+
Covers the contact close every product page takes.
|
|
9376
9151
|
|
|
9377
9152
|
## Provider
|
|
9378
9153
|
|
|
@@ -9601,12 +9376,12 @@ Built from the section examples, in the template's order.
|
|
|
9601
9376
|
/** Demonstrates a Solution page: the hero, three benefits, how it works, its steps, three cards, a customer story, questions and the contact form, composed from the section demos. @module */
|
|
9602
9377
|
import { Card } from '@tempoxyz/ds/marketing'
|
|
9603
9378
|
import { Demo as CardFeatureSet } from '../Card/FeatureSet.js'
|
|
9604
|
-
import { Demo as
|
|
9605
|
-
import { Demo as CustomerStoryFeature } from '../CustomerStoryFeature/Default.js'
|
|
9379
|
+
import { Demo as CtaContact } from '../Cta/Contact.js'
|
|
9606
9380
|
import { Demo as Faq } from '../Faq/Default.js'
|
|
9607
9381
|
import { Demo as Hero } from '../Hero/Centered.js'
|
|
9608
9382
|
import { Demo as Showcase } from '../Showcase/Default.js'
|
|
9609
9383
|
import { Demo as Steps } from '../Steps/Default.js'
|
|
9384
|
+
import { Demo as StoryFeature } from '../Story/Feature.js'
|
|
9610
9385
|
|
|
9611
9386
|
export const fill = true
|
|
9612
9387
|
|
|
@@ -9640,9 +9415,9 @@ export function Demo() {
|
|
|
9640
9415
|
title="Earn"
|
|
9641
9416
|
/>
|
|
9642
9417
|
</Card.Grid>
|
|
9643
|
-
<
|
|
9418
|
+
<StoryFeature />
|
|
9644
9419
|
<Faq />
|
|
9645
|
-
<
|
|
9420
|
+
<CtaContact />
|
|
9646
9421
|
</>
|
|
9647
9422
|
)
|
|
9648
9423
|
}
|
|
@@ -9659,9 +9434,9 @@ Top to bottom, between the [Nav](/marketing/sections/nav) and the [Footer](/mark
|
|
|
9659
9434
|
3. [Showcase](/marketing/sections/showcase): The solution in practice.
|
|
9660
9435
|
4. [Steps](/marketing/sections/steps): Steps, only on solutions worked through with the team, such as Credit.
|
|
9661
9436
|
5. [Card](/marketing/sections/card): Three cards of capabilities or products.
|
|
9662
|
-
6. [
|
|
9437
|
+
6. [Story](/marketing/sections/story): A customer story as a `feature`, only on pages with one.
|
|
9663
9438
|
7. [FAQ](/marketing/sections/faq): Four to eight questions.
|
|
9664
|
-
8. [
|
|
9439
|
+
8. [CTA](/marketing/sections/cta): The contact form, as the `contact` variant.
|
|
9665
9440
|
|
|
9666
9441
|
#### Content Fields
|
|
9667
9442
|
|
|
@@ -9679,7 +9454,7 @@ Top to bottom, between the [Nav](/marketing/sections/nav) and the [Footer](/mark
|
|
|
9679
9454
|
#### When Not to Use
|
|
9680
9455
|
|
|
9681
9456
|
* Use the [Product](/marketing/templates/product) template for one product's page.
|
|
9682
|
-
* Use the [Customer Story](/marketing/templates/customer-story) template for the story a [
|
|
9457
|
+
* Use the [Customer Story](/marketing/templates/customer-story) template for the story a [Story](/marketing/sections/story) feature links to.
|
|
9683
9458
|
|
|
9684
9459
|
#### Use Each Section Once
|
|
9685
9460
|
|
|
@@ -9714,4 +9489,4 @@ Covers the forms In practice takes.
|
|
|
9714
9489
|
|
|
9715
9490
|
[Customer Story](/marketing/templates/customer-story)
|
|
9716
9491
|
|
|
9717
|
-
Use for the
|
|
9492
|
+
Use for the page a story feature links to.
|