@deriv-com/dds-marketing 0.2.0 → 1.0.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/accordion.md +8 -0
- package/.llm/components/accordionitem.md +8 -0
- package/.llm/components/aspectratio.md +8 -0
- package/.llm/components/badge.md +8 -0
- package/.llm/components/bottomsheet.md +8 -0
- package/.llm/components/breadcrumb.md +8 -0
- package/.llm/components/breadcrumbitem.md +8 -0
- package/.llm/components/button.md +46 -22
- package/.llm/components/buttonicon.md +14 -6
- package/.llm/components/card.md +15 -1
- package/.llm/components/cardbody.md +28 -2
- package/.llm/components/cardbutton.md +15 -1
- package/.llm/components/checkbox.md +8 -0
- package/.llm/components/ctabanner.md +186 -0
- package/.llm/components/ctabannerslider.md +204 -0
- package/.llm/components/divider.md +8 -0
- package/.llm/components/dropdownmenu.md +13 -5
- package/.llm/components/faqaccordion.md +217 -0
- package/.llm/components/featurebullets.md +254 -0
- package/.llm/components/featurecards.md +313 -0
- package/.llm/components/featurescroll.md +284 -0
- package/.llm/components/featuresplit.md +249 -0
- package/.llm/components/filterchip.md +8 -0
- package/.llm/components/footer.md +8 -0
- package/.llm/components/footergroup.md +8 -0
- package/.llm/components/grid.md +8 -0
- package/.llm/components/icon.md +8 -0
- package/.llm/components/landinghero.md +254 -0
- package/.llm/components/link.md +9 -1
- package/.llm/components/logocolumns.md +235 -0
- package/.llm/components/logorows.md +212 -0
- package/.llm/components/menuitem.md +8 -0
- package/.llm/components/navbar.md +79 -15
- package/.llm/components/navbaritem.md +9 -1
- package/.llm/components/navbarmenu.md +8 -0
- package/.llm/components/navbarmenugroup.md +8 -0
- package/.llm/components/navbarpanel.md +9 -1
- package/.llm/components/navbarswitcher.md +9 -1
- package/.llm/components/navbarswitcheroption.md +8 -0
- package/.llm/components/option.md +8 -0
- package/.llm/components/pageheader.md +231 -0
- package/.llm/components/pagination.md +26 -89
- package/.llm/components/paginationdots.md +215 -0
- package/.llm/components/producthero.md +248 -0
- package/.llm/components/removablechip.md +8 -0
- package/.llm/components/row.md +8 -0
- package/.llm/components/scroller.md +8 -0
- package/.llm/components/searchinput.md +8 -0
- package/.llm/components/segmentedcontrol.md +8 -0
- package/.llm/components/segmentedcontrolitem.md +8 -0
- package/.llm/components/select.md +8 -0
- package/.llm/components/selectchip.md +56 -15
- package/.llm/components/spinner.md +8 -0
- package/.llm/components/stack.md +8 -0
- package/.llm/components/statusdot.md +8 -0
- package/.llm/components/subdomainnavbar.md +8 -0
- package/.llm/components/tab.md +8 -0
- package/.llm/components/table.md +8 -0
- package/.llm/components/tablebody.md +8 -0
- package/.llm/components/tablecell.md +8 -0
- package/.llm/components/tablehead.md +8 -0
- package/.llm/components/tableheadercell.md +8 -0
- package/.llm/components/tablerow.md +8 -0
- package/.llm/components/tablist.md +8 -0
- package/.llm/components/testimonialrow.md +235 -0
- package/.llm/components/testimonialslider.md +254 -0
- package/.llm/components/textarea.md +8 -0
- package/.llm/components/textinput.md +8 -0
- package/.llm/components/tooltip.md +8 -0
- package/.llm/components/typography.md +8 -0
- package/.llm/digest/button.md +11 -6
- package/.llm/digest/buttonicon.md +2 -2
- package/.llm/digest/card.md +1 -0
- package/.llm/digest/cardbody.md +3 -1
- package/.llm/digest/cardbutton.md +1 -0
- package/.llm/digest/ctabanner.md +44 -0
- package/.llm/digest/ctabannerslider.md +45 -0
- package/.llm/digest/dropdownmenu.md +1 -1
- package/.llm/digest/faqaccordion.md +43 -0
- package/.llm/digest/featurebullets.md +52 -0
- package/.llm/digest/featurecards.md +49 -0
- package/.llm/digest/featurescroll.md +52 -0
- package/.llm/digest/featuresplit.md +54 -0
- package/.llm/digest/landinghero.md +53 -0
- package/.llm/digest/logocolumns.md +55 -0
- package/.llm/digest/logorows.md +48 -0
- package/.llm/digest/navbar.md +18 -3
- package/.llm/digest/pageheader.md +49 -0
- package/.llm/digest/pagination.md +6 -17
- package/.llm/digest/paginationdots.md +43 -0
- package/.llm/digest/producthero.md +53 -0
- package/.llm/digest/selectchip.md +6 -1
- package/.llm/digest/testimonialrow.md +51 -0
- package/.llm/digest/testimonialslider.md +51 -0
- package/.llm/index.md +24 -3
- package/.llm/rules.md +24 -0
- package/.llm/tokens.md +56 -12
- package/AGENTS.md +28 -3
- package/README.md +41 -21
- package/dist/components/banner-data.d.ts +38 -0
- package/dist/components/banner-data.js +15 -0
- package/dist/components/blocks/block-reveal.css +90 -0
- package/dist/components/blocks/cta-banner/CtaBanner.css +66 -0
- package/dist/components/blocks/cta-banner/CtaBanner.d.ts +22 -0
- package/dist/components/blocks/cta-banner/CtaBanner.js +31 -0
- package/dist/components/blocks/cta-banner/CtaBanner.types.d.ts +29 -0
- package/dist/components/blocks/cta-banner/CtaBanner.types.js +13 -0
- package/dist/components/blocks/cta-banner/cta-banner-impl.css +29 -0
- package/dist/components/blocks/cta-banner-slider/CtaBannerSlider.css +90 -0
- package/dist/components/blocks/cta-banner-slider/CtaBannerSlider.d.ts +39 -0
- package/dist/components/blocks/cta-banner-slider/CtaBannerSlider.js +60 -0
- package/dist/components/blocks/cta-banner-slider/CtaBannerSlider.types.d.ts +41 -0
- package/dist/components/blocks/cta-banner-slider/CtaBannerSlider.types.js +15 -0
- package/dist/components/blocks/cta-banner-slider/cta-banner-slider-impl.css +73 -0
- package/dist/components/blocks/faq-accordion/FaqAccordion.css +54 -0
- package/dist/components/blocks/faq-accordion/FaqAccordion.d.ts +20 -0
- package/dist/components/blocks/faq-accordion/FaqAccordion.js +28 -0
- package/dist/components/blocks/faq-accordion/FaqAccordion.types.d.ts +25 -0
- package/dist/components/blocks/faq-accordion/FaqAccordion.types.js +10 -0
- package/dist/components/blocks/faq-accordion/faq-accordion-impl.css +54 -0
- package/dist/components/blocks/feature-bullets/FeatureBullets.css +139 -0
- package/dist/components/blocks/feature-bullets/FeatureBullets.d.ts +31 -0
- package/dist/components/blocks/feature-bullets/FeatureBullets.js +55 -0
- package/dist/components/blocks/feature-bullets/FeatureBullets.types.d.ts +39 -0
- package/dist/components/blocks/feature-bullets/FeatureBullets.types.js +16 -0
- package/dist/components/blocks/feature-bullets/feature-bullets-impl.css +104 -0
- package/dist/components/blocks/feature-cards/FeatureCards.css +84 -0
- package/dist/components/blocks/feature-cards/FeatureCards.d.ts +24 -0
- package/dist/components/blocks/feature-cards/FeatureCards.js +66 -0
- package/dist/components/blocks/feature-cards/FeatureCards.types.d.ts +33 -0
- package/dist/components/blocks/feature-cards/FeatureCards.types.js +14 -0
- package/dist/components/blocks/feature-cards/feature-cards-impl.css +245 -0
- package/dist/components/blocks/feature-scroll/FeatureScroll.css +137 -0
- package/dist/components/blocks/feature-scroll/FeatureScroll.d.ts +39 -0
- package/dist/components/blocks/feature-scroll/FeatureScroll.js +167 -0
- package/dist/components/blocks/feature-scroll/FeatureScroll.types.d.ts +40 -0
- package/dist/components/blocks/feature-scroll/FeatureScroll.types.js +17 -0
- package/dist/components/blocks/feature-scroll/feature-scroll-impl.css +292 -0
- package/dist/components/blocks/feature-split/FeatureSplit.css +95 -0
- package/dist/components/blocks/feature-split/FeatureSplit.d.ts +30 -0
- package/dist/components/blocks/feature-split/FeatureSplit.js +38 -0
- package/dist/components/blocks/feature-split/FeatureSplit.types.d.ts +39 -0
- package/dist/components/blocks/feature-split/FeatureSplit.types.js +14 -0
- package/dist/components/blocks/feature-split/feature-split-impl.css +83 -0
- package/dist/components/blocks/landing-hero/LandingHero.css +85 -0
- package/dist/components/blocks/landing-hero/LandingHero.d.ts +41 -0
- package/dist/components/blocks/landing-hero/LandingHero.js +54 -0
- package/dist/components/blocks/landing-hero/LandingHero.types.d.ts +37 -0
- package/dist/components/blocks/landing-hero/LandingHero.types.js +15 -0
- package/dist/components/blocks/landing-hero/landing-hero-impl.css +355 -0
- package/dist/components/blocks/logo-columns/LogoColumns.css +161 -0
- package/dist/components/blocks/logo-columns/LogoColumns.d.ts +23 -0
- package/dist/components/blocks/logo-columns/LogoColumns.js +46 -0
- package/dist/components/blocks/logo-columns/LogoColumns.types.d.ts +46 -0
- package/dist/components/blocks/logo-columns/LogoColumns.types.js +18 -0
- package/dist/components/blocks/logo-columns/logo-columns-impl.css +188 -0
- package/dist/components/blocks/logo-rows/LogoRows.css +122 -0
- package/dist/components/blocks/logo-rows/LogoRows.d.ts +20 -0
- package/dist/components/blocks/logo-rows/LogoRows.js +43 -0
- package/dist/components/blocks/logo-rows/LogoRows.types.d.ts +36 -0
- package/dist/components/blocks/logo-rows/LogoRows.types.js +16 -0
- package/dist/components/blocks/logo-rows/logo-rows-impl.css +179 -0
- package/dist/components/blocks/page-header/PageHeader.css +79 -0
- package/dist/components/blocks/page-header/PageHeader.d.ts +34 -0
- package/dist/components/blocks/page-header/PageHeader.js +43 -0
- package/dist/components/blocks/page-header/PageHeader.types.d.ts +32 -0
- package/dist/components/blocks/page-header/PageHeader.types.js +14 -0
- package/dist/components/blocks/page-header/page-header-impl.css +176 -0
- package/dist/components/blocks/product-hero/ProductHero.css +86 -0
- package/dist/components/blocks/product-hero/ProductHero.d.ts +35 -0
- package/dist/components/blocks/product-hero/ProductHero.js +48 -0
- package/dist/components/blocks/product-hero/ProductHero.types.d.ts +37 -0
- package/dist/components/blocks/product-hero/ProductHero.types.js +15 -0
- package/dist/components/blocks/product-hero/product-hero-impl.css +354 -0
- package/dist/components/blocks/testimonial-row/TestimonialRow.css +245 -0
- package/dist/components/blocks/testimonial-row/TestimonialRow.d.ts +20 -0
- package/dist/components/blocks/testimonial-row/TestimonialRow.js +128 -0
- package/dist/components/blocks/testimonial-row/TestimonialRow.types.d.ts +54 -0
- package/dist/components/blocks/testimonial-row/TestimonialRow.types.js +26 -0
- package/dist/components/blocks/testimonial-row/testimonial-row-impl.css +195 -0
- package/dist/components/blocks/testimonial-slider/TestimonialSlider.css +181 -0
- package/dist/components/blocks/testimonial-slider/TestimonialSlider.d.ts +22 -0
- package/dist/components/blocks/testimonial-slider/TestimonialSlider.js +36 -0
- package/dist/components/blocks/testimonial-slider/TestimonialSlider.types.d.ts +49 -0
- package/dist/components/blocks/testimonial-slider/TestimonialSlider.types.js +21 -0
- package/dist/components/blocks/testimonial-slider/testimonial-slider-impl.css +202 -0
- package/dist/components/blocks/use-reveal.d.ts +46 -0
- package/dist/components/blocks/use-reveal.js +120 -0
- package/dist/components/blocks/use-rotation.d.ts +62 -0
- package/dist/components/blocks/use-rotation.js +176 -0
- package/dist/components/core/accordion-item/AccordionItem.css +6 -5
- package/dist/components/core/bottom-sheet/BottomSheet.css +1 -1
- package/dist/components/core/button/Button.css +63 -16
- package/dist/components/core/button/Button.d.ts +14 -12
- package/dist/components/core/button/Button.js +43 -14
- package/dist/components/core/button/Button.types.d.ts +9 -14
- package/dist/components/core/button/button-impl.css +25 -0
- package/dist/components/core/button-icon/ButtonIcon.css +31 -15
- package/dist/components/core/button-icon/ButtonIcon.d.ts +2 -2
- package/dist/components/core/button-icon/ButtonIcon.js +2 -2
- package/dist/components/core/button-icon/ButtonIcon.types.d.ts +4 -4
- package/dist/components/core/card/Card.css +13 -4
- package/dist/components/core/card/Card.types.d.ts +2 -1
- package/dist/components/core/card-body/CardBody.css +11 -6
- package/dist/components/core/card-body/CardBody.d.ts +1 -1
- package/dist/components/core/card-body/CardBody.js +2 -2
- package/dist/components/core/card-body/CardBody.types.d.ts +4 -1
- package/dist/components/core/card-body/CardBody.types.js +1 -0
- package/dist/components/core/card-button/CardButton.css +13 -4
- package/dist/components/core/card-button/CardButton.types.d.ts +2 -1
- package/dist/components/core/checkbox/Checkbox.css +8 -1
- package/dist/components/core/dropdown-menu/DropdownMenu.css +13 -12
- package/dist/components/core/dropdown-menu/DropdownMenu.d.ts +5 -3
- package/dist/components/core/dropdown-menu/DropdownMenu.js +5 -3
- package/dist/components/core/filter-chip/FilterChip.css +2 -1
- package/dist/components/core/footer/footer-impl.css +1 -1
- package/dist/components/core/footer-group/FooterGroup.css +8 -7
- package/dist/components/core/icon/Icon.css +1 -1
- package/dist/components/core/link/Link.css +1 -1
- package/dist/components/core/menu-item/MenuItem.css +1 -1
- package/dist/components/core/navbar/Navbar.css +7 -8
- package/dist/components/core/navbar/Navbar.d.ts +17 -1
- package/dist/components/core/navbar/Navbar.js +139 -12
- package/dist/components/core/navbar/Navbar.types.d.ts +23 -4
- package/dist/components/core/navbar/Navbar.types.js +1 -1
- package/dist/components/core/navbar/navbar-impl.css +10 -3
- package/dist/components/core/navbar/navbar-material.css +96 -0
- package/dist/components/core/navbar-item/NavbarItem.css +4 -4
- package/dist/components/core/navbar-menu/NavbarMenu.css +7 -5
- package/dist/components/core/navbar-menu/NavbarMenu.d.ts +1 -0
- package/dist/components/core/navbar-menu/NavbarMenu.js +1 -0
- package/dist/components/core/navbar-menu/navbar-menu-impl.css +7 -7
- package/dist/components/core/navbar-switcher/NavbarSwitcher.css +6 -5
- package/dist/components/core/navbar-switcher/NavbarSwitcher.d.ts +1 -0
- package/dist/components/core/navbar-switcher/NavbarSwitcher.js +2 -1
- package/dist/components/core/option/Option.css +1 -1
- package/dist/components/core/pagination/Pagination.css +1 -75
- package/dist/components/core/pagination/Pagination.d.ts +4 -4
- package/dist/components/core/pagination/Pagination.js +11 -51
- package/dist/components/core/pagination/Pagination.types.d.ts +5 -17
- package/dist/components/core/pagination/Pagination.types.js +1 -3
- package/dist/components/core/pagination-dots/PaginationDots.css +60 -0
- package/dist/components/core/pagination-dots/PaginationDots.d.ts +25 -0
- package/dist/components/core/pagination-dots/PaginationDots.js +104 -0
- package/dist/components/core/pagination-dots/PaginationDots.types.d.ts +38 -0
- package/dist/components/core/pagination-dots/PaginationDots.types.js +9 -0
- package/dist/components/core/removable-chip/RemovableChip.css +3 -3
- package/dist/components/core/search-input/SearchInput.css +1 -1
- package/dist/components/core/segmented-control/SegmentedControl.css +1 -1
- package/dist/components/core/segmented-control-item/SegmentedControlItem.css +1 -1
- package/dist/components/core/select/Select.css +2 -1
- package/dist/components/core/select-chip/SelectChip.css +14 -7
- package/dist/components/core/select-chip/SelectChip.d.ts +1 -1
- package/dist/components/core/select-chip/SelectChip.js +7 -4
- package/dist/components/core/select-chip/SelectChip.types.d.ts +7 -1
- package/dist/components/core/select-chip/SelectChip.types.js +1 -1
- package/dist/components/core/select-chip/select-chip-impl.css +14 -3
- package/dist/components/core/status-dot/StatusDot.css +1 -1
- package/dist/components/core/subdomain-navbar/SubdomainNavbar.css +3 -3
- package/dist/components/core/tab/Tab.css +1 -1
- package/dist/components/core/tab-list/TabList.css +1 -1
- package/dist/components/core/table/table-impl.css +36 -14
- package/dist/components/core/table-header-cell/TableHeaderCell.css +5 -5
- package/dist/components/core/text-area/TextArea.css +1 -1
- package/dist/components/core/text-input/TextInput.css +1 -1
- package/dist/components/core/tooltip/Tooltip.css +1 -1
- package/dist/components/core/typography/Typography.css +5 -5
- package/dist/components/index.d.ts +35 -0
- package/dist/components/index.js +30 -0
- package/dist/components/logo-data.d.ts +24 -0
- package/dist/components/logo-data.js +11 -0
- package/dist/components/scroll-data.d.ts +64 -0
- package/dist/components/scroll-data.js +17 -0
- package/dist/components/testimonial-row-data.d.ts +51 -0
- package/dist/components/testimonial-row-data.js +11 -0
- package/dist/components/testimonial-slider-data.d.ts +26 -0
- package/dist/components/testimonial-slider-data.js +10 -0
- package/dist/marketing.css +385 -14
- package/package.json +1 -6
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The stops a scrolling feature section walks a reader through.
|
|
3
|
+
*
|
|
4
|
+
* Exported from the package, because a section whose content is a list is one whose consumer has
|
|
5
|
+
* to build a value before they can pass it — and building it without the type means writing the
|
|
6
|
+
* shape out a second time and finding out at the call site that the two disagree.
|
|
7
|
+
*
|
|
8
|
+
* It sits at the components root rather than inside the component, which is where every shape a
|
|
9
|
+
* consumer constructs lives here. `chart-data.ts` beside it holds Product's.
|
|
10
|
+
*
|
|
11
|
+
* A record rather than a component per stop, which is the one decision worth stating. A set that
|
|
12
|
+
* arrives as data can be mapped from a CMS, counted, reordered and filtered by the page that holds
|
|
13
|
+
* it; a set that arrives as children is written out by hand. What it costs is slots: a picture is a
|
|
14
|
+
* path here rather than an element, and the way onward is a label and a href rather than a Link the
|
|
15
|
+
* page composed. Both are the price of the list being a list.
|
|
16
|
+
*/
|
|
17
|
+
/** One stop in a FeatureScroll: what it is called, what it is, where it goes and what it shows. */
|
|
18
|
+
export interface FeatureScrollStep {
|
|
19
|
+
/**
|
|
20
|
+
* What this stop is called, in the fewest words that name it — 'Forex', 'Stock indices'.
|
|
21
|
+
*
|
|
22
|
+
* It is what a reader scans for on the way past, so a name beats a sentence. Drawn as a heading,
|
|
23
|
+
* which is what lets a screen reader move between the stops rather than scroll through them.
|
|
24
|
+
*/
|
|
25
|
+
title: string;
|
|
26
|
+
/**
|
|
27
|
+
* What this stop is, in a sentence or two.
|
|
28
|
+
*
|
|
29
|
+
* The stop is a screen tall and this is the only thing on it a reader actually reads, so it can
|
|
30
|
+
* afford to be a real sentence. Past about two hundred characters it runs longer than the
|
|
31
|
+
* picture beside it and the two halves stop lining up.
|
|
32
|
+
*/
|
|
33
|
+
description: string;
|
|
34
|
+
/**
|
|
35
|
+
* Where the way onward goes, for a stop with a page of its own.
|
|
36
|
+
*
|
|
37
|
+
* Optional, and paired with `linkLabel`: a href with no label is a link with nothing to press,
|
|
38
|
+
* and a label with no href is words that look pressable and are not. Passing one without the
|
|
39
|
+
* other draws nothing rather than drawing half of it.
|
|
40
|
+
*/
|
|
41
|
+
href?: string;
|
|
42
|
+
/**
|
|
43
|
+
* The words the way onward is under.
|
|
44
|
+
*
|
|
45
|
+
* "Learn more" is this site's wording, and using the same three words on every stop is what lets
|
|
46
|
+
* a reader stop reading them — a link that renames itself per stop is a link somebody has to
|
|
47
|
+
* read before they know it is the way onward. It is stated per stop rather than defaulted here
|
|
48
|
+
* because a component inventing copy is a component deciding something the page is responsible
|
|
49
|
+
* for.
|
|
50
|
+
*/
|
|
51
|
+
linkLabel?: string;
|
|
52
|
+
/**
|
|
53
|
+
* The picture that pins beside the words, as a path or a URL.
|
|
54
|
+
*
|
|
55
|
+
* A path rather than an element, because a list of records cannot hold one. It is held to a
|
|
56
|
+
* square and cropped to fill it, so a section of six stops is six identical frames whatever the
|
|
57
|
+
* page passes — and anything a reader has to read or press inside it is cropped with it.
|
|
58
|
+
*
|
|
59
|
+
* Decorative: it is hidden from assistive technology, because what the stop says is the title
|
|
60
|
+
* and the description, and a picture carrying something they do not is a stop that reads as half
|
|
61
|
+
* empty to anyone who cannot see it.
|
|
62
|
+
*/
|
|
63
|
+
image: string;
|
|
64
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The stops a scrolling feature section walks a reader through.
|
|
3
|
+
*
|
|
4
|
+
* Exported from the package, because a section whose content is a list is one whose consumer has
|
|
5
|
+
* to build a value before they can pass it — and building it without the type means writing the
|
|
6
|
+
* shape out a second time and finding out at the call site that the two disagree.
|
|
7
|
+
*
|
|
8
|
+
* It sits at the components root rather than inside the component, which is where every shape a
|
|
9
|
+
* consumer constructs lives here. `chart-data.ts` beside it holds Product's.
|
|
10
|
+
*
|
|
11
|
+
* A record rather than a component per stop, which is the one decision worth stating. A set that
|
|
12
|
+
* arrives as data can be mapped from a CMS, counted, reordered and filtered by the page that holds
|
|
13
|
+
* it; a set that arrives as children is written out by hand. What it costs is slots: a picture is a
|
|
14
|
+
* path here rather than an element, and the way onward is a label and a href rather than a Link the
|
|
15
|
+
* page composed. Both are the price of the list being a list.
|
|
16
|
+
*/
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The reviews a TestimonialRow runs along, and the overall rating it states over them.
|
|
3
|
+
*
|
|
4
|
+
* Exported from the package for the reason `testimonial-slider-data.ts` and `banner-data.ts` are: a block
|
|
5
|
+
* whose content is a list is one whose consumer builds a value before passing it.
|
|
6
|
+
*
|
|
7
|
+
* Records rather than a component per review, because a review is words, a name and a score —
|
|
8
|
+
* nothing in it is an element a page composes — and a set of them is what a review service's feed
|
|
9
|
+
* hands over.
|
|
10
|
+
*/
|
|
11
|
+
/** One review in a TestimonialRow: what was said, who said it, and what they rated it. */
|
|
12
|
+
export interface TestimonialRowReview {
|
|
13
|
+
/**
|
|
14
|
+
* What the reviewer wrote, in their words. A sentence or two: a card is read on the way along the
|
|
15
|
+
* row, and one that runs on is one nobody finishes.
|
|
16
|
+
*/
|
|
17
|
+
quote: string;
|
|
18
|
+
/** Who wrote it — the name the review service shows. */
|
|
19
|
+
name: string;
|
|
20
|
+
/** Where they are, under the name: "United Kingdom". */
|
|
21
|
+
detail?: string;
|
|
22
|
+
/**
|
|
23
|
+
* The stars they gave, out of five. Halves are drawn as half a star; anything finer is rounded to
|
|
24
|
+
* the nearest half. Absent, no stars are drawn — never five on a reviewer's behalf. Keep it the
|
|
25
|
+
* rating the source shows: it is a claim made in the reviewer's name.
|
|
26
|
+
*/
|
|
27
|
+
rating?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Where the review itself is, as a URL. Given, the whole card links to it and opens in a new tab,
|
|
30
|
+
* the review being on a service the page does not own.
|
|
31
|
+
*/
|
|
32
|
+
href?: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* The overall rating the reviews come with, written under the section's heading.
|
|
36
|
+
*
|
|
37
|
+
* The words are the page's rather than the component's, because they name the service the reviews
|
|
38
|
+
* came from — which this component deliberately does not know — and they have to be translated.
|
|
39
|
+
*/
|
|
40
|
+
export interface TestimonialRowSummary {
|
|
41
|
+
/**
|
|
42
|
+
* The overall rating, in the page's words: "Rated 4.5 out of 5 on our review site". Written, not
|
|
43
|
+
* drawn — the score is stated once, in words that can be translated and read aloud.
|
|
44
|
+
*/
|
|
45
|
+
label: string;
|
|
46
|
+
/**
|
|
47
|
+
* Where the reviews were collected, as a URL. Given, the words become a link to it, opening in a
|
|
48
|
+
* new tab.
|
|
49
|
+
*/
|
|
50
|
+
href?: string;
|
|
51
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The reviews a TestimonialRow runs along, and the overall rating it states over them.
|
|
3
|
+
*
|
|
4
|
+
* Exported from the package for the reason `testimonial-slider-data.ts` and `banner-data.ts` are: a block
|
|
5
|
+
* whose content is a list is one whose consumer builds a value before passing it.
|
|
6
|
+
*
|
|
7
|
+
* Records rather than a component per review, because a review is words, a name and a score —
|
|
8
|
+
* nothing in it is an element a page composes — and a set of them is what a review service's feed
|
|
9
|
+
* hands over.
|
|
10
|
+
*/
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The quotes a TestimonialSlider rotates between.
|
|
3
|
+
*
|
|
4
|
+
* Exported from the package for the reason `scroll-data.ts` and `banner-data.ts` are: a block
|
|
5
|
+
* whose content is a list is one whose consumer builds a value before passing it.
|
|
6
|
+
*
|
|
7
|
+
* A record rather than a component per quote, because a quote is words and a name — nothing in it
|
|
8
|
+
* is an element a page composes — and a set of them is what a CMS hands over.
|
|
9
|
+
*/
|
|
10
|
+
/** One quote in a TestimonialSlider: what was said, and who said it. */
|
|
11
|
+
export interface TestimonialSliderQuote {
|
|
12
|
+
/**
|
|
13
|
+
* What the person said, in their words. A few sentences at most: a quote is read while it is in
|
|
14
|
+
* view, and one that runs past the card is one nobody finishes.
|
|
15
|
+
*/
|
|
16
|
+
quote: string;
|
|
17
|
+
/** Who said it — a name, or the role they speak as: "Deriv partner". */
|
|
18
|
+
name: string;
|
|
19
|
+
/** Where they are or what they do, under the name: "Sri Lanka", "Trader since 2019". */
|
|
20
|
+
detail?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Their picture, as a path or a URL. Drawn round at size.avatar beside the name, and decorative:
|
|
23
|
+
* the name says who it is.
|
|
24
|
+
*/
|
|
25
|
+
avatar?: string;
|
|
26
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The quotes a TestimonialSlider rotates between.
|
|
3
|
+
*
|
|
4
|
+
* Exported from the package for the reason `scroll-data.ts` and `banner-data.ts` are: a block
|
|
5
|
+
* whose content is a list is one whose consumer builds a value before passing it.
|
|
6
|
+
*
|
|
7
|
+
* A record rather than a component per quote, because a quote is words and a name — nothing in it
|
|
8
|
+
* is an element a page composes — and a set of them is what a CMS hands over.
|
|
9
|
+
*/
|
|
10
|
+
export {};
|