Paragraph Type Hero Banner - NCIOCPL/cgov-digital-platform GitHub Wiki

  • Display Name: Hero Banner
  • Machine-readable Name: cgov_hero_banner
  • Description: Hero Banner for Home and Landing Pages.

Display Properties

Recommended Image Sizes

Standard Template

  • Desktop: 1350x297px
  • Tablet: 1000x343px

Special Report Template

  • Desktop: 1440x540px
  • Tablet: 1024x384px
  • Mobile: 640x380px

Breakpoints

  • Desktop Hero (1025px and above)
  • Tablet Hero (< 1024px and smaller for Standard template, 1024 - 641px for Special Report template)
  • Mobile Hero (640 - 320px for Special Report template)

Tagline Text Overlay

Text from the Tagline field in the Hero Banner Paragraph

  • On desktop, overlays the image as white text
  • On tablet, displays at the bottom of the image as white text in a dark gray box overlay

Fields

  • Fields
    • field_desktop_hero
    • field_tablet_hero
    • field_mobile_hero
    • field_tagline

Desktop Banner

  • Field Name: field_desktop_hero
  • Label: Desktop Hero
  • Type: image
    • Allow alt field
    • Disable Title field
    • Display should just be original image
  • Required: yes
  • Tooltip Text: The desktop hero image
  • Cardinality: 1
  • Translatable: No

Tablet Banner

  • Field Name: field_tablet_hero
  • Label: Tablet Hero
  • Type: image
    • Allow alt field
    • Disable Title field
    • Display should just be original image
  • Required: yes
  • Tooltip Text: The tablet hero image
  • Cardinality: 1
  • Translatable: No

Mobile Banner

  • Field Name: field_mobile_hero
  • Label: Mobile Hero
  • Type: image
    • Allow alt field
    • Disable Title field
    • Display should just be original image
  • Required: no
  • Tooltip Text: The mobile hero image. For Special Report template only.
  • Cardinality: 1
  • Translatable: No

Tagline

  • Field Name: field_tagline
  • Label: Tagline
  • Type: text (plain)
  • Required: yes
  • Max Characters: 255
  • Tooltip Text: The tagline
  • Cardinality: 1
  • Translatable: No
⚠️ **GitHub.com Fallback** ⚠️