ungleich-staticcms/templates/blocks/slide.html
2020-04-24 19:45:25 +05:00

21 lines
624 B
HTML

<!-- active -->
<div class="carousel-item">
{% if this.video_mp4 %}
<video autoplay muted loop>
<source src="{{ this.video_mp4 }}" type="video/mp4">
</video>
{% elif this.background_image %}
<img src="{{ this.background_image }}" class="d-block w-100" alt="...">
{% endif %}
<div class="carousel-caption d-none d-md-block">
<h3 class="display-4">{{ this.title }}</h5>
<p class="lead">
{{ this.description }}
<br>
<a href="{{ this.button_link }}" class="btn btn-primary btn-lg" role="button" aria-pressed="true">
{{ this.button_text }}
</a>
</p>
</div>
</div>