Menu

Promo box

A promo box is a call to action component usually composed by a block of text and link overlaying an image.

Minimum requirements
  • 1 heading (div.headline/h2/h3)
  • 1 block of text (div.title/p)

It is recommended to go for a background image solution while using this component.

Advanced settings

Presets

?

Variations

?

Modifiers

?

LOREM IPSUM
Lorem ipsum dolor sit amet, consectetur adipiscing elit

LOREM IPSUM
Lorem ipsum dolor sit amet, consectetur adipiscing elit

Lorem ipsum dolor sit amet

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.


Lorem ipsum dolor sit amet

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.


Lorem ipsum dolor sit amet

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.


HTML
Copy to clipboard

Component used in

Details

Usage

The promo box component focus the user's attention on related content available, usually featuring a full width image as background.

Guidelines

  1. It is recommended to go for a background image solution while using this component
  2. Maximum number of characters recommended:
    • 75 characters for the heading (div.headline/h2/h3)
    • 280 characters for the information (div.title/p)
    • 45 characters for the button/link (a.button/a)
  3. Image properties recommended:
    • 2560x750 (resolution)
    • JPG and WEBP (format)

HTML structure

Overall HTML view of a promo box component:

HTML file
(other component(s))
div[data-image].promo-box
div.wrapper
div.box
div.content-box
div.headline/h2/h3
div.title/p
div.button-box (optional)
a.button
a
(other component(s))

Presets

Promo box presets:

PresetDescription
DefaultDefault preset.
Left image highlightWhenever an image should be highlighted.
Aside boxAn overlay box on top of the background image.
Without imageA preset to be used whenever you want to feature just text and actions.

Presets are ready to use HTML structures.

Variations

Promo box variations:

VariationDescription
DefaultThis snippet is composed of a background image, a headline, a title and a button.
Without buttonThis snippet is composed of a background image, a headline and a title.
With h2This snippet is composed of a background image, a h2 heading, a paragraph and a button.
With h3This snippet is composed of a background image, a h3 heading, a paragraph and a button.
Without image This snippet gets rid of the lower box, reducing the layout to the minimum requirements.

Modifiers

Promo box classes:

ClassDescription
-transparent, -solid, -gradientChanges the visibility of the text box.
-light-blue, -blue, -dark-blueChanges the background colour of the text box.
-invertedChange the text colour depending on the image/background intensity.
-center, -top, -bottom, -left, -right, -full, -full-left, -full-right, -bottom-left, -bottom-rightDefines the position of the text box on the background image.
-align-leftJustifies left the content inside the text box.
-no-space-belowRemoves component margin bottom.
-smallRemoves minimum height restriction for the component and the wrapper.

To enable a modifier, add it as a class to the outermost element of this component.

Embedding

The promo box component cannot be embedded inside other component.

main (HTML file)
(component)
div.promo-box

Nesting

The promo box component cannot be used as a container of other components and/or elements.

main (HTML file)
div.promo-box
(Element)