@deriv-web-design/ui 0.1.31 → 0.1.32

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.
@@ -2587,6 +2587,11 @@
2587
2587
  "required": true,
2588
2588
  "description": "Main heading"
2589
2589
  },
2590
+ "trustpilot": {
2591
+ "type": "HeroTrustpilotProps",
2592
+ "required": false,
2593
+ "description": "Opt-in Trustpilot band pinned to the hero's bottom edge, as on the deriv.com and deriv.com/partners homepage heroes (`home-hero_trustpilot-wrapper`). A 56px strip showing the star rating, \"Deriv scores X out of 5 based on N reviews\" (hidden below 768px) and the Trustpilot wordmark, all linking to the Trustpilot profile. Omit it and the hero renders exactly as before — nothing is added to the DOM or CSS cascade."
2594
+ },
2590
2595
  "variant": {
2591
2596
  "type": "HeroVariant",
2592
2597
  "required": true,
package/dist/index.css CHANGED
@@ -2847,6 +2847,17 @@
2847
2847
  --hero-padding-top-mobile: var(--spacing-80);
2848
2848
  --hero-padding-top-tablet: var(--spacing-96);
2849
2849
  --hero-padding-top-desktop: var(--spacing-112);
2850
+ --hero-trustpilot-height: var(--spacing-56);
2851
+ --hero-trustpilot-bg: var(--hero-dark-bg);
2852
+ --hero-trustpilot-text: var(--hero-text-light);
2853
+ --hero-trustpilot-gap: var(--spacing-16);
2854
+ --hero-trustpilot-gap-tablet: var(--spacing-24);
2855
+ --hero-trustpilot-focus-ring: var(--border-focus);
2856
+ --hero-trustpilot-star-fill: #00b67a;
2857
+ --hero-trustpilot-star-empty: var(--color-opacity-white-24);
2858
+ --hero-trustpilot-star-glyph: var(--color-slate-50);
2859
+ --hero-trustpilot-logo-star: #04da8d;
2860
+ --hero-trustpilot-logo-star-shadow: #005128;
2850
2861
  }
2851
2862
  .hero {
2852
2863
  position: relative;
@@ -3348,6 +3359,88 @@
3348
3359
  max-width: 220px;
3349
3360
  }
3350
3361
  }
3362
+ .hero__trustpilot {
3363
+ position: absolute;
3364
+ left: 0;
3365
+ right: 0;
3366
+ bottom: 0;
3367
+ height: var(--hero-trustpilot-height);
3368
+ z-index: 4;
3369
+ background-color: var(--hero-trustpilot-bg);
3370
+ }
3371
+ .hero__trustpilot-link {
3372
+ position: relative;
3373
+ display: flex;
3374
+ align-items: center;
3375
+ justify-content: center;
3376
+ gap: var(--hero-trustpilot-gap);
3377
+ width: 100%;
3378
+ height: 100%;
3379
+ box-sizing: border-box;
3380
+ padding: 0 var(--spacing-16);
3381
+ color: var(--hero-trustpilot-text);
3382
+ text-decoration: none;
3383
+ font-size: var(--hero-body-size);
3384
+ line-height: var(--hero-body-lh);
3385
+ font-weight: var(--typography-body-md-font-weight);
3386
+ }
3387
+ .hero__trustpilot-link:focus-visible {
3388
+ outline: 2px solid var(--hero-trustpilot-focus-ring);
3389
+ outline-offset: -4px;
3390
+ }
3391
+ .hero__trustpilot-stars,
3392
+ .hero__trustpilot-logo {
3393
+ display: block;
3394
+ flex-shrink: 0;
3395
+ height: 24px;
3396
+ width: auto;
3397
+ }
3398
+ .hero__trustpilot-star-empty {
3399
+ fill: var(--hero-trustpilot-star-empty);
3400
+ }
3401
+ .hero__trustpilot-star-fill {
3402
+ fill: var(--hero-trustpilot-star-fill);
3403
+ }
3404
+ .hero__trustpilot-star-glyph {
3405
+ fill: var(--hero-trustpilot-star-glyph);
3406
+ }
3407
+ .hero__trustpilot-logo-text {
3408
+ fill: currentColor;
3409
+ }
3410
+ .hero__trustpilot-logo-star {
3411
+ fill: var(--hero-trustpilot-logo-star);
3412
+ }
3413
+ .hero__trustpilot-logo-star-shadow {
3414
+ fill: var(--hero-trustpilot-logo-star-shadow);
3415
+ }
3416
+ .hero__trustpilot-text {
3417
+ display: none;
3418
+ white-space: nowrap;
3419
+ }
3420
+ .hero--has-trustpilot.hero--split .hero__inner {
3421
+ padding-bottom: calc(var(--spacing-40) + var(--hero-trustpilot-height));
3422
+ }
3423
+ .hero--has-trustpilot.hero--centered .hero__content,
3424
+ .hero--has-trustpilot.hero--showcase .hero__content {
3425
+ padding-bottom: calc(var(--spacing-48) + var(--hero-trustpilot-height));
3426
+ }
3427
+ @media (min-width: 768px) {
3428
+ .hero__trustpilot-link {
3429
+ gap: var(--hero-trustpilot-gap-tablet);
3430
+ padding: 0 var(--spacing-24);
3431
+ }
3432
+ .hero__trustpilot-text {
3433
+ display: inline;
3434
+ }
3435
+ .hero--has-trustpilot.hero--split .hero__inner {
3436
+ padding-bottom: calc(var(--spacing-40) + var(--hero-trustpilot-height));
3437
+ }
3438
+ }
3439
+ @media (min-width: 992px) {
3440
+ .hero--has-trustpilot.hero--split .hero__inner {
3441
+ padding-bottom: var(--hero-trustpilot-height);
3442
+ }
3443
+ }
3351
3444
 
3352
3445
  /* templates/Header/Header.css */
3353
3446
  :root {