{% extends 'layouts/layout.html.twig' %}{% block content %} <section class="content-header projects-header beige"> {% if projektDetail.shadowImage %} <div class="shadow-image-container project-detail" id="shadow-image-container"> {{ projektDetail.shadowImage.thumbnail('ProjectDetailShadow').html({ 'imgAttributes': { 'class':'detail-shadow' } }) | raw }} </div> {% endif %} <div class="container"> <div class="content-container"> {% if projektDetail.maintitle %} <h1 class="light colored">{{ projektDetail.maintitle | nl2br }}</h1> {% endif %} {% if projektDetail.intro %} <div class="colored lead"> {{ projektDetail.intro | raw }} </div> {% endif %} <div class="lead table colored"> {% if projektDetail.facts.data.beschreibung_1.name_1 %} <table class="facts-table"> <tbody> <tr> {% if projektDetail.facts.data.beschreibung_1.name_1 %} <td><p>{{ projektDetail.facts.data.beschreibung_1.name_1 }}</p></td> {% endif %} {% if projektDetail.facts.data.beschreibung_1.name_2 %} <td><p>{{ projektDetail.facts.data.beschreibung_1.name_2 }}</p></td> {% endif %} </tr> <tr> {% if projektDetail.facts.data.beschreibung_2.name_1 %} <td><p>{{ projektDetail.facts.data.beschreibung_2.name_1 }}</p></td> {% endif %} {% if projektDetail.facts.data.beschreibung_2.name_2 %} <td><p>{{ projektDetail.facts.data.beschreibung_2.name_2 }}</p></td> {% endif %} </tr> <tr> {% if projektDetail.facts.data.beschreibung_3.name_1 %} <td><p>{{ projektDetail.facts.data.beschreibung_3.name_1 }}</p></td> {% endif %} {% if projektDetail.facts.data.beschreibung_3.name_2 %} <td><p>{{ projektDetail.facts.data.beschreibung_3.name_2 }}</p></td> {% endif %} </tr> <tr> {% if projektDetail.facts.data.beschreibung_4.name_1 %} <td><p>{{ projektDetail.facts.data.beschreibung_4.name_1 }}</p></td> {% endif %} {% if projektDetail.facts.data.beschreibung_4.name_2 %} <td><p>{{ projektDetail.facts.data.beschreibung_4.name_2 }}</p></td> {% endif %} </tr> </tbody> </table> {% endif %} </div> </div> </div> <div class="container detail-image-container"> {% if projektDetail.video %} {% if projektDetail.video.type == 'youtube' %} <div class="main-image"> <iframe width="100%" height="100%" src="https://www.youtube.com/embed/{{ projektDetail.video.data }}" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> </div> {% else %} <div class="main-image"> <video controls> <source src="{{ projektDetail.video.data }}" type="video/mp4"> <source src="{{ projektDetail.video.data }}" type="video/ogg"> Your browser does not support the video tag. </video> </div> {% endif %} {% elseif projektDetail.image %} <div class="main-image"> {{ projektDetail.image.thumbnail('FullHD').html({ 'imgAttributes': { 'class':'main-image' } }) | raw }} </div> {% endif %} <div class="content-container"> <div class="text-container flex"> <div class="item lead colored item-lead"> {{ projektDetail.textLeft | raw }} </div> <div class="item lead colored item-lead"> {{ projektDetail.textRight | raw }} </div> </div> </div> </div> </section> <section class="teaser-swiper news-teaser projekt-teaser detail-page beige"> <div class="container teaser-container"> {% if projektDetail.gallery.items %} <div class="news-swiper-container projekt-swiper-container detail-page"> <div class="swiper newsTeaserSwiper projektTeaserSwiper"> <div class="swiper-wrapper"> {% for image in projektDetail.gallery %} <div class="swiper-slide"> <div class="teaser"> {{ image.thumbnail('ProjektTeaser').html | raw }} </div> </div> {% endfor %} </div> <div class="swipe-controls"> <div class="newsTeaserSwiperNext"></div> <div class="newsTeaserSwiperPrev"></div> </div> </div> </div> {% endif %} <div class="buttons-row flex project-detail-site"> <div class="buttons-back flex"> <button class="primary"> <a href="/service/kontakt" target="_self" title="{{ 'Kontakt' | trans }}"> {{ 'Kontakt' | trans }} <svg width="15.708" height="10.709" viewBox="0 0 15.708 10.709"> <g transform="translate(0 0.354)"> <g transform="translate(0)"> <path class="line" d="M7.5,18h15" transform="translate(-7.5 -13)" fill="none" stroke="#b76e2b" stroke-linejoin="round" stroke-width="1"/> <path class="arrow" d="M18,7.5l5.026,5L18,17.5" transform="translate(-8.027 -7.5)" fill="none" stroke="#b76e2b" stroke-width="1"/> </g> </g> </svg> </a> </button> <button class="primary"> <a onclick="window.history.back()" target="_self" title="{{ 'Zurück' | trans }}"> {{ 'Zurück' | trans }} <svg width="15.708" height="10.709" viewBox="0 0 15.708 10.709"> <g transform="translate(0 0.354)"> <g transform="translate(0)"> <path class="line" d="M7.5,18h15" transform="translate(-7.5 -13)" fill="none" stroke="#b76e2b" stroke-linejoin="round" stroke-width="1"/> <path class="arrow" d="M18,7.5l5.026,5L18,17.5" transform="translate(-8.027 -7.5)" fill="none" stroke="#b76e2b" stroke-width="1"/> </g> </g> </svg> </a> </button> </div> <div class="share-buttons"> <!-- Sharingbutton Facebook --> <a class="resp-sharing-button__link" href="https://facebook.com/sharer/sharer.php?u={{ app.request.uri }}" target="_blank" rel="noopener" aria-label=""> <div class="resp-sharing-button resp-sharing-button--facebook resp-sharing-button--small"><div aria-hidden="true" class="resp-sharing-button__icon resp-sharing-button__icon--solid"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.77 7.46H14.5v-1.9c0-.9.6-1.1 1-1.1h3V.5h-4.33C10.24.5 9.5 3.44 9.5 5.32v2.15h-3v4h3v12h5v-12h3.85l.42-4z"/></svg> </div> </div> </a> <!-- Sharingbutton E-Mail --> <a class="resp-sharing-button__link" href="mailto:?subject={{ projektDetail.maintitle | nl2br }}&body={{ app.request.uri }}" target="_self" rel="noopener" aria-label=""> <div class="resp-sharing-button resp-sharing-button--email resp-sharing-button--small"><div aria-hidden="true" class="resp-sharing-button__icon resp-sharing-button__icon--solid"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M22 4H2C.9 4 0 4.9 0 6v12c0 1.1.9 2 2 2h20c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM7.25 14.43l-3.5 2c-.08.05-.17.07-.25.07-.17 0-.34-.1-.43-.25-.14-.24-.06-.55.18-.68l3.5-2c.24-.14.55-.06.68.18.14.24.06.55-.18.68zm4.75.07c-.1 0-.2-.03-.27-.08l-8.5-5.5c-.23-.15-.3-.46-.15-.7.15-.22.46-.3.7-.14L12 13.4l8.23-5.32c.23-.15.54-.08.7.15.14.23.07.54-.16.7l-8.5 5.5c-.08.04-.17.07-.27.07zm8.93 1.75c-.1.16-.26.25-.43.25-.08 0-.17-.02-.25-.07l-3.5-2c-.24-.13-.32-.44-.18-.68s.44-.32.68-.18l3.5 2c.24.13.32.44.18.68z"/></svg> </div> </div> </a> <!-- Sharingbutton LinkedIn --> <a class="resp-sharing-button__link" href="https://www.linkedin.com/shareArticle?mini=true&url={{ app.request.uri }}&title={{ projektDetail.maintitle | nl2br }}&summary={{ projektDetail.maintitle | nl2br }}&source={{ app.request.uri }}" target="_blank" rel="noopener" aria-label=""> <div class="resp-sharing-button resp-sharing-button--linkedin resp-sharing-button--small"><div aria-hidden="true" class="resp-sharing-button__icon resp-sharing-button__icon--solid"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.5 21.5h-5v-13h5v13zM4 6.5C2.5 6.5 1.5 5.3 1.5 4s1-2.4 2.5-2.4c1.6 0 2.5 1 2.6 2.5 0 1.4-1 2.5-2.6 2.5zm11.5 6c-1 0-2 1-2 2v7h-5v-13h5V10s1.6-1.5 4-1.5c3 0 5 2.2 5 6.3v6.7h-5v-7c0-1-1-2-2-2z"/></svg> </div> </div> </a> <!-- Sharingbutton XING --> {#<a class="resp-sharing-button__link" href="https://www.xing.com/app/user?op=share;url={{ app.request.uri }};title={{ projektDetail.maintitle | nl2br }}" target="_blank" rel="noopener" aria-label=""> <div class="resp-sharing-button resp-sharing-button--xing resp-sharing-button--small"><div aria-hidden="true" class="resp-sharing-button__icon resp-sharing-button__icon--solid"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M10.2 9.7l-3-5.4C7.2 4 7 4 6.8 4h-5c-.3 0-.4 0-.5.2v.5L4 10 .4 16v.5c0 .2.2.3.4.3h5c.3 0 .4 0 .5-.2l4-6.6v-.5zM24 .2l-.5-.2H18s-.2 0-.3.3l-8 14v.4l5.2 9c0 .2 0 .3.3.3h5.4s.3 0 .4-.2c.2-.2.2-.4 0-.5l-5-8.8L24 .7V.2z"/></svg> </div> </div> </a>#} </div> </div> </div> </section>{% endblock %}