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-page-banner__credit">© Copyright or credit</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"><span class="ecl-page-banner__description-text">Innovation, economy,
environment and geopolitics</span></p>
<div class="ecl-page-banner__cta"><a href="/example"
class="ecl-link ecl-link--cta ecl-link--icon ecl-link--icon-after ecl-page-banner__link-cta"
aria-label="Subscribe"><span class="ecl-link__label">Subscribe</span><svg
class="ecl-icon ecl-icon--xs ecl-icon--rotate-90 ecl-link__icon" focusable="false" aria-hidden="true">
<use xlink:href="/dist/media/icons.6770a2ae.svg#corner-arrow"></use>
</svg></a></div>
</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-page-banner__credit">© Copyright or credit</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"><span class="ecl-page-banner__description-text">Innovation, economy,
environment and geopolitics</span></p>
<div class="ecl-page-banner__cta"><a href="/example"
class="ecl-link ecl-link--cta ecl-link--icon ecl-link--icon-after ecl-page-banner__link-cta"
aria-label="Subscribe"><span class="ecl-link__label">Subscribe</span><svg
class="ecl-icon ecl-icon--xs ecl-icon--rotate-90 ecl-link__icon" focusable="false" aria-hidden="true">
<use xlink:href="/dist/media/icons.6770a2ae.svg#corner-arrow"></use>
</svg></a></div>
</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-page-banner__credit">© Copyright or credit</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"><span class="ecl-page-banner__description-text">Innovation, economy,
environment and geopolitics</span></p>
<div class="ecl-page-banner__cta"><a href="/example"
class="ecl-link ecl-link--cta ecl-link--icon ecl-link--icon-after ecl-page-banner__link-cta"
aria-label="Subscribe"><span class="ecl-link__label">Subscribe</span><svg
class="ecl-icon ecl-icon--xs ecl-icon--rotate-90 ecl-link__icon" focusable="false" aria-hidden="true">
<use xlink:href="/dist/media/icons.6770a2ae.svg#corner-arrow"></use>
</svg></a></div>
</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"><span class="ecl-page-banner__description-text">Innovation, economy,
environment and geopolitics</span></p>
<div class="ecl-page-banner__cta"><a href="/example"
class="ecl-link ecl-link--cta ecl-link--icon ecl-link--icon-after ecl-page-banner__link-cta"
aria-label="Subscribe"><span class="ecl-link__label">Subscribe</span><svg
class="ecl-icon ecl-icon--xs ecl-icon--rotate-90 ecl-link__icon" focusable="false" aria-hidden="true">
<use xlink:href="/dist/media/icons.6770a2ae.svg#corner-arrow"></use>
</svg></a></div>
</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 |
secondary | light grey | .ecl-hero-banner--secondary |
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 grid 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 using this fullwidth css class, we recommend to use the "website" preset, as some global rules here would improve the display (overflow-x: hidden
).