@tempoxyz/ds 6.0.20261201221937 → 6.2.20261201225048
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/marketing.md +1339 -1464
- 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 +15 -13
- package/dist/marketing/components/Bleed.d.ts.map +1 -1
- package/dist/marketing/components/Bleed.js +12 -10
- package/dist/marketing/components/Bleed.js.map +1 -1
- package/dist/marketing/components/Card.css +1 -1
- package/dist/marketing/components/Card.d.ts +181 -133
- package/dist/marketing/components/Card.d.ts.map +1 -1
- package/dist/marketing/components/Card.js +103 -64
- package/dist/marketing/components/Card.js.map +1 -1
- package/dist/marketing/components/Card.js.zyzz.json +1 -1
- package/dist/marketing/components/Carousel.d.ts +4 -2
- package/dist/marketing/components/Carousel.d.ts.map +1 -1
- package/dist/marketing/components/Carousel.js +4 -2
- package/dist/marketing/components/Carousel.js.map +1 -1
- package/dist/marketing/components/Cta.css +1 -1
- package/dist/marketing/components/Cta.d.ts +60 -30
- package/dist/marketing/components/Cta.d.ts.map +1 -1
- package/dist/marketing/components/Cta.js +40 -32
- package/dist/marketing/components/Cta.js.map +1 -1
- package/dist/marketing/components/Cta.js.zyzz.json +1 -1
- package/dist/marketing/components/FeatureAccordion.d.ts +18 -247
- package/dist/marketing/components/FeatureAccordion.d.ts.map +1 -1
- package/dist/marketing/components/FeatureAccordion.js +17 -131
- package/dist/marketing/components/FeatureAccordion.js.map +1 -1
- package/dist/marketing/components/FeatureAccordion.js.zyzz.json +1 -1
- package/dist/marketing/components/Index.d.ts +8 -7
- package/dist/marketing/components/Index.d.ts.map +1 -1
- package/dist/marketing/components/Index.js +8 -7
- package/dist/marketing/components/Index.js.map +1 -1
- package/dist/marketing/components/Index.js.zyzz.json +1 -1
- package/dist/marketing/components/Showcase.d.ts +105 -40
- package/dist/marketing/components/Showcase.d.ts.map +1 -1
- package/dist/marketing/components/Showcase.js +32 -19
- package/dist/marketing/components/Showcase.js.map +1 -1
- package/dist/marketing/components/Showcase.js.zyzz.json +1 -1
- package/dist/marketing/components/Sources.css +1 -1
- package/dist/marketing/components/Sources.d.ts +19 -61
- package/dist/marketing/components/Sources.d.ts.map +1 -1
- package/dist/marketing/components/Sources.js +26 -30
- package/dist/marketing/components/Sources.js.map +1 -1
- package/dist/marketing/components/Sources.js.zyzz.json +1 -1
- package/dist/marketing/components/internal/Accordion.css +1 -0
- package/dist/marketing/components/internal/Accordion.d.ts +268 -0
- package/dist/marketing/components/internal/Accordion.d.ts.map +1 -0
- package/dist/marketing/components/internal/Accordion.js +120 -0
- package/dist/marketing/components/internal/Accordion.js.map +1 -0
- package/dist/marketing/components/internal/Accordion.js.zyzz.json +1 -0
- package/dist/marketing/index.js.zyzz.json +1 -1
- package/package.json +2 -2
- package/src/marketing/components/Bleed.tsx +15 -13
- package/src/marketing/components/Card.tsx +259 -171
- package/src/marketing/components/Carousel.tsx +4 -2
- package/src/marketing/components/Cta.tsx +88 -54
- package/src/marketing/components/FeatureAccordion.tsx +27 -508
- package/src/marketing/components/Index.tsx +10 -9
- package/src/marketing/components/Showcase.tsx +150 -55
- package/src/marketing/components/Sources.tsx +44 -107
- package/src/marketing/components/internal/Accordion.tsx +521 -0
- package/dist/marketing/components/FeatureAccordion.css +0 -1
package/dist/docs/marketing.md
CHANGED
|
@@ -13,12 +13,13 @@ Each section below is one page of the documentation at ds.tehq.dev.
|
|
|
13
13
|
- [Filter](#filter): Toggles a choice that changes what a page shows, such as a category.
|
|
14
14
|
- [Link](#link): Links quietly to another page, ending in an icon.
|
|
15
15
|
- [Logo](#logo): Shows the Tempo wordmark, or its T where only a square fits.
|
|
16
|
+
- [Media](#media): The one frame for every picture and video.
|
|
16
17
|
- [Search](#search): Finds a page in an index page's own list, with results as you type.
|
|
17
18
|
- [Share](#share): Shares a page as links and copies its address.
|
|
18
19
|
- [Snippet](#snippet): Shows a command or value with a button that copies it.
|
|
19
20
|
- [Symbol Tile](#symbol-tile): Sets a glyph, icon, or mark on a square tile beside its label.
|
|
20
21
|
- [Tag](#tag): Labels one fixed fact, or links to its topic.
|
|
21
|
-
- [Accessibility](#accessibility-
|
|
22
|
+
- [Accessibility](#accessibility-14): Focus rings, hit areas, contrast, and reduced motion on marketing pages.
|
|
22
23
|
- [Color](#color-1): Roles for each background, container, text, and line, with a few accents.
|
|
23
24
|
- [Iconography](#iconography): Tempo's icon family, drawn on one grid in the color of its text.
|
|
24
25
|
- [Layout](#layout-1): The page grid, section spacing, gaps, and widths of marketing pages.
|
|
@@ -31,20 +32,17 @@ Each section below is one page of the documentation at ds.tehq.dev.
|
|
|
31
32
|
- [Article Rail](#article-rail): Sets share links, then the contents, beside a blog post or a Learn guide.
|
|
32
33
|
- [Bleed](#bleed): Runs a picture or video to the page's edges in its own section.
|
|
33
34
|
- [Block Frame](#block-frame): Holds one block whose view lands after the page, with a skeleton while it loads.
|
|
34
|
-
- [Card](#card):
|
|
35
|
-
- [Carousel](#carousel): Scrolls
|
|
36
|
-
- [CTA](#cta): Closes a page on its next step: links, two
|
|
35
|
+
- [Card](#card): Sets one of several parallel items as a card or a ruled row.
|
|
36
|
+
- [Carousel](#carousel): Scrolls five or more parallel items sideways, paged from the section heading.
|
|
37
|
+
- [CTA](#cta): Closes a page on its next step: links, two parallel steps, or a form.
|
|
37
38
|
- [FAQ](#faq): Holds a page's common questions in rows that open to their answers.
|
|
38
|
-
- [Feature Accordion](#feature-accordion): Opens one row at a time, with its art beside it.
|
|
39
39
|
- [Footer](#footer): Ends every page with the whole site map.
|
|
40
40
|
- [Hero](#hero): Opens a page: its title, subtitle and actions, or its copy beside a form.
|
|
41
|
-
- [Index](#index-1): Lists
|
|
41
|
+
- [Index](#index-1): Lists more items than one page shows as cards or rows, under one row of filters.
|
|
42
42
|
- [Logo Wall](#logo-wall): Shows a group of companies as logos in one ink, under a centered heading.
|
|
43
|
-
- [Media](#media): The one frame for every picture and video.
|
|
44
43
|
- [Nav](#nav): Leads from every page to the site's sections, in a bar at the top.
|
|
45
44
|
- [Section](#section): Holds a page section: its container, its heading and the space above it.
|
|
46
|
-
- [Showcase](#showcase):
|
|
47
|
-
- [Sources](#sources): Lists every page and file a page draws on, each as a link.
|
|
45
|
+
- [Showcase](#showcase): One picture that carries the section, with a few short items about it.
|
|
48
46
|
- [Statement](#statement): Sets one sentence large in its own section.
|
|
49
47
|
- [Stats](#stats): Sets a few figures side by side, each over its label under a rule.
|
|
50
48
|
- [Steps](#steps): Sets a numbered sequence on one rail.
|
|
@@ -2757,274 +2755,556 @@ Use for another brand's mark on a decorative tile.
|
|
|
2757
2755
|
|
|
2758
2756
|
Use for the bar that links home with the wordmark.
|
|
2759
2757
|
|
|
2760
|
-
##
|
|
2758
|
+
## Media
|
|
2761
2759
|
|
|
2762
|
-
|
|
2760
|
+
The one frame for every picture and video.
|
|
2761
|
+
|
|
2762
|
+
*Image: The image icon from Tempo Icons in polished chrome, centered on a transparent ground*
|
|
2763
2763
|
|
|
2764
2764
|
### Overview
|
|
2765
2765
|
|
|
2766
|
-
|
|
2766
|
+
Media is the frame for every picture and video in DS Marketing, on its own or in another part's picture slot. It crops the picture to its `ratio`, 4:3 by default, with the Marketing corner: 16px, and 24px from 768px. Set `video`, and the picture becomes the video's poster, with a Play button that opens the video in a full-viewport dialog.
|
|
2767
2767
|
|
|
2768
|
-
|
|
2769
|
-
> Search has no approved design yet, so its look, labels and props may change.
|
|
2768
|
+
Card, Hero, Story, Showcase, Article Body and Bleed take Media in their picture slots. Each slot sets its corner and ratio, and whether a video plays, so pass Media there with only `src` and `alt`.
|
|
2770
2769
|
|
|
2771
2770
|
### Examples
|
|
2772
2771
|
|
|
2773
|
-
####
|
|
2772
|
+
#### Image
|
|
2774
2773
|
|
|
2775
|
-
|
|
2774
|
+
Set `src` and `alt` for a picture.
|
|
2776
2775
|
|
|
2777
2776
|
```tsx
|
|
2778
|
-
/** Demonstrates
|
|
2779
|
-
import {
|
|
2780
|
-
import
|
|
2781
|
-
|
|
2782
|
-
/** A tile with a simple round mark, standing in for a partner's own. */
|
|
2783
|
-
function Tile(props: { color: string }) {
|
|
2784
|
-
return (
|
|
2785
|
-
<SymbolTile color={props.color} mark="light" size="small">
|
|
2786
|
-
<svg fill="none" viewBox="0 0 40 40">
|
|
2787
|
-
<circle cx="20" cy="20" r="9" stroke="currentColor" strokeWidth="3" />
|
|
2788
|
-
</svg>
|
|
2789
|
-
</SymbolTile>
|
|
2790
|
-
)
|
|
2791
|
-
}
|
|
2777
|
+
/** Demonstrates a 4:3 photo in a Marketing Media frame. @module */
|
|
2778
|
+
import { Media, style } from '@tempoxyz/ds/marketing'
|
|
2779
|
+
import photo from '../../../../content/docs/marketing/components/images/media/media-person.jpg'
|
|
2792
2780
|
|
|
2793
|
-
const
|
|
2794
|
-
{
|
|
2795
|
-
description: '12 partners',
|
|
2796
|
-
group: 'Categories',
|
|
2797
|
-
href: '/partners/wallets/',
|
|
2798
|
-
keywords: ['Custody'],
|
|
2799
|
-
title: 'Wallets & custody',
|
|
2800
|
-
},
|
|
2801
|
-
{
|
|
2802
|
-
description: '9 partners',
|
|
2803
|
-
group: 'Categories',
|
|
2804
|
-
href: '/partners/ramps/',
|
|
2805
|
-
keywords: ['On-ramps', 'FX'],
|
|
2806
|
-
title: 'Ramps & FX',
|
|
2807
|
-
},
|
|
2808
|
-
{
|
|
2809
|
-
description: 'Institutional custody for stablecoin balances.',
|
|
2810
|
-
group: 'Partners',
|
|
2811
|
-
href: '/partners/northwind/',
|
|
2812
|
-
icon: <Tile color="#1f3a5f" />,
|
|
2813
|
-
keywords: ['Wallets', 'United States'],
|
|
2814
|
-
title: 'Northwind',
|
|
2815
|
-
},
|
|
2816
|
-
{
|
|
2817
|
-
description: 'Move between reais and stablecoins in one call.',
|
|
2818
|
-
group: 'Partners',
|
|
2819
|
-
href: '/partners/lumen/',
|
|
2820
|
-
icon: <Tile color="#5b3fd6" />,
|
|
2821
|
-
keywords: ['Ramps', 'Brazil', 'México'],
|
|
2822
|
-
title: 'Lumen',
|
|
2823
|
-
},
|
|
2824
|
-
{
|
|
2825
|
-
description: 'Screen transfers and monitor risk as payments settle.',
|
|
2826
|
-
group: 'Partners',
|
|
2827
|
-
href: '/partners/meridian/',
|
|
2828
|
-
icon: <Tile color="#e5582b" />,
|
|
2829
|
-
keywords: ['Compliance'],
|
|
2830
|
-
title: 'Meridian',
|
|
2831
|
-
},
|
|
2832
|
-
{
|
|
2833
|
-
description: 'Wallets and treasury operations for finance teams.',
|
|
2834
|
-
group: 'Partners',
|
|
2835
|
-
href: '/partners/harbor/',
|
|
2836
|
-
icon: <Tile color="#121212" />,
|
|
2837
|
-
keywords: ['Wallets'],
|
|
2838
|
-
title: 'Harbor',
|
|
2839
|
-
},
|
|
2840
|
-
{
|
|
2841
|
-
description: 'Card and bank on-ramps in more than 160 countries.',
|
|
2842
|
-
group: 'Partners',
|
|
2843
|
-
href: '/partners/cobalt/',
|
|
2844
|
-
icon: <Tile color="#0f766e" />,
|
|
2845
|
-
keywords: ['Ramps', 'Brazil'],
|
|
2846
|
-
title: 'Cobalt',
|
|
2847
|
-
},
|
|
2848
|
-
{
|
|
2849
|
-
description: 'Payouts to bank accounts across Latin America.',
|
|
2850
|
-
group: 'Partners',
|
|
2851
|
-
href: '/partners/tidewater/',
|
|
2852
|
-
icon: <Tile color="#7c2d12" />,
|
|
2853
|
-
keywords: ['Payouts', 'Brazil', 'Colombia'],
|
|
2854
|
-
title: 'Tidewater',
|
|
2855
|
-
},
|
|
2856
|
-
] as const
|
|
2781
|
+
export const fill = true
|
|
2857
2782
|
|
|
2858
2783
|
export function Demo() {
|
|
2859
|
-
const [opened, setOpened] = useState('')
|
|
2860
|
-
|
|
2861
|
-
/** Stands in for the site's router link. This example opens nothing. */
|
|
2862
|
-
function RouterLink(props: { href?: string; onClick?: (event: MouseEvent) => void }) {
|
|
2863
|
-
return (
|
|
2864
|
-
<a
|
|
2865
|
-
{...props}
|
|
2866
|
-
onClick={(event) => {
|
|
2867
|
-
props.onClick?.(event)
|
|
2868
|
-
event.preventDefault()
|
|
2869
|
-
setOpened(`Opened ${props.href}`)
|
|
2870
|
-
}}
|
|
2871
|
-
/>
|
|
2872
|
-
)
|
|
2873
|
-
}
|
|
2874
|
-
|
|
2875
2784
|
return (
|
|
2876
2785
|
<div {...styles.frame()}>
|
|
2877
|
-
<
|
|
2878
|
-
action="/partners/"
|
|
2879
|
-
items={items}
|
|
2880
|
-
label="Search partners"
|
|
2881
|
-
limit={4}
|
|
2882
|
-
// Stands in for the results page. This example submits nothing.
|
|
2883
|
-
onSubmit={(event) => event.preventDefault()}
|
|
2884
|
-
placeholder="Search partners, countries or currencies"
|
|
2885
|
-
render={<RouterLink />}
|
|
2886
|
-
/>
|
|
2887
|
-
<p aria-live="polite" {...styles.result()}>
|
|
2888
|
-
{opened}
|
|
2889
|
-
</p>
|
|
2786
|
+
<Media alt="A person in a dark jacket reads a message on a phone" src={photo} />
|
|
2890
2787
|
</div>
|
|
2891
2788
|
)
|
|
2892
2789
|
}
|
|
2893
2790
|
|
|
2894
2791
|
namespace styles {
|
|
2895
|
-
//
|
|
2896
|
-
export const frame = style({
|
|
2897
|
-
|
|
2898
|
-
export const result = style({
|
|
2899
|
-
color: 'content.secondary',
|
|
2900
|
-
margin: '0',
|
|
2901
|
-
paddingBlockStart: '12',
|
|
2902
|
-
typography: 'body.b3',
|
|
2903
|
-
})
|
|
2792
|
+
// A picture in the frame, not the frame itself.
|
|
2793
|
+
export const frame = style({ marginInline: 'auto', maxWidth: '480', width: 'full' })
|
|
2904
2794
|
}
|
|
2905
2795
|
```
|
|
2906
2796
|
|
|
2907
|
-
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/
|
|
2797
|
+
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Media/Image.tsx)
|
|
2908
2798
|
|
|
2909
|
-
####
|
|
2799
|
+
#### Video
|
|
2910
2800
|
|
|
2911
|
-
|
|
2801
|
+
Add `video`, and Play opens it in a dialog that starts it with sound.
|
|
2912
2802
|
|
|
2913
2803
|
```tsx
|
|
2914
|
-
/** Demonstrates
|
|
2915
|
-
import {
|
|
2804
|
+
/** Demonstrates a video's poster in a Marketing Media frame, whose Play button opens the video in a dialog. @module */
|
|
2805
|
+
import { Media, style } from '@tempoxyz/ds/marketing'
|
|
2806
|
+
import poster from '../../../../content/docs/marketing/components/images/media/media-product.jpg'
|
|
2916
2807
|
|
|
2917
|
-
const
|
|
2918
|
-
{
|
|
2919
|
-
description: 'Product news · Nov 12, 2026',
|
|
2920
|
-
href: '#fee-payers',
|
|
2921
|
-
keywords: ['Fees', 'Sponsorship'],
|
|
2922
|
-
title: 'How fee payers work',
|
|
2923
|
-
},
|
|
2924
|
-
{
|
|
2925
|
-
description: 'Engineering · Oct 28, 2026',
|
|
2926
|
-
href: '#payment-lanes',
|
|
2927
|
-
keywords: ['Throughput', 'Blockspace'],
|
|
2928
|
-
title: 'Payment lanes, explained',
|
|
2929
|
-
},
|
|
2930
|
-
{
|
|
2931
|
-
description: 'Research · Oct 9, 2026',
|
|
2932
|
-
href: '#stablecoin-payouts',
|
|
2933
|
-
keywords: ['Payouts', 'Cross-border'],
|
|
2934
|
-
title: 'The cost of a cross-border payout',
|
|
2935
|
-
},
|
|
2936
|
-
{
|
|
2937
|
-
description: 'Customer story · Sep 30, 2026',
|
|
2938
|
-
href: '#marketplace',
|
|
2939
|
-
keywords: ['Marketplace', 'Payouts'],
|
|
2940
|
-
title: 'Paying sellers in minutes',
|
|
2941
|
-
},
|
|
2942
|
-
] as const
|
|
2808
|
+
export const fill = true
|
|
2943
2809
|
|
|
2944
2810
|
export function Demo() {
|
|
2945
2811
|
return (
|
|
2946
2812
|
<div {...styles.frame()}>
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
placeholder="Search articles"
|
|
2954
|
-
suggestions={posts.slice(0, 2).map((post) => ({ ...post, group: 'Latest' }))}
|
|
2813
|
+
{/* The empty source keeps the demo free of a video file, so the dialog opens on an empty player. */}
|
|
2814
|
+
<Media
|
|
2815
|
+
alt="A hand holds a phone that shows an account balance"
|
|
2816
|
+
name="Product tour"
|
|
2817
|
+
src={poster}
|
|
2818
|
+
video="data:video/mp4;base64,"
|
|
2955
2819
|
/>
|
|
2956
2820
|
</div>
|
|
2957
2821
|
)
|
|
2958
2822
|
}
|
|
2959
2823
|
|
|
2960
2824
|
namespace styles {
|
|
2961
|
-
//
|
|
2962
|
-
export const frame = style({
|
|
2825
|
+
// A poster in the frame, not the frame itself.
|
|
2826
|
+
export const frame = style({ marginInline: 'auto', maxWidth: '480', width: 'full' })
|
|
2963
2827
|
}
|
|
2964
2828
|
```
|
|
2965
2829
|
|
|
2966
|
-
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/
|
|
2830
|
+
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Media/Video.tsx)
|
|
2967
2831
|
|
|
2968
|
-
####
|
|
2832
|
+
#### Ratio
|
|
2969
2833
|
|
|
2970
|
-
Set `
|
|
2834
|
+
Set `ratio` to crop the picture: `16:9` for a film or a wide scene, `16:10` for a card's picture, `3:2` for a photo at a camera's own shape, `4:3` by default, and `1:1` for a square tile.
|
|
2971
2835
|
|
|
2972
2836
|
```tsx
|
|
2973
|
-
/** Demonstrates
|
|
2974
|
-
import {
|
|
2975
|
-
import
|
|
2837
|
+
/** Demonstrates one photo cropped to each Marketing Media ratio, small and labeled, in one row. @module */
|
|
2838
|
+
import { Media, style } from '@tempoxyz/ds/marketing'
|
|
2839
|
+
import photo from '../../../../content/docs/arsenal/crafts/images/image-generation/image-generation-people-do.jpg'
|
|
2976
2840
|
|
|
2977
|
-
const
|
|
2978
|
-
{ description: 'Institutional custody.', href: '#northwind', title: 'Northwind' },
|
|
2979
|
-
{ description: 'Dollars to stablecoins.', href: '#lumen', title: 'Lumen' },
|
|
2980
|
-
{ description: 'Transfer screening.', href: '#meridian', title: 'Meridian' },
|
|
2981
|
-
{ description: 'Treasury operations.', href: '#harbor', title: 'Harbor' },
|
|
2982
|
-
] as const
|
|
2841
|
+
export const fill = true
|
|
2983
2842
|
|
|
2984
|
-
|
|
2985
|
-
const [open, setOpen] = useState(false)
|
|
2843
|
+
const ratios = ['16:9', '16:10', '3:2', '4:3', '1:1'] as const
|
|
2986
2844
|
|
|
2845
|
+
export function Demo() {
|
|
2987
2846
|
return (
|
|
2988
|
-
<div {...styles.
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
label="Search partners"
|
|
2996
|
-
onDialogOpenChange={setOpen}
|
|
2997
|
-
// Stands in for the results page. This example submits nothing.
|
|
2998
|
-
onSubmit={(event) => event.preventDefault()}
|
|
2999
|
-
placeholder="Search partners"
|
|
3000
|
-
suggestions={partners}
|
|
3001
|
-
{...styles.field()}
|
|
3002
|
-
/>
|
|
2847
|
+
<div {...styles.row()}>
|
|
2848
|
+
{ratios.map((ratio) => (
|
|
2849
|
+
<figure key={ratio} {...styles.figure()}>
|
|
2850
|
+
<Media alt="" ratio={ratio} src={photo} />
|
|
2851
|
+
<figcaption {...styles.caption()}>{ratio}</figcaption>
|
|
2852
|
+
</figure>
|
|
2853
|
+
))}
|
|
3003
2854
|
</div>
|
|
3004
2855
|
)
|
|
3005
2856
|
}
|
|
3006
2857
|
|
|
3007
2858
|
namespace styles {
|
|
3008
|
-
|
|
2859
|
+
// Each frame takes the same width, so the ratios differ only in height.
|
|
2860
|
+
export const row = style({
|
|
2861
|
+
alignItems: 'end',
|
|
2862
|
+
display: 'grid',
|
|
2863
|
+
gap: '16',
|
|
2864
|
+
gridTemplateColumns: 'repeat(5, minmax(0, 1fr))',
|
|
2865
|
+
marginInline: 'auto',
|
|
2866
|
+
maxWidth: '720',
|
|
2867
|
+
width: 'full',
|
|
2868
|
+
})
|
|
3009
2869
|
|
|
3010
|
-
export const
|
|
2870
|
+
export const figure = style({ display: 'grid', gap: '8', margin: '0', minWidth: '0' })
|
|
2871
|
+
|
|
2872
|
+
export const caption = style({
|
|
2873
|
+
color: 'content.secondary',
|
|
2874
|
+
textAlign: 'center',
|
|
2875
|
+
typography: 'body.b3',
|
|
2876
|
+
})
|
|
3011
2877
|
}
|
|
3012
2878
|
```
|
|
3013
2879
|
|
|
3014
|
-
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/
|
|
2880
|
+
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Media/Ratio.tsx)
|
|
3015
2881
|
|
|
3016
|
-
####
|
|
2882
|
+
#### Overlay
|
|
3017
2883
|
|
|
3018
|
-
|
|
2884
|
+
Set `overlay="shade"` for near-white copy over the picture. The scrim dims it, and a shade from the start edge holds the copy to 4.5:1 on a light photo. Set `overlay="center"` for centered copy, with the same shade at the center, or `overlay="scrim"` for the scrim alone.
|
|
3019
2885
|
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
* **Dialog (dialogOpen):** Every result opens in a dialog over a scrim, with the query and a Close button.
|
|
3025
|
-
* **Suggestions (suggestions):** The rows that show before the visitor types, such as popular partners or posts.
|
|
2886
|
+
```tsx
|
|
2887
|
+
/** Demonstrates near-white copy over a Marketing Media picture under its start-edge shade. @module */
|
|
2888
|
+
import { Media, style } from '@tempoxyz/ds/marketing'
|
|
2889
|
+
import photo from '../../../../content/docs/arsenal/crafts/images/image-generation/image-generation-people-do.jpg'
|
|
3026
2890
|
|
|
3027
|
-
|
|
2891
|
+
export const fill = true
|
|
2892
|
+
|
|
2893
|
+
export function Demo() {
|
|
2894
|
+
return (
|
|
2895
|
+
<div {...styles.frame()}>
|
|
2896
|
+
<Media alt="" overlay="shade" ratio="16:9" src={photo} />
|
|
2897
|
+
<p {...styles.copy()}>Settle in seconds, anywhere.</p>
|
|
2898
|
+
</div>
|
|
2899
|
+
)
|
|
2900
|
+
}
|
|
2901
|
+
|
|
2902
|
+
namespace styles {
|
|
2903
|
+
// The copy shares the picture's grid cell, at its bottom start.
|
|
2904
|
+
export const copy = style({
|
|
2905
|
+
alignSelf: 'end',
|
|
2906
|
+
color: 'inverse.content.primary',
|
|
2907
|
+
gridArea: '1 / 1',
|
|
2908
|
+
margin: '0',
|
|
2909
|
+
padding: '24',
|
|
2910
|
+
position: 'relative',
|
|
2911
|
+
typography: 'heading.h4',
|
|
2912
|
+
})
|
|
2913
|
+
|
|
2914
|
+
export const frame = style({
|
|
2915
|
+
display: 'grid',
|
|
2916
|
+
marginInline: 'auto',
|
|
2917
|
+
maxWidth: '480',
|
|
2918
|
+
width: 'full',
|
|
2919
|
+
selectors: { '& > *': { gridArea: '1 / 1' } },
|
|
2920
|
+
})
|
|
2921
|
+
}
|
|
2922
|
+
```
|
|
2923
|
+
|
|
2924
|
+
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Media/Overlay.tsx)
|
|
2925
|
+
|
|
2926
|
+
### Anatomy
|
|
2927
|
+
|
|
2928
|
+
```tsx
|
|
2929
|
+
import { Media } from '@tempoxyz/ds/marketing'
|
|
2930
|
+
|
|
2931
|
+
<Media
|
|
2932
|
+
alt="Two people on a stage"
|
|
2933
|
+
captions="/keynote.vtt"
|
|
2934
|
+
name="Keynote"
|
|
2935
|
+
src="/keynote-poster.jpg"
|
|
2936
|
+
video="/keynote.mp4"
|
|
2937
|
+
/>
|
|
2938
|
+
```
|
|
2939
|
+
|
|
2940
|
+
### Guidelines
|
|
2941
|
+
|
|
2942
|
+
#### When to Use
|
|
2943
|
+
|
|
2944
|
+
* Show any picture or video, on its own or in another part's picture slot.
|
|
2945
|
+
|
|
2946
|
+
#### When Not to Use
|
|
2947
|
+
|
|
2948
|
+
* Use art the page draws itself, not Media, behind a [Hero](/marketing/sections/hero)'s copy. That art is hidden from screen readers, so a Play there couldn't be reached.
|
|
2949
|
+
* Use [Bleed](/marketing/sections/bleed) to run one picture to the page's edges as its own section.
|
|
2950
|
+
* Use [Showcase](/marketing/sections/showcase) when the picture needs a heading and items.
|
|
2951
|
+
|
|
2952
|
+
#### Crop the Picture to Its Ratio
|
|
2953
|
+
|
|
2954
|
+
The frame crops to fill, so a picture of another shape loses its edges. Set `ratio="auto"` to keep the picture's own shape.
|
|
2955
|
+
|
|
2956
|
+
**Do:** Crop the picture to its ratio yourself, so the whole scene shows.
|
|
2957
|
+
|
|
2958
|
+
```tsx
|
|
2959
|
+
<span style={{ display: 'block', inlineSize: 200 }}>
|
|
2960
|
+
<Media alt="A figure under the sun, whole" loading="eager" src={whole} />
|
|
2961
|
+
</span>
|
|
2962
|
+
```
|
|
2963
|
+
|
|
2964
|
+
**Don't:** Pass a 16:9 picture to a 4:3 frame, which loses the figure and the sun at its edges.
|
|
2965
|
+
|
|
2966
|
+
```tsx
|
|
2967
|
+
<span style={{ display: 'grid', placeItems: 'center' }}>
|
|
2968
|
+
<img
|
|
2969
|
+
alt=""
|
|
2970
|
+
src={wide}
|
|
2971
|
+
style={{ borderRadius: 16, gridArea: '1 / 1', inlineSize: 267, opacity: 0.3 }}
|
|
2972
|
+
/>
|
|
2973
|
+
<span style={{ display: 'block', gridArea: '1 / 1', inlineSize: 200 }}>
|
|
2974
|
+
<Media alt="A figure under the sun, both cut at the edges" loading="eager" src={wide} />
|
|
2975
|
+
</span>
|
|
2976
|
+
</span>
|
|
2977
|
+
```
|
|
2978
|
+
|
|
2979
|
+
#### Leave the Slot's Settings to the Slot
|
|
2980
|
+
|
|
2981
|
+
In another part's slot, pass Media with only `src` and `alt`. The part sets the corner and the ratio, and in a link or under copy it draws the poster with no Play. Set `alt=""` there, since the part's own text names it.
|
|
2982
|
+
|
|
2983
|
+
#### Give Every Video a Poster
|
|
2984
|
+
|
|
2985
|
+
Pick a poster that shows what the video is about.
|
|
2986
|
+
|
|
2987
|
+
#### Caption Every Video with Speech
|
|
2988
|
+
|
|
2989
|
+
Set `captions` to the video's WebVTT file. The video shows the captions by default, and its controls can turn them off.
|
|
2990
|
+
|
|
2991
|
+
#### Load Images Through Your Framework
|
|
2992
|
+
|
|
2993
|
+
Pass `render` for an optimized image component, such as a Next.js image with its width and height. Media's own image loads lazily, so set `loading="eager"` and `fetchPriority="high"` when it's the first image on the screen.
|
|
2994
|
+
|
|
2995
|
+
### Content
|
|
2996
|
+
|
|
2997
|
+
#### Name What It Shows
|
|
2998
|
+
|
|
2999
|
+
Set `alt` to what the picture shows. Play reads `Play {name} video`, so set `name` when the alt text is longer than a short name, such as Keynote. Pass `messages` to translate the labels.
|
|
3000
|
+
|
|
3001
|
+
### Accessibility
|
|
3002
|
+
|
|
3003
|
+
* **Image (img):** Without a video, an image whose alt text is `alt`.
|
|
3004
|
+
* **Decorative (alt=""):** With `alt=""`, the picture is hidden from screen readers and can't take focus, and a video draws its poster without Play.
|
|
3005
|
+
* **Play (button):** A button named Play, then the name, then video. A pointer opens it anywhere on the poster.
|
|
3006
|
+
* **Dialog (dialog):** A modal dialog that opens with focus on Close. The page behind it does not scroll.
|
|
3007
|
+
* **Close (Escape):** Escape or Close shuts the dialog and returns focus to Play.
|
|
3008
|
+
* **Reduced Motion (prefers-reduced-motion):** The dialog fades in and out, and the player keeps its size instead of scaling in.
|
|
3009
|
+
|
|
3010
|
+
### Related
|
|
3011
|
+
|
|
3012
|
+
[Hero](/marketing/sections/hero)
|
|
3013
|
+
|
|
3014
|
+
Use for a page's opening, whose `media` can hold Media.
|
|
3015
|
+
|
|
3016
|
+
[Card](/marketing/sections/card)
|
|
3017
|
+
|
|
3018
|
+
Use for a linked card, whose `media` holds Media at the card's ratio.
|
|
3019
|
+
|
|
3020
|
+
[Story](/marketing/sections/story)
|
|
3021
|
+
|
|
3022
|
+
Use for someone's words over a photo, whose `image` holds Media under the shade.
|
|
3023
|
+
|
|
3024
|
+
[Showcase](/marketing/sections/showcase)
|
|
3025
|
+
|
|
3026
|
+
Use for one picture with a heading and items, whose `art` holds Media.
|
|
3027
|
+
|
|
3028
|
+
[Bleed](/marketing/sections/bleed)
|
|
3029
|
+
|
|
3030
|
+
Use for one picture run to the page's edges, whose `children` is Media.
|
|
3031
|
+
|
|
3032
|
+
[Article Hero](/marketing/sections/article-hero)
|
|
3033
|
+
|
|
3034
|
+
Use for an article's opening, whose `media` can hold Media.
|
|
3035
|
+
|
|
3036
|
+
[Button](/marketing/components/button)
|
|
3037
|
+
|
|
3038
|
+
Covers Play and Close, in the `playback` and `carousel` layouts.
|
|
3039
|
+
|
|
3040
|
+
## Search
|
|
3041
|
+
|
|
3042
|
+
Finds a page in an index page's own list, with results as you type.
|
|
3043
|
+
|
|
3044
|
+
### Overview
|
|
3045
|
+
|
|
3046
|
+
The search on an index page, such as Partners or the blog. As the visitor types, the best results open under the field, and a See all row opens every result in a dialog. Each result links to its page, and the page passes the list, so Search fetches nothing.
|
|
3047
|
+
|
|
3048
|
+
> [!NOTE]
|
|
3049
|
+
> Search has no approved design yet, so its look, labels and props may change.
|
|
3050
|
+
|
|
3051
|
+
### Examples
|
|
3052
|
+
|
|
3053
|
+
#### Partners
|
|
3054
|
+
|
|
3055
|
+
Pass the index as `items`, with a `group`, `description` and `icon` for each row, and set `limit` for the inline list. Pass `render` for router links. Type a word such as brazil or wallets.
|
|
3056
|
+
|
|
3057
|
+
```tsx
|
|
3058
|
+
/** Demonstrates the Marketing index search on a Partners index, over categories and partners with their tiles. @module */
|
|
3059
|
+
import { Search, style, SymbolTile } from '@tempoxyz/ds/marketing'
|
|
3060
|
+
import { type MouseEvent, useState } from 'react'
|
|
3061
|
+
|
|
3062
|
+
/** A tile with a simple round mark, standing in for a partner's own. */
|
|
3063
|
+
function Tile(props: { color: string }) {
|
|
3064
|
+
return (
|
|
3065
|
+
<SymbolTile color={props.color} mark="light" size="small">
|
|
3066
|
+
<svg fill="none" viewBox="0 0 40 40">
|
|
3067
|
+
<circle cx="20" cy="20" r="9" stroke="currentColor" strokeWidth="3" />
|
|
3068
|
+
</svg>
|
|
3069
|
+
</SymbolTile>
|
|
3070
|
+
)
|
|
3071
|
+
}
|
|
3072
|
+
|
|
3073
|
+
const items = [
|
|
3074
|
+
{
|
|
3075
|
+
description: '12 partners',
|
|
3076
|
+
group: 'Categories',
|
|
3077
|
+
href: '/partners/wallets/',
|
|
3078
|
+
keywords: ['Custody'],
|
|
3079
|
+
title: 'Wallets & custody',
|
|
3080
|
+
},
|
|
3081
|
+
{
|
|
3082
|
+
description: '9 partners',
|
|
3083
|
+
group: 'Categories',
|
|
3084
|
+
href: '/partners/ramps/',
|
|
3085
|
+
keywords: ['On-ramps', 'FX'],
|
|
3086
|
+
title: 'Ramps & FX',
|
|
3087
|
+
},
|
|
3088
|
+
{
|
|
3089
|
+
description: 'Institutional custody for stablecoin balances.',
|
|
3090
|
+
group: 'Partners',
|
|
3091
|
+
href: '/partners/northwind/',
|
|
3092
|
+
icon: <Tile color="#1f3a5f" />,
|
|
3093
|
+
keywords: ['Wallets', 'United States'],
|
|
3094
|
+
title: 'Northwind',
|
|
3095
|
+
},
|
|
3096
|
+
{
|
|
3097
|
+
description: 'Move between reais and stablecoins in one call.',
|
|
3098
|
+
group: 'Partners',
|
|
3099
|
+
href: '/partners/lumen/',
|
|
3100
|
+
icon: <Tile color="#5b3fd6" />,
|
|
3101
|
+
keywords: ['Ramps', 'Brazil', 'México'],
|
|
3102
|
+
title: 'Lumen',
|
|
3103
|
+
},
|
|
3104
|
+
{
|
|
3105
|
+
description: 'Screen transfers and monitor risk as payments settle.',
|
|
3106
|
+
group: 'Partners',
|
|
3107
|
+
href: '/partners/meridian/',
|
|
3108
|
+
icon: <Tile color="#e5582b" />,
|
|
3109
|
+
keywords: ['Compliance'],
|
|
3110
|
+
title: 'Meridian',
|
|
3111
|
+
},
|
|
3112
|
+
{
|
|
3113
|
+
description: 'Wallets and treasury operations for finance teams.',
|
|
3114
|
+
group: 'Partners',
|
|
3115
|
+
href: '/partners/harbor/',
|
|
3116
|
+
icon: <Tile color="#121212" />,
|
|
3117
|
+
keywords: ['Wallets'],
|
|
3118
|
+
title: 'Harbor',
|
|
3119
|
+
},
|
|
3120
|
+
{
|
|
3121
|
+
description: 'Card and bank on-ramps in more than 160 countries.',
|
|
3122
|
+
group: 'Partners',
|
|
3123
|
+
href: '/partners/cobalt/',
|
|
3124
|
+
icon: <Tile color="#0f766e" />,
|
|
3125
|
+
keywords: ['Ramps', 'Brazil'],
|
|
3126
|
+
title: 'Cobalt',
|
|
3127
|
+
},
|
|
3128
|
+
{
|
|
3129
|
+
description: 'Payouts to bank accounts across Latin America.',
|
|
3130
|
+
group: 'Partners',
|
|
3131
|
+
href: '/partners/tidewater/',
|
|
3132
|
+
icon: <Tile color="#7c2d12" />,
|
|
3133
|
+
keywords: ['Payouts', 'Brazil', 'Colombia'],
|
|
3134
|
+
title: 'Tidewater',
|
|
3135
|
+
},
|
|
3136
|
+
] as const
|
|
3137
|
+
|
|
3138
|
+
export function Demo() {
|
|
3139
|
+
const [opened, setOpened] = useState('')
|
|
3140
|
+
|
|
3141
|
+
/** Stands in for the site's router link. This example opens nothing. */
|
|
3142
|
+
function RouterLink(props: { href?: string; onClick?: (event: MouseEvent) => void }) {
|
|
3143
|
+
return (
|
|
3144
|
+
<a
|
|
3145
|
+
{...props}
|
|
3146
|
+
onClick={(event) => {
|
|
3147
|
+
props.onClick?.(event)
|
|
3148
|
+
event.preventDefault()
|
|
3149
|
+
setOpened(`Opened ${props.href}`)
|
|
3150
|
+
}}
|
|
3151
|
+
/>
|
|
3152
|
+
)
|
|
3153
|
+
}
|
|
3154
|
+
|
|
3155
|
+
return (
|
|
3156
|
+
<div {...styles.frame()}>
|
|
3157
|
+
<Search
|
|
3158
|
+
action="/partners/"
|
|
3159
|
+
items={items}
|
|
3160
|
+
label="Search partners"
|
|
3161
|
+
limit={4}
|
|
3162
|
+
// Stands in for the results page. This example submits nothing.
|
|
3163
|
+
onSubmit={(event) => event.preventDefault()}
|
|
3164
|
+
placeholder="Search partners, countries or currencies"
|
|
3165
|
+
render={<RouterLink />}
|
|
3166
|
+
/>
|
|
3167
|
+
<p aria-live="polite" {...styles.result()}>
|
|
3168
|
+
{opened}
|
|
3169
|
+
</p>
|
|
3170
|
+
</div>
|
|
3171
|
+
)
|
|
3172
|
+
}
|
|
3173
|
+
|
|
3174
|
+
namespace styles {
|
|
3175
|
+
// Room under the field for the open results.
|
|
3176
|
+
export const frame = style({ maxWidth: '480', minHeight: '460px !custom', width: 'full' })
|
|
3177
|
+
|
|
3178
|
+
export const result = style({
|
|
3179
|
+
color: 'content.secondary',
|
|
3180
|
+
margin: '0',
|
|
3181
|
+
paddingBlockStart: '12',
|
|
3182
|
+
typography: 'body.b3',
|
|
3183
|
+
})
|
|
3184
|
+
}
|
|
3185
|
+
```
|
|
3186
|
+
|
|
3187
|
+
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Search/Partners.tsx)
|
|
3188
|
+
|
|
3189
|
+
#### Articles
|
|
3190
|
+
|
|
3191
|
+
Pass `suggestions` for the rows that show before the visitor types, such as the latest posts. Press ↓ in the empty field.
|
|
3192
|
+
|
|
3193
|
+
```tsx
|
|
3194
|
+
/** Demonstrates the Marketing index search on an article index, with suggested posts before the visitor types. @module */
|
|
3195
|
+
import { Search, style } from '@tempoxyz/ds/marketing'
|
|
3196
|
+
|
|
3197
|
+
const posts = [
|
|
3198
|
+
{
|
|
3199
|
+
description: 'Product news · Nov 12, 2026',
|
|
3200
|
+
href: '#fee-payers',
|
|
3201
|
+
keywords: ['Fees', 'Sponsorship'],
|
|
3202
|
+
title: 'How fee payers work',
|
|
3203
|
+
},
|
|
3204
|
+
{
|
|
3205
|
+
description: 'Engineering · Oct 28, 2026',
|
|
3206
|
+
href: '#payment-lanes',
|
|
3207
|
+
keywords: ['Throughput', 'Blockspace'],
|
|
3208
|
+
title: 'Payment lanes, explained',
|
|
3209
|
+
},
|
|
3210
|
+
{
|
|
3211
|
+
description: 'Research · Oct 9, 2026',
|
|
3212
|
+
href: '#stablecoin-payouts',
|
|
3213
|
+
keywords: ['Payouts', 'Cross-border'],
|
|
3214
|
+
title: 'The cost of a cross-border payout',
|
|
3215
|
+
},
|
|
3216
|
+
{
|
|
3217
|
+
description: 'Customer story · Sep 30, 2026',
|
|
3218
|
+
href: '#marketplace',
|
|
3219
|
+
keywords: ['Marketplace', 'Payouts'],
|
|
3220
|
+
title: 'Paying sellers in minutes',
|
|
3221
|
+
},
|
|
3222
|
+
] as const
|
|
3223
|
+
|
|
3224
|
+
export function Demo() {
|
|
3225
|
+
return (
|
|
3226
|
+
<div {...styles.frame()}>
|
|
3227
|
+
<Search
|
|
3228
|
+
action="/blog/"
|
|
3229
|
+
items={posts}
|
|
3230
|
+
label="Search articles"
|
|
3231
|
+
// Stands in for the results page. This example submits nothing.
|
|
3232
|
+
onSubmit={(event) => event.preventDefault()}
|
|
3233
|
+
placeholder="Search articles"
|
|
3234
|
+
suggestions={posts.slice(0, 2).map((post) => ({ ...post, group: 'Latest' }))}
|
|
3235
|
+
/>
|
|
3236
|
+
</div>
|
|
3237
|
+
)
|
|
3238
|
+
}
|
|
3239
|
+
|
|
3240
|
+
namespace styles {
|
|
3241
|
+
// Room under the field for the open results.
|
|
3242
|
+
export const frame = style({ maxWidth: '480', minHeight: '340px !custom', width: 'full' })
|
|
3243
|
+
}
|
|
3244
|
+
```
|
|
3245
|
+
|
|
3246
|
+
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Search/Articles.tsx)
|
|
3247
|
+
|
|
3248
|
+
#### Dialog
|
|
3249
|
+
|
|
3250
|
+
Set `dialogOpen` and `onDialogOpenChange` to open every result from a control of the page, such as a search button in a partner page's trail.
|
|
3251
|
+
|
|
3252
|
+
```tsx
|
|
3253
|
+
/** Demonstrates the Marketing index search's dialog opened from a button in a page's trail, as a partner page does. @module */
|
|
3254
|
+
import { Button, Search, style } from '@tempoxyz/ds/marketing'
|
|
3255
|
+
import { useState } from 'react'
|
|
3256
|
+
|
|
3257
|
+
const partners = [
|
|
3258
|
+
{ description: 'Institutional custody.', href: '#northwind', title: 'Northwind' },
|
|
3259
|
+
{ description: 'Dollars to stablecoins.', href: '#lumen', title: 'Lumen' },
|
|
3260
|
+
{ description: 'Transfer screening.', href: '#meridian', title: 'Meridian' },
|
|
3261
|
+
{ description: 'Treasury operations.', href: '#harbor', title: 'Harbor' },
|
|
3262
|
+
] as const
|
|
3263
|
+
|
|
3264
|
+
export function Demo() {
|
|
3265
|
+
const [open, setOpen] = useState(false)
|
|
3266
|
+
|
|
3267
|
+
return (
|
|
3268
|
+
<div {...styles.frame()}>
|
|
3269
|
+
<Button aria-haspopup="dialog" onClick={() => setOpen(true)} variant="secondary">
|
|
3270
|
+
Search partners
|
|
3271
|
+
</Button>
|
|
3272
|
+
<Search
|
|
3273
|
+
dialogOpen={open}
|
|
3274
|
+
items={partners}
|
|
3275
|
+
label="Search partners"
|
|
3276
|
+
onDialogOpenChange={setOpen}
|
|
3277
|
+
// Stands in for the results page. This example submits nothing.
|
|
3278
|
+
onSubmit={(event) => event.preventDefault()}
|
|
3279
|
+
placeholder="Search partners"
|
|
3280
|
+
suggestions={partners}
|
|
3281
|
+
{...styles.field()}
|
|
3282
|
+
/>
|
|
3283
|
+
</div>
|
|
3284
|
+
)
|
|
3285
|
+
}
|
|
3286
|
+
|
|
3287
|
+
namespace styles {
|
|
3288
|
+
export const field = style({ maxWidth: '480' })
|
|
3289
|
+
|
|
3290
|
+
export const frame = style({ display: 'grid', gap: '16', justifyItems: 'start', width: 'full' })
|
|
3291
|
+
}
|
|
3292
|
+
```
|
|
3293
|
+
|
|
3294
|
+
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Search/Dialog.tsx)
|
|
3295
|
+
|
|
3296
|
+
#### States
|
|
3297
|
+
|
|
3298
|
+
Each state comes from the field and its results, which [Composer](/marketing/components/composer) draws.
|
|
3299
|
+
|
|
3300
|
+
* **Rest (container.control):** The field rests on the control tint, with the search glyph and the submit arrow.
|
|
3301
|
+
* **Results (limit):** The best results open under the field, and a See all row follows when more match.
|
|
3302
|
+
* **Highlighted Row (aria-selected):** The first row is highlighted, and its cue darkens and moves along the line.
|
|
3303
|
+
* **No Results (messages.noResults):** One line on the results' glass repeats the query, and the status announces it.
|
|
3304
|
+
* **Dialog (dialogOpen):** Every result opens in a dialog over a scrim, with the query and a Close button.
|
|
3305
|
+
* **Suggestions (suggestions):** The rows that show before the visitor types, such as popular partners or posts.
|
|
3306
|
+
|
|
3307
|
+
### Anatomy
|
|
3028
3308
|
|
|
3029
3309
|
```tsx
|
|
3030
3310
|
import { Search } from '@tempoxyz/ds/marketing'
|
|
@@ -5590,24 +5870,21 @@ A bleed renders a [Section](/marketing/sections/section) with `bleed` around one
|
|
|
5590
5870
|
|
|
5591
5871
|
#### Default
|
|
5592
5872
|
|
|
5593
|
-
Pass a [Media](/marketing/
|
|
5873
|
+
Pass a [Media](/marketing/components/media) as `children`, which fills the frame with no corner, and a `label`.
|
|
5594
5874
|
|
|
5595
5875
|
```tsx
|
|
5596
5876
|
/** Demonstrates a Marketing bleed: a picture run to the page edges, with a label on the dark glass. @module */
|
|
5597
|
-
import { Bleed } from '@tempoxyz/ds/marketing'
|
|
5877
|
+
import { Bleed, Media } from '@tempoxyz/ds/marketing'
|
|
5878
|
+
import photo from '../../../../content/docs/arsenal/crafts/images/image-generation/image-generation-people-do.jpg'
|
|
5598
5879
|
|
|
5599
5880
|
export const fill = true
|
|
5600
5881
|
|
|
5601
5882
|
export const width = 'desktop'
|
|
5602
5883
|
|
|
5603
|
-
// A 16:9 gradient that stands in for an event photo, light at its start so the label reads over white.
|
|
5604
|
-
const photo =
|
|
5605
|
-
"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 9'%3E%3Cdefs%3E%3ClinearGradient id='g' x2='1' y2='1'%3E%3Cstop stop-color='%23ffffff'/%3E%3Cstop offset='1' stop-color='%236b7f99'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='16' height='9' fill='url(%23g)'/%3E%3C/svg%3E"
|
|
5606
|
-
|
|
5607
5884
|
export function Demo() {
|
|
5608
5885
|
return (
|
|
5609
|
-
<Bleed label="
|
|
5610
|
-
<
|
|
5886
|
+
<Bleed label="New York, after dark">
|
|
5887
|
+
<Media alt="" src={photo} />
|
|
5611
5888
|
</Bleed>
|
|
5612
5889
|
)
|
|
5613
5890
|
}
|
|
@@ -5615,13 +5892,47 @@ export function Demo() {
|
|
|
5615
5892
|
|
|
5616
5893
|
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Bleed/Default.tsx)
|
|
5617
5894
|
|
|
5618
|
-
|
|
5895
|
+
#### Video
|
|
5896
|
+
|
|
5897
|
+
Pass a looping film as a `video` element, which plays in place.
|
|
5619
5898
|
|
|
5620
5899
|
```tsx
|
|
5900
|
+
/** Demonstrates a Marketing bleed around a quiet looping video, which gets the Pause button. @module */
|
|
5621
5901
|
import { Bleed } from '@tempoxyz/ds/marketing'
|
|
5902
|
+
import { useEffect, useRef } from 'react'
|
|
5903
|
+
import film from '../../../../content/docs/arsenal/brand/images/logo-motion/logo-motion-footage.mp4'
|
|
5904
|
+
import poster from '../../../../content/docs/marketing/sections/images/bleed/bleed-film-poster.jpg'
|
|
5905
|
+
|
|
5906
|
+
export const fill = true
|
|
5907
|
+
|
|
5908
|
+
export const width = 'desktop'
|
|
5909
|
+
|
|
5910
|
+
export function Demo() {
|
|
5911
|
+
const video = useRef<HTMLVideoElement>(null)
|
|
5912
|
+
|
|
5913
|
+
// The film starts on its own only where the reader allows motion, and shows its poster otherwise.
|
|
5914
|
+
useEffect(() => {
|
|
5915
|
+
if (matchMedia('(prefers-reduced-motion: no-preference)').matches)
|
|
5916
|
+
void video.current?.play().catch(() => {})
|
|
5917
|
+
}, [])
|
|
5918
|
+
|
|
5919
|
+
return (
|
|
5920
|
+
<Bleed label="Tempo brand film">
|
|
5921
|
+
<video loop muted playsInline poster={poster} ref={video} src={film} />
|
|
5922
|
+
</Bleed>
|
|
5923
|
+
)
|
|
5924
|
+
}
|
|
5925
|
+
```
|
|
5622
5926
|
|
|
5623
|
-
|
|
5624
|
-
|
|
5927
|
+
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Bleed/Video.tsx)
|
|
5928
|
+
|
|
5929
|
+
### Anatomy
|
|
5930
|
+
|
|
5931
|
+
```tsx
|
|
5932
|
+
import { Bleed, Media } from '@tempoxyz/ds/marketing'
|
|
5933
|
+
|
|
5934
|
+
<Bleed label="…">
|
|
5935
|
+
<Media alt="" src="/summit.webp" />
|
|
5625
5936
|
</Bleed>
|
|
5626
5937
|
```
|
|
5627
5938
|
|
|
@@ -5629,13 +5940,14 @@ import { Bleed } from '@tempoxyz/ds/marketing'
|
|
|
5629
5940
|
|
|
5630
5941
|
#### When to Use
|
|
5631
5942
|
|
|
5632
|
-
* Show
|
|
5943
|
+
* Show one picture or video across the page's full width as its one break, when it needs no heading.
|
|
5633
5944
|
|
|
5634
5945
|
#### When Not to Use
|
|
5635
5946
|
|
|
5636
|
-
* Use [Media](/marketing/sections/media) for a picture or video inside a section's content.
|
|
5637
|
-
* Use [Story](/marketing/sections/story) with `variant="quote"` for someone's words over a photo.
|
|
5638
5947
|
* Use [Statement](/marketing/sections/statement) for the page's break as a sentence.
|
|
5948
|
+
* Use [Story](/marketing/sections/story) with `variant="quote"` for someone's words over a photo.
|
|
5949
|
+
* Use [Showcase](/marketing/sections/showcase) with `variant="contained"` when the picture needs a heading.
|
|
5950
|
+
* Use [Media](/marketing/components/media) for a picture or video inside a section's content.
|
|
5639
5951
|
|
|
5640
5952
|
#### Use One Break per Page
|
|
5641
5953
|
|
|
@@ -5671,13 +5983,13 @@ The frame crops to cover, at 4:3 on phones and 16:9 from 768px, so the sides of
|
|
|
5671
5983
|
|
|
5672
5984
|
#### Keep a Video Quiet
|
|
5673
5985
|
|
|
5674
|
-
Give a video a `poster`, `muted` and `playsInline`, and keep it free of speech. A video
|
|
5986
|
+
Give a video a `poster`, `muted` and `playsInline`, and keep it free of speech. A video that plays on its own for more than five seconds without `loop` needs a pause control from the page. Otherwise, use a picture.
|
|
5675
5987
|
|
|
5676
5988
|
### Content
|
|
5677
5989
|
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5990
|
+
* **Picture:** Required, as `children`. A photo or a video.
|
|
5991
|
+
* **Label:** Optional, in `label`. A few words that name what the picture shows, such as a place or a name.
|
|
5992
|
+
* **Title, description, action, link & figure:** None.
|
|
5681
5993
|
|
|
5682
5994
|
### Accessibility
|
|
5683
5995
|
|
|
@@ -5700,7 +6012,7 @@ Covers the section it renders, run to the page edges with `bleed`.
|
|
|
5700
6012
|
|
|
5701
6013
|
Use for the page's break as a sentence.
|
|
5702
6014
|
|
|
5703
|
-
[Media](/marketing/
|
|
6015
|
+
[Media](/marketing/components/media)
|
|
5704
6016
|
|
|
5705
6017
|
Use for a picture or video inside a section's content.
|
|
5706
6018
|
|
|
@@ -5857,32 +6169,35 @@ Use for the row that holds the block.
|
|
|
5857
6169
|
|
|
5858
6170
|
## Card
|
|
5859
6171
|
|
|
5860
|
-
|
|
6172
|
+
Sets one of several parallel items as a card or a ruled row.
|
|
5861
6173
|
|
|
5862
6174
|
*Image: The bookmark icon from Tempo Icons in polished chrome, centered on a transparent ground*
|
|
5863
6175
|
|
|
5864
6176
|
### Overview
|
|
5865
6177
|
|
|
5866
|
-
A card
|
|
6178
|
+
A card holds one of a set of parallel items in an `<article>`. `variant` sets where the picture sits, `tone` sets the frame, and `Card.Grid` lays the cards out.
|
|
6179
|
+
|
|
6180
|
+
With `href`, the title's link stretches over the whole card, which ends in a [Link](/marketing/components/link) cue. With `action`, the card holds one link or button and does not link itself.
|
|
5867
6181
|
|
|
5868
|
-
|
|
6182
|
+
**Slots:** a title is required. A description, a label (`eyebrow`), a picture, and one link or one action are optional. A card has no figure slot: a number that needs a line goes in the title.
|
|
6183
|
+
|
|
6184
|
+
> [!NOTE]
|
|
6185
|
+
> `variant` takes `stack`, `cover`, `inline` and `row`. `link` is now `stack`, `photo` is `cover` and `compact` is `inline`. `feature` and `panel` become `stack` with `tone="page"` or a framed tone. `Card.Grid` takes `variant`: `set` is now `boxed` and `columns="rows"` is `plain`. `Sources` is now rows in a `plain` grid, as References shows. The old names still work for one release.
|
|
5869
6186
|
|
|
5870
6187
|
### Examples
|
|
5871
6188
|
|
|
5872
6189
|
#### Default
|
|
5873
6190
|
|
|
5874
|
-
Two
|
|
6191
|
+
Two linked `stack` cards, each with its own photo in `media` and a `cue`. A photo zooms on hover.
|
|
5875
6192
|
|
|
5876
6193
|
```tsx
|
|
5877
|
-
/** Demonstrates two Marketing
|
|
6194
|
+
/** Demonstrates two linked Marketing stack cards, each with its own picture and a cue. @module */
|
|
5878
6195
|
import { Card } from '@tempoxyz/ds/marketing'
|
|
6196
|
+
import aurora from '../../../../content/docs/arsenal/crafts/images/depth-gradients/depth-gradients-aurora.jpg'
|
|
6197
|
+
import people from '../../../../content/docs/arsenal/crafts/images/image-generation/image-generation-people-do.jpg'
|
|
5879
6198
|
|
|
5880
6199
|
export const fill = true
|
|
5881
6200
|
|
|
5882
|
-
// A gradient that stands in for a photo.
|
|
5883
|
-
const photo =
|
|
5884
|
-
"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cdefs%3E%3ClinearGradient id='g' x2='1' y2='1'%3E%3Cstop stop-color='%236b7f99'/%3E%3Cstop offset='1' stop-color='%23a3866a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='16' height='10' fill='url(%23g)'/%3E%3C/svg%3E"
|
|
5885
|
-
|
|
5886
6201
|
export function Demo() {
|
|
5887
6202
|
return (
|
|
5888
6203
|
<Card.Grid columns="2">
|
|
@@ -5891,7 +6206,7 @@ export function Demo() {
|
|
|
5891
6206
|
description="ARQ is launching USDs, its own stablecoin, on Tempo."
|
|
5892
6207
|
eyebrow="ARQ"
|
|
5893
6208
|
href="/customer-stories/arq/"
|
|
5894
|
-
media={<img alt="" src={
|
|
6209
|
+
media={<img alt="" src={aurora} />}
|
|
5895
6210
|
title="ARQ is launching USDs exclusively on Tempo"
|
|
5896
6211
|
/>
|
|
5897
6212
|
<Card
|
|
@@ -5899,7 +6214,7 @@ export function Demo() {
|
|
|
5899
6214
|
description="Deel's private stablecoin wallet lets contractors hold dollar-backed balances, earn rewards, and spend globally."
|
|
5900
6215
|
eyebrow="Deel"
|
|
5901
6216
|
href="/customer-stories/deel/"
|
|
5902
|
-
media={<img alt="" src={
|
|
6217
|
+
media={<img alt="" src={people} />}
|
|
5903
6218
|
title="How Deel built its private stablecoin wallet for global contractors on Tempo"
|
|
5904
6219
|
/>
|
|
5905
6220
|
</Card.Grid>
|
|
@@ -5909,89 +6224,9 @@ export function Demo() {
|
|
|
5909
6224
|
|
|
5910
6225
|
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Card/Default.tsx)
|
|
5911
6226
|
|
|
5912
|
-
#### Without Media
|
|
5913
|
-
|
|
5914
|
-
Leave out `media` for a text-only link card.
|
|
5915
|
-
|
|
5916
|
-
```tsx
|
|
5917
|
-
/** Demonstrates text-only Marketing link cards, without media. @module */
|
|
5918
|
-
import { Card } from '@tempoxyz/ds/marketing'
|
|
5919
|
-
|
|
5920
|
-
export const fill = true
|
|
5921
|
-
|
|
5922
|
-
export function Demo() {
|
|
5923
|
-
return (
|
|
5924
|
-
<Card.Grid columns="2">
|
|
5925
|
-
<Card
|
|
5926
|
-
cue="Read more"
|
|
5927
|
-
description="Start building on Tempo now that mainnet is live, using public RPC endpoints and the new Machine Payments Protocol co-authored with Stripe."
|
|
5928
|
-
eyebrow="Blog"
|
|
5929
|
-
href="/blog/mainnet/"
|
|
5930
|
-
title="Tempo Mainnet is live"
|
|
5931
|
-
/>
|
|
5932
|
-
<Card
|
|
5933
|
-
cue="Read story"
|
|
5934
|
-
description="ARQ is launching USDs, its own stablecoin, on Tempo."
|
|
5935
|
-
eyebrow="ARQ"
|
|
5936
|
-
href="/customer-stories/arq/"
|
|
5937
|
-
title="ARQ is launching USDs exclusively on Tempo"
|
|
5938
|
-
/>
|
|
5939
|
-
</Card.Grid>
|
|
5940
|
-
)
|
|
5941
|
-
}
|
|
5942
|
-
```
|
|
5943
|
-
|
|
5944
|
-
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Card/WithoutMedia.tsx)
|
|
5945
|
-
|
|
5946
|
-
#### Art
|
|
5947
|
-
|
|
5948
|
-
Put an illustration in `art` in place of `media`. A photo in `media` zooms on hover, and art holds still.
|
|
5949
|
-
|
|
5950
|
-
```tsx
|
|
5951
|
-
/** Demonstrates Marketing link cards that hold line art in the art slot, which holds still on hover. @module */
|
|
5952
|
-
import { Card } from '@tempoxyz/ds/marketing'
|
|
5953
|
-
|
|
5954
|
-
export const fill = true
|
|
5955
|
-
|
|
5956
|
-
// Line art that stands in for a guide's illustration, half the well's height and centred in it.
|
|
5957
|
-
function Lines() {
|
|
5958
|
-
return (
|
|
5959
|
-
<svg aria-hidden="true" fill="none" viewBox="0 0 160 100">
|
|
5960
|
-
<circle cx="80" cy="50" r="14" stroke="currentColor" strokeWidth="1" />
|
|
5961
|
-
<path d="M52 50h56M80 25v50" stroke="currentColor" strokeWidth="1" />
|
|
5962
|
-
</svg>
|
|
5963
|
-
)
|
|
5964
|
-
}
|
|
5965
|
-
|
|
5966
|
-
export function Demo() {
|
|
5967
|
-
return (
|
|
5968
|
-
<Card.Grid columns="2">
|
|
5969
|
-
<Card
|
|
5970
|
-
art={<Lines />}
|
|
5971
|
-
cue="Read guide"
|
|
5972
|
-
description="How a payment settles on Tempo, from the request to the receipt."
|
|
5973
|
-
eyebrow="Guide"
|
|
5974
|
-
href="/learn/settlement/"
|
|
5975
|
-
title="Settlement on Tempo"
|
|
5976
|
-
/>
|
|
5977
|
-
<Card
|
|
5978
|
-
art={<Lines />}
|
|
5979
|
-
cue="Read guide"
|
|
5980
|
-
description="How fees are paid in any stablecoin, without a gas token."
|
|
5981
|
-
eyebrow="Guide"
|
|
5982
|
-
href="/learn/fees/"
|
|
5983
|
-
title="Fees in stablecoins"
|
|
5984
|
-
/>
|
|
5985
|
-
</Card.Grid>
|
|
5986
|
-
)
|
|
5987
|
-
}
|
|
5988
|
-
```
|
|
5989
|
-
|
|
5990
|
-
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Card/Art.tsx)
|
|
5991
|
-
|
|
5992
6227
|
#### Open
|
|
5993
6228
|
|
|
5994
|
-
Set `tone="page"`
|
|
6229
|
+
Set `tone="page"` for the open look, here three under a section heading. Without a picture, a linked card sits under a hairline.
|
|
5995
6230
|
|
|
5996
6231
|
```tsx
|
|
5997
6232
|
/** Demonstrates open Marketing link cards: three related articles on the page under a section heading. @module */
|
|
@@ -6052,55 +6287,140 @@ export function Demo() {
|
|
|
6052
6287
|
|
|
6053
6288
|
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Card/Open.tsx)
|
|
6054
6289
|
|
|
6055
|
-
####
|
|
6290
|
+
#### Art
|
|
6056
6291
|
|
|
6057
|
-
|
|
6292
|
+
Put a drawing in `art`, which holds still, and set `ratio` to crop it. Here each item draws its own on a square, three across.
|
|
6058
6293
|
|
|
6059
6294
|
```tsx
|
|
6060
|
-
/** Demonstrates
|
|
6061
|
-
import {
|
|
6062
|
-
|
|
6295
|
+
/** Demonstrates open Marketing stack cards with square line art that holds still, three across. @module */
|
|
6296
|
+
import { Card } from '@tempoxyz/ds/marketing'
|
|
6297
|
+
|
|
6298
|
+
export const fill = true
|
|
6299
|
+
|
|
6300
|
+
// The cards go three across from 1024px, so the example opens at Desktop.
|
|
6301
|
+
export const width = 'desktop'
|
|
6302
|
+
|
|
6303
|
+
/**
|
|
6304
|
+
* Line art that stands in for each item's drawing, about 40% of the square well and centred in it.
|
|
6305
|
+
* Each item draws its own: a pair of braces, a drop and a magnifier.
|
|
6306
|
+
*/
|
|
6307
|
+
function Art(props: { kind: 'drop' | 'lens' | 'braces' }) {
|
|
6308
|
+
return (
|
|
6309
|
+
<svg aria-hidden="true" fill="none" viewBox="0 0 100 100">
|
|
6310
|
+
{props.kind === 'braces' && (
|
|
6311
|
+
<path
|
|
6312
|
+
d="M42 32c-6 0-8 3-8 8v4c0 4-2 6-6 6 4 0 6 2 6 6v4c0 5 2 8 8 8M58 32c6 0 8 3 8 8v4c0 4 2 6 6 6-4 0-6 2-6 6v4c0 5-2 8-8 8"
|
|
6313
|
+
stroke="currentColor"
|
|
6314
|
+
strokeWidth="1"
|
|
6315
|
+
/>
|
|
6316
|
+
)}
|
|
6317
|
+
{props.kind === 'drop' && (
|
|
6318
|
+
<path
|
|
6319
|
+
d="M50 30c8 11 14 19 14 26a14 14 0 0 1-28 0c0-7 6-15 14-26Z"
|
|
6320
|
+
stroke="currentColor"
|
|
6321
|
+
strokeWidth="1"
|
|
6322
|
+
/>
|
|
6323
|
+
)}
|
|
6324
|
+
{props.kind === 'lens' && (
|
|
6325
|
+
<>
|
|
6326
|
+
<circle cx="46" cy="46" r="13" stroke="currentColor" strokeWidth="1" />
|
|
6327
|
+
<path d="m56 56 13 13" stroke="currentColor" strokeWidth="1" />
|
|
6328
|
+
</>
|
|
6329
|
+
)}
|
|
6330
|
+
</svg>
|
|
6331
|
+
)
|
|
6332
|
+
}
|
|
6333
|
+
|
|
6334
|
+
const tools = [
|
|
6335
|
+
{
|
|
6336
|
+
art: 'braces',
|
|
6337
|
+
description: 'Typed clients for the languages you build in, with every action the chain takes.',
|
|
6338
|
+
href: '/docs/sdks/',
|
|
6339
|
+
title: 'SDKs',
|
|
6340
|
+
},
|
|
6341
|
+
{
|
|
6342
|
+
art: 'drop',
|
|
6343
|
+
description: 'Testnet stablecoins on request, so you can send a payment in minutes.',
|
|
6344
|
+
href: '/docs/faucet/',
|
|
6345
|
+
title: 'Faucet',
|
|
6346
|
+
},
|
|
6347
|
+
{
|
|
6348
|
+
art: 'lens',
|
|
6349
|
+
description: 'Look up any block, transaction or account, and follow a payment as it settles.',
|
|
6350
|
+
href: '/explorer/',
|
|
6351
|
+
title: 'Explorer',
|
|
6352
|
+
},
|
|
6353
|
+
] as const
|
|
6354
|
+
|
|
6355
|
+
export function Demo() {
|
|
6356
|
+
return (
|
|
6357
|
+
<Card.Grid columns="3">
|
|
6358
|
+
{tools.map((tool) => (
|
|
6359
|
+
<Card
|
|
6360
|
+
art={<Art kind={tool.art} />}
|
|
6361
|
+
description={tool.description}
|
|
6362
|
+
href={tool.href}
|
|
6363
|
+
key={tool.title}
|
|
6364
|
+
ratio="1:1"
|
|
6365
|
+
title={tool.title}
|
|
6366
|
+
tone="page"
|
|
6367
|
+
/>
|
|
6368
|
+
))}
|
|
6369
|
+
</Card.Grid>
|
|
6370
|
+
)
|
|
6371
|
+
}
|
|
6372
|
+
```
|
|
6373
|
+
|
|
6374
|
+
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Card/Art.tsx)
|
|
6375
|
+
|
|
6376
|
+
#### Tones
|
|
6377
|
+
|
|
6378
|
+
Leave out `href` and pass one `action`, and frame the card with `tone`: `white` (default), `grey`, `outline` or `inverse`.
|
|
6379
|
+
|
|
6380
|
+
```tsx
|
|
6381
|
+
/** Demonstrates still Marketing stack cards in the grey, outline and inverse tones, each with one action. @module */
|
|
6382
|
+
import { Card, Link } from '@tempoxyz/ds/marketing'
|
|
6063
6383
|
|
|
6064
6384
|
export const fill = true
|
|
6065
6385
|
|
|
6386
|
+
// The cards go three across from 1024px, so the example opens at Desktop.
|
|
6387
|
+
export const width = 'desktop'
|
|
6388
|
+
|
|
6066
6389
|
export function Demo() {
|
|
6067
6390
|
return (
|
|
6068
|
-
<Card.Grid columns="
|
|
6391
|
+
<Card.Grid columns="3">
|
|
6069
6392
|
<Card
|
|
6070
|
-
|
|
6071
|
-
|
|
6072
|
-
|
|
6073
|
-
|
|
6074
|
-
|
|
6075
|
-
<KeyIcon size={20} />
|
|
6076
|
-
</SymbolTile>
|
|
6077
|
-
}
|
|
6078
|
-
title="Privy"
|
|
6393
|
+
action={<Link href="/events/summit/">Register</Link>}
|
|
6394
|
+
description="Two days on payments, stablecoins, and the teams building them."
|
|
6395
|
+
eyebrow="12 May"
|
|
6396
|
+
title="Tempo Summit, New York"
|
|
6397
|
+
tone="grey"
|
|
6079
6398
|
/>
|
|
6080
6399
|
<Card
|
|
6081
|
-
|
|
6082
|
-
|
|
6083
|
-
|
|
6084
|
-
|
|
6085
|
-
|
|
6086
|
-
|
|
6087
|
-
|
|
6088
|
-
|
|
6089
|
-
title="
|
|
6400
|
+
action={<Link href="/ousd/">View live reserves</Link>}
|
|
6401
|
+
description="A sample figure across exchanges, swaps, and bridges."
|
|
6402
|
+
title="$100M in sample liquidity"
|
|
6403
|
+
tone="outline"
|
|
6404
|
+
/>
|
|
6405
|
+
<Card
|
|
6406
|
+
action={<Link href="/docs/fees/">Read the guide</Link>}
|
|
6407
|
+
description="Pay fees in any stablecoin, without holding a gas token."
|
|
6408
|
+
title="Fees in stablecoins"
|
|
6409
|
+
tone="inverse"
|
|
6090
6410
|
/>
|
|
6091
6411
|
</Card.Grid>
|
|
6092
6412
|
)
|
|
6093
6413
|
}
|
|
6094
6414
|
```
|
|
6095
6415
|
|
|
6096
|
-
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Card/
|
|
6416
|
+
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Card/Tones.tsx)
|
|
6097
6417
|
|
|
6098
|
-
####
|
|
6418
|
+
#### Set
|
|
6099
6419
|
|
|
6100
|
-
Set `variant="
|
|
6420
|
+
Set `variant="boxed"` on `Card.Grid` and `tone="page"` on each card.
|
|
6101
6421
|
|
|
6102
6422
|
```tsx
|
|
6103
|
-
/** Demonstrates Marketing
|
|
6423
|
+
/** Demonstrates still Marketing stack cards boxed as one outlined set, each led by a figure in its title. @module */
|
|
6104
6424
|
import { Card } from '@tempoxyz/ds/marketing'
|
|
6105
6425
|
|
|
6106
6426
|
export const fill = true
|
|
@@ -6108,128 +6428,128 @@ export const fill = true
|
|
|
6108
6428
|
// The set goes three across from 1024px, so the example opens at Desktop.
|
|
6109
6429
|
export const width = 'desktop'
|
|
6110
6430
|
|
|
6111
|
-
|
|
6112
|
-
|
|
6113
|
-
|
|
6114
|
-
|
|
6115
|
-
|
|
6116
|
-
},
|
|
6117
|
-
{
|
|
6118
|
-
description: 'The stablecoin is issued natively on Tempo, a network built for payments.',
|
|
6119
|
-
eyebrow: 'Native',
|
|
6120
|
-
title: 'Issued on Tempo',
|
|
6121
|
-
},
|
|
6122
|
-
{
|
|
6123
|
-
description: 'Available through the issuer and its partners.',
|
|
6124
|
-
eyebrow: 'Access',
|
|
6125
|
-
title: 'Mint and burn',
|
|
6126
|
-
},
|
|
6431
|
+
// Sample figures: a number that needs a line to make sense goes in the title, with the line under it.
|
|
6432
|
+
const facts = [
|
|
6433
|
+
{ description: 'Sample liquidity across exchanges, swaps, and bridges.', title: '$100M' },
|
|
6434
|
+
{ description: 'Mint and burn at any hour, through the issuer and its partners.', title: '24/7' },
|
|
6435
|
+
{ description: 'Each token is backed by a dollar held in reserve.', title: '1:1' },
|
|
6127
6436
|
]
|
|
6128
6437
|
|
|
6129
6438
|
export function Demo() {
|
|
6130
6439
|
return (
|
|
6131
|
-
<Card.Grid aria-label="Sample stablecoin" columns="3"
|
|
6132
|
-
{
|
|
6133
|
-
<Card
|
|
6440
|
+
<Card.Grid aria-label="Sample stablecoin" columns="3" variant="boxed">
|
|
6441
|
+
{facts.map((fact) => (
|
|
6442
|
+
<Card key={fact.title} tone="page" {...fact} />
|
|
6134
6443
|
))}
|
|
6135
6444
|
</Card.Grid>
|
|
6136
6445
|
)
|
|
6137
6446
|
}
|
|
6138
6447
|
```
|
|
6139
6448
|
|
|
6140
|
-
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Card/
|
|
6449
|
+
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Card/Set.tsx)
|
|
6141
6450
|
|
|
6142
|
-
####
|
|
6451
|
+
#### Cover
|
|
6143
6452
|
|
|
6144
|
-
Set `variant="
|
|
6453
|
+
Set `variant="cover"` to set the title on its photo, over the scrim. Leave out `href` for a card that links nowhere. Its `icon` badge takes a [Tempo Icons](/marketing/foundations/iconography) glyph.
|
|
6145
6454
|
|
|
6146
6455
|
```tsx
|
|
6147
|
-
/** Demonstrates Marketing
|
|
6456
|
+
/** Demonstrates Marketing cover cards: three titles on their photos, each with an icon badge, one linked. @module */
|
|
6148
6457
|
import { CodeIcon, CompassIcon, LayersIcon } from '@tempoxyz/ds/arsenal/icons'
|
|
6149
6458
|
import { Card } from '@tempoxyz/ds/marketing'
|
|
6459
|
+
import aurora from '../../../../content/docs/arsenal/crafts/images/depth-gradients/depth-gradients-aurora.jpg'
|
|
6460
|
+
import people from '../../../../content/docs/arsenal/crafts/images/image-generation/image-generation-people-do.jpg'
|
|
6461
|
+
import refs from '../../../../content/docs/arsenal/crafts/images/image-generation/image-generation-refs-do.jpg'
|
|
6150
6462
|
|
|
6151
6463
|
export const fill = true
|
|
6152
6464
|
|
|
6153
6465
|
// The cards go three across from 1024px, so the example opens at Desktop.
|
|
6154
6466
|
export const width = 'desktop'
|
|
6155
6467
|
|
|
6156
|
-
// A gradient that stands in for a photo.
|
|
6157
|
-
const photo =
|
|
6158
|
-
"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cdefs%3E%3ClinearGradient id='g' x2='1' y2='1'%3E%3Cstop stop-color='%236b7f99'/%3E%3Cstop offset='1' stop-color='%23a3866a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='16' height='10' fill='url(%23g)'/%3E%3C/svg%3E"
|
|
6159
|
-
|
|
6160
6468
|
export function Demo() {
|
|
6161
6469
|
return (
|
|
6162
6470
|
<Card.Grid columns="3">
|
|
6163
6471
|
<Card
|
|
6164
6472
|
description="Shape strategy across payments, capital markets, treasury, liquidity, and regulatory compliance."
|
|
6165
6473
|
icon={<CompassIcon size={16} />}
|
|
6166
|
-
|
|
6167
|
-
media={<img alt="" src={photo} />}
|
|
6474
|
+
media={<img alt="" src={people} />}
|
|
6168
6475
|
title="Payment strategists"
|
|
6476
|
+
variant="cover"
|
|
6169
6477
|
/>
|
|
6170
6478
|
<Card
|
|
6171
6479
|
description="Define product roadmaps, design for adoption, and build platform, ecosystem, and enterprise products."
|
|
6172
6480
|
icon={<LayersIcon size={16} />}
|
|
6173
|
-
|
|
6174
|
-
media={<img alt="" src={photo} />}
|
|
6481
|
+
media={<img alt="" src={refs} />}
|
|
6175
6482
|
title="Product managers"
|
|
6483
|
+
variant="cover"
|
|
6176
6484
|
/>
|
|
6177
6485
|
<Card
|
|
6178
6486
|
description="Develop protocols, secure smart contracts, and equip developers with tools and SDKs."
|
|
6179
6487
|
href="/stablecoin-advisory/"
|
|
6180
6488
|
icon={<CodeIcon size={16} />}
|
|
6181
|
-
|
|
6182
|
-
media={<img alt="" src={photo} />}
|
|
6489
|
+
media={<img alt="" src={aurora} />}
|
|
6183
6490
|
title="Forward-deployed engineers"
|
|
6491
|
+
variant="cover"
|
|
6184
6492
|
/>
|
|
6185
6493
|
</Card.Grid>
|
|
6186
6494
|
)
|
|
6187
6495
|
}
|
|
6188
6496
|
```
|
|
6189
6497
|
|
|
6190
|
-
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Card/
|
|
6498
|
+
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Card/Cover.tsx)
|
|
6191
6499
|
|
|
6192
|
-
####
|
|
6500
|
+
#### Inline
|
|
6193
6501
|
|
|
6194
|
-
Set `variant="
|
|
6502
|
+
Set `variant="inline"` for items named by a mark, led by a [Symbol Tile](/marketing/components/symbol-tile) in `media`.
|
|
6195
6503
|
|
|
6196
6504
|
```tsx
|
|
6197
|
-
/** Demonstrates Marketing
|
|
6198
|
-
import {
|
|
6505
|
+
/** Demonstrates inline Marketing cards: items named by a mark in a Symbol Tile, each ending in a chevron. @module */
|
|
6506
|
+
import {
|
|
6507
|
+
CurrencyDollarIcon,
|
|
6508
|
+
CurrencyEuroIcon,
|
|
6509
|
+
CurrencyPoundIcon,
|
|
6510
|
+
CurrencyYenIcon,
|
|
6511
|
+
} from '@tempoxyz/ds/arsenal/icons'
|
|
6512
|
+
import { Card, SymbolTile } from '@tempoxyz/ds/marketing'
|
|
6199
6513
|
|
|
6200
6514
|
export const fill = true
|
|
6201
6515
|
|
|
6516
|
+
const currencies = [
|
|
6517
|
+
{ code: 'usd', icon: CurrencyDollarIcon, title: 'US dollar' },
|
|
6518
|
+
{ code: 'eur', icon: CurrencyEuroIcon, title: 'Euro' },
|
|
6519
|
+
{ code: 'gbp', icon: CurrencyPoundIcon, title: 'British pound' },
|
|
6520
|
+
{ code: 'jpy', icon: CurrencyYenIcon, title: 'Japanese yen' },
|
|
6521
|
+
]
|
|
6522
|
+
|
|
6202
6523
|
export function Demo() {
|
|
6203
6524
|
return (
|
|
6204
|
-
<Card.Grid columns="2">
|
|
6205
|
-
|
|
6206
|
-
|
|
6207
|
-
|
|
6208
|
-
|
|
6209
|
-
|
|
6210
|
-
|
|
6211
|
-
|
|
6212
|
-
|
|
6213
|
-
|
|
6214
|
-
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6218
|
-
|
|
6219
|
-
/>
|
|
6525
|
+
<Card.Grid aria-label="Payout currencies" columns="2">
|
|
6526
|
+
{currencies.map((currency) => (
|
|
6527
|
+
<Card
|
|
6528
|
+
eyebrow="Payouts"
|
|
6529
|
+
href={`/routes/${currency.code}/`}
|
|
6530
|
+
key={currency.code}
|
|
6531
|
+
media={
|
|
6532
|
+
<SymbolTile>
|
|
6533
|
+
<currency.icon size={20} />
|
|
6534
|
+
</SymbolTile>
|
|
6535
|
+
}
|
|
6536
|
+
title={currency.title}
|
|
6537
|
+
variant="inline"
|
|
6538
|
+
/>
|
|
6539
|
+
))}
|
|
6220
6540
|
</Card.Grid>
|
|
6221
6541
|
)
|
|
6222
6542
|
}
|
|
6223
6543
|
```
|
|
6224
6544
|
|
|
6225
|
-
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Card/
|
|
6545
|
+
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Card/Inline.tsx)
|
|
6226
6546
|
|
|
6227
6547
|
#### Row
|
|
6228
6548
|
|
|
6229
|
-
Set `variant="row"` in a `Card.Grid` with `
|
|
6549
|
+
Set `variant="row"` in a `Card.Grid` with `variant="plain"` for a ruled list read by title.
|
|
6230
6550
|
|
|
6231
6551
|
```tsx
|
|
6232
|
-
/** Demonstrates Marketing row cards: a ruled list of related guides. @module */
|
|
6552
|
+
/** Demonstrates Marketing row cards: a ruled list of related guides in a plain grid. @module */
|
|
6233
6553
|
import { Card } from '@tempoxyz/ds/marketing'
|
|
6234
6554
|
|
|
6235
6555
|
export const fill = true
|
|
@@ -6248,9 +6568,9 @@ const guides = [
|
|
|
6248
6568
|
|
|
6249
6569
|
export function Demo() {
|
|
6250
6570
|
return (
|
|
6251
|
-
<Card.Grid aria-label="Related guides"
|
|
6571
|
+
<Card.Grid aria-label="Related guides" variant="plain">
|
|
6252
6572
|
{guides.map((guide) => (
|
|
6253
|
-
<Card as="h4"
|
|
6573
|
+
<Card as="h4" key={guide.href} variant="row" {...guide} />
|
|
6254
6574
|
))}
|
|
6255
6575
|
</Card.Grid>
|
|
6256
6576
|
)
|
|
@@ -6259,32 +6579,78 @@ export function Demo() {
|
|
|
6259
6579
|
|
|
6260
6580
|
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Card/Row.tsx)
|
|
6261
6581
|
|
|
6582
|
+
#### References
|
|
6583
|
+
|
|
6584
|
+
Put each row's address in `description` to list every page and file the page draws on, in the order it uses them, under the section's title.
|
|
6585
|
+
|
|
6586
|
+
```tsx
|
|
6587
|
+
/** Demonstrates Marketing row cards as a page's references: each title over its address, in order of use. @module */
|
|
6588
|
+
import { Card, Section } from '@tempoxyz/ds/marketing'
|
|
6589
|
+
|
|
6590
|
+
export const fill = true
|
|
6591
|
+
|
|
6592
|
+
const references = [
|
|
6593
|
+
{
|
|
6594
|
+
address: 'tempo.xyz/reports/stablecoin-payments-2026.pdf',
|
|
6595
|
+
href: '/reports/stablecoin-payments-2026.pdf',
|
|
6596
|
+
title: 'Stablecoin payments in 2026',
|
|
6597
|
+
},
|
|
6598
|
+
{
|
|
6599
|
+
address: 'tempo.xyz/data/settlement-times.csv',
|
|
6600
|
+
href: '/data/settlement-times.csv',
|
|
6601
|
+
title: 'Settlement times by corridor',
|
|
6602
|
+
},
|
|
6603
|
+
{
|
|
6604
|
+
address: 'tempo.xyz/press/testnet',
|
|
6605
|
+
href: '/press/testnet/',
|
|
6606
|
+
title: 'Tempo opens its public testnet',
|
|
6607
|
+
},
|
|
6608
|
+
]
|
|
6609
|
+
|
|
6610
|
+
export function Demo() {
|
|
6611
|
+
return (
|
|
6612
|
+
<Section title="Sources">
|
|
6613
|
+
<Card.Grid variant="plain">
|
|
6614
|
+
{references.map((reference) => (
|
|
6615
|
+
<Card
|
|
6616
|
+
description={reference.address}
|
|
6617
|
+
href={reference.href}
|
|
6618
|
+
key={reference.href}
|
|
6619
|
+
title={reference.title}
|
|
6620
|
+
variant="row"
|
|
6621
|
+
/>
|
|
6622
|
+
))}
|
|
6623
|
+
</Card.Grid>
|
|
6624
|
+
</Section>
|
|
6625
|
+
)
|
|
6626
|
+
}
|
|
6627
|
+
```
|
|
6628
|
+
|
|
6629
|
+
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Card/References.tsx)
|
|
6630
|
+
|
|
6262
6631
|
#### Preview
|
|
6263
6632
|
|
|
6264
|
-
Set `preview` for a muted loop that plays while the pointer or focus is on the card.
|
|
6633
|
+
Set `preview` on a linked `stack` card for a muted loop that plays while the pointer or focus is on the card.
|
|
6265
6634
|
|
|
6266
6635
|
```tsx
|
|
6267
|
-
/** Demonstrates a Marketing
|
|
6636
|
+
/** Demonstrates a Marketing stack card with a preview: the Play badge on the still of a short loop. @module */
|
|
6268
6637
|
import { Card } from '@tempoxyz/ds/marketing'
|
|
6638
|
+
import refs from '../../../../content/docs/arsenal/crafts/images/image-generation/image-generation-refs-do.jpg'
|
|
6269
6639
|
|
|
6270
6640
|
export const fill = true
|
|
6271
6641
|
|
|
6272
|
-
// A gradient that stands in for the loop's still.
|
|
6273
|
-
const still =
|
|
6274
|
-
"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cdefs%3E%3ClinearGradient id='g' x2='1' y2='1'%3E%3Cstop stop-color='%236b7f99'/%3E%3Cstop offset='1' stop-color='%23a3866a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='16' height='10' fill='url(%23g)'/%3E%3C/svg%3E"
|
|
6275
|
-
|
|
6276
6642
|
export function Demo() {
|
|
6277
6643
|
return (
|
|
6278
6644
|
<Card.Grid columns="2">
|
|
6279
6645
|
<Card
|
|
6280
|
-
cue="
|
|
6281
|
-
description="
|
|
6282
|
-
eyebrow="
|
|
6283
|
-
href="/
|
|
6284
|
-
media={<img alt="" src={
|
|
6646
|
+
cue="Watch the walkthrough"
|
|
6647
|
+
description="Create a wallet, fund it from the faucet, and send your first payment."
|
|
6648
|
+
eyebrow="Guide"
|
|
6649
|
+
href="/docs/quickstart/"
|
|
6650
|
+
media={<img alt="" src={refs} />}
|
|
6285
6651
|
// The empty source keeps the demo free of a video file.
|
|
6286
6652
|
preview="data:video/mp4;base64,"
|
|
6287
|
-
title="
|
|
6653
|
+
title="Send your first stablecoin payment"
|
|
6288
6654
|
/>
|
|
6289
6655
|
</Card.Grid>
|
|
6290
6656
|
)
|
|
@@ -6307,62 +6673,87 @@ import { Card } from '@tempoxyz/ds/marketing'
|
|
|
6307
6673
|
|
|
6308
6674
|
#### When to Use
|
|
6309
6675
|
|
|
6310
|
-
*
|
|
6311
|
-
*
|
|
6312
|
-
* List related articles or guides as rows.
|
|
6313
|
-
* Set out features, a team's roles, or a panel with one action, which don't link.
|
|
6676
|
+
* Set two to nine parallel items, each read on its own: a title, a line, and at most one picture and one link or action.
|
|
6677
|
+
* List three or more items that the reader picks by title alone, as rows.
|
|
6314
6678
|
|
|
6315
6679
|
#### When Not to Use
|
|
6316
6680
|
|
|
6681
|
+
* Use [Steps](/marketing/sections/steps) when the items run in order.
|
|
6682
|
+
* Use [Stats](/marketing/sections/stats) when each item is a number and its label, with no sentence.
|
|
6683
|
+
* Use [Carousel](/marketing/sections/carousel) for five or more items when the reader doesn't need to see each one.
|
|
6684
|
+
* Use [Index](/marketing/sections/index) for more items than one page shows, or items in two or more categories.
|
|
6685
|
+
* Use [Story](/marketing/sections/story) for one voice: a quote, or one case told at length.
|
|
6317
6686
|
* Use [Link](/marketing/components/link) for a link that ends a section or a block of text.
|
|
6318
6687
|
* Use [CTA](/marketing/sections/cta) for a section that asks the reader to act.
|
|
6319
|
-
* Use [Story](/marketing/sections/story) for one story told in brief.
|
|
6320
|
-
* Use [Index](/marketing/sections/index) for a whole collection readers filter or page through.
|
|
6321
6688
|
|
|
6322
|
-
#### Make Each Card One Link
|
|
6689
|
+
#### Make Each Card One Link
|
|
6690
|
+
|
|
6691
|
+
A card is one link that ends in its cue, or holds one `action`. Nothing pressable nests inside it, and no card links one place twice. A Media with `video` doesn't go in a card: its Play is a button inside the link. Set `preview` instead.
|
|
6692
|
+
|
|
6693
|
+
**Do:** Link the card once, from its title, and end it in its cue.
|
|
6694
|
+
|
|
6695
|
+
```tsx
|
|
6696
|
+
<CardSketch kind="card" />
|
|
6697
|
+
```
|
|
6698
|
+
|
|
6699
|
+
**Don't:** Put a [Button](/marketing/components/button) or a [Tag](/marketing/components/tag) link inside a linked card.
|
|
6700
|
+
|
|
6701
|
+
```tsx
|
|
6702
|
+
<CardSketch kind="button" />
|
|
6703
|
+
```
|
|
6704
|
+
|
|
6705
|
+
#### Choose the Variant by Where the Picture Sits
|
|
6706
|
+
|
|
6707
|
+
* **Stack (stack):** The default: the picture over the copy, or copy alone. Pick it unless another fits.
|
|
6708
|
+
* **Cover (cover):** The copy on the photo. Every item has a photo strong enough to carry its title.
|
|
6709
|
+
* **Inline (inline):** A mark beside the copy. Items are named by a logo or icon, four or more to a grid.
|
|
6710
|
+
* **Row (row):** A title in a ruled list, no picture. Three or more items read by title alone.
|
|
6711
|
+
|
|
6712
|
+
#### Set the Frame With Tone
|
|
6713
|
+
|
|
6714
|
+
On a `stack` card, `page` draws no frame, and `white`, `grey`, `outline` and `inverse` frame it at one corner and padding. Give every card in a grid the same tone.
|
|
6715
|
+
|
|
6716
|
+
#### Put a Number in the Title
|
|
6717
|
+
|
|
6718
|
+
A number and its label alone belong in [Stats](/marketing/sections/stats). A number that needs a sentence or a link goes in the card's title, with the sentence in `description`. Never put it in `eyebrow`.
|
|
6323
6719
|
|
|
6324
|
-
|
|
6720
|
+
#### Give Every Card a Picture or None
|
|
6325
6721
|
|
|
6326
|
-
|
|
6722
|
+
Every card in a grid has a picture, or none does. The pictures are one kind and one `ratio`: all photos in `media`, or all drawings in `art`. Give an item a picture only when it has one of its own, and never repeat one across a grid. `cover` needs a photo, and rows and a boxed grid take none.
|
|
6723
|
+
|
|
6724
|
+
**Do:** Lead every card with its own picture of one kind.
|
|
6327
6725
|
|
|
6328
6726
|
```tsx
|
|
6329
|
-
<
|
|
6727
|
+
<IndexSketch kind="tiles" />
|
|
6330
6728
|
```
|
|
6331
6729
|
|
|
6332
|
-
**Don't:**
|
|
6730
|
+
**Don't:** Mix cards with a picture, with none and with another kind.
|
|
6333
6731
|
|
|
6334
6732
|
```tsx
|
|
6335
|
-
<
|
|
6733
|
+
<IndexSketch kind="mixed" />
|
|
6336
6734
|
```
|
|
6337
6735
|
|
|
6338
|
-
####
|
|
6339
|
-
|
|
6340
|
-
* **Link (link):** The default: a story or an article, with optional media, that the whole card links. `tone="page"` sets it open, with no card around it.
|
|
6341
|
-
* **Compact (compact):** An entry led by its Symbol Tile, in a directory or search results.
|
|
6342
|
-
* **Feature (feature):** A benefit or capability in a set of three, with its art. No link.
|
|
6343
|
-
* **Photo (photo):** A title set on its photo, which may link nowhere.
|
|
6344
|
-
* **Panel (panel):** A proof point in a tone, with one action at most.
|
|
6345
|
-
* **Row (row):** A ruled row in a list of related guides or articles.
|
|
6736
|
+
#### Group Cards by How They Read
|
|
6346
6737
|
|
|
6347
|
-
|
|
6738
|
+
* **Spaced (spaced):** The default: cards a page gutter apart, in 2, 3 or 4 `columns`.
|
|
6739
|
+
* **Boxed (boxed):** Three or four short, still items without pictures, in one panel.
|
|
6740
|
+
* **Plain (plain):** Ruled rows in one column, with a rule closing the list.
|
|
6348
6741
|
|
|
6349
|
-
`Card.Grid`
|
|
6350
|
-
|
|
6351
|
-
Keep one look across a grid: one variant, one tone, and every card with media or none.
|
|
6742
|
+
`Card.Grid` sets one column on phones, two from 768px, and `columns` from 1024px. Items with pictures or links keep their gaps.
|
|
6352
6743
|
|
|
6353
6744
|
### Content
|
|
6354
6745
|
|
|
6355
6746
|
* **Title:** Keep it short.
|
|
6356
6747
|
* **Description:** One or two sentences.
|
|
6357
|
-
* **Eyebrow:** One or two words, such as a
|
|
6358
|
-
* **Cue:** Two or three words on a
|
|
6748
|
+
* **Eyebrow:** One or two words, such as a category or a date. Never a number.
|
|
6749
|
+
* **Cue:** Two or three words on a linked `stack` card, such as Read story. Without one, the card ends bare.
|
|
6359
6750
|
|
|
6360
6751
|
### Accessibility
|
|
6361
6752
|
|
|
6362
6753
|
* **Article (article):** Renders an `<article>` with an `h3` unless `as` sets another, so cards list by title.
|
|
6363
6754
|
* **One Link (link):** The title's link names the card. The cue repeats it, so it is hidden.
|
|
6364
6755
|
* **Focus (focus-visible):** Keyboard focus rings the whole card, and the cue follows it.
|
|
6365
|
-
* **Decorative Media (aria-hidden):** The picture in `media` or `art` and a
|
|
6756
|
+
* **Decorative Media (aria-hidden):** The picture in `media` or `art` and a cover card's `icon` are decorative, so screen readers skip them.
|
|
6366
6757
|
* **Reduced Motion (prefers-reduced-motion):** The photo holds its scale at 1, and `preview` never plays.
|
|
6367
6758
|
|
|
6368
6759
|
#### Your Responsibilities
|
|
@@ -6377,7 +6768,7 @@ Covers the cue a linked card ends in.
|
|
|
6377
6768
|
|
|
6378
6769
|
[Symbol Tile](/marketing/components/symbol-tile)
|
|
6379
6770
|
|
|
6380
|
-
Use for
|
|
6771
|
+
Use for an inline card's mark.
|
|
6381
6772
|
|
|
6382
6773
|
[Section](/marketing/sections/section)
|
|
6383
6774
|
|
|
@@ -6387,21 +6778,25 @@ Use for the section and the heading over a set of cards.
|
|
|
6387
6778
|
|
|
6388
6779
|
Covers the picture that goes in `media`, which the card sets to its ratio and corner.
|
|
6389
6780
|
|
|
6390
|
-
[
|
|
6781
|
+
[Stats](/marketing/sections/stats)
|
|
6782
|
+
|
|
6783
|
+
Use for numbers that each need only a label.
|
|
6784
|
+
|
|
6785
|
+
[Index](/marketing/sections/index)
|
|
6391
6786
|
|
|
6392
|
-
|
|
6787
|
+
Use for more cards than one page shows, under filters.
|
|
6393
6788
|
|
|
6394
6789
|
## Carousel
|
|
6395
6790
|
|
|
6396
|
-
Scrolls
|
|
6791
|
+
Scrolls five or more parallel items sideways, paged from the section heading.
|
|
6397
6792
|
|
|
6398
6793
|
*Image: The chevrons left icon from Tempo Icons in polished chrome, centered on a transparent ground*
|
|
6399
6794
|
|
|
6400
6795
|
### Overview
|
|
6401
6796
|
|
|
6402
|
-
A row of items that scrolls sideways and snaps each item to its start. It shows one item and most of the next on phones, two from 768px and three from 1024px.
|
|
6797
|
+
A row of parallel items that scrolls sideways and snaps each item to its start. It shows one item and most of the next on phones, two from 768px and three from 1024px.
|
|
6403
6798
|
|
|
6404
|
-
|
|
6799
|
+
**Slots:** each item is a [Card](/marketing/sections/card) in `Carousel.Item`, which carries its own picture, link or action. The carousel has no title of its own: the [Section](/marketing/sections/section) around it needs one, since the controls sit in its heading.
|
|
6405
6800
|
|
|
6406
6801
|
### Examples
|
|
6407
6802
|
|
|
@@ -6410,22 +6805,33 @@ It sits on any Section tone. On an `inverse` section, set `tone="inverse"` on `C
|
|
|
6410
6805
|
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.
|
|
6411
6806
|
|
|
6412
6807
|
```tsx
|
|
6413
|
-
/** Demonstrates a Marketing carousel of
|
|
6808
|
+
/** Demonstrates a Marketing carousel of five linked story cards with pictures, paged by the buttons in its section's heading. @module */
|
|
6414
6809
|
import { Card, Carousel, Section } from '@tempoxyz/ds/marketing'
|
|
6810
|
+
import aurora from '../../../../content/docs/arsenal/crafts/images/depth-gradients/depth-gradients-aurora.jpg'
|
|
6811
|
+
import people from '../../../../content/docs/arsenal/crafts/images/image-generation/image-generation-people-do.jpg'
|
|
6812
|
+
import refs from '../../../../content/docs/arsenal/crafts/images/image-generation/image-generation-refs-do.jpg'
|
|
6813
|
+
import band from '../../../../content/docs/arsenal/deliverables/images/hero-and-section-art/hero-and-section-art-band.jpg'
|
|
6814
|
+
import phone from '../../../../content/docs/arsenal/deliverables/images/hero-and-section-art/hero-and-section-art-phone.jpg'
|
|
6415
6815
|
|
|
6416
6816
|
export const fill = true
|
|
6417
6817
|
|
|
6418
6818
|
export const width = 'desktop'
|
|
6419
6819
|
|
|
6420
|
-
//
|
|
6421
|
-
const stories = [
|
|
6820
|
+
// Sample stories with made-up companies, each with its own still.
|
|
6821
|
+
const stories = [
|
|
6822
|
+
{ company: 'Northwind', still: people, title: 'Northwind pays contractors in 40 countries' },
|
|
6823
|
+
{ company: 'Lumen', still: refs, title: 'Lumen settles remittances in seconds' },
|
|
6824
|
+
{ company: 'Harbor', still: aurora, title: 'Harbor moves its treasury onto stablecoins' },
|
|
6825
|
+
{ company: 'Cobalt', still: band, title: 'Cobalt settles card payments every hour' },
|
|
6826
|
+
{ company: 'Atlas', still: phone, title: 'Atlas runs payroll on Tempo' },
|
|
6827
|
+
]
|
|
6422
6828
|
|
|
6423
6829
|
export function Demo() {
|
|
6424
6830
|
return (
|
|
6425
6831
|
<Section
|
|
6426
6832
|
controls={
|
|
6427
6833
|
<Carousel.Controls
|
|
6428
|
-
messages={{ next: 'Next
|
|
6834
|
+
messages={{ next: 'Next stories', previous: 'Previous stories' }}
|
|
6429
6835
|
track="carousel-customer-list"
|
|
6430
6836
|
/>
|
|
6431
6837
|
}
|
|
@@ -6434,8 +6840,14 @@ export function Demo() {
|
|
|
6434
6840
|
>
|
|
6435
6841
|
<Carousel aria-label="Customer stories" id="carousel-customer-list">
|
|
6436
6842
|
{stories.map((story) => (
|
|
6437
|
-
<Carousel.Item key={story}>
|
|
6438
|
-
<Card
|
|
6843
|
+
<Carousel.Item key={story.company}>
|
|
6844
|
+
<Card
|
|
6845
|
+
cue="Read story"
|
|
6846
|
+
eyebrow={story.company}
|
|
6847
|
+
href="#carousel"
|
|
6848
|
+
media={<img alt="" src={story.still} />}
|
|
6849
|
+
title={story.title}
|
|
6850
|
+
/>
|
|
6439
6851
|
</Carousel.Item>
|
|
6440
6852
|
))}
|
|
6441
6853
|
</Carousel>
|
|
@@ -6448,10 +6860,10 @@ export function Demo() {
|
|
|
6448
6860
|
|
|
6449
6861
|
#### Inverse
|
|
6450
6862
|
|
|
6451
|
-
Set `tone="inverse"` on the section and the controls. The cards stay white.
|
|
6863
|
+
Set `tone="inverse"` on the section and the controls. The cards stay white, and here hold copy alone.
|
|
6452
6864
|
|
|
6453
6865
|
```tsx
|
|
6454
|
-
/** Demonstrates a Marketing carousel on an inverse section, with inverse buttons over white cards. @module */
|
|
6866
|
+
/** Demonstrates a Marketing carousel of event cards on an inverse section, with inverse buttons over white cards. @module */
|
|
6455
6867
|
import { Card, Carousel, Section } from '@tempoxyz/ds/marketing'
|
|
6456
6868
|
|
|
6457
6869
|
export const fill = true
|
|
@@ -6460,27 +6872,39 @@ export const surface = 'inverse'
|
|
|
6460
6872
|
|
|
6461
6873
|
export const width = 'desktop'
|
|
6462
6874
|
|
|
6463
|
-
//
|
|
6464
|
-
const
|
|
6875
|
+
// Sample events: a date over each city, and a line on what happens there.
|
|
6876
|
+
const events = [
|
|
6877
|
+
{ date: '12 May', line: 'Two days on payments and stablecoins.', title: 'New York' },
|
|
6878
|
+
{ date: '3 Jun', line: 'An evening with the teams building payouts.', title: 'London' },
|
|
6879
|
+
{ date: '24 Jun', line: 'A workshop on fees, wallets and settlement.', title: 'Singapore' },
|
|
6880
|
+
{ date: '9 Sep', line: 'Talks from issuers, banks and developers.', title: 'São Paulo' },
|
|
6881
|
+
{ date: '14 Oct', line: 'A day of demos and office hours.', title: 'Amsterdam' },
|
|
6882
|
+
]
|
|
6465
6883
|
|
|
6466
6884
|
export function Demo() {
|
|
6467
6885
|
return (
|
|
6468
6886
|
<Section
|
|
6469
6887
|
controls={
|
|
6470
6888
|
<Carousel.Controls
|
|
6471
|
-
messages={{ next: 'Next
|
|
6889
|
+
messages={{ next: 'Next events', previous: 'Previous events' }}
|
|
6472
6890
|
tone="inverse"
|
|
6473
6891
|
track="carousel-inverse-list"
|
|
6474
6892
|
/>
|
|
6475
6893
|
}
|
|
6476
|
-
eyebrow="
|
|
6477
|
-
title="
|
|
6894
|
+
eyebrow="Events"
|
|
6895
|
+
title="Meet the team"
|
|
6478
6896
|
tone="inverse"
|
|
6479
6897
|
>
|
|
6480
|
-
<Carousel aria-label="
|
|
6481
|
-
{
|
|
6482
|
-
<Carousel.Item key={
|
|
6483
|
-
<Card
|
|
6898
|
+
<Carousel aria-label="Events" id="carousel-inverse-list">
|
|
6899
|
+
{events.map((event) => (
|
|
6900
|
+
<Carousel.Item key={event.title}>
|
|
6901
|
+
<Card
|
|
6902
|
+
cue="Register"
|
|
6903
|
+
description={event.line}
|
|
6904
|
+
eyebrow={event.date}
|
|
6905
|
+
href="#carousel"
|
|
6906
|
+
title={event.title}
|
|
6907
|
+
/>
|
|
6484
6908
|
</Carousel.Item>
|
|
6485
6909
|
))}
|
|
6486
6910
|
</Carousel>
|
|
@@ -6507,13 +6931,13 @@ import { Carousel, Section } from '@tempoxyz/ds/marketing'
|
|
|
6507
6931
|
|
|
6508
6932
|
#### When to Use
|
|
6509
6933
|
|
|
6510
|
-
* Show
|
|
6934
|
+
* Show five or more parallel items in one row, when one row shows some of them and the reader doesn't need to see each one.
|
|
6511
6935
|
|
|
6512
6936
|
#### When Not to Use
|
|
6513
6937
|
|
|
6514
|
-
* Use [Card](/marketing/sections/card) in a
|
|
6515
|
-
* Use [Logo Wall](/marketing/sections/logo-wall) for
|
|
6516
|
-
* Use [Feature Accordion](/marketing/sections/feature-accordion) for
|
|
6938
|
+
* Use [Card](/marketing/sections/card) in a `Card.Grid` for four items or fewer, or when the reader must see every item.
|
|
6939
|
+
* Use [Logo Wall](/marketing/sections/logo-wall) for names shown only as marks.
|
|
6940
|
+
* Use [Feature Accordion](/marketing/sections/feature-accordion) for facets of one thing, each with its picture, shown one at a time.
|
|
6517
6941
|
|
|
6518
6942
|
#### Put the Controls in the Heading
|
|
6519
6943
|
|
|
@@ -6533,7 +6957,7 @@ Pass `Carousel.Controls` to the section's `controls`, so the buttons sit level w
|
|
|
6533
6957
|
|
|
6534
6958
|
#### Keep Items Alike
|
|
6535
6959
|
|
|
6536
|
-
Fill every item with the same kind of part, such as a [Card](/marketing/sections/card), so the row reads as one set.
|
|
6960
|
+
Fill every item with the same kind of part, such as a [Card](/marketing/sections/card) of one variant, so the row reads as one set. Every card has a picture, or none does.
|
|
6537
6961
|
|
|
6538
6962
|
**Do:** Fill the row with cards of one size.
|
|
6539
6963
|
|
|
@@ -6549,7 +6973,7 @@ Fill every item with the same kind of part, such as a [Card](/marketing/sections
|
|
|
6549
6973
|
|
|
6550
6974
|
### Content
|
|
6551
6975
|
|
|
6552
|
-
* **Name:** What the row holds, such as Customer stories, in `aria-label`.
|
|
6976
|
+
* **Name:** What the row holds, such as Customer stories or Events, in `aria-label`.
|
|
6553
6977
|
* **Buttons:** Previous and Next with what they page, such as Next stories, in `messages`.
|
|
6554
6978
|
|
|
6555
6979
|
### Accessibility
|
|
@@ -6579,16 +7003,20 @@ Use for the items it holds.
|
|
|
6579
7003
|
|
|
6580
7004
|
## CTA
|
|
6581
7005
|
|
|
6582
|
-
Closes a page on its next step: links, two
|
|
7006
|
+
Closes a page on its next step: links, two parallel steps, or a form.
|
|
6583
7007
|
|
|
6584
7008
|
*Image: The megaphone icon from Tempo Icons in polished chrome, centered on a transparent ground*
|
|
6585
7009
|
|
|
6586
7010
|
### Overview
|
|
6587
7011
|
|
|
6588
|
-
`single` holds one or two links, or a one
|
|
7012
|
+
`single` holds one next step: one or two links, or a form of one field. `cards` holds two parallel next steps, each with its own line and action. `contact` holds a form of two or more fields in one card with the copy.
|
|
7013
|
+
|
|
7014
|
+
It renders its own [Section](/marketing/sections/section), so it takes the section's `tone`, `space` and `close`, and the `cards` heading follows the tone.
|
|
7015
|
+
|
|
7016
|
+
**Slots:** a title and the actions are required. A description and an `eyebrow` are optional, and `contact` takes a `disclaimer`. It has no picture, figure or label.
|
|
6589
7017
|
|
|
6590
7018
|
> [!NOTE]
|
|
6591
|
-
> `variant` replaces `form`, and `single` replaces its `banner` value. `<Cta variant="contact">` replaces `Contact`. The old names still work for one release.
|
|
7019
|
+
> `variant` replaces `form`, and `single` replaces its `banner` value. `<Cta variant="contact">` replaces `Contact`. A [Card](/marketing/sections/card) with `tone="white"` and an `action` replaces `Cta.Card`. A `Section` around a CTA is no longer needed, and still works. The old names still work for one release.
|
|
6592
7020
|
|
|
6593
7021
|
### Examples
|
|
6594
7022
|
|
|
@@ -6626,7 +7054,7 @@ export function Demo() {
|
|
|
6626
7054
|
|
|
6627
7055
|
#### Single With a Sign-Up
|
|
6628
7056
|
|
|
6629
|
-
Pass a
|
|
7057
|
+
Pass a form of one field as the action, 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.
|
|
6630
7058
|
|
|
6631
7059
|
```tsx
|
|
6632
7060
|
/** Demonstrates the single Marketing call to action around a one-field sign-up built from an inline field. @module */
|
|
@@ -6669,11 +7097,11 @@ export function Demo() {
|
|
|
6669
7097
|
|
|
6670
7098
|
#### Cards
|
|
6671
7099
|
|
|
6672
|
-
Set `variant="cards"` for two
|
|
7100
|
+
Set `variant="cards"` for two parallel next steps, each a [Card](/marketing/sections/card) with `tone="white"`, its own line and one `action`.
|
|
6673
7101
|
|
|
6674
7102
|
```tsx
|
|
6675
|
-
/** Demonstrates the cards Marketing call to action:
|
|
6676
|
-
import { Button, Cta } from '@tempoxyz/ds/marketing'
|
|
7103
|
+
/** Demonstrates the cards Marketing call to action: the section's heading over two parallel next steps, each a white Card. @module */
|
|
7104
|
+
import { Button, Card, Cta } from '@tempoxyz/ds/marketing'
|
|
6677
7105
|
|
|
6678
7106
|
export const fill = true
|
|
6679
7107
|
|
|
@@ -6684,27 +7112,31 @@ export function Demo() {
|
|
|
6684
7112
|
return (
|
|
6685
7113
|
<Cta
|
|
6686
7114
|
eyebrow="Start using Tempo"
|
|
6687
|
-
variant="cards"
|
|
6688
7115
|
title="Take your stablecoin strategy into production"
|
|
7116
|
+
variant="cards"
|
|
6689
7117
|
>
|
|
6690
|
-
<
|
|
7118
|
+
<Card
|
|
7119
|
+
action={
|
|
7120
|
+
<Button.Link href="/contact" layout="card">
|
|
7121
|
+
Get in touch
|
|
7122
|
+
</Button.Link>
|
|
7123
|
+
}
|
|
6691
7124
|
description="Build on Tempo with payments specialists, forward-deployed engineers, and global banking experts."
|
|
6692
7125
|
eyebrow="Enterprises"
|
|
6693
7126
|
title="Design your stablecoin product"
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
|
|
7127
|
+
tone="white"
|
|
7128
|
+
/>
|
|
7129
|
+
<Card
|
|
7130
|
+
action={
|
|
7131
|
+
<Button.Link href="/developers" layout="card" variant="secondary">
|
|
7132
|
+
Tempo API Platform
|
|
7133
|
+
</Button.Link>
|
|
7134
|
+
}
|
|
6700
7135
|
description="Build on the blockchain engineered for payments, with the tools and docs to bring your product to life."
|
|
6701
7136
|
eyebrow="Developers"
|
|
6702
7137
|
title="Start building"
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
Tempo API Platform
|
|
6706
|
-
</Button.Link>
|
|
6707
|
-
</Cta.Card>
|
|
7138
|
+
tone="white"
|
|
7139
|
+
/>
|
|
6708
7140
|
</Cta>
|
|
6709
7141
|
)
|
|
6710
7142
|
}
|
|
@@ -6714,10 +7146,10 @@ export function Demo() {
|
|
|
6714
7146
|
|
|
6715
7147
|
#### Contact
|
|
6716
7148
|
|
|
6717
|
-
Set `variant="contact"`
|
|
7149
|
+
Set `variant="contact"` for a form of two or more fields, passed as `children`.
|
|
6718
7150
|
|
|
6719
7151
|
```tsx
|
|
6720
|
-
/** Demonstrates the contact variant of the Marketing call to action
|
|
7152
|
+
/** Demonstrates the contact variant of the Marketing call to action: a form of several labeled fields in one card. @module */
|
|
6721
7153
|
import { Button, Cta, Field, style } from '@tempoxyz/ds/marketing'
|
|
6722
7154
|
|
|
6723
7155
|
export const fill = true
|
|
@@ -6728,8 +7160,8 @@ export const width = 'desktop'
|
|
|
6728
7160
|
export function Demo() {
|
|
6729
7161
|
return (
|
|
6730
7162
|
<Cta
|
|
6731
|
-
description="
|
|
6732
|
-
title="
|
|
7163
|
+
description="Tell us where your payouts go, and we'll scope the currencies, pricing, and rails for a first pilot."
|
|
7164
|
+
title="Plan a payouts pilot with our team"
|
|
6733
7165
|
variant="contact"
|
|
6734
7166
|
>
|
|
6735
7167
|
<form onSubmit={(event) => event.preventDefault()} {...styles.form()}>
|
|
@@ -6767,12 +7199,12 @@ namespace styles {
|
|
|
6767
7199
|
### Anatomy
|
|
6768
7200
|
|
|
6769
7201
|
```tsx
|
|
6770
|
-
import { Cta } from '@tempoxyz/ds/marketing'
|
|
7202
|
+
import { Card, Cta } from '@tempoxyz/ds/marketing'
|
|
6771
7203
|
|
|
6772
7204
|
<Cta title="…">{actions}</Cta>
|
|
6773
7205
|
|
|
6774
7206
|
<Cta variant="cards" title="…">
|
|
6775
|
-
<
|
|
7207
|
+
<Card action={action} title="…" tone="white" />
|
|
6776
7208
|
</Cta>
|
|
6777
7209
|
|
|
6778
7210
|
<Cta variant="contact" title="…">
|
|
@@ -6784,20 +7216,19 @@ import { Cta } from '@tempoxyz/ds/marketing'
|
|
|
6784
7216
|
|
|
6785
7217
|
#### When to Use
|
|
6786
7218
|
|
|
6787
|
-
* Close a page on one or two links, with `single`.
|
|
6788
|
-
* Close a page on
|
|
6789
|
-
* Close a page on two
|
|
6790
|
-
* Close a page on a form to reach the team, with `contact`.
|
|
7219
|
+
* Close a page on one next step, as one or two links or a form of one field, with `single`.
|
|
7220
|
+
* Close a page on two parallel next steps, each with its own line and action, with `cards`.
|
|
7221
|
+
* Close a page on a form of two or more fields, with `contact`.
|
|
6791
7222
|
|
|
6792
7223
|
#### When Not to Use
|
|
6793
7224
|
|
|
6794
|
-
* Use [Hero](/marketing/sections/hero) with `variant="form"` to open a page on a form that
|
|
7225
|
+
* Use [Hero](/marketing/sections/hero) with `variant="form"` to open a page on a form that is the reason for the page.
|
|
6795
7226
|
* Use a [Section](/marketing/sections/section) `action`, such as a [Button](/marketing/components/button), for an action that belongs to one section.
|
|
6796
|
-
* Use the [Contact](/marketing/templates/contact) template when
|
|
7227
|
+
* Use the [Contact](/marketing/templates/contact) template when the form is the whole page.
|
|
6797
7228
|
|
|
6798
7229
|
#### One Form per Page
|
|
6799
7230
|
|
|
6800
|
-
A page that opens on a [Hero](/marketing/sections/hero) with `variant="form"` closes on links or `cards`, never on a
|
|
7231
|
+
A page that opens on a [Hero](/marketing/sections/hero) with `variant="form"` closes on links or `cards`, never on a form of its own, so the reader meets one form.
|
|
6801
7232
|
|
|
6802
7233
|
**Do:** Close a page that opens on a form with links.
|
|
6803
7234
|
|
|
@@ -6813,7 +7244,7 @@ A page that opens on a [Hero](/marketing/sections/hero) with `variant="form"` cl
|
|
|
6813
7244
|
|
|
6814
7245
|
#### Close the Page With One
|
|
6815
7246
|
|
|
6816
|
-
Set the [Section](/marketing/sections/section) around it
|
|
7247
|
+
Set it last on the page, with `space="turn"` and `close`. It needs no [Section](/marketing/sections/section) around it.
|
|
6817
7248
|
|
|
6818
7249
|
#### Lead With One Primary Action
|
|
6819
7250
|
|
|
@@ -6860,13 +7291,12 @@ Name the next step in the title, such as Build with Tempo Routes, and why to tak
|
|
|
6860
7291
|
### Accessibility
|
|
6861
7292
|
|
|
6862
7293
|
* **Region (section):** Renders a `<section>` named by its title, so screen readers list it as a region.
|
|
6863
|
-
* **Title (h2):** The title is an `h2`, and each `
|
|
7294
|
+
* **Title (h2):** The title is an `h2`, and each card's title in `cards` an `h3` under it.
|
|
6864
7295
|
* **Disclaimer (p):** The disclaimer is a paragraph under the card, read after the form.
|
|
6865
7296
|
|
|
6866
7297
|
#### Your Responsibilities
|
|
6867
7298
|
|
|
6868
7299
|
* **Label the Form (Field.Label):** Give every field a visible label, never a placeholder alone.
|
|
6869
|
-
* **Leave the Section Unnamed:** The CTA names itself. Leave the [Section](/marketing/sections/section) around it unnamed.
|
|
6870
7300
|
|
|
6871
7301
|
### Related
|
|
6872
7302
|
|
|
@@ -6878,9 +7308,13 @@ Use for its links, in the `card` layout.
|
|
|
6878
7308
|
|
|
6879
7309
|
Use for the sign-up's field and each field of the contact form.
|
|
6880
7310
|
|
|
7311
|
+
[Card](/marketing/sections/card)
|
|
7312
|
+
|
|
7313
|
+
Use for the two next steps of `cards`, in the `white` tone.
|
|
7314
|
+
|
|
6881
7315
|
[Section](/marketing/sections/section)
|
|
6882
7316
|
|
|
6883
|
-
Covers the
|
|
7317
|
+
Covers the `tone`, `space` and `close` it takes as a section.
|
|
6884
7318
|
|
|
6885
7319
|
[Hero](/marketing/sections/hero)
|
|
6886
7320
|
|
|
@@ -7002,342 +7436,38 @@ Open each answer with yes, no, or the fact asked for, then add the detail in one
|
|
|
7002
7436
|
</Faq>
|
|
7003
7437
|
```
|
|
7004
7438
|
|
|
7005
|
-
**Don't:** The background first.
|
|
7006
|
-
|
|
7007
|
-
```tsx
|
|
7008
|
-
<Faq style={{ maxWidth: 260 }}>
|
|
7009
|
-
<Faq.Item question="Can I use my existing wallet provider?">
|
|
7010
|
-
Wallets sign and broadcast transactions.
|
|
7011
|
-
</Faq.Item>
|
|
7012
|
-
</Faq>
|
|
7013
|
-
```
|
|
7014
|
-
|
|
7015
|
-
### Accessibility
|
|
7016
|
-
|
|
7017
|
-
* **Question (aria-expanded):** A native button in an `h3`. Its answer panel is a region the button names.
|
|
7018
|
-
* **Toggle (Enter or Space):** Enter and Space open or close the row. Tab moves to the next question.
|
|
7019
|
-
* **Closed Answer (hidden="until-found"):** Find in page opens the row of a closed answer that matches.
|
|
7020
|
-
* **Row Index (aria-hidden):** Each row's index is hidden, so a question's name is its text alone.
|
|
7021
|
-
* **Press (:active):** A question keeps its color on hover, and a press dims the row.
|
|
7022
|
-
* **Reduced Motion (prefers-reduced-motion):** An answer fades without sliding, and the plus fades to a minus.
|
|
7023
|
-
|
|
7024
|
-
### Related
|
|
7025
|
-
|
|
7026
|
-
[Link](/marketing/components/link)
|
|
7027
|
-
|
|
7028
|
-
Covers the links in an answer.
|
|
7029
|
-
|
|
7030
|
-
[CTA](/marketing/sections/cta)
|
|
7031
|
-
|
|
7032
|
-
Covers the close that often follows it.
|
|
7033
|
-
|
|
7034
|
-
[Feature Accordion](/marketing/sections/feature-accordion)
|
|
7035
|
-
|
|
7036
|
-
Use for features that open one at a time beside their art.
|
|
7037
|
-
|
|
7038
|
-
## Feature Accordion
|
|
7039
|
-
|
|
7040
|
-
Opens one row at a time, with its art beside it.
|
|
7041
|
-
|
|
7042
|
-
*Image: The unfold icon from Tempo Icons in polished chrome, centered on a transparent ground*
|
|
7043
|
-
|
|
7044
|
-
### Overview
|
|
7045
|
-
|
|
7046
|
-
Rows of items, each a name, a line and an optional link. From 1024px one row is open at a time, with its art beside the rows. Below 1024px every row stands open with its art under its text.
|
|
7047
|
-
|
|
7048
|
-
Pressing the open row keeps it open, so there's always art on screen. On a fine pointer, hover lifts a resting name, and a press dims it.
|
|
7049
|
-
|
|
7050
|
-
### Examples
|
|
7051
|
-
|
|
7052
|
-
#### Framed
|
|
7053
|
-
|
|
7054
|
-
Pass each row's `title`, `description`, `media` and optional `link` in `items`. The art sits in a grey 16:9 frame.
|
|
7055
|
-
|
|
7056
|
-
```tsx
|
|
7057
|
-
/** Demonstrates a framed Marketing feature accordion under its section heading. @module */
|
|
7058
|
-
import { FeatureAccordion, Link, Section, style } from '@tempoxyz/ds/marketing'
|
|
7059
|
-
|
|
7060
|
-
export const fill = true
|
|
7061
|
-
|
|
7062
|
-
// The accordion, its main look, shows from 1024px.
|
|
7063
|
-
export const width = 'desktop'
|
|
7064
|
-
|
|
7065
|
-
export function Demo() {
|
|
7066
|
-
return (
|
|
7067
|
-
<Section eyebrow="Products" title="Everything you need to move money on Tempo">
|
|
7068
|
-
<FeatureAccordion
|
|
7069
|
-
items={[
|
|
7070
|
-
{
|
|
7071
|
-
description: 'Hold dollar stablecoins and earn yield on idle balances.',
|
|
7072
|
-
link: <Link href="/earn">Explore Earn</Link>,
|
|
7073
|
-
media: <Art mark="circle" />,
|
|
7074
|
-
title: 'Earn',
|
|
7075
|
-
},
|
|
7076
|
-
{
|
|
7077
|
-
description: 'Send payments across borders and settle them in seconds.',
|
|
7078
|
-
link: <Link href="/routes">Explore Routes</Link>,
|
|
7079
|
-
media: <Art mark="pill" />,
|
|
7080
|
-
title: 'Routes',
|
|
7081
|
-
},
|
|
7082
|
-
{
|
|
7083
|
-
description: 'Run a private payment network on shared rails.',
|
|
7084
|
-
link: <Link href="/zones">Explore Zones</Link>,
|
|
7085
|
-
media: <Art mark="square" />,
|
|
7086
|
-
title: 'Zones',
|
|
7087
|
-
},
|
|
7088
|
-
]}
|
|
7089
|
-
/>
|
|
7090
|
-
</Section>
|
|
7091
|
-
)
|
|
7092
|
-
}
|
|
7093
|
-
|
|
7094
|
-
/** A line mark centred in the grey frame, which is its plate, standing in for a row's art. */
|
|
7095
|
-
function Art(props: { mark: 'circle' | 'pill' | 'square' }) {
|
|
7096
|
-
return (
|
|
7097
|
-
<svg
|
|
7098
|
-
aria-hidden="true"
|
|
7099
|
-
fill="none"
|
|
7100
|
-
height="96"
|
|
7101
|
-
stroke="currentColor"
|
|
7102
|
-
strokeWidth="1.5"
|
|
7103
|
-
viewBox="0 0 96 96"
|
|
7104
|
-
width="96"
|
|
7105
|
-
{...styles.mark()}
|
|
7106
|
-
>
|
|
7107
|
-
{props.mark === 'circle' && <circle cx="48" cy="48" r="40" />}
|
|
7108
|
-
{props.mark === 'pill' && <rect height="40" rx="20" width="88" x="4" y="28" />}
|
|
7109
|
-
{props.mark === 'square' && <rect height="72" rx="16" width="72" x="12" y="12" />}
|
|
7110
|
-
</svg>
|
|
7111
|
-
)
|
|
7112
|
-
}
|
|
7113
|
-
|
|
7114
|
-
namespace styles {
|
|
7115
|
-
export const mark = style({ color: 'content.primary' })
|
|
7116
|
-
}
|
|
7117
|
-
```
|
|
7118
|
-
|
|
7119
|
-
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/FeatureAccordion/Default.tsx)
|
|
7120
|
-
|
|
7121
|
-
#### Plain
|
|
7122
|
-
|
|
7123
|
-
With `variant="plain"`, the names set a step smaller, and the art brings its own plate. From 1024px it fills a 3:2 frame.
|
|
7124
|
-
|
|
7125
|
-
```tsx
|
|
7126
|
-
/** Demonstrates a plain Marketing feature accordion, whose art brings its own plate. @module */
|
|
7127
|
-
import { FeatureAccordion, Section, style } from '@tempoxyz/ds/marketing'
|
|
7128
|
-
|
|
7129
|
-
export const fill = true
|
|
7130
|
-
|
|
7131
|
-
// The accordion, its main look, shows from 1024px.
|
|
7132
|
-
export const width = 'desktop'
|
|
7133
|
-
|
|
7134
|
-
export function Demo() {
|
|
7135
|
-
return (
|
|
7136
|
-
<Section eyebrow="Earn" title="Put idle balances to work">
|
|
7137
|
-
<FeatureAccordion
|
|
7138
|
-
items={[
|
|
7139
|
-
{
|
|
7140
|
-
description: 'Move idle balances into yield and back out in one step.',
|
|
7141
|
-
media: <Art mark="circle" />,
|
|
7142
|
-
title: 'Earn on idle balances',
|
|
7143
|
-
},
|
|
7144
|
-
{
|
|
7145
|
-
description: 'Choose the strategies your treasury policy allows.',
|
|
7146
|
-
media: <Art mark="pill" />,
|
|
7147
|
-
title: 'Set your own limits',
|
|
7148
|
-
},
|
|
7149
|
-
{
|
|
7150
|
-
description: 'See every position and its yield in one report.',
|
|
7151
|
-
media: <Art mark="square" />,
|
|
7152
|
-
title: 'Report on every position',
|
|
7153
|
-
},
|
|
7154
|
-
]}
|
|
7155
|
-
variant="plain"
|
|
7156
|
-
/>
|
|
7157
|
-
</Section>
|
|
7158
|
-
)
|
|
7159
|
-
}
|
|
7160
|
-
|
|
7161
|
-
/** The same line mark on a plate of its own, as plain art fills its 3:2 frame. */
|
|
7162
|
-
function Art(props: { mark: 'circle' | 'pill' | 'square' }) {
|
|
7163
|
-
return (
|
|
7164
|
-
<div {...styles.plate()}>
|
|
7165
|
-
<svg
|
|
7166
|
-
aria-hidden="true"
|
|
7167
|
-
fill="none"
|
|
7168
|
-
height="96"
|
|
7169
|
-
stroke="currentColor"
|
|
7170
|
-
strokeWidth="1.5"
|
|
7171
|
-
viewBox="0 0 96 96"
|
|
7172
|
-
width="96"
|
|
7173
|
-
{...styles.mark()}
|
|
7174
|
-
>
|
|
7175
|
-
{props.mark === 'circle' && <circle cx="48" cy="48" r="40" />}
|
|
7176
|
-
{props.mark === 'pill' && <rect height="40" rx="20" width="88" x="4" y="28" />}
|
|
7177
|
-
{props.mark === 'square' && <rect height="72" rx="16" width="72" x="12" y="12" />}
|
|
7178
|
-
</svg>
|
|
7179
|
-
</div>
|
|
7180
|
-
)
|
|
7181
|
-
}
|
|
7182
|
-
|
|
7183
|
-
namespace styles {
|
|
7184
|
-
export const mark = style({ color: 'content.primary' })
|
|
7185
|
-
|
|
7186
|
-
// The art's own plate: the page's ground with a hairline, unlike the framed variant's grey.
|
|
7187
|
-
export const plate = style({
|
|
7188
|
-
alignItems: 'center',
|
|
7189
|
-
backgroundColor: 'background.secondary',
|
|
7190
|
-
borderColor: 'line.primary',
|
|
7191
|
-
borderRadius: 'lg',
|
|
7192
|
-
borderStyle: 'solid',
|
|
7193
|
-
borderWidth: 'regular',
|
|
7194
|
-
display: 'flex',
|
|
7195
|
-
inset: '0',
|
|
7196
|
-
justifyContent: 'center',
|
|
7197
|
-
position: 'absolute',
|
|
7198
|
-
})
|
|
7199
|
-
}
|
|
7200
|
-
```
|
|
7201
|
-
|
|
7202
|
-
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/FeatureAccordion/Plain.tsx)
|
|
7203
|
-
|
|
7204
|
-
### Anatomy
|
|
7205
|
-
|
|
7206
|
-
```tsx
|
|
7207
|
-
import { FeatureAccordion } from '@tempoxyz/ds/marketing'
|
|
7208
|
-
|
|
7209
|
-
<FeatureAccordion items={[{ title: 'Earn', description: '…', media: <Art /> }]} />
|
|
7210
|
-
```
|
|
7211
|
-
|
|
7212
|
-
### Guidelines
|
|
7213
|
-
|
|
7214
|
-
#### When to Use
|
|
7215
|
-
|
|
7216
|
-
* Show a few items, each with its art, where readers open one at a time.
|
|
7217
|
-
* Use `variant="plain"` for phrase-length names whose art brings its own plate.
|
|
7218
|
-
|
|
7219
|
-
#### When Not to Use
|
|
7220
|
-
|
|
7221
|
-
* Use [Card](/marketing/sections/card) for benefits read side by side.
|
|
7222
|
-
* Use [FAQ](/marketing/sections/faq) for questions and their answers.
|
|
7223
|
-
* Use [Steps](/marketing/sections/steps) for steps in order.
|
|
7224
|
-
|
|
7225
|
-
#### Give Every Row Its Art
|
|
7226
|
-
|
|
7227
|
-
Pass each row's art in `media`, such as a [Media](/marketing/sections/media) with `alt=""`, which fills the frame, so every row that opens has its picture. End a row with a [Link](/marketing/components/link) in `link`, or leave it out.
|
|
7228
|
-
|
|
7229
|
-
**Do:** Give every row art, so the open row fills its frame.
|
|
7230
|
-
|
|
7231
|
-
```tsx
|
|
7232
|
-
/**
|
|
7233
|
-
* Do example for "Give Every Row Its Art" on the Feature Accordion page.
|
|
7234
|
-
* The open row's art fills its frame.
|
|
7235
|
-
* @module
|
|
7236
|
-
*/
|
|
7237
|
-
import { Mini } from '../../../demos/Marketing/FeatureAccordion/Mini.js'
|
|
7238
|
-
|
|
7239
|
-
/** Renders the static preview, which the guideline card shows inert. */
|
|
7240
|
-
export function Demo() {
|
|
7241
|
-
return <Mini />
|
|
7242
|
-
}
|
|
7243
|
-
```
|
|
7244
|
-
|
|
7245
|
-
**Don't:** Leave a row without art, which opens to an empty frame.
|
|
7246
|
-
|
|
7247
|
-
```tsx
|
|
7248
|
-
/**
|
|
7249
|
-
* Don't example for "Give Every Row Its Art" on the Feature Accordion page.
|
|
7250
|
-
* The open row shows an empty frame.
|
|
7251
|
-
* @module
|
|
7252
|
-
*/
|
|
7253
|
-
import { Mini } from '../../../demos/Marketing/FeatureAccordion/Mini.js'
|
|
7254
|
-
|
|
7255
|
-
/** Renders the static preview, which the guideline card shows inert. */
|
|
7256
|
-
export function Demo() {
|
|
7257
|
-
return <Mini art="empty" />
|
|
7258
|
-
}
|
|
7259
|
-
```
|
|
7260
|
-
|
|
7261
|
-
#### Place It Under a Section Heading
|
|
7262
|
-
|
|
7263
|
-
Each name is an `h3`, so open it in a [Section](/marketing/sections/section) whose `title` is its `h2`.
|
|
7264
|
-
|
|
7265
|
-
### Content
|
|
7266
|
-
|
|
7267
|
-
#### Write Each Line as One Sentence
|
|
7268
|
-
|
|
7269
|
-
Name each row in one to three words, and write its `description` as one sentence.
|
|
7270
|
-
|
|
7271
|
-
**Do:** Name the row in a word or two, over one sentence.
|
|
7272
|
-
|
|
7273
|
-
```tsx
|
|
7274
|
-
/**
|
|
7275
|
-
* Do example for "Write Each Line as One Sentence" on the Feature Accordion page.
|
|
7276
|
-
* A short name over one sentence.
|
|
7277
|
-
* @module
|
|
7278
|
-
*/
|
|
7279
|
-
import { Mini } from '../../../demos/Marketing/FeatureAccordion/Mini.js'
|
|
7280
|
-
|
|
7281
|
-
/** Renders the static preview, which the guideline card shows inert. */
|
|
7282
|
-
export function Demo() {
|
|
7283
|
-
return (
|
|
7284
|
-
<Mini
|
|
7285
|
-
art="none"
|
|
7286
|
-
description="Hold dollar stablecoins and earn yield on idle balances."
|
|
7287
|
-
layout="stacked"
|
|
7288
|
-
/>
|
|
7289
|
-
)
|
|
7290
|
-
}
|
|
7291
|
-
```
|
|
7292
|
-
|
|
7293
|
-
**Don't:** Run a row's line on into a paragraph.
|
|
7294
|
-
|
|
7295
|
-
```tsx
|
|
7296
|
-
/**
|
|
7297
|
-
* Don't example for "Write Each Line as One Sentence" on the Feature Accordion page.
|
|
7298
|
-
* A row whose line runs to a paragraph.
|
|
7299
|
-
* @module
|
|
7300
|
-
*/
|
|
7301
|
-
import { Mini } from '../../../demos/Marketing/FeatureAccordion/Mini.js'
|
|
7302
|
-
|
|
7303
|
-
/** Renders the static preview, which the guideline card shows inert. */
|
|
7304
|
-
export function Demo() {
|
|
7305
|
-
return (
|
|
7306
|
-
<Mini
|
|
7307
|
-
art="none"
|
|
7308
|
-
description="Hold dollar stablecoins and earn yield on idle balances. Yield accrues daily and pays out to the same account, and you can withdraw at any time."
|
|
7309
|
-
layout="stacked"
|
|
7310
|
-
/>
|
|
7311
|
-
)
|
|
7312
|
-
}
|
|
7439
|
+
**Don't:** The background first.
|
|
7440
|
+
|
|
7441
|
+
```tsx
|
|
7442
|
+
<Faq style={{ maxWidth: 260 }}>
|
|
7443
|
+
<Faq.Item question="Can I use my existing wallet provider?">
|
|
7444
|
+
Wallets sign and broadcast transactions.
|
|
7445
|
+
</Faq.Item>
|
|
7446
|
+
</Faq>
|
|
7313
7447
|
```
|
|
7314
7448
|
|
|
7315
7449
|
### Accessibility
|
|
7316
7450
|
|
|
7317
|
-
* **
|
|
7318
|
-
* **
|
|
7319
|
-
* **Closed
|
|
7320
|
-
* **
|
|
7321
|
-
* **
|
|
7322
|
-
* **Reduced Motion (
|
|
7451
|
+
* **Question (aria-expanded):** A native button in an `h3`. Its answer panel is a region the button names.
|
|
7452
|
+
* **Toggle (Enter or Space):** Enter and Space open or close the row. Tab moves to the next question.
|
|
7453
|
+
* **Closed Answer (hidden="until-found"):** Find in page opens the row of a closed answer that matches.
|
|
7454
|
+
* **Row Index (aria-hidden):** Each row's index is hidden, so a question's name is its text alone.
|
|
7455
|
+
* **Press (:active):** A question keeps its color on hover, and a press dims the row.
|
|
7456
|
+
* **Reduced Motion (prefers-reduced-motion):** An answer fades without sliding, and the plus fades to a minus.
|
|
7323
7457
|
|
|
7324
7458
|
### Related
|
|
7325
7459
|
|
|
7326
|
-
[
|
|
7327
|
-
|
|
7328
|
-
Uses it with `variant="plain"`.
|
|
7329
|
-
|
|
7330
|
-
[Section](/marketing/sections/section)
|
|
7460
|
+
[Link](/marketing/components/link)
|
|
7331
7461
|
|
|
7332
|
-
|
|
7462
|
+
Covers the links in an answer.
|
|
7333
7463
|
|
|
7334
|
-
[
|
|
7464
|
+
[CTA](/marketing/sections/cta)
|
|
7335
7465
|
|
|
7336
|
-
|
|
7466
|
+
Covers the close that often follows it.
|
|
7337
7467
|
|
|
7338
|
-
[
|
|
7468
|
+
[Feature Accordion](/marketing/sections/feature-accordion)
|
|
7339
7469
|
|
|
7340
|
-
Use for
|
|
7470
|
+
Use for features that open one at a time beside their art.
|
|
7341
7471
|
|
|
7342
7472
|
## Footer
|
|
7343
7473
|
|
|
@@ -7891,7 +8021,7 @@ Covers Display Hero and the other sets.
|
|
|
7891
8021
|
|
|
7892
8022
|
## Index
|
|
7893
8023
|
|
|
7894
|
-
Lists
|
|
8024
|
+
Lists more items than one page shows as cards or rows, under one row of filters.
|
|
7895
8025
|
|
|
7896
8026
|
*Image: The list icon from Tempo Icons in polished chrome, centered on a transparent ground*
|
|
7897
8027
|
|
|
@@ -7901,11 +8031,13 @@ A grid of cards or a list of ruled rows, each one link to one item, under one ro
|
|
|
7901
8031
|
|
|
7902
8032
|
The list shows a page of items at a time, 12 by default, and Show more adds the next page. When a category lists nothing, a line after the list says so. Pair the list with [Search](/marketing/components/search) over the same items.
|
|
7903
8033
|
|
|
8034
|
+
**Slots:** each item has a title and a link. A description, a label (`eyebrow`) and categories are optional, and a card takes a mark in `media`. Items have no figure or action. The index has no title of its own: the [Section](/marketing/sections/section) heading above names it.
|
|
8035
|
+
|
|
7904
8036
|
### Examples
|
|
7905
8037
|
|
|
7906
8038
|
#### Cards
|
|
7907
8039
|
|
|
7908
|
-
`variant="cards"`, the default:
|
|
8040
|
+
`variant="cards"`, the default: inline [Card](/marketing/sections/card)s led by a tile, in one column, two from 768px and three from 1024px.
|
|
7909
8041
|
|
|
7910
8042
|
```tsx
|
|
7911
8043
|
/** Demonstrates a Marketing index of cards, each led by its tile, under category filters. @module */
|
|
@@ -7951,609 +8083,279 @@ export function Demo() {
|
|
|
7951
8083
|
|
|
7952
8084
|
#### Show More
|
|
7953
8085
|
|
|
7954
|
-
`pageSize={4}`: Show more adds the next four cards.
|
|
7955
|
-
|
|
7956
|
-
```tsx
|
|
7957
|
-
/** Demonstrates a Marketing index a page of four cards at a time, with Show more. @module */
|
|
7958
|
-
import { Index, Section } from '@tempoxyz/ds/marketing'
|
|
7959
|
-
import { cards, categories } from './Sample.js'
|
|
7960
|
-
|
|
7961
|
-
export const fill = true
|
|
7962
|
-
|
|
7963
|
-
export const width = 'desktop'
|
|
7964
|
-
|
|
7965
|
-
export function Demo() {
|
|
7966
|
-
return (
|
|
7967
|
-
<Section>
|
|
7968
|
-
<Index aria-label="Partners" categories={categories} items={cards} pageSize={4} />
|
|
7969
|
-
</Section>
|
|
7970
|
-
)
|
|
7971
|
-
}
|
|
7972
|
-
```
|
|
7973
|
-
|
|
7974
|
-
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Index/ShowMore.tsx)
|
|
7975
|
-
|
|
7976
|
-
### Anatomy
|
|
7977
|
-
|
|
7978
|
-
```tsx
|
|
7979
|
-
import { Index } from '@tempoxyz/ds/marketing'
|
|
7980
|
-
|
|
7981
|
-
<Index items={[{ href: '/partners/acme', title: 'Acme' }]} />
|
|
7982
|
-
```
|
|
7983
|
-
|
|
7984
|
-
### Guidelines
|
|
7985
|
-
|
|
7986
|
-
#### When to Use
|
|
7987
|
-
|
|
7988
|
-
* List a whole collection that readers filter or page through, such as partners, assets or articles.
|
|
7989
|
-
|
|
7990
|
-
#### When Not to Use
|
|
7991
|
-
|
|
7992
|
-
* Use [Card](/marketing/sections/card) in a `Card.Grid` for a few hand-picked items that don't need filters.
|
|
7993
|
-
* Use [Logo Wall](/marketing/sections/logo-wall) for logos with no cards.
|
|
7994
|
-
|
|
7995
|
-
#### Set the Variant by the Item
|
|
7996
|
-
|
|
7997
|
-
Use `cards` for items with a mark, and `rows` for items read by title and date.
|
|
7998
|
-
|
|
7999
|
-
#### Lead Each Card With a Tile
|
|
8000
|
-
|
|
8001
|
-
Lead each card with a [Symbol Tile](/marketing/components/symbol-tile) in `media` when the items have marks.
|
|
8002
|
-
|
|
8003
|
-
**Do:** Lead every card with a tile, so names line up down the grid.
|
|
8004
|
-
|
|
8005
|
-
```tsx
|
|
8006
|
-
<IndexSketch kind="tiles" />
|
|
8007
|
-
```
|
|
8008
|
-
|
|
8009
|
-
**Don't:** Mix cards with a tile, with none and with a picture.
|
|
8010
|
-
|
|
8011
|
-
```tsx
|
|
8012
|
-
<IndexSketch kind="mixed" />
|
|
8013
|
-
```
|
|
8014
|
-
|
|
8015
|
-
#### Filter Only Where Labels Help
|
|
8016
|
-
|
|
8017
|
-
Pass `categories` only when the list has two or more. Without them there is no filter row.
|
|
8018
|
-
|
|
8019
|
-
#### Put the Filter in the URL
|
|
8020
|
-
|
|
8021
|
-
Keep the category in the URL, such as `?category=wallets`, with `value` and `onValueChange`, so a filtered list survives a reload and Back.
|
|
8022
|
-
|
|
8023
|
-
**Do:** Write the selected category to the URL.
|
|
8024
|
-
|
|
8025
|
-
```tsx
|
|
8026
|
-
<IndexSketch kind="filtered" />
|
|
8027
|
-
```
|
|
8028
|
-
|
|
8029
|
-
**Don't:** Keep it only in the page, where a reload drops it back to All.
|
|
8030
|
-
|
|
8031
|
-
```tsx
|
|
8032
|
-
<IndexSketch kind="lost" />
|
|
8033
|
-
```
|
|
8034
|
-
|
|
8035
|
-
#### Link Through Your Router
|
|
8036
|
-
|
|
8037
|
-
Pass `render` for router links. Set `external` on an item that leaves the site: it opens in a new tab and ends in an arrow up right.
|
|
8038
|
-
|
|
8039
|
-
### Content
|
|
8040
|
-
|
|
8041
|
-
* **Category labels:** One or two words that stay the same when selected, as [Filter](/marketing/components/filter) sets them.
|
|
8042
|
-
* **Titles:** Sentence case.
|
|
8043
|
-
* **Descriptions:** One line. A card clamps it at two.
|
|
8044
|
-
* **Eyebrow:** A date, a read time or a category, over a row's title.
|
|
8045
|
-
* **Empty line:** Says the filter lists nothing, without naming a page or a collection.
|
|
8046
|
-
|
|
8047
|
-
### Accessibility
|
|
8048
|
-
|
|
8049
|
-
`Index` renders a `<ul>` of [Card](/marketing/sections/card)s under a named group of [Filter](/marketing/components/filter) toggles.
|
|
8050
|
-
|
|
8051
|
-
* **Filters (role="group"):** The filters sit in a named group, and each points to the list with `aria-controls`.
|
|
8052
|
-
* **Toggle a Filter (aria-pressed):** Each filter is a toggle button and its own tab stop. Enter or Space lists its category.
|
|
8053
|
-
* **Cards (link):** Each item is one link, named by its title, and keyboard focus rings the whole card. An external item names its new tab.
|
|
8054
|
-
* **Result (role="status"):** A filter press updates a hidden status line with the count it lists.
|
|
8055
|
-
* **Show More (focus):** When the last page lands, focus moves to its first item.
|
|
8056
|
-
* **Reduced Motion (prefers-reduced-motion):** The items a filter or Show more brings in rise a stagger apart. Under reduced motion they appear at once.
|
|
8057
|
-
|
|
8058
|
-
#### Your Responsibilities
|
|
8059
|
-
|
|
8060
|
-
* **Name the List (aria-labelledby):** Point `aria-labelledby` at the heading above, or set `aria-label` when nothing names it.
|
|
8061
|
-
* **Translate the Labels (messages):** Pass `messages` on a page in another language, for the filters, Show more, the count, the empty line and the new-tab hint.
|
|
8062
|
-
|
|
8063
|
-
### Related
|
|
8064
|
-
|
|
8065
|
-
[Card](/marketing/sections/card)
|
|
8066
|
-
|
|
8067
|
-
Covers the compact cards and rows an index draws.
|
|
8068
|
-
|
|
8069
|
-
[Filter](/marketing/components/filter)
|
|
8070
|
-
|
|
8071
|
-
Covers the toggles in the filter row.
|
|
8072
|
-
|
|
8073
|
-
[Hero](/marketing/sections/hero)
|
|
8074
|
-
|
|
8075
|
-
Use `variant="index"` to open an index page.
|
|
8076
|
-
|
|
8077
|
-
[Search](/marketing/components/search)
|
|
8078
|
-
|
|
8079
|
-
Use for the search over the same items.
|
|
8080
|
-
|
|
8081
|
-
[Symbol Tile](/marketing/components/symbol-tile)
|
|
8082
|
-
|
|
8083
|
-
Covers the tile that leads each card.
|
|
8084
|
-
|
|
8085
|
-
## Logo Wall
|
|
8086
|
-
|
|
8087
|
-
Shows a group of companies as logos in one ink, under a centered heading.
|
|
8088
|
-
|
|
8089
|
-
*Image: The grip icon from Tempo Icons in polished chrome, centered on a transparent ground*
|
|
8090
|
-
|
|
8091
|
-
### Overview
|
|
8092
|
-
|
|
8093
|
-
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.
|
|
8094
|
-
|
|
8095
|
-
### Examples
|
|
8096
|
-
|
|
8097
|
-
#### Default
|
|
8098
|
-
|
|
8099
|
-
```tsx
|
|
8100
|
-
/** Demonstrates a Marketing logo wall: a centered heading over twelve sample logos. @module */
|
|
8101
|
-
import { LogoWall } from '@tempoxyz/ds/marketing'
|
|
8102
|
-
import { logos } from './Sketch.js'
|
|
8103
|
-
|
|
8104
|
-
export const fill = true
|
|
8105
|
-
|
|
8106
|
-
export const width = 'desktop'
|
|
8107
|
-
|
|
8108
|
-
export function Demo() {
|
|
8109
|
-
return (
|
|
8110
|
-
<LogoWall
|
|
8111
|
-
description="Banks, fintechs and platforms that shaped the network."
|
|
8112
|
-
logos={logos}
|
|
8113
|
-
title="Built with teams across payments"
|
|
8114
|
-
/>
|
|
8115
|
-
)
|
|
8116
|
-
}
|
|
8117
|
-
```
|
|
8118
|
-
|
|
8119
|
-
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/LogoWall/Default.tsx)
|
|
8120
|
-
|
|
8121
|
-
#### Inverse
|
|
8122
|
-
|
|
8123
|
-
Set `tone="inverse"` in a dark section.
|
|
8124
|
-
|
|
8125
|
-
```tsx
|
|
8126
|
-
/** Demonstrates a Marketing logo wall in the inverse tone, its logos and heading near-white. @module */
|
|
8127
|
-
import { LogoWall } from '@tempoxyz/ds/marketing'
|
|
8128
|
-
import { logos } from './Sketch.js'
|
|
8129
|
-
|
|
8130
|
-
export const fill = true
|
|
8131
|
-
|
|
8132
|
-
export const surface = 'inverse'
|
|
8133
|
-
|
|
8134
|
-
export const width = 'desktop'
|
|
8135
|
-
|
|
8136
|
-
export function Demo() {
|
|
8137
|
-
return (
|
|
8138
|
-
<LogoWall
|
|
8139
|
-
description="Banks, fintechs and platforms that shaped the network."
|
|
8140
|
-
logos={logos}
|
|
8141
|
-
title="Built with teams across payments"
|
|
8142
|
-
tone="inverse"
|
|
8143
|
-
/>
|
|
8144
|
-
)
|
|
8145
|
-
}
|
|
8146
|
-
```
|
|
8147
|
-
|
|
8148
|
-
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/LogoWall/Inverse.tsx)
|
|
8149
|
-
|
|
8150
|
-
### Anatomy
|
|
8151
|
-
|
|
8152
|
-
```tsx
|
|
8153
|
-
import { LogoWall } from '@tempoxyz/ds/marketing'
|
|
8154
|
-
|
|
8155
|
-
<LogoWall title="…" logos={[{ name: '…', src: '…' }]} />
|
|
8156
|
-
```
|
|
8157
|
-
|
|
8158
|
-
### Guidelines
|
|
8159
|
-
|
|
8160
|
-
#### When to Use
|
|
8161
|
-
|
|
8162
|
-
* Show a group of companies as equals under one heading, such as partners, customers or networks.
|
|
8163
|
-
|
|
8164
|
-
#### When Not to Use
|
|
8165
|
-
|
|
8166
|
-
* Use [Hero](/marketing/sections/hero) with its `logos` for a row of logos under a page's title.
|
|
8167
|
-
* Use [Index](/marketing/sections/index) for a collection a visitor can filter, as cards.
|
|
8168
|
-
|
|
8169
|
-
#### Pass Each Logo With Its Name
|
|
8170
|
-
|
|
8171
|
-
Pass each logo in `logos` as a `src` or a `logo` node, with the company's `name`.
|
|
8172
|
-
|
|
8173
|
-
#### Fill Every Row
|
|
8174
|
-
|
|
8175
|
-
Pass 6 or 12 logos. The wall sets two, three or six across, so a multiple of six fills every row at every width.
|
|
8176
|
-
|
|
8177
|
-
**Do:** Pass six logos, so every row is full.
|
|
8178
|
-
|
|
8179
|
-
```tsx
|
|
8180
|
-
<LogoWallSketch kind="full" />
|
|
8181
|
-
```
|
|
8182
|
-
|
|
8183
|
-
**Don't:** Pass four, which leaves one logo alone on the last row.
|
|
8184
|
-
|
|
8185
|
-
```tsx
|
|
8186
|
-
<LogoWallSketch kind="ragged" />
|
|
8187
|
-
```
|
|
8188
|
-
|
|
8189
|
-
### Content
|
|
8086
|
+
`pageSize={4}`: Show more adds the next four cards, here a set of developer tools.
|
|
8190
8087
|
|
|
8191
|
-
|
|
8088
|
+
```tsx
|
|
8089
|
+
/** Demonstrates a Marketing index of developer tools a page of four cards at a time, with Show more. @module */
|
|
8090
|
+
import { Index, Section } from '@tempoxyz/ds/marketing'
|
|
8091
|
+
import { kits, tools } from './Sample.js'
|
|
8192
8092
|
|
|
8193
|
-
|
|
8093
|
+
export const fill = true
|
|
8194
8094
|
|
|
8195
|
-
|
|
8095
|
+
export const width = 'desktop'
|
|
8196
8096
|
|
|
8197
|
-
|
|
8198
|
-
|
|
8199
|
-
<
|
|
8097
|
+
export function Demo() {
|
|
8098
|
+
return (
|
|
8099
|
+
<Section>
|
|
8100
|
+
<Index aria-label="Developer tools" categories={kits} items={tools} pageSize={4} />
|
|
8101
|
+
</Section>
|
|
8102
|
+
)
|
|
8103
|
+
}
|
|
8200
8104
|
```
|
|
8201
8105
|
|
|
8202
|
-
|
|
8106
|
+
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Index/ShowMore.tsx)
|
|
8107
|
+
|
|
8108
|
+
### Anatomy
|
|
8203
8109
|
|
|
8204
8110
|
```tsx
|
|
8205
|
-
|
|
8206
|
-
|
|
8111
|
+
import { Index } from '@tempoxyz/ds/marketing'
|
|
8112
|
+
|
|
8113
|
+
<Index items={[{ href: '/partners/acme', title: 'Acme' }]} />
|
|
8207
8114
|
```
|
|
8208
8115
|
|
|
8209
|
-
###
|
|
8116
|
+
### Guidelines
|
|
8210
8117
|
|
|
8211
|
-
|
|
8212
|
-
* **Logo List (list):** Each logo is an image named by its company, in a list, so every name is read.
|
|
8118
|
+
#### When to Use
|
|
8213
8119
|
|
|
8214
|
-
|
|
8120
|
+
* List more items than one page shows (13 or more), or items in two or more categories, that readers filter or page through.
|
|
8215
8121
|
|
|
8216
|
-
|
|
8122
|
+
#### When Not to Use
|
|
8217
8123
|
|
|
8218
|
-
Use
|
|
8124
|
+
* Use [Card](/marketing/sections/card) in a `Card.Grid` for 12 or fewer items with no categories.
|
|
8125
|
+
* Use [Logo Wall](/marketing/sections/logo-wall) for names shown only as marks, with no line each.
|
|
8219
8126
|
|
|
8220
|
-
|
|
8127
|
+
#### Set the Variant by the Item
|
|
8221
8128
|
|
|
8222
|
-
Use for
|
|
8129
|
+
Use `cards` for items named by a mark, and `rows` for items read by title.
|
|
8223
8130
|
|
|
8224
|
-
|
|
8131
|
+
#### Lead Each Card With a Tile
|
|
8225
8132
|
|
|
8226
|
-
|
|
8133
|
+
Every card has a mark, such as a [Symbol Tile](/marketing/components/symbol-tile) in `media`, or none does, as Card's picture rule sets.
|
|
8227
8134
|
|
|
8228
|
-
|
|
8135
|
+
**Do:** Lead every card with its own mark, so names line up down the grid.
|
|
8229
8136
|
|
|
8230
|
-
|
|
8137
|
+
```tsx
|
|
8138
|
+
<IndexSketch kind="tiles" />
|
|
8139
|
+
```
|
|
8231
8140
|
|
|
8232
|
-
|
|
8141
|
+
**Don't:** Mix cards with a tile, with none and with a picture.
|
|
8233
8142
|
|
|
8234
|
-
|
|
8143
|
+
```tsx
|
|
8144
|
+
<IndexSketch kind="mixed" />
|
|
8145
|
+
```
|
|
8235
8146
|
|
|
8236
|
-
|
|
8147
|
+
#### Filter Only Where Labels Help
|
|
8237
8148
|
|
|
8238
|
-
|
|
8149
|
+
Pass `categories` only when the list has two or more. Without them there is no filter row.
|
|
8239
8150
|
|
|
8240
|
-
|
|
8151
|
+
#### Put the Filter in the URL
|
|
8241
8152
|
|
|
8242
|
-
|
|
8153
|
+
Keep the category in the URL, such as `?category=wallets`, with `value` and `onValueChange`, so a filtered list survives a reload and Back.
|
|
8243
8154
|
|
|
8244
|
-
|
|
8155
|
+
**Do:** Write the selected category to the URL.
|
|
8245
8156
|
|
|
8246
8157
|
```tsx
|
|
8247
|
-
|
|
8248
|
-
import { Media, style } from '@tempoxyz/ds/marketing'
|
|
8249
|
-
import photo from '../../../../content/docs/arsenal/crafts/images/image-generation/image-generation-people-do.jpg'
|
|
8250
|
-
|
|
8251
|
-
export const fill = true
|
|
8252
|
-
|
|
8253
|
-
export function Demo() {
|
|
8254
|
-
return (
|
|
8255
|
-
<div {...styles.frame()}>
|
|
8256
|
-
<Media alt="Teal and amber light, blurred by motion" src={photo} />
|
|
8257
|
-
</div>
|
|
8258
|
-
)
|
|
8259
|
-
}
|
|
8260
|
-
|
|
8261
|
-
namespace styles {
|
|
8262
|
-
// A picture in the frame, not the frame itself.
|
|
8263
|
-
export const frame = style({ marginInline: 'auto', maxWidth: '480', width: 'full' })
|
|
8264
|
-
}
|
|
8158
|
+
<IndexSketch kind="filtered" />
|
|
8265
8159
|
```
|
|
8266
8160
|
|
|
8267
|
-
|
|
8268
|
-
|
|
8269
|
-
#### Video
|
|
8270
|
-
|
|
8271
|
-
Add `video`, and Play opens it in a dialog that starts it with sound.
|
|
8161
|
+
**Don't:** Keep it only in the page, where a reload drops it back to All.
|
|
8272
8162
|
|
|
8273
8163
|
```tsx
|
|
8274
|
-
|
|
8275
|
-
|
|
8276
|
-
import poster from '../../../../content/docs/arsenal/crafts/images/image-generation/image-generation-refs-do.jpg'
|
|
8164
|
+
<IndexSketch kind="lost" />
|
|
8165
|
+
```
|
|
8277
8166
|
|
|
8278
|
-
|
|
8167
|
+
#### Link Through Your Router
|
|
8279
8168
|
|
|
8280
|
-
|
|
8281
|
-
return (
|
|
8282
|
-
<div {...styles.frame()}>
|
|
8283
|
-
{/* The empty source keeps the demo free of a video file, so the dialog opens on an empty player. */}
|
|
8284
|
-
<Media
|
|
8285
|
-
alt="City lights at dusk, blurred by motion"
|
|
8286
|
-
name="Product tour"
|
|
8287
|
-
src={poster}
|
|
8288
|
-
video="data:video/mp4;base64,"
|
|
8289
|
-
/>
|
|
8290
|
-
</div>
|
|
8291
|
-
)
|
|
8292
|
-
}
|
|
8169
|
+
Pass `render` for router links. Set `external` on an item that leaves the site: it opens in a new tab and ends in an arrow up right.
|
|
8293
8170
|
|
|
8294
|
-
|
|
8295
|
-
// A poster in the frame, not the frame itself.
|
|
8296
|
-
export const frame = style({ marginInline: 'auto', maxWidth: '480', width: 'full' })
|
|
8297
|
-
}
|
|
8298
|
-
```
|
|
8171
|
+
### Content
|
|
8299
8172
|
|
|
8300
|
-
|
|
8173
|
+
* **Category labels:** One or two words that stay the same when selected, as [Filter](/marketing/components/filter) sets them.
|
|
8174
|
+
* **Titles:** Sentence case.
|
|
8175
|
+
* **Descriptions:** One line. A card clamps it at two.
|
|
8176
|
+
* **Eyebrow:** A date, a read time or a category, over a row's title.
|
|
8177
|
+
* **Empty line:** Says the filter lists nothing, without naming a page or a collection.
|
|
8301
8178
|
|
|
8302
|
-
|
|
8179
|
+
### Accessibility
|
|
8303
8180
|
|
|
8304
|
-
|
|
8181
|
+
`Index` renders a `<ul>` of [Card](/marketing/sections/card)s under a named group of [Filter](/marketing/components/filter) toggles.
|
|
8305
8182
|
|
|
8306
|
-
|
|
8307
|
-
|
|
8308
|
-
|
|
8309
|
-
|
|
8183
|
+
* **Filters (role="group"):** The filters sit in a named group, and each points to the list with `aria-controls`.
|
|
8184
|
+
* **Toggle a Filter (aria-pressed):** Each filter is a toggle button and its own tab stop. Enter or Space lists its category.
|
|
8185
|
+
* **Cards (link):** Each item is one link, named by its title, and keyboard focus rings the whole card. An external item names its new tab.
|
|
8186
|
+
* **Result (role="status"):** A filter press updates a hidden status line with the count it lists.
|
|
8187
|
+
* **Show More (focus):** When the last page lands, focus moves to its first item.
|
|
8188
|
+
* **Reduced Motion (prefers-reduced-motion):** The items a filter or Show more brings in rise a stagger apart. Under reduced motion they appear at once.
|
|
8310
8189
|
|
|
8311
|
-
|
|
8190
|
+
#### Your Responsibilities
|
|
8312
8191
|
|
|
8313
|
-
|
|
8314
|
-
|
|
8315
|
-
<div {...styles.frame()}>
|
|
8316
|
-
<Media alt="Teal and amber light, blurred by motion" ratio="16:9" src={photo} />
|
|
8317
|
-
</div>
|
|
8318
|
-
)
|
|
8319
|
-
}
|
|
8192
|
+
* **Name the List (aria-labelledby):** Point `aria-labelledby` at the heading above, or set `aria-label` when nothing names it.
|
|
8193
|
+
* **Translate the Labels (messages):** Pass `messages` on a page in another language, for the filters, Show more, the count, the empty line and the new-tab hint.
|
|
8320
8194
|
|
|
8321
|
-
|
|
8322
|
-
// A picture in the frame, not the frame itself.
|
|
8323
|
-
export const frame = style({ marginInline: 'auto', maxWidth: '480', width: 'full' })
|
|
8324
|
-
}
|
|
8325
|
-
```
|
|
8195
|
+
### Related
|
|
8326
8196
|
|
|
8327
|
-
[
|
|
8197
|
+
[Card](/marketing/sections/card)
|
|
8328
8198
|
|
|
8329
|
-
|
|
8199
|
+
Covers the inline cards and rows an index draws.
|
|
8330
8200
|
|
|
8331
|
-
|
|
8201
|
+
[Filter](/marketing/components/filter)
|
|
8332
8202
|
|
|
8333
|
-
|
|
8334
|
-
/** Demonstrates a Marketing Media picture cropped to 3:2. @module */
|
|
8335
|
-
import { Media, style } from '@tempoxyz/ds/marketing'
|
|
8336
|
-
import photo from '../../../../content/docs/arsenal/crafts/images/image-generation/image-generation-people-do.jpg'
|
|
8203
|
+
Covers the toggles in the filter row.
|
|
8337
8204
|
|
|
8338
|
-
|
|
8205
|
+
[Hero](/marketing/sections/hero)
|
|
8339
8206
|
|
|
8340
|
-
|
|
8341
|
-
return (
|
|
8342
|
-
<div {...styles.frame()}>
|
|
8343
|
-
<Media alt="Teal and amber light, blurred by motion" ratio="3:2" src={photo} />
|
|
8344
|
-
</div>
|
|
8345
|
-
)
|
|
8346
|
-
}
|
|
8207
|
+
Use `variant="index"` to open an index page.
|
|
8347
8208
|
|
|
8348
|
-
|
|
8349
|
-
// A picture in the frame, not the frame itself.
|
|
8350
|
-
export const frame = style({ marginInline: 'auto', maxWidth: '480', width: 'full' })
|
|
8351
|
-
}
|
|
8352
|
-
```
|
|
8209
|
+
[Search](/marketing/components/search)
|
|
8353
8210
|
|
|
8354
|
-
|
|
8211
|
+
Use for the search over the same items.
|
|
8355
8212
|
|
|
8356
|
-
|
|
8213
|
+
[Symbol Tile](/marketing/components/symbol-tile)
|
|
8357
8214
|
|
|
8358
|
-
|
|
8215
|
+
Covers the tile that leads each card.
|
|
8359
8216
|
|
|
8360
|
-
|
|
8361
|
-
/** Demonstrates a Marketing Media picture cropped to 1:1. @module */
|
|
8362
|
-
import { Media, style } from '@tempoxyz/ds/marketing'
|
|
8363
|
-
import photo from '../../../../content/docs/arsenal/crafts/images/image-generation/image-generation-people-do.jpg'
|
|
8217
|
+
## Logo Wall
|
|
8364
8218
|
|
|
8365
|
-
|
|
8219
|
+
Shows a group of companies as logos in one ink, under a centered heading.
|
|
8366
8220
|
|
|
8367
|
-
|
|
8368
|
-
return (
|
|
8369
|
-
<div {...styles.frame()}>
|
|
8370
|
-
<Media alt="Teal and amber light, blurred by motion" ratio="1:1" src={photo} />
|
|
8371
|
-
</div>
|
|
8372
|
-
)
|
|
8373
|
-
}
|
|
8221
|
+
*Image: The grip icon from Tempo Icons in polished chrome, centered on a transparent ground*
|
|
8374
8222
|
|
|
8375
|
-
|
|
8376
|
-
// A picture in the frame, not the frame itself.
|
|
8377
|
-
export const frame = style({ marginInline: 'auto', maxWidth: '480', width: 'full' })
|
|
8378
|
-
}
|
|
8379
|
-
```
|
|
8223
|
+
### Overview
|
|
8380
8224
|
|
|
8381
|
-
|
|
8225
|
+
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.
|
|
8382
8226
|
|
|
8383
|
-
|
|
8227
|
+
### Examples
|
|
8384
8228
|
|
|
8385
|
-
|
|
8229
|
+
#### Default
|
|
8386
8230
|
|
|
8387
8231
|
```tsx
|
|
8388
|
-
/** Demonstrates a Marketing
|
|
8389
|
-
import {
|
|
8390
|
-
import
|
|
8232
|
+
/** Demonstrates a Marketing logo wall: a centered heading over twelve sample logos. @module */
|
|
8233
|
+
import { LogoWall } from '@tempoxyz/ds/marketing'
|
|
8234
|
+
import { logos } from './Sketch.js'
|
|
8391
8235
|
|
|
8392
8236
|
export const fill = true
|
|
8393
8237
|
|
|
8238
|
+
export const width = 'desktop'
|
|
8239
|
+
|
|
8394
8240
|
export function Demo() {
|
|
8395
8241
|
return (
|
|
8396
|
-
<
|
|
8397
|
-
|
|
8398
|
-
|
|
8242
|
+
<LogoWall
|
|
8243
|
+
description="Banks, fintechs and platforms that shaped the network."
|
|
8244
|
+
logos={logos}
|
|
8245
|
+
title="Built with teams across payments"
|
|
8246
|
+
/>
|
|
8399
8247
|
)
|
|
8400
8248
|
}
|
|
8401
|
-
|
|
8402
|
-
namespace styles {
|
|
8403
|
-
// A picture in the frame, not the frame itself.
|
|
8404
|
-
export const frame = style({ marginInline: 'auto', maxWidth: '480', width: 'full' })
|
|
8405
|
-
}
|
|
8406
8249
|
```
|
|
8407
8250
|
|
|
8408
|
-
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/
|
|
8251
|
+
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/LogoWall/Default.tsx)
|
|
8409
8252
|
|
|
8410
|
-
####
|
|
8253
|
+
#### Inverse
|
|
8411
8254
|
|
|
8412
|
-
Set `
|
|
8255
|
+
Set `tone="inverse"` in a dark section.
|
|
8413
8256
|
|
|
8414
8257
|
```tsx
|
|
8415
|
-
/** Demonstrates
|
|
8416
|
-
import {
|
|
8417
|
-
import
|
|
8258
|
+
/** Demonstrates a Marketing logo wall in the inverse tone, its logos and heading near-white. @module */
|
|
8259
|
+
import { LogoWall } from '@tempoxyz/ds/marketing'
|
|
8260
|
+
import { logos } from './Sketch.js'
|
|
8418
8261
|
|
|
8419
8262
|
export const fill = true
|
|
8420
8263
|
|
|
8264
|
+
export const surface = 'inverse'
|
|
8265
|
+
|
|
8266
|
+
export const width = 'desktop'
|
|
8267
|
+
|
|
8421
8268
|
export function Demo() {
|
|
8422
8269
|
return (
|
|
8423
|
-
<
|
|
8424
|
-
|
|
8425
|
-
|
|
8426
|
-
|
|
8270
|
+
<LogoWall
|
|
8271
|
+
description="Banks, fintechs and platforms that shaped the network."
|
|
8272
|
+
logos={logos}
|
|
8273
|
+
title="Built with teams across payments"
|
|
8274
|
+
tone="inverse"
|
|
8275
|
+
/>
|
|
8427
8276
|
)
|
|
8428
8277
|
}
|
|
8429
|
-
|
|
8430
|
-
namespace styles {
|
|
8431
|
-
// The copy shares the picture's grid cell, at its bottom start.
|
|
8432
|
-
export const copy = style({
|
|
8433
|
-
alignSelf: 'end',
|
|
8434
|
-
color: 'inverse.content.primary',
|
|
8435
|
-
gridArea: '1 / 1',
|
|
8436
|
-
margin: '0',
|
|
8437
|
-
padding: '24',
|
|
8438
|
-
position: 'relative',
|
|
8439
|
-
typography: 'heading.h4',
|
|
8440
|
-
})
|
|
8441
|
-
|
|
8442
|
-
export const frame = style({
|
|
8443
|
-
display: 'grid',
|
|
8444
|
-
marginInline: 'auto',
|
|
8445
|
-
maxWidth: '480',
|
|
8446
|
-
width: 'full',
|
|
8447
|
-
selectors: { '& > *': { gridArea: '1 / 1' } },
|
|
8448
|
-
})
|
|
8449
|
-
}
|
|
8450
8278
|
```
|
|
8451
8279
|
|
|
8452
|
-
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/
|
|
8280
|
+
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/LogoWall/Inverse.tsx)
|
|
8453
8281
|
|
|
8454
8282
|
### Anatomy
|
|
8455
8283
|
|
|
8456
8284
|
```tsx
|
|
8457
|
-
import {
|
|
8285
|
+
import { LogoWall } from '@tempoxyz/ds/marketing'
|
|
8458
8286
|
|
|
8459
|
-
<
|
|
8460
|
-
alt="Two people on a stage"
|
|
8461
|
-
captions="/keynote.vtt"
|
|
8462
|
-
name="Keynote"
|
|
8463
|
-
src="/keynote-poster.jpg"
|
|
8464
|
-
video="/keynote.mp4"
|
|
8465
|
-
/>
|
|
8287
|
+
<LogoWall title="…" logos={[{ name: '…', src: '…' }]} />
|
|
8466
8288
|
```
|
|
8467
8289
|
|
|
8468
8290
|
### Guidelines
|
|
8469
8291
|
|
|
8470
8292
|
#### When to Use
|
|
8471
8293
|
|
|
8472
|
-
* Show
|
|
8294
|
+
* Show a group of companies as equals under one heading, such as partners, customers or networks.
|
|
8473
8295
|
|
|
8474
8296
|
#### When Not to Use
|
|
8475
8297
|
|
|
8476
|
-
* Use
|
|
8298
|
+
* Use [Hero](/marketing/sections/hero) with its `logos` for a row of logos under a page's title.
|
|
8299
|
+
* Use [Index](/marketing/sections/index) for a collection a visitor can filter, as cards.
|
|
8477
8300
|
|
|
8478
|
-
####
|
|
8301
|
+
#### Pass Each Logo With Its Name
|
|
8479
8302
|
|
|
8480
|
-
|
|
8303
|
+
Pass each logo in `logos` as a `src` or a `logo` node, with the company's `name`.
|
|
8481
8304
|
|
|
8482
|
-
|
|
8305
|
+
#### Fill Every Row
|
|
8483
8306
|
|
|
8484
|
-
|
|
8485
|
-
<span style={{ display: 'block', inlineSize: 200 }}>
|
|
8486
|
-
<Media alt="A figure under the sun, whole" loading="eager" src={whole} />
|
|
8487
|
-
</span>
|
|
8488
|
-
```
|
|
8307
|
+
Pass 6 or 12 logos. The wall sets two, three or six across, so a multiple of six fills every row at every width.
|
|
8489
8308
|
|
|
8490
|
-
**
|
|
8309
|
+
**Do:** Pass six logos, so every row is full.
|
|
8491
8310
|
|
|
8492
8311
|
```tsx
|
|
8493
|
-
<
|
|
8494
|
-
<img
|
|
8495
|
-
alt=""
|
|
8496
|
-
src={wide}
|
|
8497
|
-
style={{ borderRadius: 16, gridArea: '1 / 1', inlineSize: 267, opacity: 0.3 }}
|
|
8498
|
-
/>
|
|
8499
|
-
<span style={{ display: 'block', gridArea: '1 / 1', inlineSize: 200 }}>
|
|
8500
|
-
<Media alt="A figure under the sun, both cut at the edges" loading="eager" src={wide} />
|
|
8501
|
-
</span>
|
|
8502
|
-
</span>
|
|
8312
|
+
<LogoWallSketch kind="full" />
|
|
8503
8313
|
```
|
|
8504
8314
|
|
|
8505
|
-
|
|
8506
|
-
|
|
8507
|
-
In another part's slot, pass Media with only `src` and `alt`. The part sets the corner and the ratio, and in a link or under copy it draws the poster with no Play. Set `alt=""` there, since the part's own text names it.
|
|
8508
|
-
|
|
8509
|
-
#### Give Every Video a Poster
|
|
8315
|
+
**Don't:** Pass four, which leaves one logo alone on the last row.
|
|
8510
8316
|
|
|
8511
|
-
|
|
8317
|
+
```tsx
|
|
8318
|
+
<LogoWallSketch kind="ragged" />
|
|
8319
|
+
```
|
|
8512
8320
|
|
|
8513
|
-
|
|
8321
|
+
### Content
|
|
8514
8322
|
|
|
8515
|
-
|
|
8323
|
+
#### Name the Company, Not the Logo
|
|
8516
8324
|
|
|
8517
|
-
|
|
8325
|
+
Set `name` to the company's name as it writes it. A screen reader already says image, so leave out the word logo.
|
|
8518
8326
|
|
|
8519
|
-
|
|
8327
|
+
**Do:** Write Northwind.
|
|
8520
8328
|
|
|
8521
|
-
|
|
8329
|
+
```tsx
|
|
8330
|
+
<Announce>Northwind, image</Announce>
|
|
8331
|
+
<LogoWallSketch kind="logo" />
|
|
8332
|
+
```
|
|
8522
8333
|
|
|
8523
|
-
|
|
8334
|
+
**Don't:** Write Northwind logo.
|
|
8524
8335
|
|
|
8525
|
-
|
|
8336
|
+
```tsx
|
|
8337
|
+
<Announce>Northwind logo, image</Announce>
|
|
8338
|
+
<LogoWallSketch kind="logo" />
|
|
8339
|
+
```
|
|
8526
8340
|
|
|
8527
8341
|
### Accessibility
|
|
8528
8342
|
|
|
8529
|
-
* **
|
|
8530
|
-
* **
|
|
8531
|
-
* **Play (button):** A button named Play, then the name, then video. A pointer opens it anywhere on the poster.
|
|
8532
|
-
* **Dialog (dialog):** A modal dialog that opens with focus on Close. The page behind it does not scroll.
|
|
8533
|
-
* **Close (Escape):** Escape or Close shuts the dialog and returns focus to Play.
|
|
8534
|
-
* **Reduced Motion (prefers-reduced-motion):** The dialog fades in and out, and the player keeps its size instead of scaling in.
|
|
8343
|
+
* **Region (section):** Renders a [Section](/marketing/sections/section) named by its centered heading.
|
|
8344
|
+
* **Logo List (list):** Each logo is an image named by its company, in a list, so every name is read.
|
|
8535
8345
|
|
|
8536
8346
|
### Related
|
|
8537
8347
|
|
|
8538
8348
|
[Hero](/marketing/sections/hero)
|
|
8539
8349
|
|
|
8540
|
-
Use for a
|
|
8541
|
-
|
|
8542
|
-
[Card](/marketing/sections/card)
|
|
8543
|
-
|
|
8544
|
-
Use for a linked card, whose `media` holds Media at the card's ratio.
|
|
8545
|
-
|
|
8546
|
-
[Story](/marketing/sections/story)
|
|
8547
|
-
|
|
8548
|
-
Use for a customer's story, whose `image` holds Media under the shade.
|
|
8350
|
+
Use for a row of logos under a page's title.
|
|
8549
8351
|
|
|
8550
|
-
[
|
|
8352
|
+
[Index](/marketing/sections/index)
|
|
8551
8353
|
|
|
8552
|
-
Use for
|
|
8354
|
+
Use for a collection a visitor can filter, as cards.
|
|
8553
8355
|
|
|
8554
|
-
[
|
|
8356
|
+
[Section](/marketing/sections/section)
|
|
8555
8357
|
|
|
8556
|
-
Covers
|
|
8358
|
+
Covers the section the wall renders, and its tones.
|
|
8557
8359
|
|
|
8558
8360
|
## Nav
|
|
8559
8361
|
|
|
@@ -9170,37 +8972,43 @@ Covers the eyebrow, title, and description pairs.
|
|
|
9170
8972
|
|
|
9171
8973
|
## Showcase
|
|
9172
8974
|
|
|
9173
|
-
|
|
8975
|
+
One picture that carries the section, with a few short items about it.
|
|
9174
8976
|
|
|
9175
8977
|
*Image: The monitor icon from Tempo Icons in polished chrome, centered on a transparent ground*
|
|
9176
8978
|
|
|
9177
8979
|
### Overview
|
|
9178
8980
|
|
|
9179
|
-
A showcase renders a [Section](/marketing/sections/section) named by its heading, over
|
|
8981
|
+
A showcase renders a [Section](/marketing/sections/section) named by its heading, over one large picture and the short items about it. The picture comes in as a slot, so a page keeps its own canvas, animation or [Media](/marketing/components/media). Every variant sets it on a grey plate with `xl` corners.
|
|
9180
8982
|
|
|
9181
8983
|
Set it on a `page`, `white` or `grey` section. Its items keep dark text, so it has no inverse tone.
|
|
9182
8984
|
|
|
8985
|
+
Count the pictures. One picture for every item is a showcase. A picture per item, read one at a time, is the `accordion` variant, and read all at once it's a [Card](/marketing/sections/card) grid.
|
|
8986
|
+
|
|
9183
8987
|
### Examples
|
|
9184
8988
|
|
|
9185
8989
|
#### Split
|
|
9186
8990
|
|
|
9187
|
-
Two
|
|
8991
|
+
Two or three items in a column beside the picture from 1024px, and under it below 1024px.
|
|
9188
8992
|
|
|
9189
8993
|
```tsx
|
|
9190
|
-
/** Demonstrates a split Marketing showcase: two
|
|
9191
|
-
import { Link, Showcase } from '@tempoxyz/ds/marketing'
|
|
9192
|
-
import
|
|
8994
|
+
/** Demonstrates a split Marketing showcase: two items in a column beside one picture. @module */
|
|
8995
|
+
import { Link, Media, Showcase } from '@tempoxyz/ds/marketing'
|
|
8996
|
+
import globe from '../../../../content/docs/arsenal/mpp/images/flow-and-reveal/mpp-globe.jpg'
|
|
9193
8997
|
|
|
9194
8998
|
export const fill = true
|
|
9195
8999
|
|
|
9196
|
-
// Split sets the items beside the
|
|
9000
|
+
// Split sets the items beside the picture from 1024px, so the example opens at Desktop.
|
|
9197
9001
|
export const width = 'desktop'
|
|
9198
9002
|
|
|
9199
9003
|
export function Demo() {
|
|
9200
9004
|
return (
|
|
9201
|
-
<Showcase
|
|
9005
|
+
<Showcase
|
|
9006
|
+
art={<Media alt="" src={globe} />}
|
|
9007
|
+
eyebrow="Agentic payments"
|
|
9008
|
+
title="Payments that work for AI agents"
|
|
9009
|
+
>
|
|
9202
9010
|
<Showcase.Item
|
|
9203
|
-
|
|
9011
|
+
link={
|
|
9204
9012
|
<Link href="https://mpp.dev" icon="external" tone="secondary">
|
|
9205
9013
|
Explore MPP
|
|
9206
9014
|
</Link>
|
|
@@ -9210,7 +9018,7 @@ export function Demo() {
|
|
|
9210
9018
|
A protocol for machine payments that gives agents the ability to pay for API services.
|
|
9211
9019
|
</Showcase.Item>
|
|
9212
9020
|
<Showcase.Item
|
|
9213
|
-
|
|
9021
|
+
link={
|
|
9214
9022
|
<Link href="https://mercator.sh" icon="external" tone="secondary">
|
|
9215
9023
|
Explore Mercator
|
|
9216
9024
|
</Link>
|
|
@@ -9228,10 +9036,10 @@ export function Demo() {
|
|
|
9228
9036
|
|
|
9229
9037
|
#### Stacked
|
|
9230
9038
|
|
|
9231
|
-
Three
|
|
9039
|
+
Three or four items in a row under the picture from 768px, with a `description` and an `action` under the heading.
|
|
9232
9040
|
|
|
9233
9041
|
```tsx
|
|
9234
|
-
/** Demonstrates a stacked Marketing showcase: three
|
|
9042
|
+
/** Demonstrates a stacked Marketing showcase: three items in a row under one picture, with a description and an action. @module */
|
|
9235
9043
|
import { Button, Showcase } from '@tempoxyz/ds/marketing'
|
|
9236
9044
|
import { Art } from './Art.js'
|
|
9237
9045
|
|
|
@@ -9243,15 +9051,19 @@ export function Demo() {
|
|
|
9243
9051
|
action={<Button.Link href="/contact">Talk with our team</Button.Link>}
|
|
9244
9052
|
art={<Art />}
|
|
9245
9053
|
description="Fund in one currency and pay out in another, in one flow."
|
|
9246
|
-
eyebrow="
|
|
9054
|
+
eyebrow="In practice"
|
|
9247
9055
|
title="Payouts that settle in seconds"
|
|
9248
9056
|
variant="stacked"
|
|
9249
9057
|
>
|
|
9250
|
-
<Showcase.Item title="
|
|
9251
|
-
|
|
9252
|
-
|
|
9058
|
+
<Showcase.Item title="Any currency">
|
|
9059
|
+
Fund with stablecoins or local currency in one account.
|
|
9060
|
+
</Showcase.Item>
|
|
9061
|
+
<Showcase.Item title="Quoted rates">
|
|
9062
|
+
Convert at the rate you see before you send.
|
|
9063
|
+
</Showcase.Item>
|
|
9064
|
+
<Showcase.Item title="Every recipient">
|
|
9065
|
+
Settle to each recipient's bank or wallet.
|
|
9253
9066
|
</Showcase.Item>
|
|
9254
|
-
<Showcase.Item title="Pay out">Settle to each recipient's bank or wallet.</Showcase.Item>
|
|
9255
9067
|
</Showcase>
|
|
9256
9068
|
)
|
|
9257
9069
|
}
|
|
@@ -9259,27 +9071,68 @@ export function Demo() {
|
|
|
9259
9071
|
|
|
9260
9072
|
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Showcase/Stacked.tsx)
|
|
9261
9073
|
|
|
9074
|
+
#### Stacked with Steps
|
|
9075
|
+
|
|
9076
|
+
One [Steps](/marketing/sections/steps) in place of the items, for a sequence that runs in order under the picture. One [Stats](/marketing/sections/stats) takes the same place for figures.
|
|
9077
|
+
|
|
9078
|
+
```tsx
|
|
9079
|
+
/** Demonstrates a stacked Marketing showcase whose items are one Steps: a sequence in order under one picture. @module */
|
|
9080
|
+
import { Link, Showcase, Steps } from '@tempoxyz/ds/marketing'
|
|
9081
|
+
import { Art } from './Art.js'
|
|
9082
|
+
|
|
9083
|
+
export const fill = true
|
|
9084
|
+
|
|
9085
|
+
// The steps sit side by side from 1024px, so the example opens at Desktop.
|
|
9086
|
+
export const width = 'desktop'
|
|
9087
|
+
|
|
9088
|
+
export function Demo() {
|
|
9089
|
+
return (
|
|
9090
|
+
<Showcase
|
|
9091
|
+
action={<Link href="/docs">Read the quickstart</Link>}
|
|
9092
|
+
art={<Art />}
|
|
9093
|
+
eyebrow="Quickstart"
|
|
9094
|
+
title="Send your first payment in minutes"
|
|
9095
|
+
variant="stacked"
|
|
9096
|
+
>
|
|
9097
|
+
<Steps
|
|
9098
|
+
items={[
|
|
9099
|
+
{ description: 'Add the SDK to your app with one command.', title: 'Install the SDK' },
|
|
9100
|
+
{ description: 'Create a test account and fund it.', title: 'Connect an account' },
|
|
9101
|
+
{
|
|
9102
|
+
description: 'Send a stablecoin payment and read its receipt.',
|
|
9103
|
+
title: 'Send a payment',
|
|
9104
|
+
},
|
|
9105
|
+
]}
|
|
9106
|
+
/>
|
|
9107
|
+
</Showcase>
|
|
9108
|
+
)
|
|
9109
|
+
}
|
|
9110
|
+
```
|
|
9111
|
+
|
|
9112
|
+
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Showcase/Steps.tsx)
|
|
9113
|
+
|
|
9262
9114
|
#### Contained
|
|
9263
9115
|
|
|
9264
|
-
|
|
9116
|
+
The heading inside the picture's plate, under the picture, from 1024px. It takes no items.
|
|
9265
9117
|
|
|
9266
9118
|
```tsx
|
|
9267
9119
|
/** Demonstrates a contained Marketing showcase: one picture with its heading inside the plate. @module */
|
|
9268
|
-
import { Showcase } from '@tempoxyz/ds/marketing'
|
|
9120
|
+
import { Button, Showcase } from '@tempoxyz/ds/marketing'
|
|
9269
9121
|
import { Art } from './Art.js'
|
|
9270
9122
|
|
|
9271
9123
|
export const fill = true
|
|
9272
9124
|
|
|
9273
|
-
// Contained plates the heading with the
|
|
9125
|
+
// Contained plates the heading with the picture from 1024px, so the example opens at Desktop.
|
|
9274
9126
|
export const width = 'desktop'
|
|
9275
9127
|
|
|
9276
9128
|
export function Demo() {
|
|
9277
9129
|
return (
|
|
9278
9130
|
<Showcase
|
|
9131
|
+
action={<Button.Link href="/events">Save your seat</Button.Link>}
|
|
9279
9132
|
art={<Art />}
|
|
9280
|
-
description="
|
|
9281
|
-
eyebrow="
|
|
9282
|
-
title="
|
|
9133
|
+
description="Two days of talks and workshops for builders."
|
|
9134
|
+
eyebrow="Events"
|
|
9135
|
+
title="Tempo Summit comes to New York"
|
|
9283
9136
|
variant="contained"
|
|
9284
9137
|
/>
|
|
9285
9138
|
)
|
|
@@ -9288,13 +9141,81 @@ export function Demo() {
|
|
|
9288
9141
|
|
|
9289
9142
|
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Showcase/Contained.tsx)
|
|
9290
9143
|
|
|
9144
|
+
#### Accordion
|
|
9145
|
+
|
|
9146
|
+
Three to six rows beside the plate, each with its own picture. From 1024px one row is open at a time, and opening a row switches the picture. Below 1024px every row stands open over its picture.
|
|
9147
|
+
|
|
9148
|
+
```tsx
|
|
9149
|
+
/** Demonstrates an accordion Marketing showcase: three rows that each switch the picture. @module */
|
|
9150
|
+
import { Link, Showcase, style } from '@tempoxyz/ds/marketing'
|
|
9151
|
+
|
|
9152
|
+
export const fill = true
|
|
9153
|
+
|
|
9154
|
+
// The rows open one at a time from 1024px, so the example opens at Desktop.
|
|
9155
|
+
export const width = 'desktop'
|
|
9156
|
+
|
|
9157
|
+
export function Demo() {
|
|
9158
|
+
return (
|
|
9159
|
+
<Showcase
|
|
9160
|
+
eyebrow="Wallets"
|
|
9161
|
+
items={[
|
|
9162
|
+
{
|
|
9163
|
+
description: 'Sign in with a passkey instead of a seed phrase.',
|
|
9164
|
+
link: <Link href="/wallets">Explore passkeys</Link>,
|
|
9165
|
+
media: <Mark shape="circle" />,
|
|
9166
|
+
title: 'Sign in with a passkey',
|
|
9167
|
+
},
|
|
9168
|
+
{
|
|
9169
|
+
description: 'Pay network fees in the stablecoin you already hold.',
|
|
9170
|
+
media: <Mark shape="pill" />,
|
|
9171
|
+
title: 'Pay in any stablecoin',
|
|
9172
|
+
},
|
|
9173
|
+
{
|
|
9174
|
+
description: 'Restore your wallet and its balances on a new phone.',
|
|
9175
|
+
media: <Mark shape="square" />,
|
|
9176
|
+
title: 'Recover on a new device',
|
|
9177
|
+
},
|
|
9178
|
+
]}
|
|
9179
|
+
title="A wallet that works everywhere"
|
|
9180
|
+
variant="accordion"
|
|
9181
|
+
/>
|
|
9182
|
+
)
|
|
9183
|
+
}
|
|
9184
|
+
|
|
9185
|
+
/** A line mark centred on the grey plate, standing in for a row's picture. */
|
|
9186
|
+
export function Mark(props: { shape: 'circle' | 'pill' | 'square' }) {
|
|
9187
|
+
return (
|
|
9188
|
+
<svg
|
|
9189
|
+
aria-hidden="true"
|
|
9190
|
+
fill="none"
|
|
9191
|
+
height="96"
|
|
9192
|
+
stroke="currentColor"
|
|
9193
|
+
strokeWidth="1.5"
|
|
9194
|
+
viewBox="0 0 96 96"
|
|
9195
|
+
width="96"
|
|
9196
|
+
{...styles.mark()}
|
|
9197
|
+
>
|
|
9198
|
+
{props.shape === 'circle' && <circle cx="48" cy="48" r="40" />}
|
|
9199
|
+
{props.shape === 'pill' && <rect height="40" rx="20" width="88" x="4" y="28" />}
|
|
9200
|
+
{props.shape === 'square' && <rect height="72" rx="16" width="72" x="12" y="12" />}
|
|
9201
|
+
</svg>
|
|
9202
|
+
)
|
|
9203
|
+
}
|
|
9204
|
+
|
|
9205
|
+
namespace styles {
|
|
9206
|
+
export const mark = style({ color: 'content.primary' })
|
|
9207
|
+
}
|
|
9208
|
+
```
|
|
9209
|
+
|
|
9210
|
+
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Showcase/Accordion.tsx)
|
|
9211
|
+
|
|
9291
9212
|
### Anatomy
|
|
9292
9213
|
|
|
9293
9214
|
```tsx
|
|
9294
9215
|
import { Showcase } from '@tempoxyz/ds/marketing'
|
|
9295
9216
|
|
|
9296
|
-
<Showcase art={<Art />} title="
|
|
9297
|
-
<Showcase.Item title="
|
|
9217
|
+
<Showcase art={<Art />} title="…">
|
|
9218
|
+
<Showcase.Item title="…" />
|
|
9298
9219
|
</Showcase>
|
|
9299
9220
|
```
|
|
9300
9221
|
|
|
@@ -9302,25 +9223,35 @@ import { Showcase } from '@tempoxyz/ds/marketing'
|
|
|
9302
9223
|
|
|
9303
9224
|
#### When to Use
|
|
9304
9225
|
|
|
9305
|
-
*
|
|
9226
|
+
* One picture makes the point, and the copy is a heading and a few short items about that picture.
|
|
9227
|
+
* Several items each bring a picture, and seeing one at a time is enough: use `variant="accordion"`.
|
|
9306
9228
|
|
|
9307
9229
|
#### When Not to Use
|
|
9308
9230
|
|
|
9309
|
-
* Use a [Card](/marketing/sections/card)
|
|
9310
|
-
* Use [Steps](/marketing/sections/steps) for
|
|
9311
|
-
* Use [
|
|
9231
|
+
* Use a [Card](/marketing/sections/card) grid when each item has its own picture and all of them show at once.
|
|
9232
|
+
* Use [Steps](/marketing/sections/steps) for items in order with no picture.
|
|
9233
|
+
* Use [Story](/marketing/sections/story) for someone's words over a photo.
|
|
9234
|
+
* Use [Bleed](/marketing/sections/bleed) for a picture that needs no heading.
|
|
9235
|
+
* Use [FAQ](/marketing/sections/faq) when each answer is text with no picture.
|
|
9312
9236
|
|
|
9313
9237
|
#### Set the Variant by the Content's Shape
|
|
9314
9238
|
|
|
9315
|
-
|
|
9239
|
+
Pick the variant by how many items the picture carries, and whether it changes. At three items, pick `stacked` when they run in order, and `split` when they don't.
|
|
9240
|
+
|
|
9241
|
+
| Variant | Items | Pick it when |
|
|
9242
|
+
| ----------- | ----------------------------------- | ------------------------------------ |
|
|
9243
|
+
| `contained` | None | The picture says it alone |
|
|
9244
|
+
| `split` | 2–3 beside the picture | A few points explain the picture |
|
|
9245
|
+
| `stacked` | 3–4 under it, or one Steps or Stats | More points, a sequence, or figures |
|
|
9246
|
+
| `accordion` | 3–6, each with its own picture | One item at a time beats all at once |
|
|
9316
9247
|
|
|
9317
|
-
**Do:** Set four
|
|
9248
|
+
**Do:** Set four items in a row under the picture with `stacked`.
|
|
9318
9249
|
|
|
9319
9250
|
```tsx
|
|
9320
9251
|
<ShowcaseSketch kind="stacked" />
|
|
9321
9252
|
```
|
|
9322
9253
|
|
|
9323
|
-
**Don't:** Squeeze the same four
|
|
9254
|
+
**Don't:** Squeeze the same four items into the column beside the picture with `split`.
|
|
9324
9255
|
|
|
9325
9256
|
```tsx
|
|
9326
9257
|
<ShowcaseSketch kind="split" />
|
|
@@ -9328,7 +9259,7 @@ Use `split` for two or three tools beside one picture, `stacked` for three or fo
|
|
|
9328
9259
|
|
|
9329
9260
|
#### Give Each Item One Line & One Link
|
|
9330
9261
|
|
|
9331
|
-
Pass each
|
|
9262
|
+
Pass each item as a `Showcase.Item` with a one-sentence line, and its link as a [Link](/marketing/components/link) in `link`. Give every item a line, or none.
|
|
9332
9263
|
|
|
9333
9264
|
**Do:** Give an item one line and one link.
|
|
9334
9265
|
|
|
@@ -9342,148 +9273,92 @@ Pass each step, card or tool as a `Showcase.Item` with a one-sentence line, and
|
|
|
9342
9273
|
<ShowcaseSketch kind="paragraph" />
|
|
9343
9274
|
```
|
|
9344
9275
|
|
|
9345
|
-
|
|
9346
|
-
|
|
9347
|
-
* **Eyebrow:** A few words that name the section, such as Agentic payments.
|
|
9348
|
-
* **Title:** One line that says what the feature does.
|
|
9349
|
-
* **Items:** Up to four.
|
|
9350
|
-
* **Item title:** One or two words, such as a product or step name.
|
|
9351
|
-
* **Item link:** Explore and the item's name, such as Explore MPP.
|
|
9352
|
-
|
|
9353
|
-
### Accessibility
|
|
9354
|
-
|
|
9355
|
-
* **Region (section):** Renders a section named by its `h2`, generated unless `titleId` sets it.
|
|
9356
|
-
* **Items (h3):** Each item is an `<article>` whose title is an `h3` under the section's `h2`.
|
|
9357
|
-
|
|
9358
|
-
#### Your Responsibilities
|
|
9359
|
-
|
|
9360
|
-
* **Describe or Hide the Art:** Give meaningful art its text alternative, and hide decorative art from screen readers.
|
|
9361
|
-
* **Reduced Motion (prefers-reduced-motion):** The part holds still. Under reduced motion, stop moving art or hold its last frame.
|
|
9362
|
-
|
|
9363
|
-
### Related
|
|
9364
|
-
|
|
9365
|
-
[Section](/marketing/sections/section)
|
|
9366
|
-
|
|
9367
|
-
Covers the section a showcase renders, its heading and its tones.
|
|
9368
|
-
|
|
9369
|
-
[Link](/marketing/components/link)
|
|
9370
|
-
|
|
9371
|
-
Covers each item's link in `action`.
|
|
9372
|
-
|
|
9373
|
-
[Steps](/marketing/sections/steps)
|
|
9374
|
-
|
|
9375
|
-
Covers an ordered sequence of steps, shown without a large picture.
|
|
9376
|
-
|
|
9377
|
-
## Sources
|
|
9378
|
-
|
|
9379
|
-
Lists every page and file a page draws on, each as a link.
|
|
9276
|
+
#### Give Every Row Its Picture
|
|
9380
9277
|
|
|
9381
|
-
|
|
9278
|
+
In `accordion`, pass each row's picture in `media`, such as a [Media](/marketing/components/media) with `alt=""`, which fills the plate. A row without one opens to an empty plate.
|
|
9382
9279
|
|
|
9383
|
-
|
|
9384
|
-
|
|
9385
|
-
A heading over one row per page or file the page draws on. Each row sets the title over its address and links to it.
|
|
9386
|
-
|
|
9387
|
-
### Examples
|
|
9388
|
-
|
|
9389
|
-
#### Default
|
|
9390
|
-
|
|
9391
|
-
Pass one `Sources.Item` per page or file, with its address as `detail`.
|
|
9280
|
+
**Do:** Give every row a picture, so the open row fills the plate.
|
|
9392
9281
|
|
|
9393
9282
|
```tsx
|
|
9394
|
-
/**
|
|
9395
|
-
|
|
9283
|
+
/**
|
|
9284
|
+
* Do example for "Give Every Row Its Picture" on the Showcase page.
|
|
9285
|
+
* The open row's picture fills the plate.
|
|
9286
|
+
* @module
|
|
9287
|
+
*/
|
|
9288
|
+
import { Mini } from '../../../demos/Marketing/Showcase/AccordionMini.js'
|
|
9396
9289
|
|
|
9290
|
+
/** Renders the static preview, which the guideline card shows inert. */
|
|
9397
9291
|
export function Demo() {
|
|
9398
|
-
return
|
|
9399
|
-
<Sources heading="h3" titleId="sources-demo-title">
|
|
9400
|
-
<Sources.Item detail="/docs/guide/fee-payer" href="#fee-payer">
|
|
9401
|
-
Sponsor fees with a fee payer
|
|
9402
|
-
</Sources.Item>
|
|
9403
|
-
<Sources.Item detail="/docs/api/transactions" href="#transactions">
|
|
9404
|
-
Send a transaction
|
|
9405
|
-
</Sources.Item>
|
|
9406
|
-
<Sources.Item detail="tempoxyz/tempo-ts/src/viem/Actions/fee.ts" href="#fee-ts">
|
|
9407
|
-
fee.ts
|
|
9408
|
-
</Sources.Item>
|
|
9409
|
-
</Sources>
|
|
9410
|
-
)
|
|
9292
|
+
return <Mini />
|
|
9411
9293
|
}
|
|
9412
9294
|
```
|
|
9413
9295
|
|
|
9414
|
-
|
|
9415
|
-
|
|
9416
|
-
### Anatomy
|
|
9296
|
+
**Don't:** Leave a row without a picture, which opens to an empty plate.
|
|
9417
9297
|
|
|
9418
9298
|
```tsx
|
|
9419
|
-
|
|
9299
|
+
/**
|
|
9300
|
+
* Don't example for "Give Every Row Its Picture" on the Showcase page.
|
|
9301
|
+
* The open row shows an empty plate.
|
|
9302
|
+
* @module
|
|
9303
|
+
*/
|
|
9304
|
+
import { Mini } from '../../../demos/Marketing/Showcase/AccordionMini.js'
|
|
9420
9305
|
|
|
9421
|
-
|
|
9422
|
-
|
|
9423
|
-
|
|
9306
|
+
/** Renders the static preview, which the guideline card shows inert. */
|
|
9307
|
+
export function Demo() {
|
|
9308
|
+
return <Mini art="empty" />
|
|
9309
|
+
}
|
|
9424
9310
|
```
|
|
9425
9311
|
|
|
9426
|
-
### Guidelines
|
|
9427
|
-
|
|
9428
|
-
#### When to Use
|
|
9429
|
-
|
|
9430
|
-
* Close a page that draws on other pages or files, such as a generated answer or a report.
|
|
9431
|
-
|
|
9432
|
-
#### When Not to Use
|
|
9433
|
-
|
|
9434
|
-
* Use [Article Body](/marketing/sections/article-body) footnotes for a post's citations, which sit in its text.
|
|
9435
|
-
* Use [Article Rail](/marketing/sections/article-rail) for the contents of a page.
|
|
9436
|
-
* Use [Card](/marketing/sections/card) to recommend further reading.
|
|
9437
|
-
|
|
9438
|
-
#### List What the Page Draws On
|
|
9439
|
-
|
|
9440
|
-
List every page and file the page draws on, in the order it uses them, and never one it doesn't. On a generated answer, give the list an `id`, such as `sources`, and pass `#sources` as its [Answer Label](/marketing/components/answer-label)'s `sourcesHref`, so the label's count links to the rows it counts.
|
|
9441
|
-
|
|
9442
9312
|
### Content
|
|
9443
9313
|
|
|
9444
|
-
|
|
9314
|
+
* **Title:** Required. One line that says what the picture shows.
|
|
9315
|
+
* **Description:** Optional. One line under the title.
|
|
9316
|
+
* **Label:** Optional, in `eyebrow`. A few words that name the section.
|
|
9317
|
+
* **Action:** Optional. One, under the heading.
|
|
9318
|
+
* **Picture:** Required, in `art`, or in each row's `media` in `accordion`. A photo or art.
|
|
9319
|
+
* **Figure:** None in an item. Pass one Stats as the items of `stacked`.
|
|
9320
|
+
* **Link:** None on the section. Use the action, or a link on each item.
|
|
9321
|
+
* **Item title:** Required. One to four words.
|
|
9322
|
+
* **Item line:** One sentence, on every item or on none. Required on an `accordion` row.
|
|
9323
|
+
* **Item link:** Optional. Two or three words that name where it goes.
|
|
9445
9324
|
|
|
9446
|
-
|
|
9325
|
+
### Accessibility
|
|
9447
9326
|
|
|
9448
|
-
**
|
|
9327
|
+
* **Region (section):** Renders a section named by its `h2`, generated unless `titleId` sets it.
|
|
9328
|
+
* **Items (h3):** Each item is an `<article>` whose title is an `h3` under the section's `h2`.
|
|
9329
|
+
* **Row Name (aria-expanded):** In `accordion`, each name is a button in an `h3` that names its panel.
|
|
9330
|
+
* **Open a Row (Enter or Space):** Tab moves between the names, and Enter or Space opens one.
|
|
9331
|
+
* **Closed Row (until-found):** A closed row's text stays in the page, and find in page opens it.
|
|
9332
|
+
* **Row Picture (aria-hidden):** Hidden from screen readers, so the name and line carry the meaning.
|
|
9333
|
+
* **Narrow Widths (h3):** Below 1024px, every name is a plain heading over its open row.
|
|
9334
|
+
* **Reduced Motion (0ms):** The rows' picture and text stay put, and the open row switches at once.
|
|
9449
9335
|
|
|
9450
|
-
|
|
9451
|
-
<Sources heading="h3">
|
|
9452
|
-
<Sources.Item detail="/docs/guide/fee-payer" href="#">
|
|
9453
|
-
Sponsor fees with a fee payer
|
|
9454
|
-
</Sources.Item>
|
|
9455
|
-
</Sources>
|
|
9456
|
-
```
|
|
9336
|
+
#### Your Responsibilities
|
|
9457
9337
|
|
|
9458
|
-
**
|
|
9338
|
+
* **Describe or Hide the Picture:** Give a meaningful picture its text alternative, and hide a decorative one.
|
|
9339
|
+
* **Hold Moving Art (prefers-reduced-motion):** Under reduced motion, stop moving art or hold its last frame.
|
|
9459
9340
|
|
|
9460
|
-
|
|
9461
|
-
<Sources heading="h3">
|
|
9462
|
-
<Sources.Item detail="/docs/guide/fee-payer" href="#">
|
|
9463
|
-
How an app can pay its users' fees for them
|
|
9464
|
-
</Sources.Item>
|
|
9465
|
-
</Sources>
|
|
9466
|
-
```
|
|
9341
|
+
### Related
|
|
9467
9342
|
|
|
9468
|
-
|
|
9343
|
+
[Section](/marketing/sections/section)
|
|
9344
|
+
|
|
9345
|
+
Covers the section a showcase renders, its heading and its tones.
|
|
9469
9346
|
|
|
9470
|
-
|
|
9471
|
-
* **Rows (link):** Each row is one link of at least the minimum hit height, named by its title and address.
|
|
9472
|
-
* **Section Name (titleId):** Pass `titleId` as the section's `aria-labelledby`.
|
|
9347
|
+
[Card](/marketing/sections/card)
|
|
9473
9348
|
|
|
9474
|
-
|
|
9349
|
+
Use when each item has its own picture and all show at once.
|
|
9475
9350
|
|
|
9476
|
-
[
|
|
9351
|
+
[Steps](/marketing/sections/steps)
|
|
9477
9352
|
|
|
9478
|
-
Use for the
|
|
9353
|
+
Use for items in order, under the picture in `stacked` or on their own.
|
|
9479
9354
|
|
|
9480
|
-
[
|
|
9355
|
+
[Media](/marketing/components/media)
|
|
9481
9356
|
|
|
9482
|
-
Use for
|
|
9357
|
+
Use for the picture in `art`, or in each row's `media`.
|
|
9483
9358
|
|
|
9484
|
-
[
|
|
9359
|
+
[Link](/marketing/components/link)
|
|
9485
9360
|
|
|
9486
|
-
Use for
|
|
9361
|
+
Use for each item's link in `link`.
|
|
9487
9362
|
|
|
9488
9363
|
## Statement
|
|
9489
9364
|
|