@tempoxyz/ds 3.3.20261201015246 → 3.4.20261201020124
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/docs/AGENTS.md +1 -1
- package/dist/docs/marketing.md +184 -113
- 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/fonts/HBSet-Light.woff2 +0 -0
- package/dist/fonts/HBSet-Regular.woff2 +0 -0
- package/dist/fonts/TempoJetBrainsMono-Light.woff2 +0 -0
- package/dist/fonts/TempoJetBrainsMono-Medium.woff2 +0 -0
- package/dist/fonts/TempoJetBrainsMono-Regular.woff2 +0 -0
- package/dist/marketing/components/ArticleBody.css +1 -1
- package/dist/marketing/components/ArticleBody.js.zyzz.json +1 -1
- package/dist/marketing/components/ArticleHero.js.zyzz.json +1 -1
- package/dist/marketing/components/ArticleIndex.js.zyzz.json +1 -1
- package/dist/marketing/components/ArticleRail.js.zyzz.json +1 -1
- package/dist/marketing/components/AsideLayout.js.zyzz.json +1 -1
- package/dist/marketing/components/Breadcrumbs.js.zyzz.json +1 -1
- package/dist/marketing/components/Button.js.zyzz.json +1 -1
- package/dist/marketing/components/Card.js.zyzz.json +1 -1
- package/dist/marketing/components/Contact.js.zyzz.json +1 -1
- package/dist/marketing/components/Cta.js.zyzz.json +1 -1
- package/dist/marketing/components/CustomerStoryFeature.js.zyzz.json +1 -1
- package/dist/marketing/components/Faq.css +1 -1
- package/dist/marketing/components/Faq.js.zyzz.json +1 -1
- package/dist/marketing/components/FeatureAccordion.js.zyzz.json +1 -1
- package/dist/marketing/components/Field.css +1 -1
- package/dist/marketing/components/Field.d.ts +41 -10
- package/dist/marketing/components/Field.d.ts.map +1 -1
- package/dist/marketing/components/Field.js +39 -16
- package/dist/marketing/components/Field.js.map +1 -1
- package/dist/marketing/components/Field.js.zyzz.json +1 -1
- package/dist/marketing/components/Footer.d.ts +2 -2
- package/dist/marketing/components/Footer.js +2 -2
- package/dist/marketing/components/Footer.js.zyzz.json +1 -1
- package/dist/marketing/components/Hero.js.zyzz.json +1 -1
- package/dist/marketing/components/LeadCapture.js.zyzz.json +1 -1
- package/dist/marketing/components/Link.css +1 -1
- package/dist/marketing/components/Link.d.ts +8 -4
- package/dist/marketing/components/Link.d.ts.map +1 -1
- package/dist/marketing/components/Link.js +10 -8
- package/dist/marketing/components/Link.js.map +1 -1
- package/dist/marketing/components/Link.js.zyzz.json +1 -1
- package/dist/marketing/components/Logo.js.zyzz.json +1 -1
- package/dist/marketing/components/LogoWall.js.zyzz.json +1 -1
- package/dist/marketing/components/Mark.js.zyzz.json +1 -1
- package/dist/marketing/components/Media.js.zyzz.json +1 -1
- package/dist/marketing/components/Nav.js.zyzz.json +1 -1
- package/dist/marketing/components/PartnersIndex.js.zyzz.json +1 -1
- package/dist/marketing/components/QuoteBand.js.zyzz.json +1 -1
- package/dist/marketing/components/Section.js.zyzz.json +1 -1
- package/dist/marketing/components/SectionHeading.js.zyzz.json +1 -1
- package/dist/marketing/components/Showcase.js.zyzz.json +1 -1
- package/dist/marketing/components/Stats.js.zyzz.json +1 -1
- package/dist/marketing/components/Steps.css +1 -1
- package/dist/marketing/components/Steps.js.zyzz.json +1 -1
- package/dist/marketing/components/SymbolTile.js.zyzz.json +1 -1
- package/dist/marketing/components/Tab.css +1 -1
- package/dist/marketing/components/Tab.d.ts +42 -35
- package/dist/marketing/components/Tab.d.ts.map +1 -1
- package/dist/marketing/components/Tab.js +4 -3
- package/dist/marketing/components/Tab.js.map +1 -1
- package/dist/marketing/components/Tab.js.zyzz.json +1 -1
- package/dist/marketing/components/Table.js.zyzz.json +1 -1
- package/dist/marketing/components/Tag.d.ts +6 -5
- package/dist/marketing/components/Tag.d.ts.map +1 -1
- package/dist/marketing/components/Tag.js +2 -2
- package/dist/marketing/components/Tag.js.map +1 -1
- package/dist/marketing/components/Tag.js.zyzz.json +1 -1
- package/dist/marketing/components/internal/Hint.js.zyzz.json +1 -1
- package/dist/marketing/icons/ArrowRight.d.ts +11 -0
- package/dist/marketing/icons/ArrowRight.d.ts.map +1 -0
- package/dist/marketing/icons/ArrowRight.js +5 -0
- package/dist/marketing/icons/ArrowRight.js.map +1 -0
- package/dist/marketing/index.js.zyzz.json +1 -1
- package/dist/marketing/styles.js.zyzz.json +1 -1
- package/dist/marketing/vars.d.ts +2 -2
- package/dist/marketing/vars.d.ts.map +1 -1
- package/dist/marketing/vars.js.map +1 -1
- package/dist/marketing/vars.js.zyzz.json +1 -1
- package/dist/marketing/zyzz.config.d.ts +10 -10
- package/dist/marketing/zyzz.config.js +6 -6
- package/dist/marketing/zyzz.config.js.map +1 -1
- package/dist/marketing/zyzz.config.js.zyzz.json +1 -1
- package/package.json +22 -2
- package/src/fonts/HBSet-Light.woff2 +0 -0
- package/src/fonts/HBSet-Regular.woff2 +0 -0
- package/src/fonts/README.md +15 -0
- package/src/fonts/TempoJetBrainsMono-Light.woff2 +0 -0
- package/src/fonts/TempoJetBrainsMono-Medium.woff2 +0 -0
- package/src/fonts/TempoJetBrainsMono-Regular.woff2 +0 -0
- package/src/marketing/components/Field.tsx +97 -13
- package/src/marketing/components/Footer.tsx +2 -2
- package/src/marketing/components/Link.tsx +11 -4
- package/src/marketing/components/Tab.tsx +61 -49
- package/src/marketing/components/Tag.tsx +6 -5
- package/src/marketing/icons/ArrowRight.tsx +30 -0
- package/src/marketing/vars.ts +2 -3
- package/src/marketing/zyzz.config.ts +19 -56
package/dist/docs/marketing.md
CHANGED
|
@@ -108,7 +108,7 @@ export default defineConfig({
|
|
|
108
108
|
})
|
|
109
109
|
```
|
|
110
110
|
|
|
111
|
-
Run the existing dev or build command. The plugin emits the Marketing variables, the Pilat and JetBrains Mono fonts, and keyframes once, and each module emits its own rules. You import no stylesheet.
|
|
111
|
+
Run the existing dev or build command. The plugin emits the Marketing variables, the Pilat, HB Set, and Tempo JetBrains Mono fonts, and keyframes once, and each module emits its own rules. You import no stylesheet.
|
|
112
112
|
|
|
113
113
|
With `ssr.noExternal`, the plugin reads the library's contracts in a server build.
|
|
114
114
|
|
|
@@ -538,6 +538,8 @@ Set `appearance="inverse"` in a dark section. The `primary` fill turns near-whit
|
|
|
538
538
|
/** Demonstrates Marketing buttons in a dark section. @module */
|
|
539
539
|
import { Button, style } from '@tempoxyz/ds/marketing'
|
|
540
540
|
|
|
541
|
+
export const surface = 'inverse'
|
|
542
|
+
|
|
541
543
|
export function Demo() {
|
|
542
544
|
return (
|
|
543
545
|
<div {...styles.section()}>
|
|
@@ -568,7 +570,7 @@ namespace styles {
|
|
|
568
570
|
|
|
569
571
|
#### Layout
|
|
570
572
|
|
|
571
|
-
Set `layout` to `navigation` in the site header, `card` in a card, where the label may wrap, or `carousel` for a round icon-only paging control. The round layouts size the glyph they hold to their circle.
|
|
573
|
+
Set `layout` to `navigation` in the site header, `card` in a card, where the label may wrap, or `carousel` for a round icon-only paging control. The round layouts size the [Tempo Icons](/marketing/foundations/iconography) glyph they hold to their circle.
|
|
572
574
|
|
|
573
575
|
```tsx
|
|
574
576
|
/** Demonstrates the navigation, card, and carousel layouts of the Marketing Button. @module */
|
|
@@ -610,6 +612,8 @@ Set `appearance="overlay"` over a photo or video. The `playback` layout draws th
|
|
|
610
612
|
import { PlayIcon } from '@tempoxyz/ds/arsenal/icons'
|
|
611
613
|
import { Button, style } from '@tempoxyz/ds/marketing'
|
|
612
614
|
|
|
615
|
+
export const surface = 'overlay'
|
|
616
|
+
|
|
613
617
|
export function Demo() {
|
|
614
618
|
return (
|
|
615
619
|
<div {...styles.photo()}>
|
|
@@ -708,8 +712,8 @@ Follow the `primary` button with one `secondary` button at most, so the main act
|
|
|
708
712
|
|
|
709
713
|
Give buttons side by side one size.
|
|
710
714
|
|
|
711
|
-
* **Heroes
|
|
712
|
-
* **Sections
|
|
715
|
+
* **Heroes & Closing Bands (large):** The actions that lead a page or close it, such as a hero's pair.
|
|
716
|
+
* **Sections & Cards (medium):** The default, for an action inside a section or a card.
|
|
713
717
|
* **Dense Rows (small):** An action in a dense row, such as the footer's language picker.
|
|
714
718
|
|
|
715
719
|
#### Show Progress With Busy
|
|
@@ -765,7 +769,7 @@ Labels a text control, sets its submit action, and shows its messages.
|
|
|
765
769
|
|
|
766
770
|
### Overview
|
|
767
771
|
|
|
768
|
-
A labeled text field for a marketing form, such as the contact form, a newsletter sign-up, or a report's download. Its filled box
|
|
772
|
+
A labeled text field for a marketing form, such as the contact form, a newsletter sign-up, or a report's download. Its filled box takes the large [Button](/marketing/components/button)'s corner, so a field and its action share one shape.
|
|
769
773
|
|
|
770
774
|
### Examples
|
|
771
775
|
|
|
@@ -863,6 +867,8 @@ Set `appearance="inverse"` on `Field.Root` in a dark section, such as the [Foote
|
|
|
863
867
|
import { Button, Field, style } from '@tempoxyz/ds/marketing'
|
|
864
868
|
import { useState } from 'react'
|
|
865
869
|
|
|
870
|
+
export const surface = 'inverse'
|
|
871
|
+
|
|
866
872
|
export function Demo() {
|
|
867
873
|
const [busy, setBusy] = useState(false)
|
|
868
874
|
const [email, setEmail] = useState('')
|
|
@@ -925,6 +931,75 @@ namespace styles {
|
|
|
925
931
|
|
|
926
932
|
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Field/Inverse.tsx)
|
|
927
933
|
|
|
934
|
+
#### Condensed
|
|
935
|
+
|
|
936
|
+
For the [Footer](/marketing/sections/footer)'s sign-up only. Set `condensed` on `Field.Control` and pass a `Field.Submit` with an `aria-label` in `action`. The arrow button sits inside the end of the 48px box.
|
|
937
|
+
|
|
938
|
+
```tsx
|
|
939
|
+
/** Demonstrates the Marketing condensed field, the footer's sign-up, whose arrow submit runs, then confirms. @module */
|
|
940
|
+
import { Field, style } from '@tempoxyz/ds/marketing'
|
|
941
|
+
import { useState } from 'react'
|
|
942
|
+
|
|
943
|
+
export function Demo() {
|
|
944
|
+
const [busy, setBusy] = useState(false)
|
|
945
|
+
const [email, setEmail] = useState('')
|
|
946
|
+
const [subscribed, setSubscribed] = useState(false)
|
|
947
|
+
|
|
948
|
+
return (
|
|
949
|
+
<div {...styles.section()}>
|
|
950
|
+
<form
|
|
951
|
+
onSubmit={(event) => {
|
|
952
|
+
event.preventDefault()
|
|
953
|
+
setBusy(true)
|
|
954
|
+
setSubscribed(false)
|
|
955
|
+
|
|
956
|
+
// Stands in for the site's request. This example sends nothing.
|
|
957
|
+
setTimeout(() => {
|
|
958
|
+
setBusy(false)
|
|
959
|
+
setEmail('')
|
|
960
|
+
setSubscribed(true)
|
|
961
|
+
}, 1200)
|
|
962
|
+
}}
|
|
963
|
+
{...styles.form()}
|
|
964
|
+
>
|
|
965
|
+
<Field.Root appearance="inverse" name="email">
|
|
966
|
+
<Field.Label>Email for monthly updates</Field.Label>
|
|
967
|
+
<Field.Control
|
|
968
|
+
action={<Field.Submit aria-label="Subscribe" busy={busy} />}
|
|
969
|
+
autoComplete="email"
|
|
970
|
+
condensed
|
|
971
|
+
onValueChange={setEmail}
|
|
972
|
+
placeholder="you@company.com"
|
|
973
|
+
readOnly={busy}
|
|
974
|
+
required
|
|
975
|
+
type="email"
|
|
976
|
+
value={email}
|
|
977
|
+
/>
|
|
978
|
+
<Field.Error>Enter a valid email.</Field.Error>
|
|
979
|
+
<Field.Status>
|
|
980
|
+
{subscribed && 'You’re subscribed. Check your inbox to confirm.'}
|
|
981
|
+
</Field.Status>
|
|
982
|
+
</Field.Root>
|
|
983
|
+
</form>
|
|
984
|
+
</div>
|
|
985
|
+
)
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
namespace styles {
|
|
989
|
+
export const form = style({ maxWidth: '480', width: 'full' })
|
|
990
|
+
|
|
991
|
+
export const section = style({
|
|
992
|
+
backgroundColor: 'inverse.background.primary',
|
|
993
|
+
borderRadius: 'lg',
|
|
994
|
+
boxSizing: 'border-box',
|
|
995
|
+
padding: '24',
|
|
996
|
+
width: 'full',
|
|
997
|
+
})
|
|
998
|
+
}
|
|
999
|
+
```
|
|
1000
|
+
|
|
1001
|
+
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Field/Condensed.tsx)
|
|
1002
|
+
|
|
928
1003
|
#### States
|
|
929
1004
|
|
|
930
1005
|
Each state changes a tint, a mark, or the action, never the size, so the row holds still.
|
|
@@ -934,7 +1009,7 @@ Each state changes a tint, a mark, or the action, never the size, so the row hol
|
|
|
934
1009
|
* **Pressed (control.tonal.press):** A press on the text tints the box a step further, until the release.
|
|
935
1010
|
* **Focus (:focus-visible):** Focus holds the hover tint, and keyboard focus fades the ring in around the box.
|
|
936
1011
|
* **Filled (data-filled):** The value reads in the primary color on the rest tint, as the label does.
|
|
937
|
-
* **Required (required):** A submit with the text empty shows the error.
|
|
1012
|
+
* **Required (required):** A submit with the text empty shows the error. Say in the label which fields are required.
|
|
938
1013
|
* **Invalid (Field.Error):** The error marks its message with a red dot and joins the control's description.
|
|
939
1014
|
* **Disabled (disabled):** The box dims to 40% and leaves the tab order. Disable the action with it.
|
|
940
1015
|
* **Read-Only (readOnly):** The value reads at full strength, and the box takes no tint but keeps its ring.
|
|
@@ -1047,6 +1122,8 @@ The same states on a dark ground.
|
|
|
1047
1122
|
/** Demonstrates every state of the Marketing inline field on a dark ground. @module */
|
|
1048
1123
|
import { Sheet } from './States.js'
|
|
1049
1124
|
|
|
1125
|
+
export const surface = 'inverse'
|
|
1126
|
+
|
|
1050
1127
|
export function Demo() {
|
|
1051
1128
|
return <Sheet appearance="inverse" />
|
|
1052
1129
|
}
|
|
@@ -1213,6 +1290,7 @@ import { Field } from '@tempoxyz/ds/marketing'
|
|
|
1213
1290
|
<Field.Root>
|
|
1214
1291
|
<Field.Label />
|
|
1215
1292
|
<Field.Control />
|
|
1293
|
+
<Field.Submit />
|
|
1216
1294
|
<Field.Error />
|
|
1217
1295
|
<Field.Status />
|
|
1218
1296
|
</Field.Root>
|
|
@@ -1231,11 +1309,11 @@ import { Field } from '@tempoxyz/ds/marketing'
|
|
|
1231
1309
|
* Use [Tab](/marketing/components/tab) to choose one of a few fixed filters.
|
|
1232
1310
|
* Use [Button](/marketing/components/button) for an action that needs no typed value.
|
|
1233
1311
|
|
|
1234
|
-
####
|
|
1312
|
+
#### Give Every Control a Visible Label
|
|
1235
1313
|
|
|
1236
|
-
|
|
1314
|
+
A placeholder disappears on the first keystroke. Use it only for a format example, such as <you@company.com>, and name the control in a `Field.Label`.
|
|
1237
1315
|
|
|
1238
|
-
**Do:** Name the field above it, and keep the placeholder as a
|
|
1316
|
+
**Do:** Name the field above it, and keep the placeholder as a format example.
|
|
1239
1317
|
|
|
1240
1318
|
```tsx
|
|
1241
1319
|
<Field.Root>
|
|
@@ -1247,7 +1325,7 @@ Give each control a `Field.Label`, even when a placeholder hints at the value. A
|
|
|
1247
1325
|
</Field.Root>
|
|
1248
1326
|
```
|
|
1249
1327
|
|
|
1250
|
-
**Don't:**
|
|
1328
|
+
**Don't:** Use the placeholder as the only label.
|
|
1251
1329
|
|
|
1252
1330
|
```tsx
|
|
1253
1331
|
<Field.Root>
|
|
@@ -1259,17 +1337,21 @@ Give each control a `Field.Label`, even when a placeholder hints at the value. A
|
|
|
1259
1337
|
</Field.Root>
|
|
1260
1338
|
```
|
|
1261
1339
|
|
|
1262
|
-
#### Set the Input Type
|
|
1340
|
+
#### Set the Input Type & Autocomplete
|
|
1263
1341
|
|
|
1264
1342
|
Set `type` and `autoComplete`, such as `email` and `email`, so phones show the right keyboard and browsers fill the value.
|
|
1265
1343
|
|
|
1266
|
-
#### Use One
|
|
1344
|
+
#### Use One Field for Each Kind of Sign-Up
|
|
1267
1345
|
|
|
1268
|
-
Build each newsletter
|
|
1346
|
+
Build each newsletter and report sign-up from the inline field, with its action at `size="large"`, so the two share a height. Build the footer's sign-up from the condensed field, and use it nowhere else.
|
|
1347
|
+
|
|
1348
|
+
#### Validate When the Value Is Complete
|
|
1349
|
+
|
|
1350
|
+
`Field.Root` validates on submit, then on each change after a failed submit. For a format check, such as an email, set `validationMode="onBlur"`, so a half-typed value stays unmarked.
|
|
1269
1351
|
|
|
1270
1352
|
#### Hold the Form Still While It Sends
|
|
1271
1353
|
|
|
1272
|
-
Set `busy` on the action and `readOnly` on the control while the submit runs. The value stays readable, and a second press or Enter does nothing.
|
|
1354
|
+
Set `busy` on the action, or on `Field.Submit`, and `readOnly` on the control while the submit runs. The value stays readable, and a second press or Enter does nothing.
|
|
1273
1355
|
|
|
1274
1356
|
#### Return Focus After a Failure
|
|
1275
1357
|
|
|
@@ -1279,7 +1361,7 @@ If the submit fails, show why in `Field.Status` with `tone="negative"`, keep the
|
|
|
1279
1361
|
|
|
1280
1362
|
#### Say How to Fix the Value
|
|
1281
1363
|
|
|
1282
|
-
|
|
1364
|
+
Start the error with a verb, such as Enter, and name what the value needs, in one short sentence.
|
|
1283
1365
|
|
|
1284
1366
|
**Do:** Write Enter a valid email.
|
|
1285
1367
|
|
|
@@ -1304,7 +1386,8 @@ Confirm a sign-up with the next step, and a failure with what to do about it.
|
|
|
1304
1386
|
|
|
1305
1387
|
#### Your Responsibilities
|
|
1306
1388
|
|
|
1307
|
-
* **Name Icon Buttons (aria-label):** Name a button
|
|
1389
|
+
* **Name Icon Buttons (aria-label):** Name a button that shows only an icon, such as `Field.Submit` or a Clear in `slotEnd`.
|
|
1390
|
+
* **State Requirements ((required)):** State a requirement or a format in text, such as (required) in the label.
|
|
1308
1391
|
* **Hold the Submit (busy):** Set `busy` on the action and `readOnly` on the control until the request ends.
|
|
1309
1392
|
* **Return Focus (focus()):** After a failure, focus the control, so the visitor can fix it and try again.
|
|
1310
1393
|
|
|
@@ -1324,7 +1407,7 @@ Use for the contact section that holds a form.
|
|
|
1324
1407
|
|
|
1325
1408
|
[Footer](/marketing/sections/footer)
|
|
1326
1409
|
|
|
1327
|
-
Use for the site's sign-up on the black band.
|
|
1410
|
+
Use for the site's condensed sign-up on the black band.
|
|
1328
1411
|
|
|
1329
1412
|
[Lead Capture](/marketing/sections/lead-capture)
|
|
1330
1413
|
|
|
@@ -1336,7 +1419,7 @@ Links quietly to another page, ending in an icon.
|
|
|
1336
1419
|
|
|
1337
1420
|
### Overview
|
|
1338
1421
|
|
|
1339
|
-
A link in the type around it that ends in a chevron, or in an arrow up right when it leaves the site. `Link.Cue` draws the same label and icon as a `span`, for a card or row that is itself the link.
|
|
1422
|
+
A link in the size of the type around it, always in the Marketing sans, that ends in a chevron, or in an arrow up right when it leaves the site. `Link.Cue` draws the same label and icon as a `span`, for a card or row that is itself the link.
|
|
1340
1423
|
|
|
1341
1424
|
On a fine pointer, hover eases the color and moves the icon toward where the link goes.
|
|
1342
1425
|
|
|
@@ -1440,6 +1523,8 @@ Set `tone="inverse"` in a dark section.
|
|
|
1440
1523
|
/** Demonstrates a Marketing link in a dark section. @module */
|
|
1441
1524
|
import { Link, style } from '@tempoxyz/ds/marketing'
|
|
1442
1525
|
|
|
1526
|
+
export const surface = 'inverse'
|
|
1527
|
+
|
|
1443
1528
|
export function Demo() {
|
|
1444
1529
|
return (
|
|
1445
1530
|
<div {...styles.section()}>
|
|
@@ -1913,7 +1998,7 @@ import { Mark } from '@tempoxyz/ds/marketing'
|
|
|
1913
1998
|
|
|
1914
1999
|
* Use [Logo](/marketing/components/logo) in the navigation, or anywhere the whole name fits.
|
|
1915
2000
|
* Use [Symbol Tile](/marketing/components/symbol-tile) for a partner's logo.
|
|
1916
|
-
* Use a
|
|
2001
|
+
* Use a [Tempo Icons](/marketing/foundations/iconography) glyph for an action.
|
|
1917
2002
|
|
|
1918
2003
|
#### Keep It Square
|
|
1919
2004
|
|
|
@@ -1952,7 +2037,7 @@ Use for the whole wordmark, where it fits.
|
|
|
1952
2037
|
|
|
1953
2038
|
[Iconography](/marketing/foundations/iconography)
|
|
1954
2039
|
|
|
1955
|
-
Covers the glyphs for actions and controls.
|
|
2040
|
+
Covers the Tempo Icons glyphs for actions and controls.
|
|
1956
2041
|
|
|
1957
2042
|
[Footer](/marketing/sections/footer)
|
|
1958
2043
|
|
|
@@ -2223,6 +2308,8 @@ Toggles a choice, such as a filter.
|
|
|
2223
2308
|
|
|
2224
2309
|
A native toggle button for a choice that changes what a page shows in place, such as the blog's category filters. A tab reports whether it is on. It is never a tab in a tablist, so it switches no panels.
|
|
2225
2310
|
|
|
2311
|
+
A tab rests as an outline and fills gray when selected, so a row of tabs never reads as a row of buttons.
|
|
2312
|
+
|
|
2226
2313
|
### Examples
|
|
2227
2314
|
|
|
2228
2315
|
#### Filter Group
|
|
@@ -2299,13 +2386,15 @@ namespace styles {
|
|
|
2299
2386
|
|
|
2300
2387
|
#### Inverse
|
|
2301
2388
|
|
|
2302
|
-
Set `appearance="inverse"` in a dark section.
|
|
2389
|
+
Set `appearance="inverse"` in a dark section. The outline and the gray fill turn white.
|
|
2303
2390
|
|
|
2304
2391
|
```tsx
|
|
2305
2392
|
/** Demonstrates Marketing tabs in a dark section, led by an All tab. @module */
|
|
2306
2393
|
import { style, Tab } from '@tempoxyz/ds/marketing'
|
|
2307
2394
|
import { useState } from 'react'
|
|
2308
2395
|
|
|
2396
|
+
export const surface = 'inverse'
|
|
2397
|
+
|
|
2309
2398
|
export function Demo() {
|
|
2310
2399
|
const [region, setRegion] = useState<string>()
|
|
2311
2400
|
|
|
@@ -2350,13 +2439,15 @@ namespace styles {
|
|
|
2350
2439
|
|
|
2351
2440
|
#### Overlay
|
|
2352
2441
|
|
|
2353
|
-
Set `appearance="overlay"` over a photo or video.
|
|
2442
|
+
Set `appearance="overlay"` over a photo or video. A dark glass keeps each label legible, and the selected tab deepens it.
|
|
2354
2443
|
|
|
2355
2444
|
```tsx
|
|
2356
2445
|
/** Demonstrates Marketing tabs over a photo. @module */
|
|
2357
2446
|
import { style, Tab } from '@tempoxyz/ds/marketing'
|
|
2358
2447
|
import { useState } from 'react'
|
|
2359
2448
|
|
|
2449
|
+
export const surface = 'overlay'
|
|
2450
|
+
|
|
2360
2451
|
export function Demo() {
|
|
2361
2452
|
const [view, setView] = useState<string | undefined>('Video')
|
|
2362
2453
|
|
|
@@ -2416,13 +2507,20 @@ import { Tab } from '@tempoxyz/ds/marketing'
|
|
|
2416
2507
|
|
|
2417
2508
|
Clear the filter on a second press of the selected tab, or put an All tab first in the row.
|
|
2418
2509
|
|
|
2510
|
+
#### Show the Choice With the Fill
|
|
2511
|
+
|
|
2512
|
+
The gray fill alone marks the selected tab, so a tab keeps its size in both states.
|
|
2513
|
+
|
|
2514
|
+
* **Unselected (Outline):** Rests as an outline, and tints on hover.
|
|
2515
|
+
* **Selected (Gray Fill):** Fills gray, and deepens a step on press.
|
|
2516
|
+
|
|
2419
2517
|
#### Give Tabs in a Row One Size
|
|
2420
2518
|
|
|
2421
2519
|
Use `small` for an index's filters and `medium` or `large` for a directory's rows. Never mix sizes in one row.
|
|
2422
2520
|
|
|
2423
2521
|
### Content
|
|
2424
2522
|
|
|
2425
|
-
#### Keep Labels Short
|
|
2523
|
+
#### Keep Labels Short & Fixed
|
|
2426
2524
|
|
|
2427
2525
|
Label each tab in one or two words, and keep the label the same whether it is selected or not.
|
|
2428
2526
|
|
|
@@ -2505,30 +2603,6 @@ namespace styles {
|
|
|
2505
2603
|
|
|
2506
2604
|
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Tag/Size.tsx)
|
|
2507
2605
|
|
|
2508
|
-
#### Outline
|
|
2509
|
-
|
|
2510
|
-
Set `appearance` to `base` (default) on the page or a white card, or to `outline` in a list of capabilities or partners.
|
|
2511
|
-
|
|
2512
|
-
```tsx
|
|
2513
|
-
/** Demonstrates a base Marketing tag beside an outline tag. @module */
|
|
2514
|
-
import { style, Tag } from '@tempoxyz/ds/marketing'
|
|
2515
|
-
|
|
2516
|
-
export function Demo() {
|
|
2517
|
-
return (
|
|
2518
|
-
<div {...styles.row()}>
|
|
2519
|
-
<Tag>Stablecoins</Tag>
|
|
2520
|
-
<Tag appearance="outline">Stablecoins</Tag>
|
|
2521
|
-
</div>
|
|
2522
|
-
)
|
|
2523
|
-
}
|
|
2524
|
-
|
|
2525
|
-
namespace styles {
|
|
2526
|
-
export const row = style({ alignItems: 'center', display: 'flex', flexWrap: 'wrap', gap: '8' })
|
|
2527
|
-
}
|
|
2528
|
-
```
|
|
2529
|
-
|
|
2530
|
-
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Tag/Outline.tsx)
|
|
2531
|
-
|
|
2532
2606
|
#### Linked
|
|
2533
2607
|
|
|
2534
2608
|
Use `Tag.Link` to link a tag to its topic, such as the blog's Announcements.
|
|
@@ -2541,9 +2615,7 @@ export function Demo() {
|
|
|
2541
2615
|
return (
|
|
2542
2616
|
<div {...styles.row()}>
|
|
2543
2617
|
<Tag.Link href="/blog">Announcements</Tag.Link>
|
|
2544
|
-
<Tag.Link
|
|
2545
|
-
Research
|
|
2546
|
-
</Tag.Link>
|
|
2618
|
+
<Tag.Link href="/blog">Research</Tag.Link>
|
|
2547
2619
|
</div>
|
|
2548
2620
|
)
|
|
2549
2621
|
}
|
|
@@ -2563,6 +2635,8 @@ Set `appearance="inverse"` in a dark section.
|
|
|
2563
2635
|
/** Demonstrates Marketing tags in a dark section, static and linked. @module */
|
|
2564
2636
|
import { style, Tag } from '@tempoxyz/ds/marketing'
|
|
2565
2637
|
|
|
2638
|
+
export const surface = 'inverse'
|
|
2639
|
+
|
|
2566
2640
|
export function Demo() {
|
|
2567
2641
|
return (
|
|
2568
2642
|
<div {...styles.section()}>
|
|
@@ -2597,6 +2671,8 @@ Set `appearance="overlay"` over a photo or video.
|
|
|
2597
2671
|
/** Demonstrates a Marketing tag over a photo. @module */
|
|
2598
2672
|
import { style, Tag } from '@tempoxyz/ds/marketing'
|
|
2599
2673
|
|
|
2674
|
+
export const surface = 'overlay'
|
|
2675
|
+
|
|
2600
2676
|
export function Demo() {
|
|
2601
2677
|
return (
|
|
2602
2678
|
<div {...styles.photo()}>
|
|
@@ -2618,25 +2694,24 @@ namespace styles {
|
|
|
2618
2694
|
|
|
2619
2695
|
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Tag/Overlay.tsx)
|
|
2620
2696
|
|
|
2621
|
-
#### Icon
|
|
2697
|
+
#### Icon & Logo
|
|
2622
2698
|
|
|
2623
2699
|
Set `icon` to a glyph, or `logo` to a partner's logo. At `medium`, `logo` also takes a currency's flag or a stablecoin's mark.
|
|
2624
2700
|
|
|
2625
2701
|
```tsx
|
|
2626
|
-
/** Demonstrates the Marketing tag's icon and logo slots at each size. @module */
|
|
2702
|
+
/** Demonstrates the Marketing tag's icon and logo slots at each size, with a Tempo Icons glyph. @module */
|
|
2703
|
+
import { GlobeIcon } from '@tempoxyz/ds/arsenal/icons'
|
|
2627
2704
|
import { style, Tag } from '@tempoxyz/ds/marketing'
|
|
2628
2705
|
|
|
2629
2706
|
export function Demo() {
|
|
2630
2707
|
return (
|
|
2631
2708
|
<div {...styles.rows()}>
|
|
2632
2709
|
<div {...styles.row()}>
|
|
2633
|
-
<Tag icon={<
|
|
2634
|
-
<Tag
|
|
2635
|
-
Customer
|
|
2636
|
-
</Tag>
|
|
2710
|
+
<Tag icon={<GlobeIcon />}>Global</Tag>
|
|
2711
|
+
<Tag logo={<Coin />}>USD</Tag>
|
|
2637
2712
|
</div>
|
|
2638
2713
|
<div {...styles.row()}>
|
|
2639
|
-
<Tag icon={<
|
|
2714
|
+
<Tag icon={<GlobeIcon />} size="medium">
|
|
2640
2715
|
Global
|
|
2641
2716
|
</Tag>
|
|
2642
2717
|
<Tag logo={<Coin />} size="medium">
|
|
@@ -2647,20 +2722,6 @@ export function Demo() {
|
|
|
2647
2722
|
)
|
|
2648
2723
|
}
|
|
2649
2724
|
|
|
2650
|
-
/** A globe glyph in the text color, drawn at `1em`. */
|
|
2651
|
-
function Globe() {
|
|
2652
|
-
return (
|
|
2653
|
-
<svg fill="none" height="1em" viewBox="0 0 16 16" width="1em">
|
|
2654
|
-
<circle cx="8" cy="8" r="5.75" stroke="currentColor" strokeWidth="1.5" />
|
|
2655
|
-
<path
|
|
2656
|
-
d="M2.5 8h11M8 2.25c1.6 1.6 2.4 3.5 2.4 5.75S9.6 12.15 8 13.75C6.4 12.15 5.6 10.25 5.6 8S6.4 3.85 8 2.25Z"
|
|
2657
|
-
stroke="currentColor"
|
|
2658
|
-
strokeWidth="1.5"
|
|
2659
|
-
/>
|
|
2660
|
-
</svg>
|
|
2661
|
-
)
|
|
2662
|
-
}
|
|
2663
|
-
|
|
2664
2725
|
/** A coin mark in its own 20px box, as a currency's flag or a stablecoin's mark brings. */
|
|
2665
2726
|
function Coin() {
|
|
2666
2727
|
return (
|
|
@@ -2685,6 +2746,8 @@ namespace styles {
|
|
|
2685
2746
|
|
|
2686
2747
|
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Tag/IconAndLogo.tsx)
|
|
2687
2748
|
|
|
2749
|
+
The globe is from [Tempo Icons](/arsenal/libraries/icons), which ships every glyph at `@tempoxyz/ds/arsenal/icons`.
|
|
2750
|
+
|
|
2688
2751
|
### Anatomy
|
|
2689
2752
|
|
|
2690
2753
|
```tsx
|
|
@@ -2708,6 +2771,14 @@ import { Tag } from '@tempoxyz/ds/marketing'
|
|
|
2708
2771
|
* Use [Button](/marketing/components/button) for an action.
|
|
2709
2772
|
* Use plain text for a count or a status that changes.
|
|
2710
2773
|
|
|
2774
|
+
#### Set the Appearance by the Ground
|
|
2775
|
+
|
|
2776
|
+
A tag fills on the page and on a card, however many sit together, from a post's one category to a partner's 24 currencies. Only the ground changes the appearance.
|
|
2777
|
+
|
|
2778
|
+
* **Page or Card (base):** Fills with a light tint, alone or in a list.
|
|
2779
|
+
* **Dark Section (inverse):** Fills with a white tint on a dark ground.
|
|
2780
|
+
* **Photo or Video (overlay):** Sits on a blurred glass that keeps it legible.
|
|
2781
|
+
|
|
2711
2782
|
#### Size a Tag by Its Text
|
|
2712
2783
|
|
|
2713
2784
|
Match `small` to Body B2 and `medium` to Body B1, and give tags side by side one size.
|
|
@@ -3306,7 +3377,7 @@ Every motion token holds a reduced value. Under `prefers-reduced-motion: reduce`
|
|
|
3306
3377
|
| `ease.morph` | `cubic-bezier(0.45, 0, 0.2, 1)` | The products showcase. |
|
|
3307
3378
|
| `ease.draw` | `cubic-bezier(0.65, 0, 0.35, 1)` | Lines that draw themselves, such as a rail. |
|
|
3308
3379
|
|
|
3309
|
-
### Scale
|
|
3380
|
+
### Scale & Distance
|
|
3310
3381
|
|
|
3311
3382
|
| Token | Value | Use |
|
|
3312
3383
|
| --- | --- | --- |
|
|
@@ -3320,7 +3391,7 @@ Every motion token holds a reduced value. Under `prefers-reduced-motion: reduce`
|
|
|
3320
3391
|
| `translate.enter` | `8px, 0px reduced` | How far an entering item rises. |
|
|
3321
3392
|
| `translate.nudge` | `0.15em, 0px reduced` | How far a chevron travels on hover. |
|
|
3322
3393
|
|
|
3323
|
-
### Blur
|
|
3394
|
+
### Blur & Opacity
|
|
3324
3395
|
|
|
3325
3396
|
| Token | Value | Use |
|
|
3326
3397
|
| --- | --- | --- |
|
|
@@ -3353,8 +3424,8 @@ A recipe names the tokens that time one kind of change, so every part moves alik
|
|
|
3353
3424
|
Under `prefers-reduced-motion: reduce`, each token falls to its reduced value, and nothing travels.
|
|
3354
3425
|
|
|
3355
3426
|
* **State Changes (100ms):** Hover, press release, state, swap, surface, and disclosure durations.
|
|
3356
|
-
* **Entrances
|
|
3357
|
-
* **Travel
|
|
3427
|
+
* **Entrances & Media (0ms):** Entering sets, media zooms, showcase moves, and drawn lines.
|
|
3428
|
+
* **Travel & Scale (0px · 1):** Distances fall to zero and scales to one, so parts fade in place.
|
|
3358
3429
|
|
|
3359
3430
|
### Guidelines
|
|
3360
3431
|
|
|
@@ -3366,7 +3437,7 @@ Set the duration and curve of a transition from the same row, such as `hoverIn`
|
|
|
3366
3437
|
|
|
3367
3438
|
A menu, popover, or dialog closes on a shorter duration and the exit curve, so it leaves before the next input. A hover returns on a longer duration than it arrives on, so a pointer that crosses a part fades it in and out once.
|
|
3368
3439
|
|
|
3369
|
-
#### Limit Motion to Feedback
|
|
3440
|
+
#### Limit Motion to Feedback & Entrances
|
|
3370
3441
|
|
|
3371
3442
|
Animate visitor-triggered changes, such as a hover or a filter, with transitions that name their properties. One-time entrances when content comes into view and busy indicators may also move. Avoid unsolicited looping motion, and use the reduced-motion tokens for each animation.
|
|
3372
3443
|
|
|
@@ -3635,8 +3706,8 @@ Each text style is a typography set that sets the family, size, weight, line hei
|
|
|
3635
3706
|
### Typefaces
|
|
3636
3707
|
|
|
3637
3708
|
* **Pilat (fontFamily.sans):** Headlines, copy, and navigation, at Book (500) by default.
|
|
3638
|
-
* **HB Set (fontFamily.serif):**
|
|
3639
|
-
* **JetBrains Mono (fontFamily.mono):** Code, figures, and technical labels, at Regular (400).
|
|
3709
|
+
* **HB Set (fontFamily.serif):** Rare serif statements in display.d1, at Light (300), on request only.
|
|
3710
|
+
* **Tempo JetBrains Mono (fontFamily.mono):** Code, figures, and technical labels, at Regular (400).
|
|
3640
3711
|
|
|
3641
3712
|
### Type Sets
|
|
3642
3713
|
|
|
@@ -3676,7 +3747,7 @@ Display and heading sets step up at 768px, 1024px, and 1512px, and the hero step
|
|
|
3676
3747
|
| --- | --- | --- | --- | --- | --- |
|
|
3677
3748
|
| `utility.eyebrow` | Pilat | 500 | Mobile 10px/16px, Tablet 10px/16px, Desktop 10px/16px, Display 10px/16px | 0.06em | The uppercase label above a section title. |
|
|
3678
3749
|
| `utility.nav` | Pilat | 500 | Mobile 14px/16px, Tablet 14px/16px, Desktop 14px/16px, Display 14px/16px | 0em | Navigation links and footer links. |
|
|
3679
|
-
| `utility.mono` | JetBrains Mono | 400 | Mobile 10px/14px, Tablet 10px/14px, Desktop 10px/14px, Display 10px/14px | 0.06em | Code, figures, and technical labels. |
|
|
3750
|
+
| `utility.mono` | Tempo JetBrains Mono | 400 | Mobile 10px/14px, Tablet 10px/14px, Desktop 10px/14px, Display 10px/14px | 0.06em | Code, figures, and technical labels. |
|
|
3680
3751
|
|
|
3681
3752
|
### Type Pairs
|
|
3682
3753
|
|
|
@@ -3892,7 +3963,7 @@ The text starts its headings at `h2`, under the hero's `h1`, so the outline hold
|
|
|
3892
3963
|
|
|
3893
3964
|
Open every article with an `ArticleBody.Callout` that sums it up in one or two sentences.
|
|
3894
3965
|
|
|
3895
|
-
#### Write Terms as Rows
|
|
3966
|
+
#### Write Terms as Rows & Comparisons as Tables
|
|
3896
3967
|
|
|
3897
3968
|
Set two or more terms as `ArticleBody.Row` items in `ArticleBody.Rows`, each with its `term`, and set a comparison as an `ArticleBody.Table`.
|
|
3898
3969
|
|
|
@@ -3902,7 +3973,7 @@ Set a quote as an `ArticleBody.Quote` with its `author` and `affiliation`, so th
|
|
|
3902
3973
|
|
|
3903
3974
|
#### Write Links Plainly
|
|
3904
3975
|
|
|
3905
|
-
A link in a sentence is plain and underlined. A link on its own line ends in a [Link](/marketing/components/link) chevron, or an arrow up right when it leaves the site.
|
|
3976
|
+
A link in a sentence is plain and underlined. A link on its own line ends in a [Link](/marketing/components/link) chevron, or an arrow up right when it leaves the site, both from [Tempo Icons](/marketing/foundations/iconography).
|
|
3906
3977
|
|
|
3907
3978
|
### Accessibility
|
|
3908
3979
|
|
|
@@ -4032,13 +4103,13 @@ import { ArticleHero } from '@tempoxyz/ds/marketing'
|
|
|
4032
4103
|
|
|
4033
4104
|
Set `description` on a Learn guide or a customer story, and `eyebrow` only on a customer story, to name its company.
|
|
4034
4105
|
|
|
4035
|
-
#### Show the Date
|
|
4106
|
+
#### Show the Date & the Read Time
|
|
4036
4107
|
|
|
4037
4108
|
Pass both `date` and `minutes` to `ArticleHero.Meta` whenever the article has them.
|
|
4038
4109
|
|
|
4039
4110
|
### Content
|
|
4040
4111
|
|
|
4041
|
-
#### Write the Title
|
|
4112
|
+
#### Write the Title & Line
|
|
4042
4113
|
|
|
4043
4114
|
Write the title in sentence case with no closing period, and `description` in one or two sentences.
|
|
4044
4115
|
|
|
@@ -4480,7 +4551,7 @@ export function Demo() {
|
|
|
4480
4551
|
|
|
4481
4552
|
#### Photo
|
|
4482
4553
|
|
|
4483
|
-
Set `job="photo"` to set the title on its photo, over the scrim. Leave out `href` for a card that names a role and links nowhere, as role cards introduce a team.
|
|
4554
|
+
Set `job="photo"` to set the title on its photo, over the scrim. Leave out `href` for a card that names a role and links nowhere, as role cards introduce a team. Its `icon` badge takes a [Tempo Icons](/marketing/foundations/iconography) glyph.
|
|
4484
4555
|
|
|
4485
4556
|
```tsx
|
|
4486
4557
|
/** Demonstrates Marketing photo cards: a team's roles on photos, each with an icon badge. @module */
|
|
@@ -4808,7 +4879,7 @@ import { Contact } from '@tempoxyz/ds/marketing'
|
|
|
4808
4879
|
|
|
4809
4880
|
Give each field a visible `Field.Label` above it, and mark the optional ones Optional. A placeholder alone disappears as the visitor types.
|
|
4810
4881
|
|
|
4811
|
-
#### Hold the Form
|
|
4882
|
+
#### Hold the Form & Only It
|
|
4812
4883
|
|
|
4813
4884
|
Pass the contact form as `children`. The card pads it by the same inset as the copy above it, so nothing else belongs in the card.
|
|
4814
4885
|
|
|
@@ -5119,7 +5190,7 @@ import { CustomerStoryFeature } from '@tempoxyz/ds/marketing'
|
|
|
5119
5190
|
* Use [Card](/marketing/sections/card) for several stories at once.
|
|
5120
5191
|
* Use [Quote Band](/marketing/sections/quote-band) for a quote that speaks for the whole page.
|
|
5121
5192
|
|
|
5122
|
-
#### Pass the Photo, Logo
|
|
5193
|
+
#### Pass the Photo, Logo & Link
|
|
5123
5194
|
|
|
5124
5195
|
Pass the photo in `image`, which covers the panel, and the logo in `logo`, which draws black on the page and white on the panel. Pass the link in `action` as a [Link](/marketing/components/link) with its default tone.
|
|
5125
5196
|
|
|
@@ -5499,12 +5570,10 @@ export function Demo() {
|
|
|
5499
5570
|
<Field.Root appearance="inverse" name="email">
|
|
5500
5571
|
<Field.Label>Email for monthly updates</Field.Label>
|
|
5501
5572
|
<Field.Control
|
|
5502
|
-
action={
|
|
5503
|
-
<Button appearance="inverse" size="large" type="submit">
|
|
5504
|
-
Subscribe
|
|
5505
|
-
</Button>
|
|
5506
|
-
}
|
|
5573
|
+
action={<Field.Submit aria-label="Subscribe" />}
|
|
5507
5574
|
autoComplete="email"
|
|
5575
|
+
condensed
|
|
5576
|
+
placeholder="you@company.com"
|
|
5508
5577
|
required
|
|
5509
5578
|
type="email"
|
|
5510
5579
|
/>
|
|
@@ -5552,9 +5621,9 @@ import { Footer } from '@tempoxyz/ds/marketing'
|
|
|
5552
5621
|
|
|
5553
5622
|
Pass the site's sections in `groups`, each with its `title` and `links`, in reading order. Add a new product or solution page to its group's links, so the footer stays the whole site map.
|
|
5554
5623
|
|
|
5555
|
-
#### Pass the Sign-Up
|
|
5624
|
+
#### Pass the Sign-Up & the Language Picker
|
|
5556
5625
|
|
|
5557
|
-
Pass the sign-up form in `newsletter` and the language picker in `language`. The footer lays them out and never posts or routes. Build the sign-up from
|
|
5626
|
+
Pass the sign-up form in `newsletter` and the language picker in `language`. The footer lays them out and never posts or routes. Build the sign-up from the condensed [Field](/marketing/components/field), with `appearance="inverse"` and a `Field.Submit` named Subscribe.
|
|
5558
5627
|
|
|
5559
5628
|
#### Link Through Your Router
|
|
5560
5629
|
|
|
@@ -5567,7 +5636,7 @@ Pass `linkRender` for router links, such as a Next.js link. Every link renders t
|
|
|
5567
5636
|
|
|
5568
5637
|
#### Your Responsibilities
|
|
5569
5638
|
|
|
5570
|
-
* **Name the Sign-Up (Field.Label):** Label the sign-up's field, and place the
|
|
5639
|
+
* **Name the Sign-Up (Field.Label):** Label the sign-up's field, name its arrow, and place the outcome in `Field.Status`.
|
|
5571
5640
|
* **Translate the Labels (navigationLabel):** Set `navigationLabel` and `homeLabel` on a page in another language.
|
|
5572
5641
|
|
|
5573
5642
|
### Related
|
|
@@ -5586,7 +5655,7 @@ Use for a page's own newsletter sign-up.
|
|
|
5586
5655
|
|
|
5587
5656
|
[Field](/marketing/components/field)
|
|
5588
5657
|
|
|
5589
|
-
Use for the sign-up's email field and its submit
|
|
5658
|
+
Use for the sign-up's condensed email field and its arrow submit.
|
|
5590
5659
|
|
|
5591
5660
|
## Hero
|
|
5592
5661
|
|
|
@@ -5827,7 +5896,7 @@ import { LeadCapture } from '@tempoxyz/ds/marketing'
|
|
|
5827
5896
|
* Use [Card](/marketing/sections/card) for a report featured on another page.
|
|
5828
5897
|
* Use [Contact](/marketing/sections/contact) for a form to reach the team.
|
|
5829
5898
|
|
|
5830
|
-
#### Pass the Form
|
|
5899
|
+
#### Pass the Form & the Figures
|
|
5831
5900
|
|
|
5832
5901
|
Pass the form as `children`, and the key figures in `figures`, such as a [Stats](/marketing/sections/stats) row. Build a one-field form from an inline [Field](/marketing/components/field) with its submit `action`.
|
|
5833
5902
|
|
|
@@ -6192,7 +6261,7 @@ List the sections in `links`. A section with `items` opens a menu, sorted A to Z
|
|
|
6192
6261
|
|
|
6193
6262
|
Pass the closing action in `action`, such as Contact. It renders as a [Button](/marketing/components/button) with `layout="navigation"`.
|
|
6194
6263
|
|
|
6195
|
-
#### Fix the Bar
|
|
6264
|
+
#### Fix the Bar & Clear It
|
|
6196
6265
|
|
|
6197
6266
|
Set `fixed` so the bar stays at the top. Anything keyboard focus or a jump link brings into view clears the bar.
|
|
6198
6267
|
|
|
@@ -6347,7 +6416,7 @@ Leave `size="compact"` (default) for a long list to scan, and set `size="large"`
|
|
|
6347
6416
|
|
|
6348
6417
|
#### Link Through Your Router
|
|
6349
6418
|
|
|
6350
|
-
Pass `render` for router links. A card whose `href` starts with `http` opens in a new tab and ends in
|
|
6419
|
+
Pass `render` for router links. A card whose `href` starts with `http` opens in a new tab and ends in the [Tempo Icons](/marketing/foundations/iconography) arrow up right.
|
|
6351
6420
|
|
|
6352
6421
|
### Accessibility
|
|
6353
6422
|
|
|
@@ -6475,7 +6544,7 @@ import { QuoteBand } from '@tempoxyz/ds/marketing'
|
|
|
6475
6544
|
|
|
6476
6545
|
Pass the quote as `children` without marks. The part adds the curly marks the page's language uses, so typed marks would double them.
|
|
6477
6546
|
|
|
6478
|
-
#### Pass the Photo
|
|
6547
|
+
#### Pass the Photo & the Action
|
|
6479
6548
|
|
|
6480
6549
|
Pass the photo in `image`, which covers the band. Pass the action as a [Button](/marketing/components/button) link with `appearance="overlay"` and `variant="secondary"`, such as Read the case study.
|
|
6481
6550
|
|
|
@@ -6941,7 +7010,7 @@ import { Showcase } from '@tempoxyz/ds/marketing'
|
|
|
6941
7010
|
* **Stacked (stacked):** Items in a row under the art, such as three steps.
|
|
6942
7011
|
* **Contained (contained):** The heading inside the art's plate, under the art, from 1024px.
|
|
6943
7012
|
|
|
6944
|
-
#### Give Each Item One Line
|
|
7013
|
+
#### Give Each Item One Line & One Link
|
|
6945
7014
|
|
|
6946
7015
|
Pass each step, card, or tool as a `Showcase.Item` with one line, and its link as a [Link](/marketing/components/link) in `action`. A page with a pending picture isn't ready to ship.
|
|
6947
7016
|
|
|
@@ -7004,7 +7073,7 @@ export function Demo() {
|
|
|
7004
7073
|
|
|
7005
7074
|
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Stats/Default.tsx)
|
|
7006
7075
|
|
|
7007
|
-
#### Inverse
|
|
7076
|
+
#### Inverse & Small
|
|
7008
7077
|
|
|
7009
7078
|
Set `appearance="inverse"` on a photo or a dark ground. Set `size="small"` inside a card, or `large` (default) in a section of its own.
|
|
7010
7079
|
|
|
@@ -7014,6 +7083,8 @@ import { Stats, style } from '@tempoxyz/ds/marketing'
|
|
|
7014
7083
|
|
|
7015
7084
|
export const fill = true
|
|
7016
7085
|
|
|
7086
|
+
export const surface = 'inverse'
|
|
7087
|
+
|
|
7017
7088
|
export function Demo() {
|
|
7018
7089
|
return (
|
|
7019
7090
|
<div {...styles.section()}>
|
|
@@ -7212,7 +7283,7 @@ Name the step as an action, and say what it does in its `description`, in one sh
|
|
|
7212
7283
|
### Accessibility
|
|
7213
7284
|
|
|
7214
7285
|
* **Ordered List (ol):** Renders an `<ol>`, so a screen reader announces each step's place.
|
|
7215
|
-
* **Rail
|
|
7286
|
+
* **Rail & Numbers (aria-hidden):** The rail, the nodes, and the drawn numbers are hidden from screen readers.
|
|
7216
7287
|
* **Reduced Motion (draw):** Under reduced motion, and before the script runs, the rail shows drawn and every node lit.
|
|
7217
7288
|
* **No Focus (Tab):** Nothing in it takes focus, so the keyboard moves past it.
|
|
7218
7289
|
|
|
@@ -7445,7 +7516,7 @@ Top to bottom, between the [Nav](/marketing/sections/nav) and the [Footer](/mark
|
|
|
7445
7516
|
|
|
7446
7517
|
#### Content Fields
|
|
7447
7518
|
|
|
7448
|
-
* **Path
|
|
7519
|
+
* **Path & Title (path · title):** The page's address and the article's title.
|
|
7449
7520
|
* **Description (description):** A Learn guide's line under the title, and the share card's text.
|
|
7450
7521
|
* **Publish Date (date · publishDate):** A post's `date` or a guide's `publishDate`, under the title.
|
|
7451
7522
|
* **Label (label):** Its topic, which the index filters by and cards show.
|
|
@@ -7686,7 +7757,7 @@ Top to bottom, between the [Nav](/marketing/sections/nav) and the [Footer](/mark
|
|
|
7686
7757
|
|
|
7687
7758
|
The body is the pitch, then the contact form. Each language has its own page, with the English page's image.
|
|
7688
7759
|
|
|
7689
|
-
* **Path
|
|
7760
|
+
* **Path & Title (path · title):** The page's address in each language, and its title.
|
|
7690
7761
|
* **Description (description):** One sentence for search results and the share card.
|
|
7691
7762
|
* **Image (image):** The share image, the same in every language.
|
|
7692
7763
|
|
|
@@ -8092,14 +8163,14 @@ Top to bottom, between the [Nav](/marketing/sections/nav) and the [Footer](/mark
|
|
|
8092
8163
|
|
|
8093
8164
|
#### Content Fields
|
|
8094
8165
|
|
|
8095
|
-
* **Path
|
|
8166
|
+
* **Path & Title (path · title):** The page's address and the story's title.
|
|
8096
8167
|
* **Description (description):** The line under the title, and the share card's text.
|
|
8097
8168
|
* **Company (company):** The customer's name, over the title.
|
|
8098
8169
|
* **Company Facts (companyMetadata):** Industry, size, and products, beside the story.
|
|
8099
8170
|
* **Results (impactMetrics):** Three figures, each with its period or source.
|
|
8100
8171
|
* **Video (videoUrl):** The video at the top of the text, with its still and loop.
|
|
8101
8172
|
* **Card Image (thumbnail):** The image the story's card draws.
|
|
8102
|
-
* **Category
|
|
8173
|
+
* **Category & Date (category · date):** Its topic, which picks related stories, and its publish date.
|
|
8103
8174
|
|
|
8104
8175
|
### Guidelines
|
|
8105
8176
|
|
|
@@ -8515,7 +8586,7 @@ Top to bottom, between the [Nav](/marketing/sections/nav) and the [Footer](/mark
|
|
|
8515
8586
|
|
|
8516
8587
|
The event's words, details, sessions, and people are its settings, under the page's slug.
|
|
8517
8588
|
|
|
8518
|
-
* **Path
|
|
8589
|
+
* **Path & Title (path · title):** The page's address, at the event's slug, and its title.
|
|
8519
8590
|
* **Description (description):** One sentence for search results and the share card.
|
|
8520
8591
|
* **Image (image):** The share image, where the page has its own.
|
|
8521
8592
|
* **Remove On (removeOn):** The day after the event, in UTC, when the page comes down.
|
|
@@ -8616,7 +8687,7 @@ Top to bottom, between the [Nav](/marketing/sections/nav) and the [Footer](/mark
|
|
|
8616
8687
|
|
|
8617
8688
|
#### Content Fields
|
|
8618
8689
|
|
|
8619
|
-
* **Path
|
|
8690
|
+
* **Path & Title (path · title):** The page's address and title, which the share card also reads.
|
|
8620
8691
|
* **Description (description):** One sentence for search results and the share card.
|
|
8621
8692
|
* **Image (image):** The share image, where the page has its own.
|
|
8622
8693
|
* **Order (order):** The order of the middle: the showcases before the capabilities, or after.
|
|
@@ -8726,7 +8797,7 @@ Top to bottom, between the [Nav](/marketing/sections/nav) and the [Footer](/mark
|
|
|
8726
8797
|
3. [CTA](/marketing/sections/cta): Tempo Earn, only on Tokenized assets.
|
|
8727
8798
|
4. [CTA](/marketing/sections/cta): A call to action.
|
|
8728
8799
|
|
|
8729
|
-
#### Ramps
|
|
8800
|
+
#### Ramps & FX
|
|
8730
8801
|
|
|
8731
8802
|
1. [Section Heading](/marketing/sections/section-heading): The title, description, and coverage figures.
|
|
8732
8803
|
2. The coverage explorer.
|
|
@@ -8751,7 +8822,7 @@ Top to bottom, between the [Nav](/marketing/sections/nav) and the [Footer](/mark
|
|
|
8751
8822
|
|
|
8752
8823
|
Each page draws from its partner's, asset's, or category's record, never from words written on the page.
|
|
8753
8824
|
|
|
8754
|
-
* **Path
|
|
8825
|
+
* **Path & Title (path · title):** The page's address and title, which the share card also reads.
|
|
8755
8826
|
* **Description (description):** A profile's or asset's intro, 95 characters at most.
|
|
8756
8827
|
* **Image (image):** The share image, where the page has its own.
|
|
8757
8828
|
* **Search Title (seoTitle · seoDescription):** A title and description for search results, where they differ.
|
|
@@ -8832,7 +8903,7 @@ Top to bottom, between the [Nav](/marketing/sections/nav) and the [Footer](/mark
|
|
|
8832
8903
|
|
|
8833
8904
|
The page draws only its fields, never words in its body.
|
|
8834
8905
|
|
|
8835
|
-
* **Path
|
|
8906
|
+
* **Path & Title (path · title):** The page's address and the report's title.
|
|
8836
8907
|
* **Order (order):** Its place on the Reports index, first to last. Required.
|
|
8837
8908
|
* **PDF (pdfUrl):** The report's PDF, which the form hands over. Required.
|
|
8838
8909
|
* **Eyebrow (eyebrow):** The label over the title, such as Analysis.
|
|
@@ -8959,7 +9030,7 @@ Top to bottom, between the [Nav](/marketing/sections/nav) and the [Footer](/mark
|
|
|
8959
9030
|
|
|
8960
9031
|
#### Content Fields
|
|
8961
9032
|
|
|
8962
|
-
* **Path
|
|
9033
|
+
* **Path & Title (path · title):** The page's address and title, which the share card also reads.
|
|
8963
9034
|
* **Description (description):** One sentence for search results and the share card.
|
|
8964
9035
|
* **Image (image):** The share image, where the page has its own.
|
|
8965
9036
|
* **Search Title (seoTitle · seoDescription):** A title and description for search results, where they differ.
|
|
@@ -8979,7 +9050,7 @@ Top to bottom, between the [Nav](/marketing/sections/nav) and the [Footer](/mark
|
|
|
8979
9050
|
|
|
8980
9051
|
Keep the opening and closing sections in the template's order. Use each middle section once, with the variations listed below.
|
|
8981
9052
|
|
|
8982
|
-
#### Set Three Benefits
|
|
9053
|
+
#### Set Three Benefits & Three Cards
|
|
8983
9054
|
|
|
8984
9055
|
Give each benefit its art, since the row sets three across from 768px, and fill the page's three card slots.
|
|
8985
9056
|
|