Image banners
Text box image banner
<section class="ecl-page-banner ecl-page-banner--image ecl-page-banner--centered">
<div class="ecl-page-banner__image"
style="background-image:url(https://inno-ecl.s3.amazonaws.com/media/examples/example-image.jpg)"></div>
<div class="ecl-container">
<div class="ecl-page-banner__container">
<div class="ecl-page-banner__content">
<div class="ecl-page-banner__title">EU Budget for the future</div>
<p class="ecl-page-banner__description">Innovation, economy, environment and geopolitics</p><a href="/example"
class="ecl-page-banner__link-cta ecl-link ecl-link--cta ecl-link--icon ecl-link--icon-after"><span
class="ecl-link__label">Subscribe</span>&nbsp;<svg focusable="false" aria-hidden="true"
class="ecl-link__icon ecl-icon ecl-icon--xs ecl-icon--rotate-90">
<use xlink:href="/component-library/v2.39.0/dist/media/icons.3cf410f9.svg#ui--corner-arrow"></use>
</svg></a>
</div>
</div>
</div>
</section>
Try it yourself on the playground
PlaygroundShaded image banner
<section class="ecl-page-banner ecl-page-banner--image-shade ecl-page-banner--centered">
<div class="ecl-page-banner__image"
style="background-image:url(https://inno-ecl.s3.amazonaws.com/media/examples/example-image.jpg)"></div>
<div class="ecl-container">
<div class="ecl-page-banner__container">
<div class="ecl-page-banner__content">
<div class="ecl-page-banner__title">EU Budget for the future</div>
<p class="ecl-page-banner__description">Innovation, economy, environment and geopolitics</p><a href="/example"
class="ecl-page-banner__link-cta ecl-link ecl-link--cta ecl-link--icon ecl-link--icon-after"><span
class="ecl-link__label">Subscribe</span>&nbsp;<svg focusable="false" aria-hidden="true"
class="ecl-link__icon ecl-icon ecl-icon--xs ecl-icon--rotate-90">
<use xlink:href="/component-library/v2.39.0/dist/media/icons.3cf410f9.svg#ui--corner-arrow"></use>
</svg></a>
</div>
</div>
</div>
</section>
Try it yourself on the playground
PlaygroundGradient image banner
<section class="ecl-page-banner ecl-page-banner--image-gradient ecl-page-banner--centered">
<div class="ecl-page-banner__image"
style="background-image:url(https://inno-ecl.s3.amazonaws.com/media/examples/example-image.jpg)"></div>
<div class="ecl-container">
<div class="ecl-page-banner__container">
<div class="ecl-page-banner__content">
<div class="ecl-page-banner__title">EU Budget for the future</div>
<p class="ecl-page-banner__description">Innovation, economy, environment and geopolitics</p><a href="/example"
class="ecl-page-banner__link-cta ecl-link ecl-link--cta ecl-link--icon ecl-link--icon-after"><span
class="ecl-link__label">Subscribe</span>&nbsp;<svg focusable="false" aria-hidden="true"
class="ecl-link__icon ecl-icon ecl-icon--xs ecl-icon--rotate-90">
<use xlink:href="/component-library/v2.39.0/dist/media/icons.3cf410f9.svg#ui--corner-arrow"></use>
</svg></a>
</div>
</div>
</div>
</section>
Try it yourself on the playground
PlaygroundSimple banners
<section class="ecl-page-banner ecl-page-banner--primary ecl-page-banner--centered">
<div class="ecl-container">
<div class="ecl-page-banner__container">
<div class="ecl-page-banner__content">
<div class="ecl-page-banner__title">EU Budget for the future</div>
<p class="ecl-page-banner__description">Innovation, economy, environment and geopolitics</p><a href="/example"
class="ecl-page-banner__link-cta ecl-link ecl-link--cta ecl-link--icon ecl-link--icon-after"><span
class="ecl-link__label">Subscribe</span>&nbsp;<svg focusable="false" aria-hidden="true"
class="ecl-link__icon ecl-icon ecl-icon--xs ecl-icon--rotate-90">
<use xlink:href="/component-library/v2.39.0/dist/media/icons.3cf410f9.svg#ui--corner-arrow"></use>
</svg></a>
</div>
</div>
</div>
</section>
Try it yourself on the playground
PlaygroundSimple banners colour
Simple banners can be displayed with several background colours by using one css class or another. Here are the possibilities
variant | colour | css class |
---|---|---|
primary | blue | .ecl-hero-banner--primary |
grey | light grey | .ecl-hero-banner--grey |
white | white | .ecl-hero-banner--white |
Other variants
Note: Variants below can be applied to all kind of banners.
Check usage guidelines for more information.
Left aligned content
Removing class .ecl-hero-banner--center
will put the text back on left in the banner.
Banner width
Banners placed inside a grid container (.ecl-container
) will expand to this container width.
To have a full width banner, the recommanded way is to place it outside of the grid container.
However, if there is a need to have a full width banner inside the container, the css class .ecl-page-banner--fullwidth
can be used (just put it at the same level as .ecl-page-banner
).
Caution: if you plan to use full width banner inside a container, we recommend to use the "website" preset, as some global rules here would improve the display.