Edit artworks section blueprints and video style

This commit is contained in:
Paul Nicoué 2022-05-31 17:32:29 +02:00
parent 1ce3b7326f
commit df70ddca09
4 changed files with 7 additions and 8 deletions

View file

@ -20,9 +20,9 @@
{% for artwork in artworks %}
<figure class="gallery__artwork">
{% if artwork.type == 'video' %}
<video class="gallery__video" controls playsinline preload="metadata">
<source src="{{ artwork.url }}" type="video/mp4" />
</video>
<video class="gallery__video" controls playsinline preload="metadata">
<source src="{{ artwork.url }}" type="video/mp4" />
</video>
{% endif %}
{% if artwork.type == 'image' %}
<img class="gallery__image" src="{{ artwork.url }}" srcset="{{ artwork.srcset() }}" alt="{{ artwork.alt_text }}">