2023-05-21 13:13:02 +02:00
|
|
|
{% macro render_services_card(card, index) %}
|
2023-06-24 19:27:09 +02:00
|
|
|
{% set card_image = card.record.attachments.images.get(card.card_image) %}
|
2023-05-21 13:13:02 +02:00
|
|
|
<div class="services_card {% if index%2 %}-odd{% else %}-even{% endif %}">
|
|
|
|
<div class="services_card__image_box">
|
2023-06-24 19:27:09 +02:00
|
|
|
<img src="{{ card_image|url }}" alt="" aria-hidden="true">
|
2023-05-21 13:13:02 +02:00
|
|
|
</div>
|
|
|
|
<div class="services_card__text_box">
|
|
|
|
<h2>{{ card.card_title }}</h2>
|
|
|
|
{{ card.card_text }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endmacro %}
|