<section class='{{ get_component_class( 'banner', display ) }}'
{% if image and not ( 'positioned-background' in display.modifiers ) %} style="background-image: url( '{{ image.src }}' );" {% endif %}
{% if dir %} dir='{{ dir }}' {% endif %}>
{% if flourish %}
{% include '@brand/flourishes/flourishes--' ~ flourish ~ '.twig' %}
{% endif %}
{% if image and ( 'positioned-background' in display.modifiers ) %}
<div class='c-banner__background-wrapper' style="background-image: url( '{{ image.src }}' );"></div>
{% endif %}
<div class='c-banner__content-wrapper'>
{% if leaf %}
{% include '@brand/sia-leaf/sia-leaf.twig' %}
{% elseif headshot %}
{% include '@unit/headshot/headshot.twig' with headshot %}
{% elseif logo %}
{% include get_template( 'logo', 'unit' ) with logo %}
{% elseif countryMap %}
{% include get_template( 'country-map', 'unit' ) with countryMap %}
{% elseif countryFlag %}
{% include '@unit/icon/icon--country-flag.twig' with countryFlag %}
{% elseif icon %}
{% include '@unit/icon/icon.twig' with icon %}
{% endif %}
{% include '@unit/section-header/section-header.twig' with header %}
{% if meta %}
{% include '@unit/meta/meta.twig' with meta %}
{% endif %}
{% if lead %}
{% include '@unit/lead/lead.twig' with lead %}
{% endif %}
{% if button or link %}
<p class='c-banner__action'>
{% if button %}
{% include get_template( 'button', 'base' ) with button %}
{% elseif link %}
{% include get_template( 'link', 'base' ) with link|merge( { display: { modifiers: [ 'forward', 'with-icon', 'with-icon--reversed' ] } } ) %}
{% endif %}
</p>
{% endif %}
</div>
</section>
{
"header": {
"display": {
"modifiers": null
},
"supraheading": "Banner",
"heading": {
"text": "Section Heading"
}
},
"lead": {
"display": {
"modifiers": null
},
"content": "<p>A lead text is an introduction to the content of the page. Should start with the main subject and finish with an excerpt.</p>"
},
"wrapper": "community",
"flourish": "themed-rainbow"
}