16 lines
670 B
HTML
16 lines
670 B
HTML
{% macro render_services_card(card, index) %}
|
|
{% set card_image = card.record.attachments.images.get(card.card_image) %}
|
|
<div class="services_card {% if index%2 %}-odd{% else %}-even{% endif %}">
|
|
<div class="services_card__image_box">
|
|
<img src="{{ card_image|url }}" alt="" aria-hidden="true">
|
|
</div>
|
|
<div class="services_card__text_box">
|
|
<h2>{{ card.card_title }}</h2>
|
|
{{ card.card_text }}
|
|
<div class="servies_card__img_credits">
|
|
{{ card.image_credits }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endmacro %}
|