{# Bloc Palette Chambres Variables : block.content.title string|null — h2 optionnel block.content.intro string|null — texte d'introduction (HTML) block.config.display 'large'|'contained' block.config.alignment 'centered'|'flag' block.rooms [{slug, name, url, previewImage, previewImageSm, primary_image_alt}, …] #} {% set rooms = block.rooms ?? [] %} {% set display = block.config.display ?? 'contained' %} {% set alignment = block.config.alignment ?? 'flag' %} {% set title = block.content.title ?? '' %} {% set intro = block.content.intro ?? '' %}
{% if title or intro %}
{% if title %}

{{ title }}

{% endif %} {% if intro %}
{{ intro | raw }}
{% endif %}
{% endif %} {% if rooms | length > 0 %}
{% for room in rooms %} {% set isLast = loop.last and (rooms | length) is odd %} {% set revealClass = isLast ? 'scroll-reveal-sides' : (loop.index is odd ? 'scroll-reveal-slide-left' : 'scroll-reveal-slide-right') %}
{{ room.primary_image_alt ?? room.name }}

{{ room.name }}

{% endfor %}
{% endif %}