Skip to main content
TRUST Documentation

Cards Module

cards--documentation

Module Styles Tab Walkthrough

 

Spacing: Use these inputs to configure the top and bottom spacing of your section. This can be useful to increase or decrease the height of a section, reduce spacing between sections which share the same background color, or scale this spacing based on screen size when using certain types of backgrounds.

  • Top Padding (Desktop): None, Extra, Small, Small, Medium, Large, Extra Large, Custom
  • Top Padding (Laptop): Same as Desktop, None, Extra Small, Small, Medium, Large, Extra Large, Custom
  • Top Padding (Tablet): None, Extra Small, Small, Medium, Large, Extra Large, Custom
  • Top Padding (Mobile): Same as Tablet, None, Extra Small, Small, Medium, Large, Extra Large, Custom
  • Bottom Padding (Desktop): None, Extra, Small, Small, Medium, Large, Extra Large, Custom
  • Bottom Padding (Laptop): Same as Desktop, None, Extra Small, Small, Medium, Large, Extra Large, Custom
  • Bottom Padding (Tablet): None, Extra Small, Small, Medium, Large, Extra Large, Custom
  • Bottom Padding (Mobile): Same as Tablet, None, Extra Small, Small, Medium, Large, Extra Large, Custom

Text Color Override: These inputs override the color of any text which appears directly on your background. Use these to make all text use a light color when using a darker background to ensure the text is legible. NOTE: Elements other than text may be affected as well and some text may not necessarily be white.

  • White Text on All Screens: Boolean (check to enable)
  • White Text on Desktop: Boolean (check to enable)
  • White Text on Laptop: Boolean (check to enable)
  • White Text on Tablet: Boolean (check to enable)
  • White Text on Mobile: Boolean (check to enable)

Layout Controls: This group contains inputs which are unique to this section for controlling the overall layout or style. Depending on the section, some inputs outside of this section may change based on the configuration here.

  • Header: Content Alignment: Single Choice: Left, Center 
  • Header: Content Alignment (Mobile): Single Choice: Left, Center 
  • Cards: Layout: Single Choice: Grid Layout, Card Slider 
  • Cards: Content Alignment: Single Choice: Left, Center 
  • Cards: Content Alignment (Mobile): Single Choice: Left, Center 
  • Cards: Container Width: Single Choice: Width of Grid (Default), Width of Window
  • Cards: Number of Columns (Desktop): Single Choice: 1, 2, 3, 4, 5, 6
  • Cards: Number of Columns (Laptop): Single Choice: 1, 2, 3, 4
  • Cards: Number of Columns (Tablet): Single Choice: 1, 2, 3, 4
  • Cards: Number of Columns (Mobile): Single Choice: 1, 2, 3, 4
  • Cards: Horizontally Align Buttons: Boolean (check to enable) 
  • Cards: Image Type: Single Choice: Icons (Native Width and Aspect Ratio), Photos (Column-Width and Forced Aspect Ratio), Lottie Animations, None
  • Based on your selection for Cards: Image Type:, the following inputs will show.  
    1. Option: Icons (Native Width and Aspect Ratio)
      • Cards: Pop Native / Icons Out of The Card: Boolean (check to enable) 
      • Cards: Native Imagery / Icon Max Height (px): Number Input
      • Cards: Add Drop  Shadow to Native Icons: Boolean (check to enable) 
    2. Option: Photos (Column-Width and Forced Aspect Ratio)
      • Cards: Image Aspect Ratio:  Single Choice: 1:1 (square), 2:1, 3:1, 3:2, 4:3, 16:9
    3. Option: Lottie Animations
    4. Option: None
  • Cards: Add Drop Shadow Around Cards: Boolean (check to enable)
  • Cards: Add Drop Shadow Around Cards: Boolean (check to enable)
  • Cards: Add Border Radius (Rounded Borders) Around Cards: Boolean (check to enable)
  • When Border Radius (Rounded Borders) Around Cards is enabled then the following will appear as an option.
    • Cards: Border Radius Type: Single choice: Default Border Radius, Custom Border Radius
    • Based on your selection for Cards: Border Radius Type, the following inputs will show.
      1. Option: Default Border Radius
      2. Option: Custom Border Radius
        • Cards: Custom Border Radius: Number Slider
  • Cards: Border Width: Number Slider
  • Cards: Border Color: Single Choice: Primary, Secondary, Black, Dark Grey, Grey, Light Grey, White, Custom.
  • If you select Custom the following inputs will show:
    • Cards: Custom Border Color: Numerical Hex Code Input, Opacity Percentage, and Color Picker - The opacity for this module is intended to be 100%, otherwise your color will display lighter than intended.
  • Cards: Background Color: Single Choice: Primary, Secondary, Black, Dark Grey, Grey, Light Grey, White, Custom.
  • If you select Custom the following inputs will show:
    • Cards: Custom Background Color: Numerical Hex Code Input, Opacity Percentage, and Color Picker - The opacity for this module is intended to be 100%, otherwise your color will display lighter than intended.
  • Cards: Text Color Override: Single Choice: Default, White

Module Settings Walkthrough

Preheader: Text Input

Header: Text Input

Content: Text Area

Cards Content: REPEATABLE GROUP

Add any number of cards here.

  • Based on your selection for Cards: Image Type, the following inputs will show.  
    • Option: Icons (Native Width and Aspect Ratio)
      • Image: Image
    • Option: Photos (Column-Width and Forced Aspect Ratio)
      • Image: Image
    • Option: Lottie Animations
      • Lottie Embed: Type: Single Choice: URL of Lottie JSON File, Lottie JSON Code
      • Lottie Embed: Loop Animation: Boolean (check to enable) - Toggle this "On" to have the animation loop indefinitely.
      • Lottie URL/Embed Code: Text Input - Use this field to paste the URL only of your externally hosted Lottie JSON file (like the ones provided on lottiefiles.com) or the JSON code of your custom Lottie animation. DO NOT PASTE THE FULL EMBED CODE PROVIDED ON LOTTIEFILES.COM
      • Lottie: Container Width: Number - Use this field to control the width of the container for your animation. If left blank, the animation will go full width and centered.
      • Lottie: Container Height: Number - Use this field to control the height of the container for your animation (the width will automatically adjust based on this value). This is designed to keep the height of the animations consistent across cards in the same row. Leave this blank to allow the animation to go full width regardless of height.
  • Header/Label: Text Input
  • Description: Text Area
  • CTA: Type: Single Choice: No CTA, HubSpot Call-To-Action, Custom Link, Scroll to Section.
  • Based on your selection for CTA: Type, the following inputs will show.
    1. Option: No CTA
    2. Option: HubSpot Call-To-Action
      • CTA: Button Color: Single Choice: Primary, Secondary, White
      • CTA: Ghost / Transparent Button: Boolean (check to enable) - Enable this to use a transparent “ghost” style for your button.
      • CTA: Select HubSpot CTA from the CTA Section of your portal
    3. Option: Custom Link
      • CTA: Button Color: Single Choice: Primary, Secondary, White
      • CTA: Ghost / Transparent Button: Boolean (check to enable) - Enable this to use a transparent “ghost” style for your button.
      • CTA: Button Text: Text Input
      • CTA: Hyperlink
        • Link to: External, Content, File, Email Address, Blog
        • URL: Input URL or Select Page
      • CTA: Open in a New Tab?: Boolean (check to enable)
      • CTA: Title Attribute - CTA title attribute gives additional information about the page being linked to. Leave this blank to use your button text.
    4. Option: Scroll to Section
      • CTA: Button Color: Single Choice: Primary, Secondary, White
      • CTA: Ghost / Transparent Button: Boolean (check to enable) - Enable this to use a transparent “ghost” style for your button.
      • CTA: Button Text: Text Input
      • CTA: Section Anchor ID: Text Input - Add the anchor ID of a section on this page to link to it. To link to a section on a different page, use the Custom Link option and add the section ID to the end of the URL preceded by a hashtag.
      • CTA: Title Attribute: Text Input - CTA title attribute gives additional information about the page being linked to. Leave this blank to use your button text.
CTA(S): REPEATABLE GROUP

CTA: Type: Single Choice: No CTA, HubSpot Call-To-Action, Custom Link, Scroll to Section

Based on your selection for CTA: Type, the following inputs will show.

  1. Option: No CTA
  2. Option: HubSpot Call-To-Action
    • CTA: Button Color: Single Choice: Primary, Secondary, White
    • CTA: Ghost / Transparent Button: Boolean (check to enable) - Enable this to use a transparent “ghost” style for your button.
    • CTA: Select HubSpot CTA from the CTA Section of your portal
  3. Option: Custom Link
    • CTA: Button Color: Single Choice: Primary, Secondary, White
    • CTA: Ghost / Transparent Button: Boolean (check to enable) - Enable this to use a transparent “ghost” style for your button.
    • CTA: Button Text: Text Input
    • CTA: Hyperlink
      • Link to: External, Content, File, Email Address, Blog
      • URL: Input URL or Select Page
    • CTA: Open in a New Tab?: Boolean (check to enable)
    • CTA: Title Attribute - CTA title attribute gives additional information about the page being linked to. Leave this blank to use your button text.
  4. Option: Scroll to Section
    • CTA: Button Color: Single Choice: Primary, Secondary, White
    • CTA: Ghost / Transparent Button: Boolean (check to enable) - Enable this to use a transparent “ghost” style for your button.
    • CTA: Button Text: Text Input
    • CTA: Section Anchor ID: Text Input - Add the anchor ID of a section on this page to link to it. To link to a section on a different page, use the Custom Link option and add the section ID to the end of the URL preceded by a hashtag.
    • CTA: Title Attribute: Text Input - CTA title attribute gives additional information about the page being linked to. Leave this blank to use your button text.

FAQs

Help! My content isn't showing.

Development Notes

Reserved block class:

section--cards

Resources:

modules/Cards/Cards.css

module js inside main module