Explainer box
This component should be used to link to explainers from expert content. This allows non-experts to have an easy-to-find reference to learn more about a topic. It should ideally be added to as many pages as possible.
Variations
Component used in
Page template
Details
Usage
This component is used to guide users to an explainer on the ECB website whose content is related to the content of the page the box is on. The explainer box should not be used to link to an explainer from another explainer, instead you can use a regular link, or carousel.
Guidelines
- Apart from the homepage, should be placed always on the bottom of the page
- Should not be used in an explainer
- Please leave this text unchanged:
- the blue bubble (NOT AN EXPERT? CHECK EXPLAINER)
- the blue text in the grey box (LEARN MORE)
- Character limits:
- 45 characters for the link name (
a
)
- 45 characters for the link name (
- Image dimensions:
- 2560x750 (resolution)
- JPG and WEBP (format)
HTML structure
Overall HTML view of an explainer box component:
div[data-image].explainer-box
div.wrapper
div.bubble-box
a
div
span
Presets
Explainer box presets:
Preset | Description |
---|---|
Default | Default preset. |
Homepage | Default homepage preset. |
Presets are ready to use HTML structures.
Variations
Explainer box variations:
Variation | Description |
---|---|
Default | This snippet is composed of a background image, a fixed label and a link with headline. |
Modifiers
Explainer box classes:
Class | Description |
---|---|
-bottom-arrow | Adds an arrow on the bottom of the component linking to the next component. |
-top , -left | Changes the position of the explainer link. Use these modifiers if the link is going over important parts of the image. |
-dark-blue | Changes the background colour of the explainer link. Use this if the image is very light to increase the contrast with links. |
-no-space-below | Removes component margin bottom. |
To enable a modifier, add it as a class to the outermost element of this component.
Embedding
The explainer box component cannot be embedded inside other component.
main
(HTML file)
div.explainer-box
Nesting
The explainer box component cannot be used as a container of other components and/or elements.
main
(HTML file)
div.explainer-box