website/templates/shortcodes/client_box.html

24 lines
811 B
HTML
Raw Normal View History

2023-03-22 23:15:56 +00:00
<div class="client_box">
<div class="client_box-left">
<div class="client_box-left-row">
2023-05-12 08:19:07 +00: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 20:45:52 +00:00
<source srcset="{{img|safe}}" media="(prefers-color-scheme: light)"/>
2023-05-12 08:19:07 +00: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-22 23:15:56 +00: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-22 23:15:56 +00:00
</div>
</div>