{% extends "Layout/default.html.twig" %}
{% block content %}
{{ include('Navigation/breadcrumb.html.twig') }}
{{ include('Includes/main-title-block-editable.html.twig', {
styleModifier: 'container-sm text-center'
}) }}
{{ include('Includes/areablock.html.twig') }}
<div class="container container-sm content-block">
<div class="row vertical-gutter--4 justify-content-center">
{% set currRegion = 0 %}
{% for webcam in webcams %}
{% if webcam.region.id != currRegion %}
{% set previewImage = webcam.image_override ?: webcam.image %}
{% if previewImage %}
<div class="col-md-6 vertical-gutter__item">
<section class="webcam-teaser teaser-animation">
<div class="embed-responsive embed-responsive-20by11">
{{ previewImage.thumbnail('webcam-teaser').html({
imgAttributes: {
class: 'embed-responsive-item js-lazy-img teaser-animation__img'
},
lowQualityPlaceholder: true
})|raw }}
</div>
<div class="webcam-teaser__content text-center d-flex flex-column justify-content-end">
<h3 class="h5 font-decorative text-uppercase my-auto webcam-teaser__content__title"><a href="{{ webcam.region.siteConfig.webcamOverview }}">{{ webcam.region ? webcam.region.name : '' }}</a></h3>
<a href="{{ webcam.region.siteConfig.webcamOverview }}" class="btn btn-block btn-outline-white stretched-link">{{ 'webcam-overview.Alle Webcams'|trans }}</a>
</div>
</section>
</div>
{% set currRegion = webcam.region.id %}
{% endif %}
{% endif %}
{% endfor %}
</div>
</div>
{{ include('Includes/areablock.html.twig', {'areaName': 'bottomContent'}) }}
{% endblock %}
{% block javascripts %}
{% if not app.request.get('onlyInlineCss') %}
{{ include('Layout/includes/encore.html.twig', {
'staticDebugMode': staticDebugMode,
'file': 'js/webcams'
}) }}
{% endif %}
{% endblock %}