@deriv-com/dds-marketing 1.0.2 → 1.1.1

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.
Files changed (315) hide show
  1. package/.llm/components/awards.md +209 -0
  2. package/.llm/components/background.md +89 -40
  3. package/.llm/components/bottomsheet.md +5 -0
  4. package/.llm/components/comparisoncards.md +257 -0
  5. package/.llm/components/comparisontable.md +231 -0
  6. package/.llm/components/ctabanner.md +9 -12
  7. package/.llm/components/ctabannerslider.md +15 -2
  8. package/.llm/components/datatable.md +273 -0
  9. package/.llm/components/downloadbanner.md +283 -0
  10. package/.llm/components/featurecards.md +41 -3
  11. package/.llm/components/featurecardscarousel.md +311 -0
  12. package/.llm/components/featuresplit.md +5 -0
  13. package/.llm/components/featurestack.md +227 -0
  14. package/.llm/components/illustrationcard.md +2 -2
  15. package/.llm/components/illustrationscene.md +6 -10
  16. package/.llm/components/imagebanner.md +278 -0
  17. package/.llm/components/navbar.md +1 -1
  18. package/.llm/components/navbaritem.md +4 -0
  19. package/.llm/components/pageheader.md +4 -3
  20. package/.llm/components/paginationdots.md +6 -1
  21. package/.llm/components/producthero.md +35 -11
  22. package/.llm/components/resourcebanner.md +247 -0
  23. package/.llm/components/scenescroll.md +222 -0
  24. package/.llm/components/select.md +17 -0
  25. package/.llm/components/stats.md +219 -0
  26. package/.llm/components/steps.md +286 -0
  27. package/.llm/components/stickycards.md +251 -0
  28. package/.llm/components/tableheadercell.md +19 -0
  29. package/.llm/components/teamgrid.md +243 -0
  30. package/.llm/components/testimonialrow.md +5 -0
  31. package/.llm/components/testimonialslider.md +14 -1
  32. package/.llm/components/textarea.md +13 -0
  33. package/.llm/components/textinput.md +13 -0
  34. package/.llm/components/textscroll.md +187 -0
  35. package/.llm/components/tiers.md +227 -0
  36. package/.llm/digest/awards.md +45 -0
  37. package/.llm/digest/background.md +11 -10
  38. package/.llm/digest/bottomsheet.md +2 -0
  39. package/.llm/digest/comparisoncards.md +51 -0
  40. package/.llm/digest/comparisontable.md +53 -0
  41. package/.llm/digest/ctabanner.md +4 -4
  42. package/.llm/digest/ctabannerslider.md +4 -0
  43. package/.llm/digest/datatable.md +65 -0
  44. package/.llm/digest/downloadbanner.md +65 -0
  45. package/.llm/digest/featurecards.md +1 -1
  46. package/.llm/digest/featurecardscarousel.md +54 -0
  47. package/.llm/digest/featuresplit.md +1 -0
  48. package/.llm/digest/featurestack.md +48 -0
  49. package/.llm/digest/illustrationscene.md +2 -3
  50. package/.llm/digest/imagebanner.md +64 -0
  51. package/.llm/digest/navbaritem.md +1 -0
  52. package/.llm/digest/pageheader.md +2 -1
  53. package/.llm/digest/paginationdots.md +3 -1
  54. package/.llm/digest/producthero.md +4 -2
  55. package/.llm/digest/resourcebanner.md +53 -0
  56. package/.llm/digest/scenescroll.md +49 -0
  57. package/.llm/digest/select.md +5 -0
  58. package/.llm/digest/stats.md +46 -0
  59. package/.llm/digest/steps.md +55 -0
  60. package/.llm/digest/stickycards.md +52 -0
  61. package/.llm/digest/tableheadercell.md +4 -0
  62. package/.llm/digest/teamgrid.md +53 -0
  63. package/.llm/digest/testimonialrow.md +2 -0
  64. package/.llm/digest/testimonialslider.md +4 -0
  65. package/.llm/digest/textarea.md +4 -0
  66. package/.llm/digest/textinput.md +4 -0
  67. package/.llm/digest/textscroll.md +43 -0
  68. package/.llm/digest/tiers.md +50 -0
  69. package/.llm/index.md +19 -3
  70. package/.llm/tokens.md +26 -1
  71. package/AGENTS.md +17 -1
  72. package/dist/components/awards-data.d.ts +24 -0
  73. package/dist/components/awards-data.js +11 -0
  74. package/dist/components/block-image-data.d.ts +24 -0
  75. package/dist/components/block-image-data.js +9 -0
  76. package/dist/components/blocks/awards/Awards.css +134 -0
  77. package/dist/components/blocks/awards/Awards.d.ts +24 -0
  78. package/dist/components/blocks/awards/Awards.js +114 -0
  79. package/dist/components/blocks/awards/Awards.types.d.ts +31 -0
  80. package/dist/components/blocks/awards/Awards.types.js +16 -0
  81. package/dist/components/blocks/awards/awards-impl.css +222 -0
  82. package/dist/components/blocks/cards-of.d.ts +16 -0
  83. package/dist/components/blocks/cards-of.js +23 -0
  84. package/dist/components/blocks/comparison-cards/ComparisonCards.css +195 -0
  85. package/dist/components/blocks/comparison-cards/ComparisonCards.d.ts +24 -0
  86. package/dist/components/blocks/comparison-cards/ComparisonCards.js +75 -0
  87. package/dist/components/blocks/comparison-cards/ComparisonCards.types.d.ts +49 -0
  88. package/dist/components/blocks/comparison-cards/ComparisonCards.types.js +26 -0
  89. package/dist/components/blocks/comparison-cards/comparison-cards-impl.css +262 -0
  90. package/dist/components/blocks/comparison-table/ComparisonTable.css +111 -0
  91. package/dist/components/blocks/comparison-table/ComparisonTable.d.ts +25 -0
  92. package/dist/components/blocks/comparison-table/ComparisonTable.js +100 -0
  93. package/dist/components/blocks/comparison-table/ComparisonTable.types.d.ts +36 -0
  94. package/dist/components/blocks/comparison-table/ComparisonTable.types.js +15 -0
  95. package/dist/components/blocks/comparison-table/comparison-table-impl.css +143 -0
  96. package/dist/components/blocks/cta-banner/CtaBanner.css +1 -0
  97. package/dist/components/blocks/cta-banner/CtaBanner.js +2 -2
  98. package/dist/components/blocks/cta-banner/CtaBanner.types.d.ts +4 -3
  99. package/dist/components/blocks/cta-banner/CtaBanner.types.js +1 -1
  100. package/dist/components/blocks/cta-banner-slider/CtaBannerSlider.css +1 -0
  101. package/dist/components/blocks/cta-banner-slider/CtaBannerSlider.d.ts +1 -1
  102. package/dist/components/blocks/cta-banner-slider/CtaBannerSlider.js +6 -2
  103. package/dist/components/blocks/cta-banner-slider/CtaBannerSlider.types.d.ts +8 -0
  104. package/dist/components/blocks/cta-banner-slider/CtaBannerSlider.types.js +1 -1
  105. package/dist/components/blocks/data-table/DataTable.css +170 -0
  106. package/dist/components/blocks/data-table/DataTable.d.ts +29 -0
  107. package/dist/components/blocks/data-table/DataTable.js +84 -0
  108. package/dist/components/blocks/data-table/DataTable.types.d.ts +69 -0
  109. package/dist/components/blocks/data-table/DataTable.types.js +19 -0
  110. package/dist/components/blocks/data-table/data-table-impl.css +155 -0
  111. package/dist/components/blocks/download-banner/DownloadBanner.css +228 -0
  112. package/dist/components/blocks/download-banner/DownloadBanner.d.ts +28 -0
  113. package/dist/components/blocks/download-banner/DownloadBanner.js +75 -0
  114. package/dist/components/blocks/download-banner/DownloadBanner.types.d.ts +56 -0
  115. package/dist/components/blocks/download-banner/DownloadBanner.types.js +23 -0
  116. package/dist/components/blocks/download-banner/download-banner-impl.css +216 -0
  117. package/dist/components/blocks/faq-accordion/FaqAccordion.css +1 -0
  118. package/dist/components/blocks/faq-accordion/faq-accordion-impl.css +3 -7
  119. package/dist/components/blocks/feature-bullets/FeatureBullets.css +1 -0
  120. package/dist/components/blocks/feature-bullets/feature-bullets-impl.css +14 -1
  121. package/dist/components/blocks/feature-cards/FeatureCards.css +1 -0
  122. package/dist/components/blocks/feature-cards/FeatureCards.d.ts +2 -1
  123. package/dist/components/blocks/feature-cards/FeatureCards.js +4 -21
  124. package/dist/components/blocks/feature-cards/feature-cards-impl.css +10 -9
  125. package/dist/components/blocks/feature-cards-carousel/FeatureCardsCarousel.css +115 -0
  126. package/dist/components/blocks/feature-cards-carousel/FeatureCardsCarousel.d.ts +30 -0
  127. package/dist/components/blocks/feature-cards-carousel/FeatureCardsCarousel.js +160 -0
  128. package/dist/components/blocks/feature-cards-carousel/FeatureCardsCarousel.types.d.ts +52 -0
  129. package/dist/components/blocks/feature-cards-carousel/FeatureCardsCarousel.types.js +17 -0
  130. package/dist/components/blocks/feature-cards-carousel/feature-cards-carousel-impl.css +207 -0
  131. package/dist/components/blocks/feature-scroll/FeatureScroll.css +1 -0
  132. package/dist/components/blocks/feature-split/FeatureSplit.css +1 -0
  133. package/dist/components/blocks/feature-split/feature-split-impl.css +14 -1
  134. package/dist/components/blocks/feature-stack/FeatureStack.css +86 -0
  135. package/dist/components/blocks/feature-stack/FeatureStack.d.ts +19 -0
  136. package/dist/components/blocks/feature-stack/FeatureStack.js +27 -0
  137. package/dist/components/blocks/feature-stack/FeatureStack.types.d.ts +34 -0
  138. package/dist/components/blocks/feature-stack/FeatureStack.types.js +14 -0
  139. package/dist/components/blocks/feature-stack/feature-stack-impl.css +87 -0
  140. package/dist/components/blocks/image-banner/ImageBanner.css +133 -0
  141. package/dist/components/blocks/image-banner/ImageBanner.d.ts +32 -0
  142. package/dist/components/blocks/image-banner/ImageBanner.js +41 -0
  143. package/dist/components/blocks/image-banner/ImageBanner.types.d.ts +54 -0
  144. package/dist/components/blocks/image-banner/ImageBanner.types.js +14 -0
  145. package/dist/components/blocks/image-banner/image-banner-impl.css +281 -0
  146. package/dist/components/blocks/landing-hero/LandingHero.css +1 -0
  147. package/dist/components/blocks/logo-columns/LogoColumns.css +1 -0
  148. package/dist/components/blocks/logo-rows/LogoRows.css +1 -0
  149. package/dist/components/blocks/page-header/PageHeader.css +1 -0
  150. package/dist/components/blocks/page-header/PageHeader.js +2 -2
  151. package/dist/components/blocks/page-header/PageHeader.types.d.ts +4 -2
  152. package/dist/components/blocks/page-header/PageHeader.types.js +1 -1
  153. package/dist/components/blocks/page-header/page-header-impl.css +5 -3
  154. package/dist/components/blocks/product-hero/ProductHero.css +8 -3
  155. package/dist/components/blocks/product-hero/ProductHero.d.ts +1 -1
  156. package/dist/components/blocks/product-hero/ProductHero.js +5 -2
  157. package/dist/components/blocks/product-hero/ProductHero.types.d.ts +5 -1
  158. package/dist/components/blocks/product-hero/ProductHero.types.js +1 -0
  159. package/dist/components/blocks/product-hero/product-hero-impl.css +43 -12
  160. package/dist/components/blocks/resource-banner/ResourceBanner.css +106 -0
  161. package/dist/components/blocks/resource-banner/ResourceBanner.d.ts +32 -0
  162. package/dist/components/blocks/resource-banner/ResourceBanner.js +51 -0
  163. package/dist/components/blocks/resource-banner/ResourceBanner.types.d.ts +44 -0
  164. package/dist/components/blocks/resource-banner/ResourceBanner.types.js +14 -0
  165. package/dist/components/blocks/resource-banner/resource-banner-impl.css +69 -0
  166. package/dist/components/blocks/scene-scroll/SceneScroll.css +93 -0
  167. package/dist/components/blocks/scene-scroll/SceneScroll.d.ts +36 -0
  168. package/dist/components/blocks/scene-scroll/SceneScroll.js +54 -0
  169. package/dist/components/blocks/scene-scroll/SceneScroll.types.d.ts +32 -0
  170. package/dist/components/blocks/scene-scroll/SceneScroll.types.js +15 -0
  171. package/dist/components/blocks/scene-scroll/scene-scroll-impl.css +275 -0
  172. package/dist/components/blocks/stats/Stats.css +139 -0
  173. package/dist/components/blocks/stats/Stats.d.ts +24 -0
  174. package/dist/components/blocks/stats/Stats.js +120 -0
  175. package/dist/components/blocks/stats/Stats.types.d.ts +36 -0
  176. package/dist/components/blocks/stats/Stats.types.js +19 -0
  177. package/dist/components/blocks/stats/stats-count.d.ts +34 -0
  178. package/dist/components/blocks/stats/stats-count.js +61 -0
  179. package/dist/components/blocks/stats/stats-impl.css +284 -0
  180. package/dist/components/blocks/stats/use-wheel.d.ts +37 -0
  181. package/dist/components/blocks/stats/use-wheel.js +126 -0
  182. package/dist/components/blocks/steps/Steps.css +202 -0
  183. package/dist/components/blocks/steps/Steps.d.ts +32 -0
  184. package/dist/components/blocks/steps/Steps.js +65 -0
  185. package/dist/components/blocks/steps/Steps.types.d.ts +48 -0
  186. package/dist/components/blocks/steps/Steps.types.js +21 -0
  187. package/dist/components/blocks/steps/steps-impl.css +216 -0
  188. package/dist/components/blocks/steps/use-turn.d.ts +33 -0
  189. package/dist/components/blocks/steps/use-turn.js +75 -0
  190. package/dist/components/blocks/sticky-cards/StickyCards.css +154 -0
  191. package/dist/components/blocks/sticky-cards/StickyCards.d.ts +35 -0
  192. package/dist/components/blocks/sticky-cards/StickyCards.js +153 -0
  193. package/dist/components/blocks/sticky-cards/StickyCards.types.d.ts +43 -0
  194. package/dist/components/blocks/sticky-cards/StickyCards.types.js +18 -0
  195. package/dist/components/blocks/sticky-cards/sticky-cards-impl.css +393 -0
  196. package/dist/components/blocks/team-grid/TeamGrid.css +159 -0
  197. package/dist/components/blocks/team-grid/TeamGrid.d.ts +28 -0
  198. package/dist/components/blocks/team-grid/TeamGrid.js +74 -0
  199. package/dist/components/blocks/team-grid/TeamGrid.types.d.ts +51 -0
  200. package/dist/components/blocks/team-grid/TeamGrid.types.js +20 -0
  201. package/dist/components/blocks/team-grid/team-grid-impl.css +129 -0
  202. package/dist/components/blocks/testimonial-row/TestimonialRow.css +1 -0
  203. package/dist/components/blocks/testimonial-row/TestimonialRow.d.ts +1 -1
  204. package/dist/components/blocks/testimonial-row/TestimonialRow.js +4 -3
  205. package/dist/components/blocks/testimonial-row/TestimonialRow.types.d.ts +3 -0
  206. package/dist/components/blocks/testimonial-row/TestimonialRow.types.js +1 -1
  207. package/dist/components/blocks/testimonial-row/testimonial-row-impl.css +8 -0
  208. package/dist/components/blocks/testimonial-slider/TestimonialSlider.css +1 -0
  209. package/dist/components/blocks/testimonial-slider/TestimonialSlider.d.ts +1 -1
  210. package/dist/components/blocks/testimonial-slider/TestimonialSlider.js +2 -2
  211. package/dist/components/blocks/testimonial-slider/TestimonialSlider.types.d.ts +8 -0
  212. package/dist/components/blocks/testimonial-slider/TestimonialSlider.types.js +1 -1
  213. package/dist/components/blocks/text-scroll/TextScroll.css +53 -0
  214. package/dist/components/blocks/text-scroll/TextScroll.d.ts +5 -0
  215. package/dist/components/blocks/text-scroll/TextScroll.js +71 -0
  216. package/dist/components/blocks/text-scroll/TextScroll.types.d.ts +22 -0
  217. package/dist/components/blocks/text-scroll/TextScroll.types.js +10 -0
  218. package/dist/components/blocks/text-scroll/text-scroll-impl.css +115 -0
  219. package/dist/components/blocks/tiers/Tiers.css +233 -0
  220. package/dist/components/blocks/tiers/Tiers.d.ts +32 -0
  221. package/dist/components/blocks/tiers/Tiers.js +68 -0
  222. package/dist/components/blocks/tiers/Tiers.types.d.ts +45 -0
  223. package/dist/components/blocks/tiers/Tiers.types.js +25 -0
  224. package/dist/components/blocks/tiers/tiers-impl.css +185 -0
  225. package/dist/components/blocks/use-rotation.d.ts +12 -2
  226. package/dist/components/blocks/use-rotation.js +6 -28
  227. package/dist/components/comparison-cards-data.d.ts +59 -0
  228. package/dist/components/comparison-cards-data.js +12 -0
  229. package/dist/components/comparison-table-data.d.ts +39 -0
  230. package/dist/components/comparison-table-data.js +11 -0
  231. package/dist/components/core/accordion-item/AccordionItem.css +1 -5
  232. package/dist/components/core/background/Background.css +23 -0
  233. package/dist/components/core/background/Background.d.ts +10 -4
  234. package/dist/components/core/background/Background.js +16 -7
  235. package/dist/components/core/background/Background.types.d.ts +11 -8
  236. package/dist/components/core/background/Background.types.js +3 -1
  237. package/dist/components/core/background/background-impl.css +334 -1
  238. package/dist/components/core/background/halftone.d.ts +11 -0
  239. package/dist/components/core/background/halftone.js +43 -3
  240. package/dist/components/core/background/patterns.d.ts +66 -0
  241. package/dist/components/core/background/patterns.js +244 -0
  242. package/dist/components/core/background/shader.d.ts +44 -0
  243. package/dist/components/core/background/shader.js +307 -0
  244. package/dist/components/core/background/use-shader.d.ts +11 -0
  245. package/dist/components/core/background/use-shader.js +25 -0
  246. package/dist/components/core/background/use-spotlight.d.ts +2 -1
  247. package/dist/components/core/background/use-spotlight.js +9 -1
  248. package/dist/components/core/bottom-sheet/BottomSheet.js +2 -2
  249. package/dist/components/core/bottom-sheet/BottomSheet.types.d.ts +3 -1
  250. package/dist/components/core/breadcrumb/Breadcrumb.d.ts +1 -0
  251. package/dist/components/core/breadcrumb/Breadcrumb.js +1 -0
  252. package/dist/components/core/breadcrumb/breadcrumb-impl.css +11 -0
  253. package/dist/components/core/button/button-impl.css +14 -1
  254. package/dist/components/core/illustration-card/IllustrationCard.js +1 -1
  255. package/dist/components/core/illustration-card/illustration-card-impl.css +20 -0
  256. package/dist/components/core/illustration-scene/IllustrationScene.css +4 -7
  257. package/dist/components/core/illustration-scene/IllustrationScene.types.d.ts +2 -3
  258. package/dist/components/core/illustration-scene/illustration-scene-impl.css +22 -1
  259. package/dist/components/core/link/Link.js +7 -3
  260. package/dist/components/core/link/link-impl.css +29 -2
  261. package/dist/components/core/navbar/Navbar.css +2 -2
  262. package/dist/components/core/navbar/Navbar.types.d.ts +1 -1
  263. package/dist/components/core/navbar-item/NavbarItem.d.ts +2 -1
  264. package/dist/components/core/navbar-item/NavbarItem.js +3 -10
  265. package/dist/components/core/navbar-item/NavbarItem.types.d.ts +4 -1
  266. package/dist/components/core/navbar-item/NavbarItem.types.js +1 -1
  267. package/dist/components/core/navbar-item/navbar-item-impl.css +10 -0
  268. package/dist/components/core/navbar-menu/navbar-menu-impl.css +9 -0
  269. package/dist/components/core/navbar-switcher/navbar-switcher-impl.css +19 -0
  270. package/dist/components/core/pagination/Pagination.js +1 -1
  271. package/dist/components/core/pagination/pagination-impl.css +9 -0
  272. package/dist/components/core/pagination-dots/PaginationDots.d.ts +1 -1
  273. package/dist/components/core/pagination-dots/PaginationDots.js +3 -3
  274. package/dist/components/core/pagination-dots/PaginationDots.types.d.ts +3 -1
  275. package/dist/components/core/segmented-control/SegmentedControl.css +4 -3
  276. package/dist/components/core/segmented-control/SegmentedControl.js +17 -3
  277. package/dist/components/core/segmented-control-item/SegmentedControlItem.css +2 -1
  278. package/dist/components/core/select/Select.js +3 -3
  279. package/dist/components/core/select/Select.types.d.ts +11 -1
  280. package/dist/components/core/select/Select.types.js +1 -1
  281. package/dist/components/core/tab-list/TabList.js +9 -1
  282. package/dist/components/core/table-header-cell/TableHeaderCell.d.ts +1 -1
  283. package/dist/components/core/table-header-cell/TableHeaderCell.js +5 -2
  284. package/dist/components/core/table-header-cell/TableHeaderCell.types.d.ts +7 -1
  285. package/dist/components/core/table-header-cell/TableHeaderCell.types.js +1 -1
  286. package/dist/components/core/text-area/TextArea.d.ts +1 -1
  287. package/dist/components/core/text-area/TextArea.js +2 -2
  288. package/dist/components/core/text-area/TextArea.types.d.ts +9 -1
  289. package/dist/components/core/text-area/TextArea.types.js +1 -1
  290. package/dist/components/core/text-input/TextInput.d.ts +1 -1
  291. package/dist/components/core/text-input/TextInput.js +2 -2
  292. package/dist/components/core/text-input/TextInput.types.d.ts +9 -1
  293. package/dist/components/core/text-input/TextInput.types.js +1 -1
  294. package/dist/components/data-table-data.d.ts +33 -0
  295. package/dist/components/data-table-data.js +12 -0
  296. package/dist/components/download-banner-data.d.ts +52 -0
  297. package/dist/components/download-banner-data.js +11 -0
  298. package/dist/components/index.d.ts +45 -0
  299. package/dist/components/index.js +32 -0
  300. package/dist/components/resource-banner-data.d.ts +34 -0
  301. package/dist/components/resource-banner-data.js +13 -0
  302. package/dist/components/scene-scroll-data.d.ts +24 -0
  303. package/dist/components/scene-scroll-data.js +9 -0
  304. package/dist/components/stats-data.d.ts +28 -0
  305. package/dist/components/stats-data.js +11 -0
  306. package/dist/components/steps-data.d.ts +38 -0
  307. package/dist/components/steps-data.js +13 -0
  308. package/dist/components/sticky-cards-data.d.ts +43 -0
  309. package/dist/components/sticky-cards-data.js +12 -0
  310. package/dist/components/team-grid-data.d.ts +38 -0
  311. package/dist/components/team-grid-data.js +11 -0
  312. package/dist/components/tiers-data.d.ts +47 -0
  313. package/dist/components/tiers-data.js +13 -0
  314. package/dist/marketing.css +77 -28
  315. package/package.json +1 -1
@@ -0,0 +1,283 @@
1
+ <!-- GENERATED from download-banner.contract.json. Do not edit. -->
2
+
3
+ # DownloadBanner
4
+
5
+ A section promoting the app's downloads: a card holding a heading and the stores' own badges, each a link to the product in that store. From the fold a QR code sits beside the heading, with a line telling the reader to scan it, so a reader on a desktop can take the app to their phone; on a phone the code is gone — the reader is already holding the device it would open on — and the badges sit two to a row under the heading.
6
+
7
+ The badges are the stores' own artwork, chosen from the platform each record names rather than drawn by the page, and each is named by the words it carries. The QR code is the page's image, never generated here.
8
+
9
+ Two ways to draw the card: the standard one in the ground's fill, and the featured one — the brand's coral card with a Background pattern, the aurora or the mesh, inside it.
10
+
11
+ ## Use when
12
+
13
+ - Promoting an app across the stores and platforms it ships on — App Store, Google Play, AppGallery, a desktop download, the web
14
+ - A trading platform's page, near its end, once the product has been explained and the next thing a reader wants is to get it
15
+
16
+ ## Do not use
17
+
18
+ - One download, or the web alone → `Button`
19
+ - A promotion that has to argue for the download in a headline and a sentence → `CtaBanner`
20
+ - Two download sections on one page — the second repeats the first's destinations and makes neither the place to go
21
+ - A badge for a platform the product does not ship on, or a QR code that reaches somewhere other than the badges do
22
+
23
+ ## Anatomy
24
+
25
+ DownloadBanner renders 17 elements. A token binding names the part it applies to.
26
+
27
+ - `root` — `<section>`, class `dds-downloadbanner`. The section. It paints the ground and the ink to go with it — see `ground` — and asks its own width, so the card folds on the section's measure rather than the window's. A region named by its heading.
28
+ - `inner` — `<div>`, class `dds-downloadbanner__inner`. The measure and the gutter, the same column every band holds its content in.
29
+ - `card` — `<div>`, class `dds-downloadbanner__card`. The card holding everything, its fill following the ground — see `ground`. The heading over the badges on a phone and from the fold; from 64rem the two side by side, the heading at the start and the badges at the end. The step between them is space.heading.content whichever way they sit: a heading and the content it introduces, turned on its side.
30
+ - `lead` — `<div>`, class `dds-downloadbanner__lead`. The QR code and the words beside it, in a row. On a phone the code is not drawn and this is the words alone.
31
+ - `qr-tile` — `<div>`, class `dds-downloadbanner__qr-tile`. The QR code's tile: a white square with a margin round the code, so it scans on the card. The standard card only; the featured card draws no code. Drawn from the fold and never on a phone, as the code is. Rendered only when `qr` is set.
32
+ - `qr` — `<img>`, class `dds-downloadbanner__qr`. The QR code, square, filling its tile with its corners rounded. A code that is not square is cropped to the square rather than letterboxed in it. Rendered only when `qr` is set.
33
+ - `text` — `<div>`, class `dds-downloadbanner__text`. The scan line, the heading and the small print, read down. It sets no gap: each part's own margin is the step, so a group without the scan line or the small print closes up rather than leaving its gap behind.
34
+ - `qr-label` — `<p>`, class `dds-downloadbanner__qr-label`. The line telling the reader to scan the code, over the heading the way an eyebrow sits over a title. Shown with the code and gone with it, because on a phone there is nothing to scan. Rendered only when `qr` is set.
35
+ - `eyebrow` — `<p>`, class `dds-downloadbanner__eyebrow`. The app's name, small above the heading on the featured card. Rendered only when `eyebrow` is set.
36
+ - `title` — `<h2>`, class `dds-downloadbanner__title`. Where the app can be had. `h2` because a section sits under the page's own heading, drawn at font.h3 — a heading that labels the badges rather than a headline over the page.
37
+ - `description` — `<p>`, class `dds-downloadbanner__description`. The line under the heading, at the body step and the description measure. Rendered only when `description` is set.
38
+ - `disclaimer` — `<p>`, class `dds-downloadbanner__disclaimer`. The small print, under the heading in the quieter ink. Rendered only when `disclaimer` is set.
39
+ - `badges` — `<ul>`, class `dds-downloadbanner__badges`. The badges, a list. Two to a row on a phone, each filling its column; from the fold a row that wraps, each badge its own width, ranged to the start and to the end once it sits beside the heading. The space between them is space.actions.gap — they are the section's actions. On a phone they are two to a row rather than stacked one to a row at full width, the one place this section departs from the rule that a section's actions stack on a phone: store badges are a set of equal chips read as one choice of store, and a column of seven full-width black bars would read as seven different actions — the reference design's phone grid.
40
+ - `badge` — `<li>`, class `dds-downloadbanner__badge`. One badge's place in the list.
41
+ - `badge-link` — `<a>`, class `dds-downloadbanner__badge-link`. The badge itself: a chip of one size for every store — size.download-banner.badge wide and size.control.lg tall, on color.bg.store-badge, the black the stores' own artwork is drawn on — with that artwork centred in it at whatever size fits. The artwork differs in shape from store to store, so at one height it came out at a different width for each, and a row of them was ragged; in a chip of one size, with a ground the same black as the artwork's own, every badge is the same size and the artwork is still the store's, untouched. Lifts and brightens a little under the pointer.
42
+ - `mark` — `<svg>`, class `dds-downloadbanner__mark`. The store's own badge artwork, filling the chip and kept to its proportions — the SVG's own fit centres it, and its black ground meets the chip's.
43
+ - `media` — `<div>`, class `dds-downloadbanner__media`. The app's image on the featured card: at the card's end from the fold, rising out of the card's top edge and resting on its bottom one; under the badges on a phone. The image is the page's, drawn at its own proportions and never wider than its column. Its top corners round at radius.container and it clips what it holds to them, so the app rises out of the card with the corners a picture standing on an edge has elsewhere — ProductHero's and FeatureStack's; its foot stays square, flush on the card's edge. Rendered only when `media` is set.
44
+
45
+ Apply these classes from the generated `downloadBannerParts` constant rather than writing the strings by hand.
46
+
47
+ ## Composition
48
+
49
+ - Takes no children. Everything it renders comes from props
50
+ - Never contains: `DownloadBanner`, `CtaBanner`, `LandingHero`, `ProductHero`, `PageHeader`, `Footer`, `Navbar` — in children or in any prop that takes a node
51
+
52
+ ## Props
53
+
54
+ ### ground — `page` | `subtle` | `strong` (default `page`)
55
+
56
+ - `page` — The default, and the page's own white. The card is the recessed gray that sets it off — the reference design's light-2
57
+ - `subtle` — The grey band, with the card white on it — the reference design's light. Painted as the band's tint laid over the page's own ground, so it is the same grey whatever is behind the section
58
+ - `strong` — `color.bg.brand-strong`, the dark band, with the card at color.bg.surface-card-strong and white words on it — the reference design's dark. For a download section a reader should arrive at; the badges are black and keep their own edge on it
59
+
60
+ Use when: Which of the page's grounds the section paints, and with it the card's fill: the recessed surface on the page, the raised white on the grey band, and the strong card on the dark band — TestimonialRow's three and the reference design's light, light-2 and dark. The ink follows the ground and is not a second decision.
61
+ Never for: Marking importance. Every section on a page painted a ground is a page with no emphasis left.
62
+
63
+ ### variant — `standard` | `featured` (default `standard`)
64
+
65
+ - `standard` — The default: the card in the ground's own fill, quiet beside the sections around it — the reference design's banner.
66
+ - `featured` — The page promoting an app: the brand's coral card laid out as a split — the app's name, the heading, a line and the badges with the QR code beside them on one side, the app's own image on the other, rising out of the card's top edge — with a Background pattern inside it, the aurora unless `pattern` says otherwise. White words on it; the badges keep their own black and the code its white tile. Coral in both themes and on every ground. A known exception: the line under the heading and the small print are white on the coral at about 3.4:1, under the 4.5:1 body text asks for — the package's ground rule keeps the coral to a headline and an action. Recorded rather than recoloured, as CtaBanner's band is; keep the line short, or use the standard card where the copy has to be read.
67
+
68
+ Use when: How much the banner asks for. The standard card sits with the page; the featured card is the page's moment for the app, and one per page.
69
+ Never for: More than one featured banner on a page, or one beside another patterned band. The pattern is what makes the band the one a reader remembers.
70
+
71
+ ### pattern — `aurora` | `mesh`
72
+
73
+ - `aurora` — Curtains of light rising from the card's foot, white and deep red on the coral, swaying slowly. The quieter of the two, and what a featured card draws when no pattern is named.
74
+ - `mesh` — Soft pools of the brand's reds run together across the whole card — the design system's own front page. The richer of the two.
75
+
76
+ Use when: Which pattern the featured card draws. Absent, the aurora.
77
+ Never for: A standard card. It has no pattern to choose, and the type refuses one.
78
+
79
+ ### media — `node`
80
+
81
+ Accepts: *
82
+ Use when: The featured card only: the app itself — a screenshot of it in a phone, the page's own image. It stands at the card's end, rising out of the card's top edge and resting on its bottom one, so the card reads as the app being held out to the reader. On a phone it sits under the badges.
83
+ Never for: A picture that is not the app. A banner promoting an app shows the app. On a standard card it is not drawn.
84
+
85
+ ### eyebrow — `string`
86
+
87
+ Use when: The featured card only: the app's name, or what kind of app it is, small above the heading — "Deriv GO", "Mobile app".
88
+ Never for: A second heading. The heading says what the reader gets; this names the app. On a standard card it is not drawn.
89
+
90
+ ### title — `string` **Required.**
91
+
92
+ Use when: Always. Where the app can be had, in a few words — "Trade on the go", "Available on". The section's heading at every width: under the scan line beside the code from the fold, and alone over the badges on a phone.
93
+ Never for: The instruction to scan. That is the QR code's `label`, and it goes with the code where the code goes.
94
+
95
+ ### description — `string`
96
+
97
+ Use when: A line under the heading saying what the app gives a reader — "Trade on the go with the same account, markets and tools." One sentence.
98
+ Never for: Small print. Versions and availability belong in the `disclaimer`.
99
+
100
+ ### badges — `data` `DownloadBannerBadge[]` **Required.**
101
+
102
+ Use when: Always. The stores and downloads the app is in, in the order a reader should meet them — mobile stores first, then desktop, then the web. Each names its `platform`, which picks the store's own artwork, and the `href` that reaches the product in it. An empty list draws no badges.
103
+ Never for: A platform the product does not ship on, or a badge whose link does not reach the product in that store.
104
+
105
+ ### qr — `data` `DownloadBannerQr`
106
+
107
+ Use when: A QR code reaching the same app the badges do, so a reader at a desktop can take it to their phone. The page's image, with the words it is read as and the line telling the reader to scan it. Drawn from the fold and never on a phone, where the reader is already holding the device it would open on, and only on the standard card: the featured card promotes an app with its image, and the badges are its one way in. Leave it out and the heading stands alone at every width.
108
+ Never for: A destination the badges do not reach. A code is the one link a reader cannot read before following it.
109
+
110
+ ### disclaimer — `string`
111
+
112
+ Use when: One line of small print under the heading — which versions the desktop app runs on, or where the app is not offered.
113
+ Never for: A sentence of promotion. Anything a reader is meant to be persuaded by is not small print.
114
+
115
+ ## Accessibility
116
+
117
+ 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.
118
+
119
+ - Announced as: `region`
120
+ - `Tab` — Moves through the badges in the order they were handed in. Nothing in the section is a composite widget.
121
+ - accessible name from title, so the section is a named region a screen reader can jump to and skip
122
+ - Each badge is a link named by the words its artwork carries, or by the record's label, so what is heard and what a speech-input user says match what is seen. The artwork is hidden from assistive technology.
123
+ - The QR code is an image named by the alt the page gives it, and never the only way to a destination: every place it reaches, a badge reaches too.
124
+
125
+ ## Rules
126
+
127
+ - **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.
128
+
129
+ 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.
130
+
131
+ 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.
132
+
133
+ 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.
134
+
135
+ 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.
136
+
137
+ 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.
138
+ Guidance only — cannot be checked automatically.
139
+ - **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.
140
+ Guidance only — cannot be checked automatically.
141
+ - **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.
142
+
143
+ 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.
144
+
145
+ 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.
146
+ Guidance only — cannot be checked automatically.
147
+ - **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.
148
+
149
+ 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.
150
+
151
+ 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.
152
+
153
+ 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.
154
+
155
+ 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.
156
+
157
+ 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.
158
+
159
+ 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.
160
+
161
+ 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.
162
+
163
+ 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.
164
+ Guidance only — cannot be checked automatically.
165
+ - **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.
166
+
167
+ 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.
168
+
169
+ 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.
170
+
171
+ 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.
172
+
173
+ 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.
174
+
175
+ 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.
176
+
177
+ 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.
178
+
179
+ 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.
180
+
181
+ 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.
182
+ Guidance only — cannot be checked automatically.
183
+ - **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.
184
+
185
+ 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.
186
+
187
+ 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.
188
+
189
+ 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.
190
+ Guidance only — cannot be checked automatically.
191
+ - **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.
192
+
193
+ 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.
194
+
195
+ 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.
196
+
197
+ 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.
198
+ Guidance only — cannot be checked automatically.
199
+
200
+ ## Anti-examples
201
+
202
+ ❌ DownloadBanner for: One download, or the web alone
203
+ A single destination is a Button. A row of one badge in a card is a section built for a choice the reader does not have.
204
+ → use `Button` instead.
205
+
206
+ ❌ DownloadBanner for: A promotion that has to argue for the download in a headline and a sentence
207
+ This has a heading, a line under it at most, and the badges. A message the reader has to be persuaded by is a CtaBanner, whose action can be the download.
208
+ → use `CtaBanner` instead.
209
+
210
+ ❌ variant=standard + pattern is set
211
+ A standard card draws no pattern, so a pattern named on it is a choice that does nothing. Make the card featured, or leave the pattern out.
212
+
213
+ ## Example
214
+
215
+ ```tsx
216
+ import { DownloadBanner } from '@deriv-com/dds-marketing'
217
+
218
+ <DownloadBanner title="Trade on the go" qr={{"src":"/sample-card-image.svg","alt":"QR code to download the Deriv app","label":"Scan to download the Deriv app"}} badges={[{"platform":"app-store","href":"https://apps.apple.com/app/deriv-go"},{"platform":"google-play","href":"https://play.google.com/store/apps/details?id=com.deriv.go"},{"platform":"app-gallery","href":"https://appgallery.huawei.com/app/deriv-go"},{"platform":"mac-app-store","href":"https://apps.apple.com/app/deriv-mt5"},{"platform":"windows-exe","href":"/downloads/deriv-mt5-setup.exe"},{"platform":"linux","href":"/downloads/deriv-mt5.deb"},{"platform":"web","href":"https://app.deriv.com"}]} description="The same account, markets and tools, on every device you trade from." />
219
+ ```
220
+
221
+ ## In use
222
+
223
+ ### Featured
224
+
225
+ An app being promoted: its name, the heading and the badges under them, the app's image rising out of the coral card.
226
+
227
+ ```tsx
228
+ import { AspectRatio, DownloadBanner } from '@deriv-com/dds-marketing'
229
+
230
+ // On the page
231
+ <DownloadBanner title="Trade on the go" badges={[{"platform":"app-store","href":"https://apps.apple.com/app/deriv-go"},{"platform":"google-play","href":"https://play.google.com/store/apps/details?id=com.deriv.go"},{"platform":"app-gallery","href":"https://appgallery.huawei.com/app/deriv-go"}]} description="The same account, markets and tools, on every device you trade from." variant="featured" pattern="aurora" eyebrow="Deriv GO" media={<AspectRatio ratio="portrait" />} />
232
+
233
+ // On the grey band
234
+ <DownloadBanner title="Trade on the go" badges={[{"platform":"app-store","href":"https://apps.apple.com/app/deriv-go"},{"platform":"google-play","href":"https://play.google.com/store/apps/details?id=com.deriv.go"},{"platform":"app-gallery","href":"https://appgallery.huawei.com/app/deriv-go"}]} description="The same account, markets and tools, on every device you trade from." variant="featured" ground="subtle" pattern="aurora" eyebrow="Deriv GO" media={<AspectRatio ratio="portrait" />} />
235
+
236
+ // On the dark band
237
+ <DownloadBanner title="Trade on the go" badges={[{"platform":"app-store","href":"https://apps.apple.com/app/deriv-go"},{"platform":"google-play","href":"https://play.google.com/store/apps/details?id=com.deriv.go"},{"platform":"app-gallery","href":"https://appgallery.huawei.com/app/deriv-go"}]} description="The same account, markets and tools, on every device you trade from." variant="featured" ground="strong" pattern="aurora" eyebrow="Deriv GO" media={<AspectRatio ratio="portrait" />} />
238
+ ```
239
+
240
+ ### Featured, with the mesh
241
+
242
+ The same card with the mesh instead of the aurora: soft pools of the brand's reds run together across it — the front page's hero.
243
+
244
+ ```tsx
245
+ import { AspectRatio, DownloadBanner } from '@deriv-com/dds-marketing'
246
+
247
+ // pattern="mesh"
248
+ <DownloadBanner title="Trade on the go" badges={[{"platform":"app-store","href":"https://apps.apple.com/app/deriv-go"},{"platform":"google-play","href":"https://play.google.com/store/apps/details?id=com.deriv.go"},{"platform":"app-gallery","href":"https://appgallery.huawei.com/app/deriv-go"}]} description="The same account, markets and tools, on every device you trade from." variant="featured" pattern="mesh" eyebrow="Deriv GO" media={<AspectRatio ratio="portrait" />} />
249
+
250
+ // pattern="mesh" on the dark band
251
+ <DownloadBanner title="Trade on the go" badges={[{"platform":"app-store","href":"https://apps.apple.com/app/deriv-go"},{"platform":"google-play","href":"https://play.google.com/store/apps/details?id=com.deriv.go"},{"platform":"app-gallery","href":"https://appgallery.huawei.com/app/deriv-go"}]} description="The same account, markets and tools, on every device you trade from." variant="featured" pattern="mesh" ground="strong" eyebrow="Deriv GO" media={<AspectRatio ratio="portrait" />} />
252
+ ```
253
+
254
+ ### Grounds
255
+
256
+ The page's three grounds, and the card's fill on each. The badges are the stores' own black artwork and keep their edge on every one.
257
+
258
+ ```tsx
259
+ import { DownloadBanner } from '@deriv-com/dds-marketing'
260
+
261
+ // page — the recessed card on white
262
+ <DownloadBanner ground="page" title="Trade on the go" qr={{"src":"/sample-card-image.svg","alt":"QR code to download the Deriv app","label":"Scan to download the Deriv app"}} badges={[{"platform":"app-store","href":"https://apps.apple.com/app/deriv-go"},{"platform":"google-play","href":"https://play.google.com/store/apps/details?id=com.deriv.go"},{"platform":"app-gallery","href":"https://appgallery.huawei.com/app/deriv-go"}]} />
263
+
264
+ // subtle — a white card on the grey band
265
+ <DownloadBanner ground="subtle" title="Trade on the go" qr={{"src":"/sample-card-image.svg","alt":"QR code to download the Deriv app","label":"Scan to download the Deriv app"}} badges={[{"platform":"app-store","href":"https://apps.apple.com/app/deriv-go"},{"platform":"google-play","href":"https://play.google.com/store/apps/details?id=com.deriv.go"},{"platform":"app-gallery","href":"https://appgallery.huawei.com/app/deriv-go"}]} />
266
+
267
+ // strong — the dark band
268
+ <DownloadBanner ground="strong" title="Trade on the go" qr={{"src":"/sample-card-image.svg","alt":"QR code to download the Deriv app","label":"Scan to download the Deriv app"}} badges={[{"platform":"app-store","href":"https://apps.apple.com/app/deriv-go"},{"platform":"google-play","href":"https://play.google.com/store/apps/details?id=com.deriv.go"},{"platform":"app-gallery","href":"https://appgallery.huawei.com/app/deriv-go"}]} />
269
+ ```
270
+
271
+ ### What a page offers
272
+
273
+ Only the platforms the product ships on. Without a QR code the heading stands alone; small print says what a download needs.
274
+
275
+ ```tsx
276
+ import { DownloadBanner } from '@deriv-com/dds-marketing'
277
+
278
+ // Mobile stores, no QR code
279
+ <DownloadBanner title="Available on" badges={[{"platform":"app-store","href":"https://apps.apple.com/app/deriv-go"},{"platform":"google-play","href":"https://play.google.com/store/apps/details?id=com.deriv.go"},{"platform":"app-gallery","href":"https://appgallery.huawei.com/app/deriv-go"}]} />
280
+
281
+ // Desktop downloads, with small print
282
+ <DownloadBanner title="Deriv MT5 on your desktop" qr={{"src":"/sample-card-image.svg","alt":"QR code to download Deriv MT5","label":"Scan to download"}} badges={[{"platform":"windows-exe","href":"/downloads/deriv-mt5-setup.exe"},{"platform":"macos-dmg","href":"/downloads/deriv-mt5.dmg"},{"platform":"linux","href":"/downloads/deriv-mt5.deb"}]} disclaimer="Runs on Windows 10 or later, macOS 11 or later, and Ubuntu 20.04 or later." />
283
+ ```
@@ -10,7 +10,7 @@ One card is the reference design's single panel: it takes the whole row, and fro
10
10
 
11
11
  ## Use when
12
12
 
13
- - Three or four things a product does, each a heading and a sentence, read side by side and compared at a glance
13
+ - Three or four things a product does, each a card with a heading, a line and a picture under them, read side by side and compared at a glance — the first choice for a set of three. The picture is CardBody's `src`, drawn below the words by default
14
14
  - A set of destinations — markets, platforms, tools — each a card a reader presses to go there
15
15
  - One feature that deserves the whole row in a card of its own — the words beside a large picture, carded on the section's ground
16
16
 
@@ -32,7 +32,7 @@ FeatureCards renders 8 elements. A token binding names the part it applies to.
32
32
  - `title` — `<h2>`, class `dds-featurecards__title`. What the cards are. `h2` because a section sits under the page's own heading; the cards' titles come below it in the outline.
33
33
  - `description` — `<p>`, class `dds-featurecards__description`. The line under the heading, at the description measure. Rendered only when `description` is set.
34
34
  - `link` — `<div>`, class `dds-featurecards__link`. The way on to the page the set belongs to. Rendered only when `link` is set.
35
- - `grid` — `<div>`, class `dds-featurecards__grid`. The cards. One column on a phone, two from the fold, three at full width, four when there are exactly four and two when there are exactly two — read from the children rather than asked of the page, because the count is already in the markup. Every card in a row is as tall as the tallest, which is what a grid row does and what lets their edges line up. The space between cards, across and down, is the page grid's own gutter, space.grid.gutter, at every width — the same measure every other grid on the page keeps. A single card takes the row on its own and lays its body out as a row from the fold. At full width one card or two hold to two thirds of the row, centred — two of the three columns — so a pair is as wide as a pair is in any set.
35
+ - `grid` — `<div>`, class `dds-featurecards__grid`. The cards. One column on a phone, two from the fold, three at full width, four when there are exactly four and two when there are exactly two — read from the children rather than asked of the page, because the count is already in the markup. Every card in a row is as tall as the tallest, which is what a grid row does and what lets their edges line up. The space between cards, across and down, is the page grid's own gutter, space.grid.gutter, at every width — the same measure every other grid on the page keeps. A single card takes the row on its own and lays its body out as a row from the fold. At full width a single card holds to two thirds of the row, centred — two of the three columns — and a pair fills the row, half each, reaching the same edges as three or four.
36
36
  - `item` — `<div>`, class `dds-featurecards__item`. One cell of the grid, holding one card. The cell is what arrives — the card inside it is the page's own and keeps its own transitions, which an arrival set on the card would have overwritten. A grid of its own so the card stretches to the cell, and every card in a row is as tall as the tallest. On a painted ground it is also where a card is re-coloured for it — a light card white on the subtle band, a neutral card inverse on the strong one: see `ground`.
37
37
 
38
38
  Apply these classes from the generated `featureCardsParts` constant rather than writing the strings by hand.
@@ -237,7 +237,7 @@ import { Card, CardBody, FeatureCards, Link } from '@deriv-com/dds-marketing'
237
237
  </Card>
238
238
  </FeatureCards>
239
239
 
240
- // Two cards, two thirds of the row
240
+ // Two cards, filling the row
241
241
  <FeatureCards title="Two ways to trade">
242
242
  <Card variant="accent-strong">
243
243
  <CardBody title="Trade on any device" description="Desktop, web and mobile, all from one account." link={<Link href="/platforms" tone="inherit">Learn more</Link>} src="/sample-card-image.svg" alt="" />
@@ -311,3 +311,41 @@ import { FeatureCards } from '@deriv-com/dds-marketing'
311
311
  // Strong ground, the same set
312
312
  <FeatureCards ground="strong" title="Why trade with Deriv">{cards}</FeatureCards>
313
313
  ```
314
+
315
+ ### Icon-led cards
316
+
317
+ The reference's FeatureCardsIcon: every card a light Card whose CardBody leads with a mark rather than a picture. A mark on every card or on none.
318
+
319
+ ```tsx
320
+ import { Card, CardBody, FeatureCards, Link } from '@deriv-com/dds-marketing'
321
+ import { ClockThreeRegularIcon, FileShieldRegularIcon, GlobeRegularIcon, LockRegularIcon } from '@deriv-com/quill-icons-web'
322
+
323
+ // Three cards, a mark on each
324
+ <FeatureCards ground="subtle" title="Why choose Deriv" description="Trusted by traders since 1999, with the safeguards to show for it.">
325
+ <Card variant="surface-light">
326
+ <CardBody mark={<FileShieldRegularIcon />} title="Regulated and licensed" description="Licensed in several jurisdictions, audited every year." link={<Link href="/regulatory">Learn more</Link>} />
327
+ </Card>
328
+ <Card variant="surface-light">
329
+ <CardBody mark={<LockRegularIcon />} title="Your funds kept separate" description="Client money held apart from the company's own." link={<Link href="/security">Learn more</Link>} />
330
+ </Card>
331
+ <Card variant="surface-light">
332
+ <CardBody mark={<ClockThreeRegularIcon />} title="Support around the clock" description="Real people on chat, every day of the year." link={<Link href="/contact-us">Learn more</Link>} />
333
+ </Card>
334
+ </FeatureCards>
335
+
336
+ // Four cards, one row at full width
337
+ <FeatureCards ground="subtle" title="Why choose Deriv" description="Trusted by traders since 1999, with the safeguards to show for it.">
338
+ <Card variant="surface-light">
339
+ <CardBody mark={<FileShieldRegularIcon />} title="Regulated and licensed" description="Licensed in several jurisdictions, audited every year." link={<Link href="/regulatory">Learn more</Link>} />
340
+ </Card>
341
+ <Card variant="surface-light">
342
+ <CardBody mark={<LockRegularIcon />} title="Your funds kept separate" description="Client money held apart from the company's own." link={<Link href="/security">Learn more</Link>} />
343
+ </Card>
344
+ <Card variant="surface-light">
345
+ <CardBody mark={<ClockThreeRegularIcon />} title="Support around the clock" description="Real people on chat, every day of the year." link={<Link href="/contact-us">Learn more</Link>} />
346
+ </Card>
347
+ <Card variant="surface-light">
348
+ <CardBody mark={<GlobeRegularIcon />} title="Trade from 190+ countries" description="One account, wherever you trade from." link={<Link href="/who-we-are">Learn more</Link>} />
349
+ </Card>
350
+ </FeatureCards>
351
+ ```