2016-05-02 09:52:10 +02:00
|
|
|
{% if section.image.type == "video" %}
|
|
|
|
{% set video = Video(section.image) %}
|
2016-05-04 15:38:11 +02:00
|
|
|
{{ video.copy() }}
|
2016-05-02 09:52:10 +02:00
|
|
|
{% else %}
|
2016-02-09 07:31:52 +01:00
|
|
|
{% set image = Image(section.image) %}
|
|
|
|
{{ image.copy() }}
|
2016-05-02 09:52:10 +02:00
|
|
|
{% endif %}
|
|
|
|
{% if video %}
|
|
|
|
<section class="full-picture">
|
|
|
|
<div class="video-container">
|
|
|
|
{% if section.text %}
|
|
|
|
<div class="title-container">
|
|
|
|
<div class="headline">
|
|
|
|
<h1>{{ section.text.title }}</h1>
|
|
|
|
<h2>{{ section.text.sub_title }}</h2>
|
|
|
|
{% 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>
|
|
|
|
{% else %}
|
|
|
|
{% if section.text.date %}
|
|
|
|
<div class="datetime">{{ section.text.date.strftime("%d %B %Y") }}</div>{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
<video autoplay loop muted class="fillWidth">
|
|
|
|
<source src="{{ video }}" type="video/webm" data-source="{{ video }}" data-format="vp8" data-extension="webm">
|
|
|
|
</video>
|
2016-05-06 09:37:24 +02:00
|
|
|
<img class="lazy full-picture" src="{{ video.generate_thumbnail("2000") }}">
|
2016-05-02 09:52:10 +02:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
{% else %}
|
2016-02-09 07:31:52 +01:00
|
|
|
<section class="full-picture" style="background: transparent url('{{ image }}') no-repeat scroll center top / cover;">
|
2015-12-09 05:23:40 +01:00
|
|
|
{% if section.text %}
|
2016-03-30 11:12:30 +02:00
|
|
|
<div class="picture-text">
|
|
|
|
<div class="picture-text-column">
|
|
|
|
<h1>{{ section.text.title }}</h1>
|
|
|
|
<h2>{{ section.text.sub_title }}</h2>
|
2016-03-30 11:23:07 +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>
|
|
|
|
{% else %}
|
2016-03-30 11:12:30 +02:00
|
|
|
{% if section.text.date %}
|
|
|
|
<div class="datetime">{{ section.text.date.strftime("%d %B %Y") }}</div>{% endif %}
|
|
|
|
{% endif %}
|
2015-12-08 08:40:51 +01:00
|
|
|
</div>
|
2016-03-30 11:12:30 +02:00
|
|
|
</div>
|
2015-12-09 05:23:40 +01:00
|
|
|
{% endif %}
|
2015-12-08 08:40:51 +01:00
|
|
|
</section>
|
2016-05-02 09:52:10 +02:00
|
|
|
{% endif %}
|