website/templates/shortcodes/client_box.html
2023-05-12 10:19:07 +02:00

24 lines
850 B
HTML

<div class="client_box">
<div class="client_box-left">
<div class="client_box-left-row">
<a class="client_box-link" href="{{href|safe}}">
{% if img_dark %}
<picture>
<source srcset="{{img_dark|safe}}" media="(prefers-color-scheme: dark)"/>
<source srcset="{{img|safe}}" media="(prefers-color-scheme: light), (prefers-color-scheme: no-preference)"/>
<img class="client_box-img" decoding="async" src="{{img|safe}}" alt="{{title}}" title="{{title}}" loading="lazy"/>
</picture>
{% else %}
<img class="client_box-img" src="{{img|safe}}" alt="{{title}}" title="{{title}}" loading="lazy"/>
{% endif %}
</a>
</div>
</div>
<div class="client_box-right">
<p class="client_box-text">
{{body|safe}}
{% if sign %}<br/><span class="client_box-sign">{{sign|safe}}</span>{% endif %}
</p>
</div>
</div>