Trust block

Use to build trust by including details of the various partnerships.

Description

This component may often include a variation of the text block or a quote combined with a logo image or a Trustpilot widget. It's responsible for setting up the layout while being flexible in terms of content.

When living beside other components in a 1:1 grid (equal columns) the section housing the copy stacks above the section housing the logo or Trustpilot widget across all screen sizes.

When living by itself, the trust block will spread across the full width of the screen. In this case, the section housing the logo or the Trustpilot widget will live on the left side of the container being followed by the section housing the copy (on the right side). For generating more complex layouts between custom breakpoints the component makes use of the get-columns-width function (which is part of the rs-golden-ratio-grid project imported in Radius as node module dependency). In this user case, the component will require the usage of the modifier class: .trust-block--full-width to ensure the layout is applied.

The HTML markup should follow the order in which elements will appear on the page for each case which will result in a natural flow of the elements on the page.

Activate Sass component

In order to have the styling of this component available, you need to include it in your project. After including the Radius library in your main ./index.scss file, add this snippet:

@include radius-component-trust-block;

Link to Abstract/Sketch file

Download Sketch / Abstract file

Usage

Usage example

1:1 grid user case

Full width user case

<section class="trust-block">
  <div class="trust-block__wrapper">
    <div class="trust-block__content">
      <div class="placeholder-component"></div>
    </div>
    <div class="trust-block__media">
      <div class="placeholder-component"></div>
    </div>
  </div>
</section>

<section class="trust-block trust-block--full-width">
  <div class="trust-block__wrapper">
    <div class="trust-block__media">
      <div class="placeholder-component"></div>
    </div>
    <div class="trust-block__content">
      <div class="placeholder-component"></div>
    </div>
  </div>
</section>