website/templates/shortcodes/client_box.html

24 lines
811 B
HTML
Raw Normal View History

2023-03-23 00:15:56 +01:00
<div class="client_box">
<div class="client_box-left">
<div class="client_box-left-row">
2023-05-12 10:19:07 +02:00
<a class="client_box-link" href="{{href|safe}}">
{% if img_dark %}
<picture>
<source srcset="{{img_dark|safe}}" media="(prefers-color-scheme: dark)"/>
2023-05-25 22:45:52 +02:00
<source srcset="{{img|safe}}" media="(prefers-color-scheme: light)"/>
2023-05-12 10:19:07 +02:00
<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>
2023-03-23 00:15:56 +01:00
</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>
2023-03-23 00:15:56 +01:00
</div>
</div>