2016-04-09 09:33:48 +02:00
|
|
|
<div class="parallax-container z-depth-2 valign-wrapper">
|
2017-04-27 17:59:46 +02:00
|
|
|
<div class="parallax">
|
2016-11-01 12:27:08 +01:00
|
|
|
{% if section.image.type == "video" %}
|
2017-04-27 17:59:46 +02:00
|
|
|
{% set format = settings.ffmpeg.extension %}
|
|
|
|
{% set video = Video(section.image) %}
|
|
|
|
<img class="lazy" src="{{ video.generate_thumbnail("720") }}">
|
|
|
|
<video autoplay loop muted class="fillWidth">
|
|
|
|
<source src="{{ video }}.{{ format }}" type="video/{{ format }}">
|
|
|
|
</video>
|
2016-11-01 12:27:08 +01:00
|
|
|
{% else %}
|
2017-04-27 17:59:46 +02:00
|
|
|
{% set image = Image(section.image) %}
|
|
|
|
{{ image.copy() }}
|
|
|
|
<img class="responsive-img" src="{{ image }}">
|
2016-11-01 12:27:08 +01:00
|
|
|
{% endif %}
|
2017-04-27 17:59:46 +02:00
|
|
|
</div>
|
2016-11-01 12:27:08 +01:00
|
|
|
|
2017-04-27 17:59:46 +02:00
|
|
|
{% if section.text %}
|
|
|
|
<div class="parallax-tittle white-text">
|
|
|
|
<h1>{{ section.text.title }}</h1>
|
|
|
|
<h2>{{ section.text.sub_title }}</h2>
|
2016-11-01 12:27:08 +01:00
|
|
|
|
2017-04-27 17:59:46 +02:00
|
|
|
{% if section.text.date_end %}
|
|
|
|
<div class="datetime">{{ section.text.date.strftime("%d %B %Y") }} to {{ section.text.date_end.strftime("%d %B %Y") }}</div>
|
2016-11-01 12:27:08 +01:00
|
|
|
|
2017-04-27 17:59:46 +02:00
|
|
|
{% else %}
|
|
|
|
{% if section.text.date %}
|
|
|
|
<div class="datetime">{{ section.text.date.strftime("%d %B %Y") }}</div>
|
2016-02-21 22:09:59 +01:00
|
|
|
{% endif %}
|
2017-04-27 17:59:46 +02:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2016-02-21 22:09:59 +01:00
|
|
|
</div>
|