@deriv-com/dds-marketing 1.0.2 → 1.1.0
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/.llm/components/awards.md +209 -0
- package/.llm/components/background.md +89 -40
- package/.llm/components/bottomsheet.md +5 -0
- package/.llm/components/comparisoncards.md +257 -0
- package/.llm/components/comparisontable.md +231 -0
- package/.llm/components/ctabanner.md +9 -12
- package/.llm/components/ctabannerslider.md +15 -2
- package/.llm/components/datatable.md +273 -0
- package/.llm/components/downloadbanner.md +283 -0
- package/.llm/components/featurecards.md +41 -3
- package/.llm/components/featurecardscarousel.md +311 -0
- package/.llm/components/featuresplit.md +5 -0
- package/.llm/components/featurestack.md +227 -0
- package/.llm/components/illustrationcard.md +2 -2
- package/.llm/components/illustrationscene.md +6 -10
- package/.llm/components/imagebanner.md +278 -0
- package/.llm/components/navbar.md +1 -1
- package/.llm/components/navbaritem.md +4 -0
- package/.llm/components/pageheader.md +4 -3
- package/.llm/components/paginationdots.md +6 -1
- package/.llm/components/producthero.md +35 -11
- package/.llm/components/resourcebanner.md +247 -0
- package/.llm/components/scenescroll.md +222 -0
- package/.llm/components/select.md +17 -0
- package/.llm/components/stats.md +219 -0
- package/.llm/components/steps.md +286 -0
- package/.llm/components/stickycards.md +251 -0
- package/.llm/components/tableheadercell.md +19 -0
- package/.llm/components/teamgrid.md +243 -0
- package/.llm/components/testimonialrow.md +5 -0
- package/.llm/components/testimonialslider.md +14 -1
- package/.llm/components/textarea.md +13 -0
- package/.llm/components/textinput.md +13 -0
- package/.llm/components/textscroll.md +187 -0
- package/.llm/components/tiers.md +227 -0
- package/.llm/digest/awards.md +45 -0
- package/.llm/digest/background.md +11 -10
- package/.llm/digest/bottomsheet.md +2 -0
- package/.llm/digest/comparisoncards.md +51 -0
- package/.llm/digest/comparisontable.md +53 -0
- package/.llm/digest/ctabanner.md +4 -4
- package/.llm/digest/ctabannerslider.md +4 -0
- package/.llm/digest/datatable.md +65 -0
- package/.llm/digest/downloadbanner.md +65 -0
- package/.llm/digest/featurecards.md +1 -1
- package/.llm/digest/featurecardscarousel.md +54 -0
- package/.llm/digest/featuresplit.md +1 -0
- package/.llm/digest/featurestack.md +48 -0
- package/.llm/digest/illustrationscene.md +2 -3
- package/.llm/digest/imagebanner.md +64 -0
- package/.llm/digest/navbaritem.md +1 -0
- package/.llm/digest/pageheader.md +2 -1
- package/.llm/digest/paginationdots.md +3 -1
- package/.llm/digest/producthero.md +4 -2
- package/.llm/digest/resourcebanner.md +53 -0
- package/.llm/digest/scenescroll.md +49 -0
- package/.llm/digest/select.md +5 -0
- package/.llm/digest/stats.md +46 -0
- package/.llm/digest/steps.md +55 -0
- package/.llm/digest/stickycards.md +52 -0
- package/.llm/digest/tableheadercell.md +4 -0
- package/.llm/digest/teamgrid.md +53 -0
- package/.llm/digest/testimonialrow.md +2 -0
- package/.llm/digest/testimonialslider.md +4 -0
- package/.llm/digest/textarea.md +4 -0
- package/.llm/digest/textinput.md +4 -0
- package/.llm/digest/textscroll.md +43 -0
- package/.llm/digest/tiers.md +50 -0
- package/.llm/index.md +19 -3
- package/.llm/tokens.md +26 -1
- package/AGENTS.md +17 -1
- package/dist/components/awards-data.d.ts +24 -0
- package/dist/components/awards-data.js +11 -0
- package/dist/components/block-image-data.d.ts +24 -0
- package/dist/components/block-image-data.js +9 -0
- package/dist/components/blocks/awards/Awards.css +134 -0
- package/dist/components/blocks/awards/Awards.d.ts +24 -0
- package/dist/components/blocks/awards/Awards.js +114 -0
- package/dist/components/blocks/awards/Awards.types.d.ts +31 -0
- package/dist/components/blocks/awards/Awards.types.js +16 -0
- package/dist/components/blocks/awards/awards-impl.css +222 -0
- package/dist/components/blocks/cards-of.d.ts +16 -0
- package/dist/components/blocks/cards-of.js +23 -0
- package/dist/components/blocks/comparison-cards/ComparisonCards.css +195 -0
- package/dist/components/blocks/comparison-cards/ComparisonCards.d.ts +24 -0
- package/dist/components/blocks/comparison-cards/ComparisonCards.js +75 -0
- package/dist/components/blocks/comparison-cards/ComparisonCards.types.d.ts +49 -0
- package/dist/components/blocks/comparison-cards/ComparisonCards.types.js +26 -0
- package/dist/components/blocks/comparison-cards/comparison-cards-impl.css +262 -0
- package/dist/components/blocks/comparison-table/ComparisonTable.css +111 -0
- package/dist/components/blocks/comparison-table/ComparisonTable.d.ts +25 -0
- package/dist/components/blocks/comparison-table/ComparisonTable.js +100 -0
- package/dist/components/blocks/comparison-table/ComparisonTable.types.d.ts +36 -0
- package/dist/components/blocks/comparison-table/ComparisonTable.types.js +15 -0
- package/dist/components/blocks/comparison-table/comparison-table-impl.css +143 -0
- package/dist/components/blocks/cta-banner/CtaBanner.css +1 -0
- package/dist/components/blocks/cta-banner/CtaBanner.js +2 -2
- package/dist/components/blocks/cta-banner/CtaBanner.types.d.ts +4 -3
- package/dist/components/blocks/cta-banner/CtaBanner.types.js +1 -1
- package/dist/components/blocks/cta-banner-slider/CtaBannerSlider.css +1 -0
- package/dist/components/blocks/cta-banner-slider/CtaBannerSlider.d.ts +1 -1
- package/dist/components/blocks/cta-banner-slider/CtaBannerSlider.js +6 -2
- package/dist/components/blocks/cta-banner-slider/CtaBannerSlider.types.d.ts +8 -0
- package/dist/components/blocks/cta-banner-slider/CtaBannerSlider.types.js +1 -1
- package/dist/components/blocks/data-table/DataTable.css +170 -0
- package/dist/components/blocks/data-table/DataTable.d.ts +29 -0
- package/dist/components/blocks/data-table/DataTable.js +84 -0
- package/dist/components/blocks/data-table/DataTable.types.d.ts +69 -0
- package/dist/components/blocks/data-table/DataTable.types.js +19 -0
- package/dist/components/blocks/data-table/data-table-impl.css +155 -0
- package/dist/components/blocks/download-banner/DownloadBanner.css +228 -0
- package/dist/components/blocks/download-banner/DownloadBanner.d.ts +28 -0
- package/dist/components/blocks/download-banner/DownloadBanner.js +75 -0
- package/dist/components/blocks/download-banner/DownloadBanner.types.d.ts +56 -0
- package/dist/components/blocks/download-banner/DownloadBanner.types.js +23 -0
- package/dist/components/blocks/download-banner/download-banner-impl.css +216 -0
- package/dist/components/blocks/faq-accordion/FaqAccordion.css +1 -0
- package/dist/components/blocks/faq-accordion/faq-accordion-impl.css +3 -7
- package/dist/components/blocks/feature-bullets/FeatureBullets.css +1 -0
- package/dist/components/blocks/feature-bullets/feature-bullets-impl.css +14 -1
- package/dist/components/blocks/feature-cards/FeatureCards.css +1 -0
- package/dist/components/blocks/feature-cards/FeatureCards.d.ts +2 -1
- package/dist/components/blocks/feature-cards/FeatureCards.js +4 -21
- package/dist/components/blocks/feature-cards/feature-cards-impl.css +10 -9
- package/dist/components/blocks/feature-cards-carousel/FeatureCardsCarousel.css +115 -0
- package/dist/components/blocks/feature-cards-carousel/FeatureCardsCarousel.d.ts +30 -0
- package/dist/components/blocks/feature-cards-carousel/FeatureCardsCarousel.js +160 -0
- package/dist/components/blocks/feature-cards-carousel/FeatureCardsCarousel.types.d.ts +52 -0
- package/dist/components/blocks/feature-cards-carousel/FeatureCardsCarousel.types.js +17 -0
- package/dist/components/blocks/feature-cards-carousel/feature-cards-carousel-impl.css +207 -0
- package/dist/components/blocks/feature-scroll/FeatureScroll.css +1 -0
- package/dist/components/blocks/feature-split/FeatureSplit.css +1 -0
- package/dist/components/blocks/feature-split/feature-split-impl.css +14 -1
- package/dist/components/blocks/feature-stack/FeatureStack.css +86 -0
- package/dist/components/blocks/feature-stack/FeatureStack.d.ts +19 -0
- package/dist/components/blocks/feature-stack/FeatureStack.js +27 -0
- package/dist/components/blocks/feature-stack/FeatureStack.types.d.ts +34 -0
- package/dist/components/blocks/feature-stack/FeatureStack.types.js +14 -0
- package/dist/components/blocks/feature-stack/feature-stack-impl.css +87 -0
- package/dist/components/blocks/image-banner/ImageBanner.css +133 -0
- package/dist/components/blocks/image-banner/ImageBanner.d.ts +32 -0
- package/dist/components/blocks/image-banner/ImageBanner.js +41 -0
- package/dist/components/blocks/image-banner/ImageBanner.types.d.ts +54 -0
- package/dist/components/blocks/image-banner/ImageBanner.types.js +14 -0
- package/dist/components/blocks/image-banner/image-banner-impl.css +281 -0
- package/dist/components/blocks/landing-hero/LandingHero.css +1 -0
- package/dist/components/blocks/logo-columns/LogoColumns.css +1 -0
- package/dist/components/blocks/logo-rows/LogoRows.css +1 -0
- package/dist/components/blocks/page-header/PageHeader.css +1 -0
- package/dist/components/blocks/page-header/PageHeader.js +2 -2
- package/dist/components/blocks/page-header/PageHeader.types.d.ts +4 -2
- package/dist/components/blocks/page-header/PageHeader.types.js +1 -1
- package/dist/components/blocks/page-header/page-header-impl.css +5 -3
- package/dist/components/blocks/product-hero/ProductHero.css +8 -3
- package/dist/components/blocks/product-hero/ProductHero.d.ts +1 -1
- package/dist/components/blocks/product-hero/ProductHero.js +5 -2
- package/dist/components/blocks/product-hero/ProductHero.types.d.ts +5 -1
- package/dist/components/blocks/product-hero/ProductHero.types.js +1 -0
- package/dist/components/blocks/product-hero/product-hero-impl.css +43 -12
- package/dist/components/blocks/resource-banner/ResourceBanner.css +106 -0
- package/dist/components/blocks/resource-banner/ResourceBanner.d.ts +32 -0
- package/dist/components/blocks/resource-banner/ResourceBanner.js +51 -0
- package/dist/components/blocks/resource-banner/ResourceBanner.types.d.ts +44 -0
- package/dist/components/blocks/resource-banner/ResourceBanner.types.js +14 -0
- package/dist/components/blocks/resource-banner/resource-banner-impl.css +69 -0
- package/dist/components/blocks/scene-scroll/SceneScroll.css +93 -0
- package/dist/components/blocks/scene-scroll/SceneScroll.d.ts +36 -0
- package/dist/components/blocks/scene-scroll/SceneScroll.js +54 -0
- package/dist/components/blocks/scene-scroll/SceneScroll.types.d.ts +32 -0
- package/dist/components/blocks/scene-scroll/SceneScroll.types.js +15 -0
- package/dist/components/blocks/scene-scroll/scene-scroll-impl.css +275 -0
- package/dist/components/blocks/stats/Stats.css +139 -0
- package/dist/components/blocks/stats/Stats.d.ts +24 -0
- package/dist/components/blocks/stats/Stats.js +120 -0
- package/dist/components/blocks/stats/Stats.types.d.ts +36 -0
- package/dist/components/blocks/stats/Stats.types.js +19 -0
- package/dist/components/blocks/stats/stats-count.d.ts +34 -0
- package/dist/components/blocks/stats/stats-count.js +61 -0
- package/dist/components/blocks/stats/stats-impl.css +284 -0
- package/dist/components/blocks/stats/use-wheel.d.ts +37 -0
- package/dist/components/blocks/stats/use-wheel.js +126 -0
- package/dist/components/blocks/steps/Steps.css +202 -0
- package/dist/components/blocks/steps/Steps.d.ts +32 -0
- package/dist/components/blocks/steps/Steps.js +65 -0
- package/dist/components/blocks/steps/Steps.types.d.ts +48 -0
- package/dist/components/blocks/steps/Steps.types.js +21 -0
- package/dist/components/blocks/steps/steps-impl.css +216 -0
- package/dist/components/blocks/steps/use-turn.d.ts +33 -0
- package/dist/components/blocks/steps/use-turn.js +75 -0
- package/dist/components/blocks/sticky-cards/StickyCards.css +154 -0
- package/dist/components/blocks/sticky-cards/StickyCards.d.ts +35 -0
- package/dist/components/blocks/sticky-cards/StickyCards.js +153 -0
- package/dist/components/blocks/sticky-cards/StickyCards.types.d.ts +43 -0
- package/dist/components/blocks/sticky-cards/StickyCards.types.js +18 -0
- package/dist/components/blocks/sticky-cards/sticky-cards-impl.css +393 -0
- package/dist/components/blocks/team-grid/TeamGrid.css +159 -0
- package/dist/components/blocks/team-grid/TeamGrid.d.ts +28 -0
- package/dist/components/blocks/team-grid/TeamGrid.js +74 -0
- package/dist/components/blocks/team-grid/TeamGrid.types.d.ts +51 -0
- package/dist/components/blocks/team-grid/TeamGrid.types.js +20 -0
- package/dist/components/blocks/team-grid/team-grid-impl.css +129 -0
- package/dist/components/blocks/testimonial-row/TestimonialRow.css +1 -0
- package/dist/components/blocks/testimonial-row/TestimonialRow.d.ts +1 -1
- package/dist/components/blocks/testimonial-row/TestimonialRow.js +4 -3
- package/dist/components/blocks/testimonial-row/TestimonialRow.types.d.ts +3 -0
- package/dist/components/blocks/testimonial-row/TestimonialRow.types.js +1 -1
- package/dist/components/blocks/testimonial-row/testimonial-row-impl.css +8 -0
- package/dist/components/blocks/testimonial-slider/TestimonialSlider.css +1 -0
- package/dist/components/blocks/testimonial-slider/TestimonialSlider.d.ts +1 -1
- package/dist/components/blocks/testimonial-slider/TestimonialSlider.js +2 -2
- package/dist/components/blocks/testimonial-slider/TestimonialSlider.types.d.ts +8 -0
- package/dist/components/blocks/testimonial-slider/TestimonialSlider.types.js +1 -1
- package/dist/components/blocks/text-scroll/TextScroll.css +53 -0
- package/dist/components/blocks/text-scroll/TextScroll.d.ts +5 -0
- package/dist/components/blocks/text-scroll/TextScroll.js +71 -0
- package/dist/components/blocks/text-scroll/TextScroll.types.d.ts +22 -0
- package/dist/components/blocks/text-scroll/TextScroll.types.js +10 -0
- package/dist/components/blocks/text-scroll/text-scroll-impl.css +115 -0
- package/dist/components/blocks/tiers/Tiers.css +233 -0
- package/dist/components/blocks/tiers/Tiers.d.ts +32 -0
- package/dist/components/blocks/tiers/Tiers.js +68 -0
- package/dist/components/blocks/tiers/Tiers.types.d.ts +45 -0
- package/dist/components/blocks/tiers/Tiers.types.js +25 -0
- package/dist/components/blocks/tiers/tiers-impl.css +185 -0
- package/dist/components/blocks/use-rotation.d.ts +12 -2
- package/dist/components/blocks/use-rotation.js +6 -28
- package/dist/components/comparison-cards-data.d.ts +59 -0
- package/dist/components/comparison-cards-data.js +12 -0
- package/dist/components/comparison-table-data.d.ts +39 -0
- package/dist/components/comparison-table-data.js +11 -0
- package/dist/components/core/accordion-item/AccordionItem.css +1 -5
- package/dist/components/core/background/Background.css +23 -0
- package/dist/components/core/background/Background.d.ts +10 -4
- package/dist/components/core/background/Background.js +16 -7
- package/dist/components/core/background/Background.types.d.ts +11 -8
- package/dist/components/core/background/Background.types.js +3 -1
- package/dist/components/core/background/background-impl.css +334 -1
- package/dist/components/core/background/halftone.d.ts +11 -0
- package/dist/components/core/background/halftone.js +43 -3
- package/dist/components/core/background/patterns.d.ts +66 -0
- package/dist/components/core/background/patterns.js +244 -0
- package/dist/components/core/background/shader.d.ts +44 -0
- package/dist/components/core/background/shader.js +307 -0
- package/dist/components/core/background/use-shader.d.ts +11 -0
- package/dist/components/core/background/use-shader.js +25 -0
- package/dist/components/core/background/use-spotlight.d.ts +2 -1
- package/dist/components/core/background/use-spotlight.js +9 -1
- package/dist/components/core/bottom-sheet/BottomSheet.js +2 -2
- package/dist/components/core/bottom-sheet/BottomSheet.types.d.ts +3 -1
- package/dist/components/core/breadcrumb/Breadcrumb.d.ts +1 -0
- package/dist/components/core/breadcrumb/Breadcrumb.js +1 -0
- package/dist/components/core/breadcrumb/breadcrumb-impl.css +11 -0
- package/dist/components/core/button/button-impl.css +14 -1
- package/dist/components/core/illustration-card/IllustrationCard.js +1 -1
- package/dist/components/core/illustration-card/illustration-card-impl.css +20 -0
- package/dist/components/core/illustration-scene/IllustrationScene.css +4 -7
- package/dist/components/core/illustration-scene/IllustrationScene.types.d.ts +2 -3
- package/dist/components/core/illustration-scene/illustration-scene-impl.css +7 -1
- package/dist/components/core/link/Link.js +7 -3
- package/dist/components/core/link/link-impl.css +29 -2
- package/dist/components/core/navbar/Navbar.css +2 -2
- package/dist/components/core/navbar/Navbar.types.d.ts +1 -1
- package/dist/components/core/navbar-item/NavbarItem.d.ts +2 -1
- package/dist/components/core/navbar-item/NavbarItem.js +3 -10
- package/dist/components/core/navbar-item/NavbarItem.types.d.ts +4 -1
- package/dist/components/core/navbar-item/NavbarItem.types.js +1 -1
- package/dist/components/core/navbar-item/navbar-item-impl.css +10 -0
- package/dist/components/core/navbar-menu/navbar-menu-impl.css +9 -0
- package/dist/components/core/navbar-switcher/navbar-switcher-impl.css +19 -0
- package/dist/components/core/pagination/Pagination.js +1 -1
- package/dist/components/core/pagination/pagination-impl.css +9 -0
- package/dist/components/core/pagination-dots/PaginationDots.d.ts +1 -1
- package/dist/components/core/pagination-dots/PaginationDots.js +3 -3
- package/dist/components/core/pagination-dots/PaginationDots.types.d.ts +3 -1
- package/dist/components/core/segmented-control/SegmentedControl.css +4 -3
- package/dist/components/core/segmented-control/SegmentedControl.js +17 -3
- package/dist/components/core/segmented-control-item/SegmentedControlItem.css +2 -1
- package/dist/components/core/select/Select.js +3 -3
- package/dist/components/core/select/Select.types.d.ts +11 -1
- package/dist/components/core/select/Select.types.js +1 -1
- package/dist/components/core/tab-list/TabList.js +9 -1
- package/dist/components/core/table-header-cell/TableHeaderCell.d.ts +1 -1
- package/dist/components/core/table-header-cell/TableHeaderCell.js +5 -2
- package/dist/components/core/table-header-cell/TableHeaderCell.types.d.ts +7 -1
- package/dist/components/core/table-header-cell/TableHeaderCell.types.js +1 -1
- package/dist/components/core/text-area/TextArea.d.ts +1 -1
- package/dist/components/core/text-area/TextArea.js +2 -2
- package/dist/components/core/text-area/TextArea.types.d.ts +9 -1
- package/dist/components/core/text-area/TextArea.types.js +1 -1
- package/dist/components/core/text-input/TextInput.d.ts +1 -1
- package/dist/components/core/text-input/TextInput.js +2 -2
- package/dist/components/core/text-input/TextInput.types.d.ts +9 -1
- package/dist/components/core/text-input/TextInput.types.js +1 -1
- package/dist/components/data-table-data.d.ts +33 -0
- package/dist/components/data-table-data.js +12 -0
- package/dist/components/download-banner-data.d.ts +52 -0
- package/dist/components/download-banner-data.js +11 -0
- package/dist/components/index.d.ts +45 -0
- package/dist/components/index.js +32 -0
- package/dist/components/resource-banner-data.d.ts +34 -0
- package/dist/components/resource-banner-data.js +13 -0
- package/dist/components/scene-scroll-data.d.ts +24 -0
- package/dist/components/scene-scroll-data.js +9 -0
- package/dist/components/stats-data.d.ts +28 -0
- package/dist/components/stats-data.js +11 -0
- package/dist/components/steps-data.d.ts +38 -0
- package/dist/components/steps-data.js +13 -0
- package/dist/components/sticky-cards-data.d.ts +43 -0
- package/dist/components/sticky-cards-data.js +12 -0
- package/dist/components/team-grid-data.d.ts +38 -0
- package/dist/components/team-grid-data.js +11 -0
- package/dist/components/tiers-data.d.ts +47 -0
- package/dist/components/tiers-data.js +13 -0
- package/dist/marketing.css +77 -28
- package/package.json +1 -1
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
<!-- GENERATED from awards.contract.json. Do not edit. -->
|
|
2
|
+
|
|
3
|
+
# Awards
|
|
4
|
+
|
|
5
|
+
A section of social proof that lists the industry awards a company has won, each a badge between two laurels: a laurel, the award's name and its issuer, and the same laurel mirrored. From the fold the badges wrap into rows centred under the heading, five at most to a row and fewer as the band narrows, a short last row centred rather than left at the start. On a phone they run in one row across the band that moves along on its own, a loop with no seam.
|
|
6
|
+
|
|
7
|
+
The reference design's FeatureAwards, phone marquee included, at motion.duration.ticker per award. It holds still while a pointer rests on it, while it has focus — it is a tab stop named by the heading while it runs — and while it is pressed; a reader who asked for less motion gets the row still, to swipe.
|
|
8
|
+
|
|
9
|
+
## Use when
|
|
10
|
+
|
|
11
|
+
- Building credibility with the industry awards a company has won — a “Why choose us”, about-us or trust page
|
|
12
|
+
- Six awards or more, enough that the phone's row reads as running on past the band's edge and the rows from the fold read as a field
|
|
13
|
+
|
|
14
|
+
## Do not use
|
|
15
|
+
|
|
16
|
+
- One to three awards, or a few figures that make the case → `FeatureCards`
|
|
17
|
+
- Partners, integrations or payment methods rather than awards → `LogoRows`
|
|
18
|
+
- Reviews from customers rather than recognition from the industry → `TestimonialRow`
|
|
19
|
+
- An award the company has not won, or one restated in words the issuer did not use. Each badge is a claim made in the issuer's name
|
|
20
|
+
- Awards a reader is meant to press through to. The badges are words, not links; a page that needs each to open a press release wants cards
|
|
21
|
+
- The page's opening band. This sits under the page's heading, never in place of it
|
|
22
|
+
|
|
23
|
+
## Anatomy
|
|
24
|
+
|
|
25
|
+
Awards renders 10 elements. A token binding names the part it applies to.
|
|
26
|
+
|
|
27
|
+
- `root` — `<section>`, class `dds-awards`. The section. It paints the ground and the ink to go with it — see `ground` — and asks its own width, which is what the row folds on and what the phone's row runs out to. A region named by its heading.
|
|
28
|
+
- `inner` — `<div>`, class `dds-awards__inner`. The measure and the gutter, the same column every band holds its content in, and the step from the heading to the awards: space.heading.content.
|
|
29
|
+
- `header` — `<div>`, class `dds-awards__header`. The heading, held to size.measure.heading. Ranged to the start on a phone and centred from the fold, FeatureCards' arrangement and its reason.
|
|
30
|
+
- `title` — `<h2>`, class `dds-awards__title`. What the badges are. `h2` because a section sits under the page's own heading.
|
|
31
|
+
- `list` — `<ul>`, class `dds-awards__list`. The awards, a list. From the fold it wraps into rows centred under the heading, at space.grid.gutter across and down — five badges at most to a row, fewer as the band narrows, and a short last row centred rather than left at the start. On a phone it is one row instead, run out to the band's edges, that moves along on its own — the awards drawn twice, the second set hidden from assistive technology, so the loop has no seam. For a reader who asked for less motion it stands still, its first badge in line with the heading, and is swiped, coming to rest on a badge. While that row runs or is wider than the band it carries a tab stop of its own, named by the heading, so a keyboard can scroll to the badges a thumb reaches — Scroller's rule; once every badge shows, it has none.
|
|
32
|
+
- `award` — `<li>`, class `dds-awards__award`. One badge: a laurel, the award's words and the laurel mirrored, in a line and centred on each other. Never wider than size.grid.track-md: from the fold the badges grow to share a row and stop there, so a short row does not stretch a badge across the band; on a phone each is that wide and does not shrink.
|
|
33
|
+
- `laurel` — `<svg>`, class `dds-awards__laurel`. A laurel branch, decorative and hidden from assistive technology, drawn in the band's quieter ink — color.fg.muted, or color.fg.muted-inverse on the dark band — at icon.size.md wide. One drawing, the second mirrored, so the two branches turn their leaves in toward the words; in a right-to-left page the mirroring swaps sides with them.
|
|
34
|
+
- `copy` — `<div>`, class `dds-awards__copy`. The award's words between the laurels, centred, its name over its issuer at space.heading.title-description-compact.
|
|
35
|
+
- `name` — `<p>`, class `dds-awards__name`. What the award was for, at font.label.sm — the weight that makes it the line read first.
|
|
36
|
+
- `issuer` — `<p>`, class `dds-awards__issuer`. Who gave it, and the year, at font.body.sm under the name, in the same ink: the reference design sets the two apart by weight alone.
|
|
37
|
+
|
|
38
|
+
Apply these classes from the generated `awardsParts` constant rather than writing the strings by hand.
|
|
39
|
+
|
|
40
|
+
## Composition
|
|
41
|
+
|
|
42
|
+
- Takes no children. Everything it renders comes from props
|
|
43
|
+
- Never contains: `Awards`, `LandingHero`, `ProductHero`, `PageHeader`, `Footer`, `Navbar` — in children or in any prop that takes a node
|
|
44
|
+
|
|
45
|
+
## Props
|
|
46
|
+
|
|
47
|
+
### ground — `page` | `subtle` | `strong` (default `page`)
|
|
48
|
+
|
|
49
|
+
- `page` — The default, and the reference design's: the page's own white, with the laurels in color.fg.muted
|
|
50
|
+
- `subtle` — The grey band, for a section that needs setting apart from the one above it. Painted as the band's tint laid over the page's own ground, so it is the same grey whatever is behind the section
|
|
51
|
+
- `strong` — `color.bg.brand-strong`, the dark band, for a section a reader should arrive at. The heading and the awards turn white and the laurels take color.fg.muted-inverse, the band's own quieter ink
|
|
52
|
+
|
|
53
|
+
Use when: Which of the page's three grounds this section paints, and with it the ink: the awards' words take the band's ink and the laurels its quieter one. The page's white is the reference design's ground for this section.
|
|
54
|
+
Never for: Marking importance. Every section on a page painted a ground is a page with no emphasis left, and a reader stops reading the grounds as meaning anything.
|
|
55
|
+
|
|
56
|
+
And never the brand's own coral, `color.bg.brand`, which is not offered here. That ground belongs to the band that asks a reader to do something, and an awards section asks for nothing.
|
|
57
|
+
|
|
58
|
+
### title — `string` **Required.**
|
|
59
|
+
|
|
60
|
+
Use when: Always. What the badges are, in the fewest words that name them — "Our awards".
|
|
61
|
+
Never for: An award, or a claim the awards are meant to prove. The badges are the evidence; the heading only says what they are.
|
|
62
|
+
|
|
63
|
+
### awards — `data` `Award[]` **Required.**
|
|
64
|
+
|
|
65
|
+
Use when: Always. The awards, in the order they are read — across each row from the fold, and along the one row on a phone. Newest first, usually: the year is what says a claim is current. Six or more, so the phone's row runs on past the band's edge. An empty list draws nothing.
|
|
66
|
+
Never for: An award listed twice to fill a row. A page passes each award once; the rows are the section's to arrange.
|
|
67
|
+
|
|
68
|
+
## Accessibility
|
|
69
|
+
|
|
70
|
+
Guaranteed by the component. Write none of it by hand: the ids these attributes point at are generated per instance, so an attribute set from outside either says the same thing twice or points at nothing.
|
|
71
|
+
|
|
72
|
+
- Announced as: `region`
|
|
73
|
+
- `Tab` — On a phone, while the row of awards runs or is wider than the band, moves to the row — focus holds a running row still. Nothing else here takes focus: the badges are words, not links.
|
|
74
|
+
- `ArrowLeft` — On the focused row: scrolls it the way the key points — the browser's own scrolling, made reachable by the row's tab stop. Towards the start in a left-to-right page, towards the end in a right-to-left one.
|
|
75
|
+
- `ArrowRight` — On the focused row: scrolls it the way the key points, the mirror of ArrowLeft.
|
|
76
|
+
- accessible name from title, so the section is a named region a reader can jump to and skip
|
|
77
|
+
- The awards are a list, announced with their count, each award once — its name, then its issuer. The laurels are hidden from assistive technology.
|
|
78
|
+
- A row that runs or is wider than the band has a tab stop of its own, named by the heading, so a keyboard can reach it — to hold it still, or to scroll it; a row that shows every award, standing still, has none.
|
|
79
|
+
- On a phone the row moves on its own, so it can be held (WCAG 2.2.2): it holds still while a pointer rests on it, while it has focus, and while it is pressed, and never runs for a reader who asked for less motion. The running row's second set is hidden from assistive technology, so each award is counted once.
|
|
80
|
+
|
|
81
|
+
## Rules
|
|
82
|
+
|
|
83
|
+
- **On a phone a section's actions stack and each fills the width, including when there is only one** — On a phone a page's actions stack, and each one fills the width. Not most of it, and not the width its label happens to need — the whole column.
|
|
84
|
+
|
|
85
|
+
Two side by side is what this replaces. On the narrowest screen each gets half a column minus the gap, which is rarely enough for a real label: the words wrap inside the pills, the two buttons come out different heights, and the pair reads as a broken row rather than as a choice. Stacked, each has the whole width and neither has to shorten its words to fit.
|
|
86
|
+
|
|
87
|
+
A single action fills too, and that is the part worth saying, because it is the one that looks unnecessary. A lone button has the room to sit at its natural width and still should not: a full-width control is the phone's convention for the thing the screen is asking you to do, and a pill hugging its label reads as one option among others that are not there. It also makes the target predictable — the whole width, wherever the thumb lands — which a centred pill does not.
|
|
88
|
+
|
|
89
|
+
Filling is the row's job rather than the button's. A button has no width of its own and is not given one; the row it sits in becomes a column and stretches its children, so nothing about the control changes and the same button is full width here and its own size on a desktop.
|
|
90
|
+
|
|
91
|
+
This is the phone's breakpoint, size.breakpoint.md, and not the wider one that decides whether a heading is centred. Those are different questions and they break at different widths: a heading stops being centred when the measure is the screen, while a button stops being full width much sooner than that — stretched across a tablet it is a long way from its own label, and a label centred in a metre of pill is harder to hit than one in a pill the size of the words.
|
|
92
|
+
|
|
93
|
+
What this is not about is every row of controls. A set of filter chips, a pagination strip, a toolbar, a link sitting after a sentence — none of these is the page asking for something, and stacking them to full width would turn a strip the eye skims into a list it has to read. The test is whether the row is the call to action the section was written for.
|
|
94
|
+
Guidance only — cannot be checked automatically.
|
|
95
|
+
- **Never nest one interactive element inside another** — Nested interactive elements produce ambiguous hit targets and an unreachable inner control for keyboard and screen-reader users. This is why the rule cannot live on any single component — it constrains Button, Link, CardButton and TextInput simultaneously.
|
|
96
|
+
Guidance only — cannot be checked automatically.
|
|
97
|
+
- **A section that paints a ground sets the ink to go with it** — A page sits on color.bg.page, and a section that separates itself from it takes one of three grounds. color.bg.subtle is the light one and needs nothing further — the page's own ink still reads on it. The other two are dark and do not: color.bg.brand-strong takes color.fg.on-brand-strong, and color.bg.brand takes color.fg.on-solid. Both are white, and both are written as the role rather than the white they resolve to. Set one of those backgrounds without its ink and the text inherits whatever the page was already using, which is near-black on a dark band — legible to nobody, and invisible to every check here, because each pair passes contrast on its own and nothing can tell whether a section used both.
|
|
98
|
+
|
|
99
|
+
color.bg.brand carries a second limit that is not about forgetting. Its ink measures 3.39:1, which clears the 3:1 a heading needs and misses the 4.5:1 running copy needs. A coral band may carry a headline and a call to action; a paragraph on one is text the reader has to work through at a ratio the waiver on that role does not cover — the waiver says so itself. A section with copy in it takes color.bg.brand-strong, which is near-black and carries white at full contrast.
|
|
100
|
+
|
|
101
|
+
color.bg.strong is not a section ground. It is the inverted fill for an action that has to outrank what surrounds it, and the components that paint it — Button and ButtonIcon in their inverse form — already set both halves in one rule, which is the pattern a hand-painted section has to copy.
|
|
102
|
+
Guidance only — cannot be checked automatically.
|
|
103
|
+
- **Every gap inside a section names the relationship it expresses, and the same relationship keeps its measure when it turns on its side** — A section's spacing is named by the relationship it expresses, not chosen by size. Every gap in a section has a role token, and reaching for a step off the generic scale because it happens to be the right number is how two sections written by two people stop lining up: the numbers agree today and drift the first time one of them is tuned.
|
|
104
|
+
|
|
105
|
+
The heading group is three steps, not one gap. An eyebrow sits nearer its title than the title sits to its description, and the actions sit further from the description than either — space.heading.eyebrow-title, space.heading.title-description, space.heading.description-actions, in that order. A single `gap` on the group cannot say this; it sets all three the same and the block reads as evenly spaced lines rather than as a mark, a name and a paragraph. The eyebrow has to identify itself for this to work, because a group that opens with a title must not give its description the eyebrow's tighter step.
|
|
106
|
+
|
|
107
|
+
The step between a title and its description follows the size of the title, which is why there are two of it. What a reader sees is not the gap but the gap plus the leading above it, and leading scales with the type: under a display title the leading is most of the space, under a card's title it is half as deep. One value for both makes a card look loose at the size that made a section look right. So space.heading.title-description is the display step and space.heading.title-description-compact is the step at a card's size, and the choice is made by how big the title is rather than by what kind of block it sits in.
|
|
108
|
+
|
|
109
|
+
Every one of those steps is smaller than the gap below the group, and that ordering is what holds the group together as one thing. space.heading.content is the step between a heading group and the content it introduces, and it is the widest measure inside a section: the one gap the eye reads as a change of subject rather than as a continuation.
|
|
110
|
+
|
|
111
|
+
That step is the same whether the content is under the heading or beside it. A split is the same relationship turned on its side — a heading group and the content it introduces — so the space between the two halves is space.heading.content, not a gutter. When the split collapses to one column on a phone the gap becomes vertical again, which is where it started, and nothing has to change for that to be right.
|
|
112
|
+
|
|
113
|
+
space.grid.gutter is between two things of the same kind. Two cards in a row are the same kind; the two halves of a split are not, which is why the gutter is the wrong measure there even when the number would have looked acceptable. The gutter runs on both axes, so a grid reads as an even field rather than as rows with a seam down them.
|
|
114
|
+
|
|
115
|
+
space.inset.card is the card's, not the page's. A row of cards padded differently is a row of different cards, and the fill is the only edge they have. A page composing a row does not get to choose it.
|
|
116
|
+
|
|
117
|
+
Column count is not a breakpoint decision. A row holds as many columns as fit before a column would be narrower than size.grid.column-min, and drops one when they would not. Written as a fixed count that collapses at a breakpoint, a four-up row keeps four columns at every width above the phone and sets its copy two or three words to a line through the whole of the tablet range — and on a narrow desktop, which no breakpoint sits on at all. The threshold is a property of the row rather than of a card: a card fills whatever cell it is given.
|
|
118
|
+
|
|
119
|
+
What this does not cover is the space above and below a section, which is space.section.default and space.section.compact, and the page's own side margin, which is space.inset.page. Those are the section's outside; everything here is its inside.
|
|
120
|
+
Guidance only — cannot be checked automatically.
|
|
121
|
+
- **A section's title is centred over stacked content, starts beside content in columns, and starts on a phone** — Two arrangements, and the title's alignment is decided by which one it is introducing rather than chosen per section.
|
|
122
|
+
|
|
123
|
+
Content stacked under the title — a row of cards, an accordion, a set of steps — takes a centred title. The heading group and the block below it share one axis, so a centred title is symmetric with the thing it names, and the eye drops from the middle of the words to the middle of the set. A title starting at the left over a centred or full-width block reads as belonging to the first column rather than to all of them.
|
|
124
|
+
|
|
125
|
+
Content beside the title — a split, a picture in the other half, anything laid out in columns — takes a title that starts where its content starts. The two share a left edge, and that edge is what says they are one thing read across rather than two stacked. Centring the title there breaks the only alignment the reader has to hold the halves together, and it drifts further from its content the wider the page gets.
|
|
126
|
+
|
|
127
|
+
The heading group is what carries this, not the heading alone. An eyebrow, a title and a description are read as one block and align together; aligning the title without them leaves a centred heading over start-aligned copy, which reads as a mistake rather than as a choice.
|
|
128
|
+
|
|
129
|
+
Centred means all of it, not just the words. A badge, a row of actions, a picture — these are flex children, and a flex child is placed by align-items rather than by text-align, so a block that only sets the text leaves everything that is not text at the start. A hero is the case that shows it: its title and copy centred while its badge and its buttons did not.
|
|
130
|
+
|
|
131
|
+
A capped block centres itself as well as its words. A heading group takes size.heading-group.max, and a cap that is not centred leaves the measure at the start of the column with the words centred inside it — composed, and a long way left of the middle it appears to be in.
|
|
132
|
+
|
|
133
|
+
Both arrangements go to the start on a phone. A centred block reverts below the breakpoint, and the reason is the measure: on a phone the measure is the screen, so a centred title wraps to three or four ragged lines and the eye loses the left edge it was tracking — the same symmetry that reads as composure on a desktop is what makes it hard to scan on a phone. Centring there has to be asked for twice, and a section title is not one of the things that asks: it is centred because there is room for it, and on a phone there is not. Going back to the start means all of it too, and a capped block is the one that hides a leftover: its words go to the start while its measure stays in the middle of the column, which reads as a title still centred over a badge and buttons that are not — the box in the middle and the line inside it at the edge.
|
|
134
|
+
|
|
135
|
+
A hero is a section like any other: its badge, title, copy and actions are one stacked block, so it is centred on a desktop and starts on a phone with everything else.
|
|
136
|
+
|
|
137
|
+
What this is not about is a page whose body is a form or a document. A title over a sign-up form or a guide is not introducing a set of content — it is the first line of the thing itself, and it keeps the alignment the body has, which for running text is the start. The distinction is whether the block below is content the title names or content the title is part of.
|
|
138
|
+
Guidance only — cannot be checked automatically.
|
|
139
|
+
- **Anything a pointer has to hit is at least 24px in both directions** — A control sized by its contents is as big as its contents, and a glyph is chosen for how it reads rather than for how easily it is hit. An icon-only button with no padding is a 16px target — smaller than the pad of a finger, and smaller than the tremor of a hand using a mouse.
|
|
140
|
+
|
|
141
|
+
WCAG 2.2 asks for 24 by 24 CSS pixels at AA. The exceptions are narrower than they look: inline targets inside a sentence are exempt, and so is a small target with 24px of clear space around it — but a clear button sits against the field it empties, and a field is itself a target, so the spacing exemption does not apply to the case that keeps arising.
|
|
142
|
+
|
|
143
|
+
The target and the mark are separate decisions, and conflating them is what produces both faults. Growing the glyph to 24px makes it shout; leaving the button at 16px makes it hard to hit. So the glyph keeps the size that reads correctly beside its text, and the box around it declares a minimum of its own — which is what size.target.min is for.
|
|
144
|
+
|
|
145
|
+
Declared rather than emergent. Padding plus contents does clear 24px in several components today, and it is the weaker statement: it is a size nobody wrote down, so it moves when the type scale or the glyph does, and nothing says it was meant to be a target at all.
|
|
146
|
+
Guidance only — cannot be checked automatically.
|
|
147
|
+
- **A component is written along the reading axis, not along the page's left and right** — Every measure, inset and placement in this package names an axis rather than a side: inline-size and block-size, padding-inline and padding-block, inset-inline-start and inset-block-end, margin-inline: auto, text-align: start. Written that way a component follows whichever direction the page is read in, and a band whose claim ranges to the leading edge with its subject on the trailing one is the same composition in Arabic as in English, mirrored, with nothing restated. Written as left and right it is the same pixels in both, which is a layout nobody designed for the second language.
|
|
148
|
+
|
|
149
|
+
The enum values follow the same rule and for the same reason. A prop that names where a picture sits takes start and end, never left and right — FeatureSplit, FeatureBullets and FeatureScroll all declare mediaPosition that way, and the flex directions they generate flip on their own because row already means the reading order. A value called left would have to be re-read as right by every author working in a mirrored page, which is a translation this system should be doing rather than asking for.
|
|
150
|
+
|
|
151
|
+
The guidance a contract carries is part of the component, so it follows too. Describing a claim as ranging left is describing one of the two languages, and it was written that way here for a while: three of the opening bands said so in their own intent. A reader in a mirrored page meets that sentence and has to decide whether the component is wrong or the sentence is, and neither answer is one documentation should force.
|
|
152
|
+
|
|
153
|
+
Two things genuinely have no logical form and are not covered by this. A CSS gradient takes a physical direction — there is no to inline-end — so a pattern that must mirror has to be stated twice under a direction query, and one that is periodic and centred, like PageHeader's rule grid, does not need to. A glyph that points the way onward is the other: an arrow is a picture of a direction, and mirroring it belongs to the icon set rather than to the component holding it.
|
|
154
|
+
Guidance only — cannot be checked automatically.
|
|
155
|
+
|
|
156
|
+
## Anti-examples
|
|
157
|
+
|
|
158
|
+
❌ Awards for: One to three awards, or a few figures that make the case
|
|
159
|
+
A handful of things read side by side is a row of cards; a wreathed list of three looks like a list that ran out
|
|
160
|
+
→ use `FeatureCards` instead.
|
|
161
|
+
|
|
162
|
+
❌ Awards for: Partners, integrations or payment methods rather than awards
|
|
163
|
+
A partner is shown by its mark; an award is a sentence, and a sentence is what this sets
|
|
164
|
+
→ use `LogoRows` instead.
|
|
165
|
+
|
|
166
|
+
❌ Awards for: Reviews from customers rather than recognition from the industry
|
|
167
|
+
A review is a quote and a person; an award is a title and an issuer, and neither block draws the other's
|
|
168
|
+
→ use `TestimonialRow` instead.
|
|
169
|
+
|
|
170
|
+
## Example
|
|
171
|
+
|
|
172
|
+
```tsx
|
|
173
|
+
import { Awards } from '@deriv-com/dds-marketing'
|
|
174
|
+
|
|
175
|
+
<Awards title="Our awards" awards={[{"title":"Best Trade Execution Award (MEA)","issuer":"Ultimate Fintech 2026"},{"title":"Best Trading Experience - Global","issuer":"UF Awards 2025"},{"title":"Best CFD Broker - LATAM","issuer":"UF Awards 2025"},{"title":"Most Innovative Broker - MEA","issuer":"UF Awards 2025"},{"title":"Most Transparent Broker - Global","issuer":"Global Forex Awards 2025"},{"title":"Best Broker - Africa","issuer":"Global Forex Awards 2025"},{"title":"Best Trading Platform - MENA","issuer":"Global Forex Awards 2025"},{"title":"Most Innovative Online Trading Platform","issuer":"Forex Expo Dubai 2025"},{"title":"Chief Risk & Compliance Officer of the Year","issuer":"Forex Expo Dubai 2025"},{"title":"Best Broker - APAC","issuer":"UF Awards 2025"},{"title":"Best Trading Conditions - Global","issuer":"Finance Magnates 2025"},{"title":"Most Trusted Broker - Middle East","issuer":"Finance Magnates 2025"}]} />
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
## In use
|
|
179
|
+
|
|
180
|
+
### Awards between laurels
|
|
181
|
+
|
|
182
|
+
Centred rows of five at most from the fold, a short last row centred; one row that runs on its own on a phone, holding still under a finger or focus.
|
|
183
|
+
|
|
184
|
+
```tsx
|
|
185
|
+
import { Awards } from '@deriv-com/dds-marketing'
|
|
186
|
+
|
|
187
|
+
// Twelve awards — two full rows and a short one
|
|
188
|
+
<Awards title="Our awards" awards={[{"title":"Best Trade Execution Award (MEA)","issuer":"Ultimate Fintech 2026"},{"title":"Best Trading Experience - Global","issuer":"UF Awards 2025"},{"title":"Best CFD Broker - LATAM","issuer":"UF Awards 2025"},{"title":"Most Innovative Broker - MEA","issuer":"UF Awards 2025"},{"title":"Most Transparent Broker - Global","issuer":"Global Forex Awards 2025"},{"title":"Best Broker - Africa","issuer":"Global Forex Awards 2025"},{"title":"Best Trading Platform - MENA","issuer":"Global Forex Awards 2025"},{"title":"Most Innovative Online Trading Platform","issuer":"Forex Expo Dubai 2025"},{"title":"Chief Risk & Compliance Officer of the Year","issuer":"Forex Expo Dubai 2025"},{"title":"Best Broker - APAC","issuer":"UF Awards 2025"},{"title":"Best Trading Conditions - Global","issuer":"Finance Magnates 2025"},{"title":"Most Trusted Broker - Middle East","issuer":"Finance Magnates 2025"}]} />
|
|
189
|
+
|
|
190
|
+
// Seven awards — a row and a centred pair
|
|
191
|
+
<Awards title="Recognised by the industry" awards={[{"title":"Best Trade Execution Award (MEA)","issuer":"Ultimate Fintech 2026"},{"title":"Best Trading Experience - Global","issuer":"UF Awards 2025"},{"title":"Best CFD Broker - LATAM","issuer":"UF Awards 2025"},{"title":"Most Innovative Broker - MEA","issuer":"UF Awards 2025"},{"title":"Most Transparent Broker - Global","issuer":"Global Forex Awards 2025"},{"title":"Best Broker - Africa","issuer":"Global Forex Awards 2025"},{"title":"Best Trading Platform - MENA","issuer":"Global Forex Awards 2025"}]} />
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
### The three grounds
|
|
195
|
+
|
|
196
|
+
The awards take the band's ink and the laurels its quieter one: muted on the page and the grey band, muted-inverse on the dark band.
|
|
197
|
+
|
|
198
|
+
```tsx
|
|
199
|
+
import { Awards } from '@deriv-com/dds-marketing'
|
|
200
|
+
|
|
201
|
+
// ground="page"
|
|
202
|
+
<Awards title="Our awards" awards={[{"title":"Best Trade Execution Award (MEA)","issuer":"Ultimate Fintech 2026"},{"title":"Best Trading Experience - Global","issuer":"UF Awards 2025"},{"title":"Best CFD Broker - LATAM","issuer":"UF Awards 2025"},{"title":"Most Innovative Broker - MEA","issuer":"UF Awards 2025"},{"title":"Most Transparent Broker - Global","issuer":"Global Forex Awards 2025"},{"title":"Best Broker - Africa","issuer":"Global Forex Awards 2025"},{"title":"Best Trading Platform - MENA","issuer":"Global Forex Awards 2025"}]} />
|
|
203
|
+
|
|
204
|
+
// ground="subtle"
|
|
205
|
+
<Awards title="Our awards" awards={[{"title":"Best Trade Execution Award (MEA)","issuer":"Ultimate Fintech 2026"},{"title":"Best Trading Experience - Global","issuer":"UF Awards 2025"},{"title":"Best CFD Broker - LATAM","issuer":"UF Awards 2025"},{"title":"Most Innovative Broker - MEA","issuer":"UF Awards 2025"},{"title":"Most Transparent Broker - Global","issuer":"Global Forex Awards 2025"},{"title":"Best Broker - Africa","issuer":"Global Forex Awards 2025"},{"title":"Best Trading Platform - MENA","issuer":"Global Forex Awards 2025"}]} ground="subtle" />
|
|
206
|
+
|
|
207
|
+
// ground="strong"
|
|
208
|
+
<Awards title="Our awards" awards={[{"title":"Best Trade Execution Award (MEA)","issuer":"Ultimate Fintech 2026"},{"title":"Best Trading Experience - Global","issuer":"UF Awards 2025"},{"title":"Best CFD Broker - LATAM","issuer":"UF Awards 2025"},{"title":"Most Innovative Broker - MEA","issuer":"UF Awards 2025"},{"title":"Most Transparent Broker - Global","issuer":"Global Forex Awards 2025"},{"title":"Best Broker - Africa","issuer":"Global Forex Awards 2025"},{"title":"Best Trading Platform - MENA","issuer":"Global Forex Awards 2025"}]} ground="strong" />
|
|
209
|
+
```
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Background
|
|
4
4
|
|
|
5
|
-
A ground a section or a block sits on, painted with a pattern rather than a flat fill — a halftone, an aurora, a rule grid or rings. It moves slowly at rest, answers the pointer and carries no meaning; what the band holds sits on top of it.
|
|
5
|
+
A ground a section or a block sits on, painted with a pattern rather than a flat fill — a halftone, an aurora, a mesh, a rule grid or rings. It moves slowly at rest, answers the pointer and carries no meaning; what the band holds sits on top of it.
|
|
6
6
|
|
|
7
7
|
## Use when
|
|
8
8
|
|
|
@@ -21,20 +21,22 @@ A ground a section or a block sits on, painted with a pattern rather than a flat
|
|
|
21
21
|
|
|
22
22
|
## Anatomy
|
|
23
23
|
|
|
24
|
-
Background renders
|
|
24
|
+
Background renders 5 elements. A token binding names the part it applies to.
|
|
25
25
|
|
|
26
26
|
- `root` — `<div>`, class `dds-background`. The band's ground and the box everything else sits in. It paints the tone's flat colour, which is what shows before the canvas has drawn and what a reader sees wherever the dots have faded to nothing — so the pattern is always an addition to a finished ground, never the ground itself.
|
|
27
27
|
|
|
28
28
|
It clips, so the canvas can fill it edge to edge without its pixels reaching past the band, and it isolates, so the content's stacking never has to know a canvas is under it. It takes the whole width it is given and is as tall as what it holds: a background follows its section rather than setting the section's height. Where a page makes it taller than that — a band held to a screen, a frame of fixed proportions — what it holds sits in the middle of it, over the glow that rises from the band's foot. A grid with one item does that without reaching into the item: the canvas is placed absolutely and takes no part in it.
|
|
29
29
|
|
|
30
|
-
It costs nothing it does not need to. The halftone draws only while something moves — the drift at half the display's rate, or the glow catching up with the pointer — and only while the band is on screen. The
|
|
31
|
-
- `canvas` — `<canvas>`, class `dds-background__canvas`.
|
|
30
|
+
It costs nothing it does not need to. The halftone draws only while something moves — the drift at half the display's rate, or the glow catching up with the pointer — and only while the band is on screen. The other patterns are one fragment shader each: a single draw a frame, paused off screen. Their stylesheet versions — what shows before a shader has drawn and where WebGL cannot run — have no canvas at all, and move only by transforms and gradient positions the compositor runs. Until the halftone's canvas has painted, the band shows its plain ground, so nothing jumps.
|
|
31
|
+
- `canvas` — `<canvas>`, class `dds-background__canvas`. Where the pattern is drawn, laid over the ground and under the content, filling the band, taking no pointer events and no place in the accessibility tree — it is paint, not content. For the halftone a 2D canvas; for every other pattern a WebGL one, running that pattern's fragment shader — noise folded into noise, lit, with a fine grain over it that gives the field a tooth and keeps a long fade from banding. Each pattern's inks are custom properties the stylesheet sets per tone from colour tokens, read back as the browser resolves them. A WebGL canvas stays hidden until it has a frame; then the root is marked `data-shaded` and the stylesheet's own version of the pattern steps aside, so the band is never blank and never shows both.
|
|
32
32
|
|
|
33
|
-
The dots blend between two inks: the one at the glow's edge is this element's `color`, and the one at its centre is its `outline-color` — an outline it never draws, bound so a second colour token can reach the pixels. On the dark ground the dots run from the brand's coral, color.bg.brand, to white, color.fg.on-brand-strong, so the glow's heart burns white. On the light ground both are the coral, because white would vanish into the page; on the coral ground both are white, color.fg.on-brand, because coral would vanish into the band. The
|
|
33
|
+
The halftone's dots blend between two inks: the one at the glow's edge is this element's `color`, and the one at its centre is its `outline-color` — an outline it never draws, bound so a second colour token can reach the pixels. On the dark ground the dots run from the brand's coral, color.bg.brand, to white, color.fg.on-brand-strong, so the glow's heart burns white. On the light ground both are the coral, because white would vanish into the page; on the coral ground both are white, color.fg.on-brand, because coral would vanish into the band. The grid's measures are size.halftone.pitch and size.halftone.dot, read the same way.
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
Movement is motion.duration.trail and motion.easing.enter, bound as this element's transition and read back: while a pointer is over the band the light chases it, closing most of the gap within the duration, and glides back to rest when it leaves. Nothing transitions on the element itself; the binding is how a motion token reaches a loop a stylesheet does not run.
|
|
36
36
|
|
|
37
|
-
It is drawn at most at twice the CSS pixel density
|
|
37
|
+
It is drawn at most at twice the CSS pixel density — the hairline patterns need it — and the soft fields at the CSS density, which is all a field with no edge in it can use. At rest it draws at half the display's rate, and only while the band is on screen; for a reader who asked for less motion it draws one frame.
|
|
38
|
+
- `mesh` — `<div>`, class `dds-background__mesh`. The mesh, for `pattern="mesh"`: a layer a tenth larger than the band on every side, painted in the tone's ground and blurred, holding the pools. The overhang is what the blur needs: a blurred layer the band's own size fades at its edges, and the band would show a pale rim. Behind the content, taking no pointer events and no place in the accessibility tree. Rendered only when `pattern` is set.
|
|
39
|
+
- `pool` — `<span>`, class `dds-background__pool`. One pool of the mesh, five of them: an uneven round shape in one of the tone's reds, drifting and stretching on loops of its own length, and leaning towards the pointer at its own depth, trailing it by its own lag. On the coral ground they are the brand's deepest red (color.bg.brand-deep, held back so the words keep a red to stand on), its pressed red twice, its hover, and the coral itself high in the far corner, the brightest of them. No white: it washed the reds to pink. Rendered only when `pattern` is set.
|
|
38
40
|
- `content` — `<div>`, class `dds-background__content`. What the band holds — a hero, a call to action, a set of features — laid over the pattern. It takes the ink that reads on the tone: white on the dark and the coral grounds, the default ink on the light one, so text placed straight on the background is legible without the block having to know what it is standing on. A block that sets its own ink keeps it. Absent where the Background holds nothing: then it is a layer, filling the positioned band it is placed in, behind that band's own content — how a block offers the pattern under itself without its layout changing. It holds the page's own measure and inset, the way every block's inner column does — space.inset.page either side and no wider than size.content.max, centred in the band — and centres what it holds, so a heading and an action placed straight on it sit in the middle of the glow rather than against the band's edge.
|
|
39
41
|
|
|
40
42
|
Apply these classes from the generated `backgroundParts` constant rather than writing the strings by hand.
|
|
@@ -46,23 +48,24 @@ Apply these classes from the generated `backgroundParts` constant rather than wr
|
|
|
46
48
|
|
|
47
49
|
## Props
|
|
48
50
|
|
|
49
|
-
### tone — `dark` | `light` | `brand` (default `
|
|
51
|
+
### tone — `dark` | `light` | `brand` (default `brand`)
|
|
50
52
|
|
|
51
|
-
- `dark` — The
|
|
53
|
+
- `dark` — The band the halftone was drawn for: coral dots glowing on color.bg.brand-strong, which is dark in both modes. Reach for it for the band a page opens or closes on, where the glow gives the band a centre
|
|
52
54
|
- `light` — Coral dots on the page's own ground, for a light page that wants one moment of brand colour without a solid coral band. The glow reads as warmth rather than light, so keep it for a section that is not competing with a dark one nearby
|
|
53
|
-
- `brand` —
|
|
55
|
+
- `brand` — The default: the brand's own coral, the ground the mesh was made for and the one a call to action stands on. White dots on it for the halftone. The heading is white too, and the glow rises from the foot of the band towards it, so check the words read on the coral alone — the pattern can only add to what is behind them
|
|
54
56
|
|
|
55
57
|
Use when: Which ground the dots are drawn on. It sets the flat colour under the pattern, the dots' ink — coral on the dark and light grounds, white on the coral one — and the ink of what sits on it
|
|
56
58
|
Never for: Matching the page's colour mode. Dark is dark in both modes — a band that should invert with the theme is a plain section on color.bg.page, not this
|
|
57
59
|
|
|
58
|
-
### pattern — `halftone` | `aurora` | `grid` | `rings` (default `halftone`)
|
|
60
|
+
### pattern — `halftone` | `aurora` | `mesh` | `grid` | `rings` (default `halftone`)
|
|
59
61
|
|
|
60
|
-
- `halftone` — A grid of dots across the whole band that grow towards a soft glow and settle to a fine screen away from it. The default, and the one that moves most
|
|
61
|
-
- `aurora` —
|
|
62
|
-
- `
|
|
63
|
-
- `
|
|
62
|
+
- `halftone` — A grid of dots across the whole band that grow towards a soft glow and settle to a fine screen away from it, over a faint wash of their own ink. The glow's edge wanders from a plain ellipse as it drifts, so it reads as light on a surface rather than a spotlight. The default, and the one that moves most
|
|
63
|
+
- `aurora` — Curtains of light rising from the band's foot: sheets of the brand's colour swaying and folding, with a ragged crest and fine rays running up through them — light falling through folds rather than pools of colour. Drawn by a shader with a grain over it; before it has drawn, and where it cannot, soft pools of the same colour painted by the stylesheet. At rest the curtains sway over motion.duration.drift; on an interactive band the pointer bends them towards it and brightens them. Reach for it where the halftone would be too busy — an opening band with a picture or a product on it, where dots behind the picture fight it and a wash of light does not
|
|
64
|
+
- `mesh` — The whole band in the brand's reds, folded into one another like a liquid — the design system's own front page. A noise warped by a noise, so the colours run in ribbons and eddies with a sheen on their crests, turning slowly. Drawn by a shader with a grain over it; before it has drawn, and where it cannot, five blurred pools painted by the stylesheet. On an interactive band the pointer draws the field towards it, as a hand drawn through paint; with `animated` off it rests until the pointer is over the band and flows only while it is. Made for the coral ground, where it is the brand at its loudest; on the dark ground it is red smoke on near-black, on the light one a faint marbling. Reach for it for the one band a page is remembered by, and keep the words on it few and large
|
|
65
|
+
- `grid` — Hairlines a pitch apart, size.rule-grid.pitch, rising from a soft bloom at the band's foot — the grid PageHeader paints, offered for any band, now lit: a brighter point where two lines cross, and every few lines a short dash of light running along it. Drawn by a shader at up to twice the pixel density, so a hairline stays a hairline; before it has drawn, and where it cannot, the same rules painted by the stylesheet. At rest the rules rise slowly, a pitch over motion.duration.drift; on an interactive band the lines brighten around the pointer. Reach for it where the band should read as deliberate and quiet rather than lit
|
|
66
|
+
- `rings` — Hairline circles spreading out from the middle of the band's foot at size.rings.pitch, out of a soft bloom there, with arcs of light travelling round each ring at its own pace and direction. Drawn by a shader at up to twice the pixel density; before it has drawn, and where it cannot, the same rings painted by the stylesheet. At rest the rings spread slowly outward, a pitch over motion.duration.drift; on an interactive band they brighten around the pointer. As quiet as the grid, but round: reach for it where the band should feel open and centred rather than ruled — a call to action, a closing band with one thing to say
|
|
64
67
|
|
|
65
|
-
Use when: Which pattern is drawn. The halftone is the default and the one that moves most; the aurora drifts slowly; the grid and the rings are the quietest, their lines rising and spreading at a band's pace. One prop rather than a component each, so a new pattern is a new value and a page written now keeps working when one arrives
|
|
68
|
+
Use when: Which pattern is drawn. The halftone is the default and the one that moves most; the aurora drifts slowly; the mesh flows across the whole band; the grid and the rings are the quietest, their lines rising and spreading at a band's pace. One prop rather than a component each, so a new pattern is a new value and a page written now keeps working when one arrives
|
|
66
69
|
Never for: Choosing per breakpoint. A pattern is the band's identity; one that changed between a phone and a desk would be two bands
|
|
67
70
|
|
|
68
71
|
### animated — `boolean` (default `true`)
|
|
@@ -179,7 +182,7 @@ import { Background, Stack, Typography, Button } from '@deriv-com/dds-marketing'
|
|
|
179
182
|
<Background>
|
|
180
183
|
<Stack gap="md" align="center">
|
|
181
184
|
<Typography variant="h2">Trade the markets that move you</Typography>
|
|
182
|
-
<Button variant="
|
|
185
|
+
<Button variant="inverse" tone="brand">Open an account</Button>
|
|
183
186
|
</Stack>
|
|
184
187
|
</Background>
|
|
185
188
|
```
|
|
@@ -193,18 +196,18 @@ Dark is the band the glow was drawn for, the same in both modes. Light carries t
|
|
|
193
196
|
```tsx
|
|
194
197
|
import { Background, Typography } from '@deriv-com/dds-marketing'
|
|
195
198
|
|
|
196
|
-
//
|
|
197
|
-
<Background tone="
|
|
199
|
+
// brand — the default, white dots on the coral
|
|
200
|
+
<Background tone="brand">
|
|
198
201
|
<Typography variant="h3">Trade the markets that move you</Typography>
|
|
199
202
|
</Background>
|
|
200
203
|
|
|
201
|
-
//
|
|
202
|
-
<Background tone="
|
|
204
|
+
// dark
|
|
205
|
+
<Background tone="dark">
|
|
203
206
|
<Typography variant="h3">Trade the markets that move you</Typography>
|
|
204
207
|
</Background>
|
|
205
208
|
|
|
206
|
-
//
|
|
207
|
-
<Background tone="
|
|
209
|
+
// light
|
|
210
|
+
<Background tone="light">
|
|
208
211
|
<Typography variant="h3">Trade the markets that move you</Typography>
|
|
209
212
|
</Background>
|
|
210
213
|
```
|
|
@@ -234,11 +237,16 @@ import { Background, Typography } from '@deriv-com/dds-marketing'
|
|
|
234
237
|
|
|
235
238
|
### The aurora
|
|
236
239
|
|
|
237
|
-
|
|
240
|
+
Curtains of light rising from the band's foot, swaying and folding, with fine rays through them. Drawn by a shader with a grain over it; the pointer bends them towards it.
|
|
238
241
|
|
|
239
242
|
```tsx
|
|
240
243
|
import { Background, Typography } from '@deriv-com/dds-marketing'
|
|
241
244
|
|
|
245
|
+
// brand
|
|
246
|
+
<Background tone="brand" pattern="aurora">
|
|
247
|
+
<Typography variant="h3">Trade the markets that move you</Typography>
|
|
248
|
+
</Background>
|
|
249
|
+
|
|
242
250
|
// dark
|
|
243
251
|
<Background tone="dark" pattern="aurora">
|
|
244
252
|
<Typography variant="h3">Trade the markets that move you</Typography>
|
|
@@ -248,16 +256,11 @@ import { Background, Typography } from '@deriv-com/dds-marketing'
|
|
|
248
256
|
<Background tone="light" pattern="aurora">
|
|
249
257
|
<Typography variant="h3">Trade the markets that move you</Typography>
|
|
250
258
|
</Background>
|
|
251
|
-
|
|
252
|
-
// brand
|
|
253
|
-
<Background tone="brand" pattern="aurora">
|
|
254
|
-
<Typography variant="h3">Trade the markets that move you</Typography>
|
|
255
|
-
</Background>
|
|
256
259
|
```
|
|
257
260
|
|
|
258
261
|
### The aurora moving
|
|
259
262
|
|
|
260
|
-
The
|
|
263
|
+
The curtains sway at rest; the pointer bends them towards it and brightens them. `animated` turns off the first, `interactive` the second.
|
|
261
264
|
|
|
262
265
|
```tsx
|
|
263
266
|
import { Background, Typography } from '@deriv-com/dds-marketing'
|
|
@@ -278,27 +281,73 @@ import { Background, Typography } from '@deriv-com/dds-marketing'
|
|
|
278
281
|
</Background>
|
|
279
282
|
```
|
|
280
283
|
|
|
281
|
-
### The
|
|
284
|
+
### The mesh
|
|
282
285
|
|
|
283
|
-
|
|
286
|
+
Pools of the brand's reds run together across the whole band — the front page's panel. Made for the coral; a red glow on the dark ground, a blush on the light.
|
|
284
287
|
|
|
285
288
|
```tsx
|
|
286
289
|
import { Background, Typography } from '@deriv-com/dds-marketing'
|
|
287
290
|
|
|
291
|
+
// brand — the front page
|
|
292
|
+
<Background tone="brand" pattern="mesh">
|
|
293
|
+
<Typography variant="h3">Trade the markets that move you</Typography>
|
|
294
|
+
</Background>
|
|
295
|
+
|
|
288
296
|
// dark
|
|
289
|
-
<Background tone="dark" pattern="
|
|
297
|
+
<Background tone="dark" pattern="mesh">
|
|
290
298
|
<Typography variant="h3">Trade the markets that move you</Typography>
|
|
291
299
|
</Background>
|
|
292
300
|
|
|
293
301
|
// light
|
|
294
|
-
<Background tone="light" pattern="
|
|
302
|
+
<Background tone="light" pattern="mesh">
|
|
303
|
+
<Typography variant="h3">Trade the markets that move you</Typography>
|
|
304
|
+
</Background>
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
### The mesh moving
|
|
308
|
+
|
|
309
|
+
The pools flow at rest and lean towards the pointer. With `animated` off they rest until the pointer is over the band; `interactive` off, they ignore it.
|
|
310
|
+
|
|
311
|
+
```tsx
|
|
312
|
+
import { Background, Typography } from '@deriv-com/dds-marketing'
|
|
313
|
+
|
|
314
|
+
// animated and interactive — the default
|
|
315
|
+
<Background pattern="mesh" tone="brand">
|
|
295
316
|
<Typography variant="h3">Trade the markets that move you</Typography>
|
|
296
317
|
</Background>
|
|
297
318
|
|
|
319
|
+
// animated={false} — rests, flows under the pointer
|
|
320
|
+
<Background pattern="mesh" animated={false} tone="brand">
|
|
321
|
+
<Typography variant="h3">Trade the markets that move you</Typography>
|
|
322
|
+
</Background>
|
|
323
|
+
|
|
324
|
+
// interactive={false} — moves at rest, ignores the pointer
|
|
325
|
+
<Background pattern="mesh" interactive={false} tone="brand">
|
|
326
|
+
<Typography variant="h3">Trade the markets that move you</Typography>
|
|
327
|
+
</Background>
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
### The rule grid
|
|
331
|
+
|
|
332
|
+
Hairlines rising from a bloom at the foot, brighter where they cross, with short dashes of light running along a few. The pointer lights the lines around it.
|
|
333
|
+
|
|
334
|
+
```tsx
|
|
335
|
+
import { Background, Typography } from '@deriv-com/dds-marketing'
|
|
336
|
+
|
|
298
337
|
// brand
|
|
299
338
|
<Background tone="brand" pattern="grid">
|
|
300
339
|
<Typography variant="h3">Trade the markets that move you</Typography>
|
|
301
340
|
</Background>
|
|
341
|
+
|
|
342
|
+
// dark
|
|
343
|
+
<Background tone="dark" pattern="grid">
|
|
344
|
+
<Typography variant="h3">Trade the markets that move you</Typography>
|
|
345
|
+
</Background>
|
|
346
|
+
|
|
347
|
+
// light
|
|
348
|
+
<Background tone="light" pattern="grid">
|
|
349
|
+
<Typography variant="h3">Trade the markets that move you</Typography>
|
|
350
|
+
</Background>
|
|
302
351
|
```
|
|
303
352
|
|
|
304
353
|
### The grid moving
|
|
@@ -326,11 +375,16 @@ import { Background, Typography } from '@deriv-com/dds-marketing'
|
|
|
326
375
|
|
|
327
376
|
### The rings
|
|
328
377
|
|
|
329
|
-
Hairline circles spreading
|
|
378
|
+
Hairline circles spreading from a bloom at the foot, arcs of light travelling round each at its own pace. The pointer lights the rings around it.
|
|
330
379
|
|
|
331
380
|
```tsx
|
|
332
381
|
import { Background, Typography } from '@deriv-com/dds-marketing'
|
|
333
382
|
|
|
383
|
+
// brand
|
|
384
|
+
<Background tone="brand" pattern="rings">
|
|
385
|
+
<Typography variant="h3">Trade the markets that move you</Typography>
|
|
386
|
+
</Background>
|
|
387
|
+
|
|
334
388
|
// dark
|
|
335
389
|
<Background tone="dark" pattern="rings">
|
|
336
390
|
<Typography variant="h3">Trade the markets that move you</Typography>
|
|
@@ -340,11 +394,6 @@ import { Background, Typography } from '@deriv-com/dds-marketing'
|
|
|
340
394
|
<Background tone="light" pattern="rings">
|
|
341
395
|
<Typography variant="h3">Trade the markets that move you</Typography>
|
|
342
396
|
</Background>
|
|
343
|
-
|
|
344
|
-
// brand
|
|
345
|
-
<Background tone="brand" pattern="rings">
|
|
346
|
-
<Typography variant="h3">Trade the markets that move you</Typography>
|
|
347
|
-
</Background>
|
|
348
397
|
```
|
|
349
398
|
|
|
350
399
|
### The rings moving
|
|
@@ -173,6 +173,11 @@ Use when: Always. The sheet does not close itself, so this is the only way out
|
|
|
173
173
|
The second argument is which of the four ways out the reader took, for a page that treats an abandoned task differently from a finished one. It is only ever called with false today — a sheet is opened by whatever opens it, never by itself — and the boolean is first anyway, so the shape does not have to change if that ever stops being true.
|
|
174
174
|
Never for: Doing the task. This fires when the sheet is being left, including when it is being left unanswered — commit from the actions in the footer, where the reader pressed something that says what it does.
|
|
175
175
|
|
|
176
|
+
### closeLabel — `string`
|
|
177
|
+
|
|
178
|
+
Use when: The accessible name of the close button. Without it the button is named "Close" and the title; pass it to translate that with the page.
|
|
179
|
+
Never for: Visible text. The button draws a glyph, and this is what a screen reader hears for it.
|
|
180
|
+
|
|
176
181
|
Also accepts everything from `HTMLAttributes<HTMLDivElement>`.
|
|
177
182
|
|
|
178
183
|
## Accessibility
|