{% extends 'front/' ~ website().configuration.template ~ '/base.html.twig' %} {% import 'core/src-macro.html.twig' as resources %} {% trans_default_domain 'front_ec_international' %} {% block stylesheets %} {{ parent() }} {{ encore_entry_link_tags('front-' ~ websiteTemplate ~ '-components', null, webpack, true) }} {% endblock %} {% block javascripts %} {{ parent() }} {{ resources.encore_entry_js_files('front-' ~ websiteTemplate ~ '-components', webpack, 'Page components', true) }} {% endblock %} {% set zonePosition = 1 %} {% set btnHover = "hbtn hb-fill-right" %} {% set websiteColors = website()|colors %} {% set mainColors = websiteColors.color is defined ? websiteColors.color : [] %} {% set backgroundColors = websiteColors.background is defined ? websiteColors.background : [] %} {% set buttonColors = websiteColors.button is defined ? websiteColors.button : [] %} {% set alertColors = websiteColors.alert is defined ? websiteColors.alert : [] %} {% block body %}
{% for i in 1..6 %} {{ website|newZone({ 'seo': seo, 'position': zonePosition, 'fullSize': true, 'blocks': { (1): {'titleheader': { 'titleForce': i } }} }) }} {% set zonePosition = zonePosition + 1 %} {% endfor %}
{% set blockPosition = 1 %} {% for background in backgroundColors %} {% set blocks = {} %} {% for i in 1..6 %} {% set blocks = blocks|merge({ (i): {'title': { 'titleForce': i } }}) %} {% set blockPosition = blockPosition + 1 %} {% endfor %} {% set blocks = blocks|merge({ (blockPosition): {'text': {} }}) %} {% set blockPosition = blockPosition + 1 %} {% set blocks = blocks|merge({ (blockPosition): {'blockquote': {} }}) %} {% set blockPosition = blockPosition + 1 %} {{ website|newZone({ 'seo': seo, 'background': background, 'position': zonePosition, 'blocks': blocks }) }} {% set zonePosition = zonePosition + 1 %} {% endfor %} {% for background in backgroundColors %}

Textes

{% for color in mainColors %}
.text-{{ color }}
{% endfor %}

Bordures

{% for color in mainColors %} .border-{{ color }} {% endfor %}

Boutons

{% for color in buttonColors %} {% endfor %}
{% set zonePosition = zonePosition + 1 %} {% endfor %} {% for color in alertColors %}
{{ website|newBlock('alert', { 'color': color }) }}
{% endfor %}
{% endblock %}