2016-05-02 09:52:10 +02:00
|
|
|
{% if section.image.type == "video" %}
|
2017-04-25 16:24:41 +02:00
|
|
|
{% set format = settings.ffmpeg.extension %}
|
2016-11-04 12:55:02 +01:00
|
|
|
{% set video = Video(section.image) %}
|
|
|
|
{{ video.copy() }}
|
|
|
|
<section class="full-picture">
|
|
|
|
<div class="video-container">
|
2016-11-01 12:21:49 +01:00
|
|
|
{% if section.text %}
|
2016-11-04 12:55:02 +01:00
|
|
|
<div class="title-container">
|
2018-03-09 10:41:06 +01:00
|
|
|
<div class="headline animated animatedFadeInUp fadeInUp">
|
2016-11-04 12:55:02 +01:00
|
|
|
<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>
|
2015-12-09 05:23:40 +01:00
|
|
|
{% endif %}
|
2016-11-04 12:55:02 +01:00
|
|
|
<video autoplay loop muted class="fillWidth">
|
2017-04-25 16:24:41 +02:00
|
|
|
<source src="{{ video }}.{{ format }}" type="video/{{ format }}">
|
2016-11-04 12:55:02 +01:00
|
|
|
</video>
|
2017-04-28 16:46:31 +02:00
|
|
|
<img class="lazy full-picture responsive-video" src="{{ video.generate_thumbnail("2000") }}">
|
2016-11-04 12:55:02 +01:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
{% else %}
|
|
|
|
{% set image = Image(section.image) %}
|
|
|
|
{{ image.copy() }}
|
2016-11-04 15:43:17 +01:00
|
|
|
<section class="full-picture" style="background: url('{{ image.generate_thumbnail("x2000") }}') no-repeat {% if section.fixed %} fixed {% else %} scroll {% endif %} center top / cover, url('{{ image.generate_thumbnail("x450") }}') no-repeat {% if section.fixed %} fixed {% else %} scroll {% endif %} center top / cover transparent;">
|
2016-11-04 12:55:02 +01:00
|
|
|
{% if section.text %}
|
|
|
|
<div class="picture-text">
|
2018-03-09 10:41:06 +01:00
|
|
|
<div class="picture-text-column animated animatedFadeInUp fadeInUp">
|
2016-11-04 12:55:02 +01:00
|
|
|
<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 %}
|
|
|
|
</section>
|
2016-05-02 09:52:10 +02:00
|
|
|
{% endif %}
|