@tempoxyz/ds 4.3.20261201063729 → 4.4.20261201070331
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/arsenal.md +144 -271
- package/dist/docs/marketing.md +428 -329
- 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/Bleed.d.ts +1 -1
- package/dist/marketing/components/Bleed.d.ts.map +1 -1
- package/dist/marketing/components/Bleed.js.map +1 -1
- package/dist/marketing/components/Bleed.js.zyzz.json +1 -1
- package/dist/marketing/components/Carousel.d.ts +3 -4
- package/dist/marketing/components/Carousel.d.ts.map +1 -1
- package/dist/marketing/components/Carousel.js +3 -4
- package/dist/marketing/components/Carousel.js.map +1 -1
- package/dist/marketing/components/Cta.d.ts.map +1 -1
- package/dist/marketing/components/Cta.js +2 -2
- package/dist/marketing/components/Cta.js.map +1 -1
- package/dist/marketing/components/Cta.js.zyzz.json +1 -1
- package/dist/marketing/components/Faq.d.ts +1 -1
- package/dist/marketing/components/Faq.js +1 -1
- package/dist/marketing/components/FeatureAccordion.d.ts +1 -1
- package/dist/marketing/components/FeatureAccordion.js +1 -1
- package/dist/marketing/components/LogoWall.d.ts +9 -8
- package/dist/marketing/components/LogoWall.d.ts.map +1 -1
- package/dist/marketing/components/LogoWall.js +10 -9
- package/dist/marketing/components/LogoWall.js.map +1 -1
- package/dist/marketing/components/LogoWall.js.zyzz.json +1 -1
- package/dist/marketing/components/Section.d.ts +64 -16
- package/dist/marketing/components/Section.d.ts.map +1 -1
- package/dist/marketing/components/Section.js +25 -13
- package/dist/marketing/components/Section.js.map +1 -1
- package/dist/marketing/components/Section.js.zyzz.json +1 -1
- package/dist/marketing/components/SectionHeading.css +1 -1
- package/dist/marketing/components/SectionHeading.d.ts +132 -61
- package/dist/marketing/components/SectionHeading.d.ts.map +1 -1
- package/dist/marketing/components/SectionHeading.js +27 -25
- package/dist/marketing/components/SectionHeading.js.map +1 -1
- package/dist/marketing/components/SectionHeading.js.zyzz.json +1 -1
- package/dist/marketing/components/Showcase.d.ts +1 -1
- package/dist/marketing/components/Showcase.d.ts.map +1 -1
- package/dist/marketing/components/Showcase.js +2 -2
- package/dist/marketing/components/Showcase.js.map +1 -1
- package/dist/marketing/components/Showcase.js.zyzz.json +1 -1
- package/dist/marketing/components/Statement.d.ts +1 -1
- package/dist/marketing/components/Statement.d.ts.map +1 -1
- package/dist/marketing/components/Statement.js.map +1 -1
- package/dist/marketing/components/Statement.js.zyzz.json +1 -1
- package/dist/marketing/components/Steps.d.ts +1 -1
- package/dist/marketing/components/Steps.js +1 -1
- package/dist/marketing/components/Story.d.ts +2 -2
- package/dist/marketing/components/Story.d.ts.map +1 -1
- package/dist/marketing/components/Story.js.zyzz.json +1 -1
- package/dist/marketing/components/Table.d.ts +2 -2
- package/dist/marketing/components/Table.d.ts.map +1 -1
- package/dist/marketing/components/Table.js +1 -5
- package/dist/marketing/components/Table.js.map +1 -1
- package/dist/marketing/components/Table.js.zyzz.json +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/Bleed.tsx +4 -1
- package/src/marketing/components/Carousel.tsx +3 -4
- package/src/marketing/components/Cta.tsx +2 -7
- package/src/marketing/components/Faq.tsx +1 -1
- package/src/marketing/components/FeatureAccordion.tsx +1 -1
- package/src/marketing/components/LogoWall.tsx +13 -12
- package/src/marketing/components/Section.tsx +109 -18
- package/src/marketing/components/SectionHeading.tsx +167 -66
- package/src/marketing/components/Showcase.tsx +5 -4
- package/src/marketing/components/Statement.tsx +4 -1
- package/src/marketing/components/Steps.tsx +1 -1
- package/src/marketing/components/Story.tsx +2 -2
- package/src/marketing/components/Table.tsx +10 -16
package/dist/docs/marketing.md
CHANGED
|
@@ -37,12 +37,11 @@ Each section below is one page of the documentation at ds.tehq.dev.
|
|
|
37
37
|
- [Feature Accordion](#feature-accordion): Opens one row at a time, with its art beside it.
|
|
38
38
|
- [Footer](#footer): Ends every page with the whole site map.
|
|
39
39
|
- [Hero](#hero): Opens a page: its title, subtitle and actions, or its copy beside a form.
|
|
40
|
-
- [Logo Wall](#logo-wall): Shows
|
|
40
|
+
- [Logo Wall](#logo-wall): Shows a group of companies as logos in one ink, under a centered heading.
|
|
41
41
|
- [Media](#media): A 4:3 picture, or a video's poster that opens the video.
|
|
42
42
|
- [Nav](#nav): Leads from every page to the site's sections, in a bar at the top.
|
|
43
43
|
- [Partners Index](#partners-index): Lists the partners or assets a page covers, as cards.
|
|
44
|
-
- [Section](#section): Holds a page section: its container and the space above
|
|
45
|
-
- [Section Heading](#section-heading): Opens a page section with an eyebrow and an H2 title.
|
|
44
|
+
- [Section](#section): Holds a page section: its container, its heading and the space above it.
|
|
46
45
|
- [Showcase](#showcase): Tells one feature through a large picture, with its steps, cards or tools.
|
|
47
46
|
- [Sources](#sources): Lists every page and file a generated answer read, each as a link.
|
|
48
47
|
- [Statement](#statement): Sets one sentence large in its own section, the statement moment of a page.
|
|
@@ -305,7 +304,7 @@ namespace styles {
|
|
|
305
304
|
`@tempoxyz/ds/marketing` exports the parts of a marketing page beside `style` and `vars`. Import each one by name, such as `import { Button, Section } from '@tempoxyz/ds/marketing'`.
|
|
306
305
|
|
|
307
306
|
* **Components:** [Button](/marketing/components/button), [Link](/marketing/components/link), [Tag](/marketing/components/tag), [Tab](/marketing/components/tab), [Breadcrumbs](/marketing/components/breadcrumbs), [Logo](/marketing/components/logo), [Mark](/marketing/components/mark), [Symbol Tile](/marketing/components/symbol-tile).
|
|
308
|
-
* **Page Frame:** [Nav](/marketing/sections/nav), [Footer](/marketing/sections/footer), [Section](/marketing/sections/section)
|
|
307
|
+
* **Page Frame:** [Nav](/marketing/sections/nav), [Footer](/marketing/sections/footer), [Section](/marketing/sections/section).
|
|
309
308
|
* **Openings and Closings:** [Hero](/marketing/sections/hero), [CTA](/marketing/sections/cta), [Contact](/marketing/sections/contact), [FAQ](/marketing/sections/faq).
|
|
310
309
|
* **Body:** [Card](/marketing/sections/card), [Media](/marketing/sections/media), [Feature Accordion](/marketing/sections/feature-accordion), [Showcase](/marketing/sections/showcase), [Stats](/marketing/sections/stats), [Steps](/marketing/sections/steps).
|
|
311
310
|
* **Customers and Partners:** [Quote Band](/marketing/sections/quote-band), [Logo Wall](/marketing/sections/logo-wall), [Customer Story Feature](/marketing/sections/customer-story-feature), [Partners Index](/marketing/sections/partners-index).
|
|
@@ -1597,18 +1596,16 @@ Toggles a choice that changes what a page shows, such as a category.
|
|
|
1597
1596
|
|
|
1598
1597
|
### Overview
|
|
1599
1598
|
|
|
1600
|
-
A native toggle button for a choice that changes what a page shows in place, such as
|
|
1599
|
+
A native toggle button for a choice that changes what a page shows in place, such as an index's categories. It rests as an outline and fills gray when selected, so a row of filters never reads as a row of buttons. It is never a tab in a tablist, so it switches no panels.
|
|
1601
1600
|
|
|
1602
1601
|
> [!NOTE]
|
|
1603
1602
|
> `Filter` was named `Tab`, and its `tone` was named `appearance`, whose `base` is the `page` tone. `Tab` and `appearance` still work for one release.
|
|
1604
1603
|
|
|
1605
|
-
A filter rests as an outline and fills gray when selected, so a row of filters never reads as a row of buttons.
|
|
1606
|
-
|
|
1607
1604
|
### Examples
|
|
1608
1605
|
|
|
1609
1606
|
#### Filter Group
|
|
1610
1607
|
|
|
1611
|
-
Set `selected` on the chosen filter, and update it from `onPressedChange`, in a named group
|
|
1608
|
+
Set `selected` on the chosen filter, and update it from `onPressedChange`, in a named group.
|
|
1612
1609
|
|
|
1613
1610
|
```tsx
|
|
1614
1611
|
/** Demonstrates a named group of small Marketing filters that filters posts by category. @module */
|
|
@@ -1643,28 +1640,44 @@ namespace styles {
|
|
|
1643
1640
|
|
|
1644
1641
|
#### Size
|
|
1645
1642
|
|
|
1646
|
-
Set `size` to `small
|
|
1643
|
+
Set `size` to `small`, `medium` (default) or `large`.
|
|
1647
1644
|
|
|
1648
1645
|
```tsx
|
|
1649
|
-
/** Demonstrates each Marketing filter size. @module */
|
|
1646
|
+
/** Demonstrates each Marketing filter size, one row per size. @module */
|
|
1650
1647
|
import { Filter, style } from '@tempoxyz/ds/marketing'
|
|
1651
1648
|
import { useState } from 'react'
|
|
1652
1649
|
|
|
1653
1650
|
const sizes = ['small', 'medium', 'large'] as const
|
|
1654
1651
|
|
|
1655
1652
|
export function Demo() {
|
|
1656
|
-
|
|
1653
|
+
return (
|
|
1654
|
+
<div {...styles.rows()}>
|
|
1655
|
+
{sizes.map((size) => (
|
|
1656
|
+
<Row key={size} size={size} />
|
|
1657
|
+
))}
|
|
1658
|
+
</div>
|
|
1659
|
+
)
|
|
1660
|
+
}
|
|
1661
|
+
|
|
1662
|
+
/** A named row of filters at one size, the first selected. */
|
|
1663
|
+
function Row(props: { size: (typeof sizes)[number] }) {
|
|
1664
|
+
const { size } = props
|
|
1665
|
+
const [view, setView] = useState<string | undefined>('Partners')
|
|
1657
1666
|
|
|
1658
1667
|
return (
|
|
1659
|
-
<div
|
|
1660
|
-
{
|
|
1668
|
+
<div
|
|
1669
|
+
aria-label={`${size.charAt(0).toUpperCase()}${size.slice(1)} filters`}
|
|
1670
|
+
role="group"
|
|
1671
|
+
{...styles.row()}
|
|
1672
|
+
>
|
|
1673
|
+
{['Partners', 'Product', 'Research'].map((label) => (
|
|
1661
1674
|
<Filter
|
|
1662
|
-
key={
|
|
1663
|
-
onPressedChange={(pressed) =>
|
|
1664
|
-
selected={
|
|
1665
|
-
size={
|
|
1675
|
+
key={label}
|
|
1676
|
+
onPressedChange={(pressed) => setView(pressed ? label : undefined)}
|
|
1677
|
+
selected={view === label}
|
|
1678
|
+
size={size}
|
|
1666
1679
|
>
|
|
1667
|
-
{
|
|
1680
|
+
{label}
|
|
1668
1681
|
</Filter>
|
|
1669
1682
|
))}
|
|
1670
1683
|
</div>
|
|
@@ -1672,6 +1685,8 @@ export function Demo() {
|
|
|
1672
1685
|
}
|
|
1673
1686
|
|
|
1674
1687
|
namespace styles {
|
|
1688
|
+
export const rows = style({ display: 'flex', flexDirection: 'column', gap: '16' })
|
|
1689
|
+
|
|
1675
1690
|
export const row = style({ alignItems: 'center', display: 'flex', flexWrap: 'wrap', gap: '8' })
|
|
1676
1691
|
}
|
|
1677
1692
|
```
|
|
@@ -1781,14 +1796,18 @@ namespace styles {
|
|
|
1781
1796
|
```tsx
|
|
1782
1797
|
import { Filter } from '@tempoxyz/ds/marketing'
|
|
1783
1798
|
|
|
1784
|
-
<
|
|
1799
|
+
<div aria-label="…" role="group">
|
|
1800
|
+
<Filter selected={…} onPressedChange={…}>
|
|
1801
|
+
…
|
|
1802
|
+
</Filter>
|
|
1803
|
+
</div>
|
|
1785
1804
|
```
|
|
1786
1805
|
|
|
1787
1806
|
### Guidelines
|
|
1788
1807
|
|
|
1789
1808
|
#### When to Use
|
|
1790
1809
|
|
|
1791
|
-
* Filter
|
|
1810
|
+
* Filter a collection by category, such as posts or partners.
|
|
1792
1811
|
* Switch between segmented views of one list.
|
|
1793
1812
|
|
|
1794
1813
|
#### When Not to Use
|
|
@@ -1801,16 +1820,29 @@ import { Filter } from '@tempoxyz/ds/marketing'
|
|
|
1801
1820
|
|
|
1802
1821
|
Clear the filter on a second press of the selected filter, or put an All filter first in the row.
|
|
1803
1822
|
|
|
1804
|
-
####
|
|
1823
|
+
#### Give Filters in a Row One Size
|
|
1805
1824
|
|
|
1806
|
-
|
|
1825
|
+
Use `small` for an index's filters and `medium` or `large` for a directory's rows.
|
|
1807
1826
|
|
|
1808
|
-
|
|
1809
|
-
* **Selected (Gray Fill):** Fills gray, and deepens a step on press.
|
|
1827
|
+
**Do:** Give every filter in a row one size.
|
|
1810
1828
|
|
|
1811
|
-
|
|
1829
|
+
```tsx
|
|
1830
|
+
<Filter selected size="small">
|
|
1831
|
+
Partners
|
|
1832
|
+
</Filter>
|
|
1833
|
+
<Filter size="small">Product</Filter>
|
|
1834
|
+
<Filter size="small">Research</Filter>
|
|
1835
|
+
```
|
|
1836
|
+
|
|
1837
|
+
**Don't:** Mix sizes in one row.
|
|
1812
1838
|
|
|
1813
|
-
|
|
1839
|
+
```tsx
|
|
1840
|
+
<Filter selected size="large">
|
|
1841
|
+
Partners
|
|
1842
|
+
</Filter>
|
|
1843
|
+
<Filter size="small">Product</Filter>
|
|
1844
|
+
<Filter>Research</Filter>
|
|
1845
|
+
```
|
|
1814
1846
|
|
|
1815
1847
|
### Content
|
|
1816
1848
|
|
|
@@ -1820,8 +1852,22 @@ Label each filter in one or two words, and keep the label the same whether it is
|
|
|
1820
1852
|
|
|
1821
1853
|
**Do:** Write Partners, the same in both states.
|
|
1822
1854
|
|
|
1855
|
+
```tsx
|
|
1856
|
+
<Filter selected size="small">
|
|
1857
|
+
Partners
|
|
1858
|
+
</Filter>
|
|
1859
|
+
<Filter size="small">Product</Filter>
|
|
1860
|
+
```
|
|
1861
|
+
|
|
1823
1862
|
**Don't:** Change the label to Showing partners when the filter is on.
|
|
1824
1863
|
|
|
1864
|
+
```tsx
|
|
1865
|
+
<Filter selected size="small">
|
|
1866
|
+
Showing partners
|
|
1867
|
+
</Filter>
|
|
1868
|
+
<Filter size="small">Product</Filter>
|
|
1869
|
+
```
|
|
1870
|
+
|
|
1825
1871
|
### Accessibility
|
|
1826
1872
|
|
|
1827
1873
|
`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.
|
|
@@ -5263,8 +5309,7 @@ Set `tone="page"` on link cards for the open look, here three under a section he
|
|
|
5263
5309
|
|
|
5264
5310
|
```tsx
|
|
5265
5311
|
/** Demonstrates open Marketing link cards: three related articles on the page under a section heading. @module */
|
|
5266
|
-
import { Card, Section
|
|
5267
|
-
import { useId } from 'react'
|
|
5312
|
+
import { Card, Section } from '@tempoxyz/ds/marketing'
|
|
5268
5313
|
import gradient from '../../../../content/docs/arsenal/crafts/images/depth-gradients/depth-gradients-aurora.jpg'
|
|
5269
5314
|
import people from '../../../../content/docs/arsenal/crafts/images/image-generation/image-generation-people-do.jpg'
|
|
5270
5315
|
import refs from '../../../../content/docs/arsenal/crafts/images/image-generation/image-generation-refs-do.jpg'
|
|
@@ -5299,15 +5344,8 @@ const articles = [
|
|
|
5299
5344
|
]
|
|
5300
5345
|
|
|
5301
5346
|
export function Demo() {
|
|
5302
|
-
const id = useId()
|
|
5303
|
-
|
|
5304
5347
|
return (
|
|
5305
|
-
<Section
|
|
5306
|
-
<SectionHeading
|
|
5307
|
-
eyebrow="Stablecoin basics"
|
|
5308
|
-
title="Transform your business with stablecoins"
|
|
5309
|
-
titleId={id}
|
|
5310
|
-
/>
|
|
5348
|
+
<Section eyebrow="Stablecoin basics" title="Transform your business with stablecoins">
|
|
5311
5349
|
<Card.Grid columns="3">
|
|
5312
5350
|
{articles.map((article) => (
|
|
5313
5351
|
<Card
|
|
@@ -5655,9 +5693,9 @@ Covers the cue a linked card ends in.
|
|
|
5655
5693
|
|
|
5656
5694
|
Use for a compact card's mark.
|
|
5657
5695
|
|
|
5658
|
-
[Section
|
|
5696
|
+
[Section](/marketing/sections/section)
|
|
5659
5697
|
|
|
5660
|
-
Use for the heading over a set of cards.
|
|
5698
|
+
Use for the section and the heading over a set of cards.
|
|
5661
5699
|
|
|
5662
5700
|
[Media](/marketing/sections/media)
|
|
5663
5701
|
|
|
@@ -5682,11 +5720,11 @@ A row of items that scrolls sideways and snaps each item to its start. It shows
|
|
|
5682
5720
|
|
|
5683
5721
|
#### Default
|
|
5684
5722
|
|
|
5685
|
-
Give the carousel an `id`, and pass `Carousel.Controls` with the same id as `track` to the `controls` of the [Section
|
|
5723
|
+
Give the carousel an `id`, and pass `Carousel.Controls` with the same id as `track` to the `controls` of the [Section](/marketing/sections/section) around it. Resize the preview to see one, two and three items in view.
|
|
5686
5724
|
|
|
5687
5725
|
```tsx
|
|
5688
|
-
/** Demonstrates a Marketing carousel of customer cards, paged by the buttons in its section heading. @module */
|
|
5689
|
-
import { Card, Carousel, Section
|
|
5726
|
+
/** Demonstrates a Marketing carousel of customer cards, paged by the buttons in its section's heading. @module */
|
|
5727
|
+
import { Card, Carousel, Section } from '@tempoxyz/ds/marketing'
|
|
5690
5728
|
|
|
5691
5729
|
export const fill = true
|
|
5692
5730
|
|
|
@@ -5695,18 +5733,16 @@ const stories = ['Payouts', 'Remittances', 'Treasury', 'Card settlement', 'Payro
|
|
|
5695
5733
|
|
|
5696
5734
|
export function Demo() {
|
|
5697
5735
|
return (
|
|
5698
|
-
<Section
|
|
5699
|
-
|
|
5700
|
-
|
|
5701
|
-
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
|
|
5705
|
-
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
titleId="carousel-customers"
|
|
5709
|
-
/>
|
|
5736
|
+
<Section
|
|
5737
|
+
controls={
|
|
5738
|
+
<Carousel.Controls
|
|
5739
|
+
messages={{ next: 'Next customers', previous: 'Previous customers' }}
|
|
5740
|
+
track="carousel-customer-list"
|
|
5741
|
+
/>
|
|
5742
|
+
}
|
|
5743
|
+
eyebrow="Customers"
|
|
5744
|
+
title="Built on Tempo"
|
|
5745
|
+
>
|
|
5710
5746
|
<Carousel aria-label="Customer stories" id="carousel-customer-list">
|
|
5711
5747
|
{stories.map((story) => (
|
|
5712
5748
|
<Carousel.Item key={story}>
|
|
@@ -5767,7 +5803,7 @@ Name the carousel and its buttons by what they hold, such as Customer stories, P
|
|
|
5767
5803
|
|
|
5768
5804
|
### Related
|
|
5769
5805
|
|
|
5770
|
-
[Section
|
|
5806
|
+
[Section](/marketing/sections/section)
|
|
5771
5807
|
|
|
5772
5808
|
Use for the title above it, with its `controls` slot.
|
|
5773
5809
|
|
|
@@ -5992,7 +6028,7 @@ import { Cta } from '@tempoxyz/ds/marketing'
|
|
|
5992
6028
|
#### When Not to Use
|
|
5993
6029
|
|
|
5994
6030
|
* Use [Lead Capture](/marketing/sections/lead-capture) to open a page on a form that gives the reader something, such as a report.
|
|
5995
|
-
* Use [Section
|
|
6031
|
+
* Use a [Section](/marketing/sections/section) `action`, such as a [Button](/marketing/components/button), for an action that belongs to one section.
|
|
5996
6032
|
* Use the [Contact](/marketing/templates/contact) template when reaching the team is the whole page.
|
|
5997
6033
|
|
|
5998
6034
|
#### One Form per Page
|
|
@@ -6162,7 +6198,7 @@ Put the question most readers ask first, since its row opens at load. Ask four t
|
|
|
6162
6198
|
|
|
6163
6199
|
#### Head the Section With an H2
|
|
6164
6200
|
|
|
6165
|
-
Each question is an `h3`, so open
|
|
6201
|
+
Each question is an `h3`, so open it in a [Section](/marketing/sections/section) whose `title`, such as FAQ, is its `h2`.
|
|
6166
6202
|
|
|
6167
6203
|
### Content
|
|
6168
6204
|
|
|
@@ -6251,7 +6287,7 @@ Pass each row's `title`, `description`, `media` and optional `link` in `items`.
|
|
|
6251
6287
|
|
|
6252
6288
|
```tsx
|
|
6253
6289
|
/** Demonstrates a framed Marketing feature accordion under its section heading. @module */
|
|
6254
|
-
import { FeatureAccordion, Link, Section,
|
|
6290
|
+
import { FeatureAccordion, Link, Section, style } from '@tempoxyz/ds/marketing'
|
|
6255
6291
|
|
|
6256
6292
|
export const fill = true
|
|
6257
6293
|
|
|
@@ -6260,12 +6296,7 @@ export const width = 'desktop'
|
|
|
6260
6296
|
|
|
6261
6297
|
export function Demo() {
|
|
6262
6298
|
return (
|
|
6263
|
-
<Section
|
|
6264
|
-
<SectionHeading
|
|
6265
|
-
eyebrow="Products"
|
|
6266
|
-
title="Everything you need to move money on Tempo"
|
|
6267
|
-
titleId="feature-accordion-framed"
|
|
6268
|
-
/>
|
|
6299
|
+
<Section eyebrow="Products" title="Everything you need to move money on Tempo">
|
|
6269
6300
|
<FeatureAccordion
|
|
6270
6301
|
items={[
|
|
6271
6302
|
{
|
|
@@ -6325,7 +6356,7 @@ With `variant="plain"`, the names set a step smaller, and the art brings its own
|
|
|
6325
6356
|
|
|
6326
6357
|
```tsx
|
|
6327
6358
|
/** Demonstrates a plain Marketing feature accordion, whose art brings its own plate. @module */
|
|
6328
|
-
import { FeatureAccordion, Section,
|
|
6359
|
+
import { FeatureAccordion, Section, style } from '@tempoxyz/ds/marketing'
|
|
6329
6360
|
|
|
6330
6361
|
export const fill = true
|
|
6331
6362
|
|
|
@@ -6334,12 +6365,7 @@ export const width = 'desktop'
|
|
|
6334
6365
|
|
|
6335
6366
|
export function Demo() {
|
|
6336
6367
|
return (
|
|
6337
|
-
<Section
|
|
6338
|
-
<SectionHeading
|
|
6339
|
-
eyebrow="Earn"
|
|
6340
|
-
title="Put idle balances to work"
|
|
6341
|
-
titleId="feature-accordion-plain"
|
|
6342
|
-
/>
|
|
6368
|
+
<Section eyebrow="Earn" title="Put idle balances to work">
|
|
6343
6369
|
<FeatureAccordion
|
|
6344
6370
|
items={[
|
|
6345
6371
|
{
|
|
@@ -6466,7 +6492,7 @@ export function Demo() {
|
|
|
6466
6492
|
|
|
6467
6493
|
#### Place It Under a Section Heading
|
|
6468
6494
|
|
|
6469
|
-
Each name is an `h3`, so open
|
|
6495
|
+
Each name is an `h3`, so open it in a [Section](/marketing/sections/section) whose `title` is its `h2`.
|
|
6470
6496
|
|
|
6471
6497
|
### Content
|
|
6472
6498
|
|
|
@@ -6533,9 +6559,9 @@ export function Demo() {
|
|
|
6533
6559
|
|
|
6534
6560
|
Uses it with `variant="plain"`.
|
|
6535
6561
|
|
|
6536
|
-
[Section
|
|
6562
|
+
[Section](/marketing/sections/section)
|
|
6537
6563
|
|
|
6538
|
-
Use for the eyebrow and title over the rows.
|
|
6564
|
+
Use for the section and the eyebrow and title over the rows.
|
|
6539
6565
|
|
|
6540
6566
|
[Link](/marketing/components/link)
|
|
6541
6567
|
|
|
@@ -6972,7 +6998,7 @@ import { Hero } from '@tempoxyz/ds/marketing'
|
|
|
6972
6998
|
#### When Not to Use
|
|
6973
6999
|
|
|
6974
7000
|
* Use [Article Hero](/marketing/sections/article-hero) for an article's or a customer story's opening.
|
|
6975
|
-
* Use [Section
|
|
7001
|
+
* Use [Section](/marketing/sections/section) for each section below the hero, with its heading.
|
|
6976
7002
|
* Use [CTA](/marketing/sections/cta) with `variant="contact"` to close a page on a form.
|
|
6977
7003
|
|
|
6978
7004
|
#### Lead With One Primary Action
|
|
@@ -7063,9 +7089,9 @@ Give the form variant's `summary` a heading, such as Inside the report, and a li
|
|
|
7063
7089
|
|
|
7064
7090
|
Use for an article's or a customer story's opening.
|
|
7065
7091
|
|
|
7066
|
-
[Section
|
|
7092
|
+
[Section](/marketing/sections/section)
|
|
7067
7093
|
|
|
7068
|
-
Use for each section
|
|
7094
|
+
Use for each section and its heading below it.
|
|
7069
7095
|
|
|
7070
7096
|
[Button](/marketing/components/button)
|
|
7071
7097
|
|
|
@@ -7093,91 +7119,125 @@ Covers Display Hero and the other sets.
|
|
|
7093
7119
|
|
|
7094
7120
|
## Logo Wall
|
|
7095
7121
|
|
|
7096
|
-
Shows
|
|
7122
|
+
Shows a group of companies as logos in one ink, under a centered heading.
|
|
7097
7123
|
|
|
7098
7124
|
### Overview
|
|
7099
7125
|
|
|
7100
|
-
A centered heading and a line over a list of logos, one
|
|
7126
|
+
A centered heading and a line over a list of logos, one per company. The wall sets logos two across, three from 600px and six from 1024px. Every logo draws 28px tall and at most 140px wide, so no company outweighs another. Logos draw black, and near-white on the `inverse` tone.
|
|
7101
7127
|
|
|
7102
7128
|
### Examples
|
|
7103
7129
|
|
|
7104
7130
|
#### Default
|
|
7105
7131
|
|
|
7106
|
-
About's wall of the companies Tempo was designed with. Resize the preview to see the columns step from two to six.
|
|
7107
|
-
|
|
7108
7132
|
```tsx
|
|
7109
|
-
/** Demonstrates a Marketing logo wall: a centered heading over twelve
|
|
7133
|
+
/** Demonstrates a Marketing logo wall: a centered heading over twelve sample logos. @module */
|
|
7110
7134
|
import { LogoWall } from '@tempoxyz/ds/marketing'
|
|
7135
|
+
import { logos } from './Sketch.js'
|
|
7111
7136
|
|
|
7112
7137
|
export const fill = true
|
|
7113
7138
|
|
|
7114
|
-
const
|
|
7115
|
-
'Northwind',
|
|
7116
|
-
'Contoso',
|
|
7117
|
-
'Fabrikam',
|
|
7118
|
-
'Tailspin',
|
|
7119
|
-
'Litware',
|
|
7120
|
-
'Proseware',
|
|
7121
|
-
'Adatum',
|
|
7122
|
-
'Woodgrove',
|
|
7123
|
-
'Lucerne',
|
|
7124
|
-
'Wingtip',
|
|
7125
|
-
'Alpine',
|
|
7126
|
-
'Relecloud',
|
|
7127
|
-
]
|
|
7139
|
+
export const width = 'desktop'
|
|
7128
7140
|
|
|
7129
7141
|
export function Demo() {
|
|
7130
7142
|
return (
|
|
7131
7143
|
<LogoWall
|
|
7132
|
-
description="
|
|
7133
|
-
logos={
|
|
7134
|
-
|
|
7135
|
-
name: entry,
|
|
7136
|
-
}))}
|
|
7137
|
-
title="Designed with global payment leaders"
|
|
7144
|
+
description="Banks, fintechs and platforms that shaped the network."
|
|
7145
|
+
logos={logos}
|
|
7146
|
+
title="Built with teams across payments"
|
|
7138
7147
|
/>
|
|
7139
7148
|
)
|
|
7140
7149
|
}
|
|
7150
|
+
```
|
|
7151
|
+
|
|
7152
|
+
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/LogoWall/Default.tsx)
|
|
7153
|
+
|
|
7154
|
+
#### Inverse
|
|
7141
7155
|
|
|
7142
|
-
|
|
7143
|
-
|
|
7156
|
+
Set `tone="inverse"` in a dark section.
|
|
7157
|
+
|
|
7158
|
+
```tsx
|
|
7159
|
+
/** Demonstrates a Marketing logo wall in the inverse tone, its logos and heading near-white. @module */
|
|
7160
|
+
import { LogoWall } from '@tempoxyz/ds/marketing'
|
|
7161
|
+
import { logos } from './Sketch.js'
|
|
7162
|
+
|
|
7163
|
+
export const fill = true
|
|
7164
|
+
|
|
7165
|
+
export const surface = 'inverse'
|
|
7166
|
+
|
|
7167
|
+
export const width = 'desktop'
|
|
7168
|
+
|
|
7169
|
+
export function Demo() {
|
|
7144
7170
|
return (
|
|
7145
|
-
<
|
|
7146
|
-
|
|
7147
|
-
|
|
7148
|
-
|
|
7171
|
+
<LogoWall
|
|
7172
|
+
description="Banks, fintechs and platforms that shaped the network."
|
|
7173
|
+
logos={logos}
|
|
7174
|
+
title="Built with teams across payments"
|
|
7175
|
+
tone="inverse"
|
|
7176
|
+
/>
|
|
7149
7177
|
)
|
|
7150
7178
|
}
|
|
7151
7179
|
```
|
|
7152
7180
|
|
|
7153
|
-
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/LogoWall/
|
|
7181
|
+
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/LogoWall/Inverse.tsx)
|
|
7154
7182
|
|
|
7155
7183
|
### Anatomy
|
|
7156
7184
|
|
|
7157
7185
|
```tsx
|
|
7158
7186
|
import { LogoWall } from '@tempoxyz/ds/marketing'
|
|
7159
7187
|
|
|
7160
|
-
<LogoWall />
|
|
7188
|
+
<LogoWall title="…" logos={[{ name: '…', src: '…' }]} />
|
|
7161
7189
|
```
|
|
7162
7190
|
|
|
7163
7191
|
### Guidelines
|
|
7164
7192
|
|
|
7165
7193
|
#### When to Use
|
|
7166
7194
|
|
|
7167
|
-
* Show
|
|
7195
|
+
* Show a group of companies as equals under one heading, such as partners, customers or networks.
|
|
7168
7196
|
|
|
7169
7197
|
#### When Not to Use
|
|
7170
7198
|
|
|
7171
7199
|
* Use [Hero](/marketing/sections/hero) with its `logos` for a row of logos under a page's title.
|
|
7172
7200
|
* Use [Partners Index](/marketing/sections/partners-index) for partners a visitor can search or filter.
|
|
7173
7201
|
|
|
7174
|
-
####
|
|
7202
|
+
#### Pass Each Logo With Its Name
|
|
7203
|
+
|
|
7204
|
+
Pass each logo in `logos` as a `src` or a `logo` node, with the company's `name`.
|
|
7205
|
+
|
|
7206
|
+
#### Fill Every Row
|
|
7175
7207
|
|
|
7176
|
-
Pass
|
|
7208
|
+
Pass 6 or 12 logos. The wall sets two, three or six across, so a multiple of six fills every row at every width.
|
|
7177
7209
|
|
|
7178
|
-
|
|
7210
|
+
**Do:** Pass six logos, so every row is full.
|
|
7179
7211
|
|
|
7180
|
-
|
|
7212
|
+
```tsx
|
|
7213
|
+
<LogoWallSketch kind="full" />
|
|
7214
|
+
```
|
|
7215
|
+
|
|
7216
|
+
**Don't:** Pass four, which leaves one logo alone on the last row.
|
|
7217
|
+
|
|
7218
|
+
```tsx
|
|
7219
|
+
<LogoWallSketch kind="ragged" />
|
|
7220
|
+
```
|
|
7221
|
+
|
|
7222
|
+
### Content
|
|
7223
|
+
|
|
7224
|
+
#### Name the Company, Not the Logo
|
|
7225
|
+
|
|
7226
|
+
Set `name` to the company's name as it writes it. A screen reader already says image, so leave out the word logo.
|
|
7227
|
+
|
|
7228
|
+
**Do:** Write Northwind.
|
|
7229
|
+
|
|
7230
|
+
```tsx
|
|
7231
|
+
<Announce>Northwind, image</Announce>
|
|
7232
|
+
<LogoWallSketch kind="logo" />
|
|
7233
|
+
```
|
|
7234
|
+
|
|
7235
|
+
**Don't:** Write Northwind logo.
|
|
7236
|
+
|
|
7237
|
+
```tsx
|
|
7238
|
+
<Announce>Northwind logo, image</Announce>
|
|
7239
|
+
<LogoWallSketch kind="logo" />
|
|
7240
|
+
```
|
|
7181
7241
|
|
|
7182
7242
|
### Accessibility
|
|
7183
7243
|
|
|
@@ -7729,11 +7789,11 @@ Covers the index's category filter.
|
|
|
7729
7789
|
|
|
7730
7790
|
## Section
|
|
7731
7791
|
|
|
7732
|
-
Holds a page section: its container and the space above
|
|
7792
|
+
Holds a page section: its container, its heading and the space above it.
|
|
7733
7793
|
|
|
7734
7794
|
### Overview
|
|
7735
7795
|
|
|
7736
|
-
A native `<section>` that holds one page section below the hero: the page margins, the 2560px cap,
|
|
7796
|
+
A native `<section>` that holds one page section below the hero: the page margins, the 2560px cap, the space above its content, and its heading: an eyebrow, an `<h2>` title, a description and one action.
|
|
7737
7797
|
|
|
7738
7798
|
The section below holds the space between two sections, so the spaces never add up. A section pads its end only to close the page.
|
|
7739
7799
|
|
|
@@ -7741,31 +7801,21 @@ The section below holds the space between two sections, so the spaces never add
|
|
|
7741
7801
|
|
|
7742
7802
|
#### Default
|
|
7743
7803
|
|
|
7744
|
-
|
|
7804
|
+
Set `eyebrow` and `title`. The lower section holds the gap between them.
|
|
7745
7805
|
|
|
7746
7806
|
```tsx
|
|
7747
|
-
/** Demonstrates two Marketing sections, each
|
|
7748
|
-
import { Section,
|
|
7807
|
+
/** Demonstrates two Marketing sections, each opened by its eyebrow and title, the lower one holding the gap. @module */
|
|
7808
|
+
import { Section, style } from '@tempoxyz/ds/marketing'
|
|
7749
7809
|
|
|
7750
7810
|
export const fill = true
|
|
7751
7811
|
|
|
7752
7812
|
export function Demo() {
|
|
7753
7813
|
return (
|
|
7754
7814
|
<div {...styles.page()}>
|
|
7755
|
-
<Section
|
|
7756
|
-
<SectionHeading
|
|
7757
|
-
eyebrow="Business benefits"
|
|
7758
|
-
title="Make stablecoins work for your business"
|
|
7759
|
-
titleId="section-benefits"
|
|
7760
|
-
/>
|
|
7815
|
+
<Section eyebrow="Business benefits" title="Make stablecoins work for your business">
|
|
7761
7816
|
<p {...styles.content()}>Section content</p>
|
|
7762
7817
|
</Section>
|
|
7763
|
-
<Section
|
|
7764
|
-
<SectionHeading
|
|
7765
|
-
eyebrow="How it works"
|
|
7766
|
-
title="From quote to completed transfer with Routes API"
|
|
7767
|
-
titleId="section-how"
|
|
7768
|
-
/>
|
|
7818
|
+
<Section eyebrow="How it works" title="From quote to completed transfer with Routes API">
|
|
7769
7819
|
<p {...styles.content()}>Section content</p>
|
|
7770
7820
|
</Section>
|
|
7771
7821
|
</div>
|
|
@@ -7791,13 +7841,55 @@ namespace styles {
|
|
|
7791
7841
|
|
|
7792
7842
|
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Section/Default.tsx)
|
|
7793
7843
|
|
|
7844
|
+
#### Description
|
|
7845
|
+
|
|
7846
|
+
Set `description` for one line under the title, in Body B1.
|
|
7847
|
+
|
|
7848
|
+
```tsx
|
|
7849
|
+
/** Demonstrates a Marketing section whose heading adds a one-line description under its title. @module */
|
|
7850
|
+
import { Section, style } from '@tempoxyz/ds/marketing'
|
|
7851
|
+
|
|
7852
|
+
export const fill = true
|
|
7853
|
+
|
|
7854
|
+
export function Demo() {
|
|
7855
|
+
return (
|
|
7856
|
+
<div {...styles.page()}>
|
|
7857
|
+
<Section
|
|
7858
|
+
description="Built around your target return."
|
|
7859
|
+
eyebrow="How it works"
|
|
7860
|
+
title="Design your Tempo Earn program"
|
|
7861
|
+
>
|
|
7862
|
+
<p {...styles.content()}>Section content</p>
|
|
7863
|
+
</Section>
|
|
7864
|
+
</div>
|
|
7865
|
+
)
|
|
7866
|
+
}
|
|
7867
|
+
|
|
7868
|
+
namespace styles {
|
|
7869
|
+
// Scales the section as Default does, so the examples read as a set.
|
|
7870
|
+
export const page = style({ zoom: '0.75 !custom' })
|
|
7871
|
+
|
|
7872
|
+
export const content = style({
|
|
7873
|
+
backgroundColor: 'container.control',
|
|
7874
|
+
borderRadius: 'lg',
|
|
7875
|
+
color: 'content.secondary',
|
|
7876
|
+
margin: '0',
|
|
7877
|
+
padding: '24',
|
|
7878
|
+
textAlign: 'center',
|
|
7879
|
+
typography: 'body.b2',
|
|
7880
|
+
})
|
|
7881
|
+
}
|
|
7882
|
+
```
|
|
7883
|
+
|
|
7884
|
+
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Section/Description.tsx)
|
|
7885
|
+
|
|
7794
7886
|
#### Tone
|
|
7795
7887
|
|
|
7796
|
-
Set `tone` to `page` (default, nothing painted), `white`, `grey`, `outline`, or `inverse`.
|
|
7888
|
+
Set `tone` to `page` (default, nothing painted), `white`, `grey`, `outline`, or `inverse`. The section's own heading follows its tone. Parts inside take their own, such as `tone="inverse"` on a [Button](/marketing/components/button).
|
|
7797
7889
|
|
|
7798
7890
|
```tsx
|
|
7799
|
-
/** Demonstrates the Marketing section tones,
|
|
7800
|
-
import { Section,
|
|
7891
|
+
/** Demonstrates the Marketing section tones, each heading following its section's tone. @module */
|
|
7892
|
+
import { Section, style } from '@tempoxyz/ds/marketing'
|
|
7801
7893
|
|
|
7802
7894
|
export const fill = true
|
|
7803
7895
|
|
|
@@ -7814,18 +7906,12 @@ export function Demo() {
|
|
|
7814
7906
|
<div {...styles.grid()}>
|
|
7815
7907
|
{tones.map((entry) => (
|
|
7816
7908
|
<Section
|
|
7817
|
-
|
|
7909
|
+
eyebrow={entry.title}
|
|
7818
7910
|
key={entry.tone}
|
|
7911
|
+
title="Make stablecoins work for your business"
|
|
7819
7912
|
tone={entry.tone}
|
|
7820
7913
|
{...styles.tile()}
|
|
7821
|
-
|
|
7822
|
-
<SectionHeading
|
|
7823
|
-
appearance={entry.tone === 'inverse' ? 'inverse' : 'base'}
|
|
7824
|
-
eyebrow={entry.title}
|
|
7825
|
-
title="Make stablecoins work for your business"
|
|
7826
|
-
titleId={`tone-${entry.tone}`}
|
|
7827
|
-
/>
|
|
7828
|
-
</Section>
|
|
7914
|
+
/>
|
|
7829
7915
|
))}
|
|
7830
7916
|
</div>
|
|
7831
7917
|
)
|
|
@@ -7849,221 +7935,254 @@ namespace styles {
|
|
|
7849
7935
|
|
|
7850
7936
|
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Section/Tone.tsx)
|
|
7851
7937
|
|
|
7852
|
-
|
|
7853
|
-
|
|
7854
|
-
```tsx
|
|
7855
|
-
import { Section } from '@tempoxyz/ds/marketing'
|
|
7856
|
-
|
|
7857
|
-
<Section />
|
|
7858
|
-
```
|
|
7859
|
-
|
|
7860
|
-
### Guidelines
|
|
7861
|
-
|
|
7862
|
-
#### When to Use
|
|
7863
|
-
|
|
7864
|
-
* Hold each section of a page below its hero, down to the closing section.
|
|
7865
|
-
|
|
7866
|
-
#### When Not to Use
|
|
7867
|
-
|
|
7868
|
-
* Leave the page's opening to [Hero](/marketing/sections/hero) or [Article Hero](/marketing/sections/article-hero), which set their own space.
|
|
7869
|
-
* Space the groups inside a section with the layout gaps from [Layout](/marketing/foundations/layout).
|
|
7870
|
-
|
|
7871
|
-
#### Turn Where the Register Changes
|
|
7872
|
-
|
|
7873
|
-
Set `space="turn"` into or out of a dark panel or a full-bleed section, and above the closing section. Set `close` on the page's last section, so it keeps the XL space above the footer.
|
|
7874
|
-
|
|
7875
|
-
* **Gap (space="gap"):** The default space between two sections on the same ground.
|
|
7876
|
-
* **Turn (space="turn"):** The XL space where the ground changes, and above the closing section.
|
|
7877
|
-
* **Close (close):** The XL space under the page's last section, above the footer.
|
|
7878
|
-
|
|
7879
|
-
#### Space Closer What Belongs Together
|
|
7938
|
+
#### Wide
|
|
7880
7939
|
|
|
7881
|
-
|
|
7882
|
-
|
|
7883
|
-
#### Run a Section to the Edges With Bleed
|
|
7884
|
-
|
|
7885
|
-
Set `bleed` to run a section's content to the page's edges. Never set margins of your own, which break as the page margins step at 768px and 1024px.
|
|
7886
|
-
|
|
7887
|
-
### Accessibility
|
|
7888
|
-
|
|
7889
|
-
* **Region (section):** Renders a `<section>`, which a screen reader lists as a region once it has a name.
|
|
7890
|
-
* **Unnamed Section:** A section that holds a part that names itself, such as a [CTA](/marketing/sections/cta) with `variant="contact"`, stays unnamed.
|
|
7891
|
-
|
|
7892
|
-
#### Your Responsibilities
|
|
7893
|
-
|
|
7894
|
-
* **Name It by Its Title (aria-labelledby):** Pass the `titleId` of its [Section Heading](/marketing/sections/section-heading), or set `aria-label` to its eyebrow.
|
|
7895
|
-
|
|
7896
|
-
### Related
|
|
7897
|
-
|
|
7898
|
-
[Section Heading](/marketing/sections/section-heading)
|
|
7899
|
-
|
|
7900
|
-
Use for the eyebrow and title that open a section.
|
|
7901
|
-
|
|
7902
|
-
[Layout](/marketing/foundations/layout)
|
|
7903
|
-
|
|
7904
|
-
Covers the page grid, the section rhythm, and the widths text stops at.
|
|
7905
|
-
|
|
7906
|
-
[Color](/marketing/foundations/color)
|
|
7907
|
-
|
|
7908
|
-
Covers the surfaces each `tone` paints.
|
|
7909
|
-
|
|
7910
|
-
## Section Heading
|
|
7911
|
-
|
|
7912
|
-
Opens a page section with an eyebrow and an H2 title.
|
|
7913
|
-
|
|
7914
|
-
### Overview
|
|
7915
|
-
|
|
7916
|
-
A `<header>` that opens a page section on its title. The eyebrow names the section, the `<h2>` states what the reader gets, and an optional subtitle and one action follow.
|
|
7917
|
-
|
|
7918
|
-
Set as the page's `h1`, it also heads a company or partners page, a plainer opening than [Hero](/marketing/sections/hero) with no art.
|
|
7919
|
-
|
|
7920
|
-
### Examples
|
|
7921
|
-
|
|
7922
|
-
#### Default
|
|
7923
|
-
|
|
7924
|
-
Set `eyebrow` and `title`, as over a product page's benefits. Resize the preview to see the title step up at each width.
|
|
7940
|
+
Set `size="wide"`. The title and description run to 1000px from 1024px, the description continues the title in its type, and the content follows closer.
|
|
7925
7941
|
|
|
7926
7942
|
```tsx
|
|
7927
|
-
/** Demonstrates a Marketing section heading
|
|
7928
|
-
import {
|
|
7943
|
+
/** Demonstrates a wide Marketing section heading, whose description continues its title. @module */
|
|
7944
|
+
import { Section, style } from '@tempoxyz/ds/marketing'
|
|
7929
7945
|
|
|
7930
7946
|
export const fill = true
|
|
7931
7947
|
|
|
7948
|
+
// The heading widens only from 1024px.
|
|
7949
|
+
export const width = 'desktop'
|
|
7950
|
+
|
|
7932
7951
|
export function Demo() {
|
|
7933
7952
|
return (
|
|
7934
|
-
<
|
|
7953
|
+
<div {...styles.page()}>
|
|
7954
|
+
<Section
|
|
7955
|
+
description="Built around your target return."
|
|
7956
|
+
eyebrow="How it works"
|
|
7957
|
+
size="wide"
|
|
7958
|
+
title="Design your Tempo Earn program"
|
|
7959
|
+
>
|
|
7960
|
+
<p {...styles.content()}>Section content</p>
|
|
7961
|
+
</Section>
|
|
7962
|
+
</div>
|
|
7935
7963
|
)
|
|
7936
7964
|
}
|
|
7965
|
+
|
|
7966
|
+
namespace styles {
|
|
7967
|
+
// Scales the section as Default does, so the examples read as a set.
|
|
7968
|
+
export const page = style({ zoom: '0.75 !custom' })
|
|
7969
|
+
|
|
7970
|
+
export const content = style({
|
|
7971
|
+
backgroundColor: 'container.control',
|
|
7972
|
+
borderRadius: 'lg',
|
|
7973
|
+
color: 'content.secondary',
|
|
7974
|
+
margin: '0',
|
|
7975
|
+
padding: '24',
|
|
7976
|
+
textAlign: 'center',
|
|
7977
|
+
typography: 'body.b2',
|
|
7978
|
+
})
|
|
7979
|
+
}
|
|
7937
7980
|
```
|
|
7938
7981
|
|
|
7939
|
-
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/
|
|
7982
|
+
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Section/Wide.tsx)
|
|
7940
7983
|
|
|
7941
|
-
####
|
|
7984
|
+
#### Centered
|
|
7942
7985
|
|
|
7943
|
-
Set `
|
|
7986
|
+
Set `align="center"` to center the heading's lines and action over the content.
|
|
7944
7987
|
|
|
7945
7988
|
```tsx
|
|
7946
|
-
/** Demonstrates
|
|
7947
|
-
import {
|
|
7989
|
+
/** Demonstrates a Marketing section whose heading is centered over its content. @module */
|
|
7990
|
+
import { Section, style } from '@tempoxyz/ds/marketing'
|
|
7948
7991
|
|
|
7949
7992
|
export const fill = true
|
|
7950
7993
|
|
|
7951
7994
|
export function Demo() {
|
|
7952
7995
|
return (
|
|
7953
|
-
<
|
|
7954
|
-
|
|
7955
|
-
|
|
7956
|
-
|
|
7957
|
-
|
|
7958
|
-
|
|
7959
|
-
|
|
7960
|
-
|
|
7961
|
-
</
|
|
7962
|
-
</
|
|
7996
|
+
<div {...styles.page()}>
|
|
7997
|
+
<Section
|
|
7998
|
+
align="center"
|
|
7999
|
+
description="Built around your target return."
|
|
8000
|
+
eyebrow="How it works"
|
|
8001
|
+
title="Design your Tempo Earn program"
|
|
8002
|
+
>
|
|
8003
|
+
<p {...styles.content()}>Section content</p>
|
|
8004
|
+
</Section>
|
|
8005
|
+
</div>
|
|
7963
8006
|
)
|
|
7964
8007
|
}
|
|
8008
|
+
|
|
8009
|
+
namespace styles {
|
|
8010
|
+
// Scales the section as Default does, so the examples read as a set.
|
|
8011
|
+
export const page = style({ zoom: '0.75 !custom' })
|
|
8012
|
+
|
|
8013
|
+
export const content = style({
|
|
8014
|
+
backgroundColor: 'container.control',
|
|
8015
|
+
borderRadius: 'lg',
|
|
8016
|
+
color: 'content.secondary',
|
|
8017
|
+
margin: '0',
|
|
8018
|
+
padding: '24',
|
|
8019
|
+
textAlign: 'center',
|
|
8020
|
+
typography: 'body.b2',
|
|
8021
|
+
})
|
|
8022
|
+
}
|
|
7965
8023
|
```
|
|
7966
8024
|
|
|
7967
|
-
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/
|
|
8025
|
+
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Section/Centered.tsx)
|
|
7968
8026
|
|
|
7969
|
-
####
|
|
8027
|
+
#### Controls
|
|
7970
8028
|
|
|
7971
|
-
|
|
8029
|
+
Pass a [Carousel](/marketing/sections/carousel)'s `Carousel.Controls` as `controls`. They sit level with the heading's last line.
|
|
7972
8030
|
|
|
7973
8031
|
```tsx
|
|
7974
|
-
/** Demonstrates a Marketing section heading
|
|
7975
|
-
import {
|
|
8032
|
+
/** Demonstrates a Marketing section whose heading holds a carousel's buttons, level with its last line. @module */
|
|
8033
|
+
import { Carousel, Section, style } from '@tempoxyz/ds/marketing'
|
|
7976
8034
|
|
|
7977
8035
|
export const fill = true
|
|
7978
8036
|
|
|
8037
|
+
const items = ['One', 'Two', 'Three', 'Four', 'Five']
|
|
8038
|
+
|
|
7979
8039
|
export function Demo() {
|
|
7980
8040
|
return (
|
|
7981
|
-
<
|
|
7982
|
-
|
|
7983
|
-
|
|
7984
|
-
|
|
7985
|
-
|
|
7986
|
-
|
|
7987
|
-
|
|
8041
|
+
<div {...styles.page()}>
|
|
8042
|
+
<Section
|
|
8043
|
+
controls={
|
|
8044
|
+
<Carousel.Controls
|
|
8045
|
+
messages={{ next: 'Next items', previous: 'Previous items' }}
|
|
8046
|
+
track="section-controls-list"
|
|
8047
|
+
/>
|
|
8048
|
+
}
|
|
8049
|
+
eyebrow="Customers"
|
|
8050
|
+
title="Built on Tempo"
|
|
8051
|
+
>
|
|
8052
|
+
<Carousel aria-label="Sample items" id="section-controls-list">
|
|
8053
|
+
{items.map((item) => (
|
|
8054
|
+
<Carousel.Item key={item}>
|
|
8055
|
+
<p {...styles.content()}>Section content</p>
|
|
8056
|
+
</Carousel.Item>
|
|
8057
|
+
))}
|
|
8058
|
+
</Carousel>
|
|
8059
|
+
</Section>
|
|
8060
|
+
</div>
|
|
7988
8061
|
)
|
|
7989
8062
|
}
|
|
8063
|
+
|
|
8064
|
+
namespace styles {
|
|
8065
|
+
// Scales the section as Default does, so the examples read as a set.
|
|
8066
|
+
export const page = style({ zoom: '0.75 !custom' })
|
|
8067
|
+
|
|
8068
|
+
export const content = style({
|
|
8069
|
+
backgroundColor: 'container.control',
|
|
8070
|
+
borderRadius: 'lg',
|
|
8071
|
+
color: 'content.secondary',
|
|
8072
|
+
margin: '0',
|
|
8073
|
+
padding: '48',
|
|
8074
|
+
textAlign: 'center',
|
|
8075
|
+
typography: 'body.b2',
|
|
8076
|
+
})
|
|
8077
|
+
}
|
|
7990
8078
|
```
|
|
7991
8079
|
|
|
7992
|
-
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/
|
|
8080
|
+
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Section/Controls.tsx)
|
|
7993
8081
|
|
|
7994
8082
|
### Anatomy
|
|
7995
8083
|
|
|
7996
8084
|
```tsx
|
|
7997
|
-
import {
|
|
8085
|
+
import { Section } from '@tempoxyz/ds/marketing'
|
|
7998
8086
|
|
|
7999
|
-
<
|
|
8087
|
+
<Section eyebrow="…" title="…">
|
|
8088
|
+
…
|
|
8089
|
+
</Section>
|
|
8000
8090
|
```
|
|
8001
8091
|
|
|
8002
8092
|
### Guidelines
|
|
8003
8093
|
|
|
8004
8094
|
#### When to Use
|
|
8005
8095
|
|
|
8006
|
-
*
|
|
8007
|
-
* Head a company page, a hub, or a partners category or asset list, with `heading="h1"`.
|
|
8096
|
+
* Hold each section of a page below its hero, down to the closing section, with its eyebrow and title.
|
|
8008
8097
|
|
|
8009
8098
|
#### When Not to Use
|
|
8010
8099
|
|
|
8011
|
-
*
|
|
8012
|
-
* Use [Article Hero](/marketing/sections/article-hero) for an article, guide, or customer story.
|
|
8100
|
+
* Leave the page's opening to [Hero](/marketing/sections/hero) or [Article Hero](/marketing/sections/article-hero), which set their own space.
|
|
8013
8101
|
* Use [Card](/marketing/sections/card) or [Steps](/marketing/sections/steps) for a card's or a step's title, which set their own `<h3>`.
|
|
8014
|
-
* Use [
|
|
8102
|
+
* Use [CTA](/marketing/sections/cta) for the closing section, which brings its own title.
|
|
8103
|
+
|
|
8104
|
+
#### Turn Where the Ground Changes
|
|
8105
|
+
|
|
8106
|
+
Set `space="turn"` into or out of an inverse section or a full-bleed section, and above the closing section. Set `close` on the page's last section, so it keeps the XL space above the footer.
|
|
8107
|
+
|
|
8108
|
+
* **Gap (space="gap"):** The default, between two sections on one ground.
|
|
8109
|
+
* **Turn (space="turn"):** The XL space where the ground changes.
|
|
8110
|
+
* **Close (close):** The XL space under the last section.
|
|
8111
|
+
|
|
8112
|
+
#### Let Section Hold the Space
|
|
8113
|
+
|
|
8114
|
+
Space a part on the spacing scale, a section's groups on the layout gaps, and sections with Section. Never add margins between sections.
|
|
8115
|
+
|
|
8116
|
+
**Do:** Let the lower section hold the gap.
|
|
8015
8117
|
|
|
8016
|
-
|
|
8118
|
+
```tsx
|
|
8119
|
+
<SectionSketch kind="gap" />
|
|
8120
|
+
```
|
|
8121
|
+
|
|
8122
|
+
**Don't:** Add a margin on top of the gap.
|
|
8123
|
+
|
|
8124
|
+
```tsx
|
|
8125
|
+
<SectionSketch kind="margin" />
|
|
8126
|
+
```
|
|
8127
|
+
|
|
8128
|
+
#### Run a Section to the Edges With Bleed
|
|
8017
8129
|
|
|
8018
|
-
|
|
8019
|
-
* **Running Text (body):** Body B1 up to 480px, 24px below the title.
|
|
8020
|
-
* **Lead Beside a Rail (aside):** Body B1 up to 480px, beside a sidebar or a rail.
|
|
8130
|
+
Set `bleed` to run a section's content to the page's edges. The heading keeps the page margins. Never set margins of your own, which break as the page margins step at 768px and 1024px.
|
|
8021
8131
|
|
|
8022
8132
|
#### Add One Action at Most
|
|
8023
8133
|
|
|
8024
|
-
Pass the section's one action as `
|
|
8134
|
+
Pass the section's one action as `action`, such as a [Button](/marketing/components/button) link with `layout="card"`. A pair belongs in the hero or the closing section.
|
|
8025
8135
|
|
|
8026
8136
|
#### Keep One Heading Outline
|
|
8027
8137
|
|
|
8028
|
-
A page has one `h1`, in its hero
|
|
8138
|
+
A page has one `h1`, in its hero, and each heading sits one level under the one above it. A section's title is always an `h2`.
|
|
8029
8139
|
|
|
8030
8140
|
### Content
|
|
8031
8141
|
|
|
8032
|
-
#### Give the Eyebrow
|
|
8142
|
+
#### Give the Eyebrow & Title One Job Each
|
|
8143
|
+
|
|
8144
|
+
Name the section in the eyebrow, such as How it works. The eyebrow is set in caps, so write it in sentence case. Say what the reader gets in the title, in sentence case, in 10 words at most, with no closing period.
|
|
8145
|
+
|
|
8146
|
+
**Do:** Write How it works over From quote to completed transfer.
|
|
8033
8147
|
|
|
8034
|
-
|
|
8148
|
+
```tsx
|
|
8149
|
+
<SectionSketch kind="eyebrow" />
|
|
8150
|
+
```
|
|
8035
8151
|
|
|
8036
|
-
**
|
|
8152
|
+
**Don't:** Repeat the eyebrow in the title, such as How Tempo works.
|
|
8037
8153
|
|
|
8038
|
-
|
|
8154
|
+
```tsx
|
|
8155
|
+
<SectionSketch kind="repeat" />
|
|
8156
|
+
```
|
|
8039
8157
|
|
|
8040
8158
|
### Accessibility
|
|
8041
8159
|
|
|
8042
|
-
* **
|
|
8043
|
-
* **
|
|
8160
|
+
* **Region (section):** Renders a `<section>` named by its title, unless you label it.
|
|
8161
|
+
* **Heading (header):** Renders a `<header>` that holds the title as an `h2`.
|
|
8162
|
+
* **Eyebrow & Description (p):** Both render as paragraphs, outside the heading outline.
|
|
8163
|
+
* **Unnamed Section:** With no title and no label, it is not listed as a region.
|
|
8044
8164
|
|
|
8045
8165
|
#### Your Responsibilities
|
|
8046
8166
|
|
|
8047
|
-
* **Name
|
|
8048
|
-
* **Set Inverse in a Dark Section (appearance):** Set `appearance="inverse"` inside an inverse section, so the text takes the near-white roles.
|
|
8167
|
+
* **Name a Section Without a Title (aria-label):** Set `aria-label`, unless it holds a part that names itself, such as a [CTA](/marketing/sections/cta) with `variant="contact"`.
|
|
8049
8168
|
|
|
8050
8169
|
### Related
|
|
8051
8170
|
|
|
8052
|
-
[
|
|
8171
|
+
[Hero](/marketing/sections/hero)
|
|
8053
8172
|
|
|
8054
|
-
Use for the
|
|
8173
|
+
Use for the opening of a page.
|
|
8055
8174
|
|
|
8056
|
-
[
|
|
8175
|
+
[Layout](/marketing/foundations/layout)
|
|
8057
8176
|
|
|
8058
|
-
|
|
8177
|
+
Covers the page grid, the section rhythm, and the widths text stops at.
|
|
8059
8178
|
|
|
8060
|
-
[
|
|
8179
|
+
[Color](/marketing/foundations/color)
|
|
8061
8180
|
|
|
8062
|
-
|
|
8181
|
+
Covers the surfaces each `tone` paints.
|
|
8063
8182
|
|
|
8064
8183
|
[Typography](/marketing/foundations/typography)
|
|
8065
8184
|
|
|
8066
|
-
Covers the eyebrow, title, and
|
|
8185
|
+
Covers the eyebrow, title, and description pairs.
|
|
8067
8186
|
|
|
8068
8187
|
## Showcase
|
|
8069
8188
|
|
|
@@ -8259,11 +8378,7 @@ Pass each step, card or tool as a `Showcase.Item` with a one-sentence line, and
|
|
|
8259
8378
|
|
|
8260
8379
|
[Section](/marketing/sections/section)
|
|
8261
8380
|
|
|
8262
|
-
Covers the section a showcase renders and its tones.
|
|
8263
|
-
|
|
8264
|
-
[Section Heading](/marketing/sections/section-heading)
|
|
8265
|
-
|
|
8266
|
-
Covers the heading, and the action under it.
|
|
8381
|
+
Covers the section a showcase renders, its heading and its tones.
|
|
8267
8382
|
|
|
8268
8383
|
[Link](/marketing/components/link)
|
|
8269
8384
|
|
|
@@ -8451,7 +8566,7 @@ import { Statement } from '@tempoxyz/ds/marketing'
|
|
|
8451
8566
|
#### When Not to Use
|
|
8452
8567
|
|
|
8453
8568
|
* Use [Hero](/marketing/sections/hero) for the sentence that opens a page.
|
|
8454
|
-
* Use [Section
|
|
8569
|
+
* Use a [Section](/marketing/sections/section) `title` for a title that leads into content below it.
|
|
8455
8570
|
* Use [Bleed](/marketing/sections/bleed) for a picture or video in place of the sentence.
|
|
8456
8571
|
|
|
8457
8572
|
#### Use One Break per Page
|
|
@@ -8712,13 +8827,9 @@ Every figure needs an approved, dated source: a customer's sign-off for their re
|
|
|
8712
8827
|
|
|
8713
8828
|
Use for figures that each need a title and a line.
|
|
8714
8829
|
|
|
8715
|
-
[Section Heading](/marketing/sections/section-heading)
|
|
8716
|
-
|
|
8717
|
-
Use for the heading over a section of figures.
|
|
8718
|
-
|
|
8719
8830
|
[Section](/marketing/sections/section)
|
|
8720
8831
|
|
|
8721
|
-
Use for the section
|
|
8832
|
+
Use for the section and the heading over a row of figures.
|
|
8722
8833
|
|
|
8723
8834
|
## Steps
|
|
8724
8835
|
|
|
@@ -8788,7 +8899,7 @@ Two to five steps fit one row from 1024px. Split a longer process into stages, e
|
|
|
8788
8899
|
|
|
8789
8900
|
#### Head the Section With an H2
|
|
8790
8901
|
|
|
8791
|
-
Each title is an `h3`. Name the sequence with
|
|
8902
|
+
Each title is an `h3`. Name the sequence with the `title` of the [Section](/marketing/sections/section) around it.
|
|
8792
8903
|
|
|
8793
8904
|
### Content
|
|
8794
8905
|
|
|
@@ -8826,9 +8937,9 @@ Name the step as an action, and say what it does in its `description`, in one sh
|
|
|
8826
8937
|
|
|
8827
8938
|
### Related
|
|
8828
8939
|
|
|
8829
|
-
[Section
|
|
8940
|
+
[Section](/marketing/sections/section)
|
|
8830
8941
|
|
|
8831
|
-
Use for the heading that names the sequence.
|
|
8942
|
+
Use for the section and the heading that names the sequence.
|
|
8832
8943
|
|
|
8833
8944
|
[Card](/marketing/sections/card)
|
|
8834
8945
|
|
|
@@ -9401,7 +9512,6 @@ import {
|
|
|
9401
9512
|
Footer,
|
|
9402
9513
|
Nav,
|
|
9403
9514
|
Section,
|
|
9404
|
-
SectionHeading,
|
|
9405
9515
|
Stats,
|
|
9406
9516
|
style,
|
|
9407
9517
|
Tag,
|
|
@@ -9542,13 +9652,10 @@ export function Demo() {
|
|
|
9542
9652
|
</aside>
|
|
9543
9653
|
</div>
|
|
9544
9654
|
</div>
|
|
9545
|
-
<Section
|
|
9546
|
-
|
|
9547
|
-
|
|
9548
|
-
|
|
9549
|
-
title="More customer stories"
|
|
9550
|
-
titleId="story-related"
|
|
9551
|
-
/>
|
|
9655
|
+
<Section
|
|
9656
|
+
description="Illustrative cards link to the relevant parts of this sample story."
|
|
9657
|
+
title="More customer stories"
|
|
9658
|
+
>
|
|
9552
9659
|
<Card.Grid columns="2">
|
|
9553
9660
|
<Card
|
|
9554
9661
|
cue="Explore the approach"
|
|
@@ -9811,17 +9918,7 @@ A fictional event with a sample agenda, team, and meeting form. Requests validat
|
|
|
9811
9918
|
|
|
9812
9919
|
```tsx
|
|
9813
9920
|
/** Demonstrates a fictional event's hero, agenda, sample team, and local meeting form. @module */
|
|
9814
|
-
import {
|
|
9815
|
-
Button,
|
|
9816
|
-
Footer,
|
|
9817
|
-
Hero,
|
|
9818
|
-
Nav,
|
|
9819
|
-
Section,
|
|
9820
|
-
SectionHeading,
|
|
9821
|
-
style,
|
|
9822
|
-
vars,
|
|
9823
|
-
} from '@tempoxyz/ds/marketing'
|
|
9824
|
-
import { useId } from 'react'
|
|
9921
|
+
import { Button, Footer, Hero, Nav, Section, style, vars } from '@tempoxyz/ds/marketing'
|
|
9825
9922
|
import { ContactForm } from './ContactForm.js'
|
|
9826
9923
|
|
|
9827
9924
|
/** The example's label. */
|
|
@@ -9869,8 +9966,6 @@ const people = [
|
|
|
9869
9966
|
|
|
9870
9967
|
/** Renders an illustrative event without a booking service, RSVP endpoint, or scheduled removal. */
|
|
9871
9968
|
export function Demo() {
|
|
9872
|
-
const id = useId()
|
|
9873
|
-
|
|
9874
9969
|
return (
|
|
9875
9970
|
<div id="event-top" {...styles.page()}>
|
|
9876
9971
|
<Nav
|
|
@@ -9902,16 +9997,13 @@ export function Demo() {
|
|
|
9902
9997
|
<li>Sample venue · San Francisco</li>
|
|
9903
9998
|
</ul>
|
|
9904
9999
|
</div>
|
|
9905
|
-
<Section
|
|
9906
|
-
<
|
|
9907
|
-
|
|
9908
|
-
|
|
9909
|
-
|
|
9910
|
-
|
|
9911
|
-
|
|
9912
|
-
>
|
|
9913
|
-
<p {...styles.host()}>Hosted by Taylor Brooks · Sample host</p>
|
|
9914
|
-
</SectionHeading>
|
|
10000
|
+
<Section
|
|
10001
|
+
action={<p {...styles.host()}>Hosted by Taylor Brooks · Sample host</p>}
|
|
10002
|
+
align="center"
|
|
10003
|
+
description="All sessions, speakers, dates, and venues are illustrative. Times are in Pacific Daylight Time (UTC−7)."
|
|
10004
|
+
id="event-sessions"
|
|
10005
|
+
title="Hear from the team"
|
|
10006
|
+
>
|
|
9915
10007
|
<div {...styles.agenda()}>
|
|
9916
10008
|
{days.map((day) => (
|
|
9917
10009
|
<div key={day.date}>
|
|
@@ -9946,14 +10038,14 @@ export function Demo() {
|
|
|
9946
10038
|
</div>
|
|
9947
10039
|
</div>
|
|
9948
10040
|
</Section>
|
|
9949
|
-
<Section
|
|
9950
|
-
|
|
9951
|
-
|
|
9952
|
-
|
|
9953
|
-
|
|
9954
|
-
|
|
9955
|
-
|
|
9956
|
-
|
|
10041
|
+
<Section
|
|
10042
|
+
align="center"
|
|
10043
|
+
close
|
|
10044
|
+
description="Fictional people and portrait placeholders demonstrate the event’s team layout."
|
|
10045
|
+
id="event-meeting"
|
|
10046
|
+
tabIndex={-1}
|
|
10047
|
+
title="Request a meeting with the team"
|
|
10048
|
+
>
|
|
9957
10049
|
<ul aria-label="Illustrative event team" id="event-team" {...styles.team()}>
|
|
9958
10050
|
{people.map((person) => (
|
|
9959
10051
|
<li key={person.name} {...styles.person()}>
|
|
@@ -10335,14 +10427,21 @@ A category page, built from the section examples.
|
|
|
10335
10427
|
/** Demonstrates a Provider category page: the heading over its filters, the category's partners and a call to action, composed from the section demos. @module */
|
|
10336
10428
|
import { Demo as Cta } from '../Cta/Default.js'
|
|
10337
10429
|
import { Demo as PartnersIndex } from '../PartnersIndex/Default.js'
|
|
10338
|
-
import {
|
|
10430
|
+
import { SectionHeading } from '@tempoxyz/ds/marketing'
|
|
10339
10431
|
|
|
10340
10432
|
export const fill = true
|
|
10341
10433
|
|
|
10342
10434
|
export function Demo() {
|
|
10343
10435
|
return (
|
|
10344
10436
|
<>
|
|
10345
|
-
|
|
10437
|
+
{/* The category's header keeps the deprecated SectionHeading's h1 until the page opens on Hero. */}
|
|
10438
|
+
<SectionHeading
|
|
10439
|
+
description="Find a ramp or FX provider on Tempo for the currency, country, and payment rail you need."
|
|
10440
|
+
eyebrow="Partners"
|
|
10441
|
+
heading="h1"
|
|
10442
|
+
subtitle="body"
|
|
10443
|
+
title="Ramps and FX"
|
|
10444
|
+
/>
|
|
10346
10445
|
<PartnersIndex />
|
|
10347
10446
|
<Cta />
|
|
10348
10447
|
</>
|