2025-01-13 13:57:59 -05:00
< ul class = "usa-card-group grid-row flex-row" >
2024-09-23 18:58:22 -07:00
{% for item in card_contents %}
2025-01-13 13:57:59 -05:00
< li class = "usa-card grid-col mobile-lg:grid-col-12 tablet:grid-col-6 desktop:grid-col-4 {% if item.link %}linked-card linked-content{% endif %}" >
{% if item.link %}
< a href = "{{ item.link }}" >
{% endif %}
2024-09-23 18:58:22 -07:00
< div class = "usa-card__container" >
2024-10-08 15:32:11 -07:00
{% if item.card_heading %}
2024-10-17 14:48:02 -04:00
< div class = "usa-card__header" >
2024-10-28 13:11:29 -07:00
< h3
2024-10-17 14:48:02 -04:00
class="usa-card__heading {% if text_align != 'left' or text_align is not defined %}text-center{% else %}text-left{% endif %} {% if item.link %}linked-card{% endif %}">
{{ item.card_heading }}
2024-10-28 13:11:29 -07:00
< / h3 >
2024-10-17 14:48:02 -04:00
{% if item.link %}
2024-10-08 15:32:11 -07:00
{% endif %}
2024-09-23 18:58:22 -07:00
< / div >
2024-10-08 15:32:11 -07:00
{% endif %}
2024-10-17 14:48:02 -04:00
{% if item.svg_src or item.image_src%}
2024-09-23 18:58:22 -07:00
< div class = "usa-card__media usa-card__media--inset" >
2024-10-17 14:48:02 -04:00
{% if item.svg_src %}
2024-10-24 16:28:42 -07:00
< svg aria-hidden = "true" focusable = "false" role = "img" class = "best-practices_card_img" >
< use xlink:href = "{{asset_url('images/best-practices-card-sprite.svg')}}#{{item.svg_src}}" > < / use >
2024-10-17 14:48:02 -04:00
< / svg >
{% endif %}
{% if item.image_src %}
2024-10-28 13:11:29 -07:00
< img class = "best-practices_card_img" src = "{{item.image_src}}" alt = "{{ item.alt_text }}" / >
2024-10-17 14:48:02 -04:00
{% endif %}
2024-09-23 18:58:22 -07:00
< / div >
2024-10-08 15:32:11 -07:00
{% endif %}
{% if item.p_text %}
2024-09-23 18:58:22 -07:00
< div class = "usa-card__body" >
2024-10-17 14:48:02 -04:00
< p
class="{% if text_align != 'left' or text_align is not defined %}text-center{% else %}text-left{% endif %} {% if item.link %}linked-card{% endif %}">
2024-10-08 15:32:11 -07:00
{{item.p_text|safe}}
2024-09-23 18:58:22 -07:00
< / p >
< / div >
2024-10-08 15:32:11 -07:00
{% endif %}
2024-09-23 18:58:22 -07:00
< / div >
2025-01-13 13:57:59 -05:00
{% if item.link %}
< / a >
{% endif %}
2024-09-23 18:58:22 -07:00
< / li >
{% endfor %}
< / ul >