templates/module/Startseite/__startseite.html.twig line 1

Open in your IDE?
  1. {% if editmode %}
  2.     {{ include('includes/backend-kopf.html.twig') }}
  3.     {% set tabContentArray = {1: 'Startseite'} %}
  4.     {% set tab = 1 %}
  5.     <div id="content">        
  6.             {% if tabContentArray is defined and tab in tabContentArray|keys %}
  7.                 {{ admin_tabs(tab, tabContentArray) | raw }}
  8.             {% endif %} 
  9.             <section class="tabContent">
  10.                 <p class="hl">Keine Konfiguration:</p>
  11.             </section>
  12.     </div>
  13.     {{ include('includes/backend-fuss.html.twig') }}
  14. {% else %}
  15.     <section class="front-page layout-columns-3 intro-container main-container">
  16.         <a href="https://shop.glanzer.at" class="container white-bg">
  17.             <div class="top">
  18.                 <img class="glanzer-logo" style="width: 30%" src="{{ intro['glanzerLogo'] }}" alt="">
  19.             </div>
  20.             <div class="middle">
  21.                 <div style="background-image: url({{ intro['glanzerMain'] }});" class="img-container">
  22.                 </div>
  23.             </div>
  24.             <div class="bottom">
  25.                 <img class="glanzer-logo-mini" style="width: 40px" src="{{ intro['glanzerMobileLogo'] }}" alt="">
  26.                    <h2 class="big-text red">{{ intro['title_shopping'] | raw }}</h1>
  27.                 <h3 class="text red">{{ intro['subhl_shopping'] | raw }} &rarr;</h2>
  28.             </div>
  29.         </a>
  30.         <a href="{{ intro['url_rent'] }}" class="container blue-bg">
  31.             <div class="top">
  32.                 <img class="intersport-logo" style="width: 60%" src="{{ intro['intersportlogo'] }}" alt="">
  33.             </div>
  34.             <div class="middle">
  35.                 <div style="background-image: url({{ intro['intersportMain'] }}); background-position: left; transform: scaleX(-1); " class="img-container">
  36.                 </div>
  37.             </div>
  38.             <div class="bottom">
  39.                 <img class="intersport-logo-mini "  style="width: 40px" src="{{ intro['intersportMobilelogo'] }}" alt="">
  40.                 <h2 class="big-text white">{{ intro['title_rent'] | raw }}</h1>
  41.                 <h3 class="text white">{{ intro['subhl_rent'] | raw }} &rarr;</h2>
  42.             </div>
  43.         </a>
  44.         <a href="{{ intro['url_homes'] }}" class="container black-bg">
  45.             <div class="top">
  46.                 <img class="glanz-and-glory-logo" style="width: 30%" src="{{ intro['glanzGlory'] }}" alt="">
  47.             </div>
  48.             <div class="middle">
  49.                 <div style="background-image: url({{ intro['gloryGlanzMain'] }});" class="img-container">
  50.                 </div>
  51.             </div>
  52.             <div class="bottom">
  53.                 <img class="intersport-logo-mini "  style="width: 40px" src="{{ intro['gloryGlanzMobileLogo'] }}" alt="">
  54.                   <h2 class="big-text gold">{{ intro['title_homes'] | raw }}</h1>
  55.                 <h3 class="text gold">{{ intro['subhl_homes'] | raw }} &rarr;</h2>
  56.             </div>
  57.         </a>
  58.         </div>
  59. {#        <article class="front-page-item rent">#}
  60. {#            <div class="front-page-item-cropper">#}
  61. {#                <a class="no-underline" href="{{ intro['url_rent'] }}">#}
  62. {#                    <figure class="bg">#}
  63. {#                        <picture>#}
  64. {#                            <source srcset="{{ intro['img_rent_thumb_small'] }}"#}
  65. {#                                    media="(max-width: 480px)">#}
  66. {#                            <source srcset="{{ intro['img_rent_thumb_medium']}}"#}
  67. {#                                    media="(min-width: 481px) and (max-width: 1023px)">#}
  68. {#                            <source srcset="{{ intro['img_rent_thumb_large']}}"#}
  69. {#                                    media="(min-width: 1024px)">#}
  70. {#                            <img width="459" height="855" src="{{ intro['img_rent_thumb_small'] }}" alt="{{ intro['url_rent'] }}" />#}
  71. {#                        </picture>#}
  72. {#                    </figure>#}
  73. {#                    <div class="copy">#}
  74. {#                        <h2 class="headline font-bold">{{ intro['title_rent'] | raw }}</h2>#}
  75. {#                        {% if intro['subhl_rent'] %}#}
  76. {#                            <h3 class="topic font-thin">{{ intro['subhl_rent'] | raw }}</h3>#}
  77. {#                        {% endif %}#}
  78. {#                        <div class="btn-wrp arrow-button">#}
  79. {#                            <button aria-label="{{ 'More'|trans }}"></button>#}
  80. {#                        </div>#}
  81. {#                    </div>#}
  82. {#                </a>#}
  83. {#            </div>#}
  84. {#        </article>#}
  85. {#        <article class="front-page-item homes">#}
  86. {#            <div class="front-page-item-cropper">#}
  87. {#                <a class="no-underline" href="{{ intro['url_homes'] }}">#}
  88. {#                    <figure class="bg">#}
  89. {#                        <picture>#}
  90. {#                            <source srcset="{{ intro['img_homes_thumb_small'] }}"#}
  91. {#                                    media="(max-width: 480px)">#}
  92. {#                            <source srcset="{{ intro['img_homes_thumb_medium'] }}"#}
  93. {#                                    media="(min-width: 481px) and (max-width: 1023px)">#}
  94. {#                            <source srcset="{{ intro['img_homes_thumb_large'] }}"#}
  95. {#                                    media="(min-width: 1024px)">#}
  96. {#                            <img width="459" height="855" src="{{ intro['img_homes_thumb_small'] }}" alt="{{ intro['url_rent'] }}" />#}
  97. {#                        </picture>#}
  98. {#                    </figure>#}
  99. {#                    <div class="copy">#}
  100. {#                        <h2 class="headline font-bold">{{ intro['title_homes'] | raw }}</h2>#}
  101. {#                        {% if intro['subhl_homes'] %}#}
  102. {#                            <h3 class="topic font-thin">{{ intro['subhl_homes'] | raw }}</h3>#}
  103. {#                        {% endif %}#}
  104. {#                        <div class="btn-wrp arrow-button">#}
  105. {#                            <button aria-label="{{ 'More'|trans }}"></button>#}
  106. {#                        </div>#}
  107. {#                    </div>#}
  108. {#                </a>#}
  109. {#            </div>#}
  110. {#        </article>#}
  111. {#        <article class="front-page-item shops">#}
  112. {#            <div class="front-page-item-cropper">#}
  113. {#                <a class="no-underline" href="{{ intro['url_shops'] }}">#}
  114. {#                    <figure class="bg">#}
  115. {#                        <picture>#}
  116. {#                            <source srcset="{{ intro['img_shopping_thumb_small'] }}"#}
  117. {#                                    media="(max-width: 480px)">#}
  118. {#                            <source srcset="{{ intro['img_shopping_thumb_medium'] }}"#}
  119. {#                                    media="(min-width: 481px) and (max-width: 1023px)">#}
  120. {#                            <source srcset="{{ intro['img_shopping_thumb_large'] }}"#}
  121. {#                                    media="(min-width: 1024px)">#}
  122. {#                            <img width="459" height="855" src="{{ intro['img_shopping_thumb_small'] }}" alt="{{ intro['url_rent'] }}" />#}
  123. {#                        </picture>#}
  124. {#                    </figure>#}
  125. {#                    <div class="copy">#}
  126. {#                        <h2 class="headline font-bold">{{ intro['title_shopping'] | raw }}</h2>#}
  127. {#                        {% if intro['subhl_shopping'] %}#}
  128. {#                            <h3 class="topic font-thin">{{ intro['subhl_shopping'] | raw }}</h3>#}
  129. {#                        {% endif %}#}
  130. {#                        <div class="btn-wrp arrow-button">#}
  131. {#                            <button aria-label="{{ 'More'|trans }}"></button>#}
  132. {#                        </div>#}
  133. {#                    </div>#}
  134. {#                </a>#}
  135. {#            </div>#}
  136. {#        </article>#}
  137.     </section>
  138. <style>
  139.     .sidebar-offset.gradient-page{
  140.         margin-left: 0;
  141.         width: 100%;
  142.     }
  143.     .side-bar{
  144.         {# display: none;#}
  145.         width: 0;
  146.     }
  147.     @media only screen and (min-width: 480px) {
  148.         .side-bar header {
  149.             display: none !important;
  150.         }
  151.     }
  152.     {# main .menue-wrapper{
  153.         display: none !important;
  154.     } #}
  155.     main .main-wrapper-js{
  156.         padding-top: 56px !important;
  157.     }
  158.     .frontpage main .main-wrapper-js{
  159.         padding-top: 56px !important;
  160.     }
  161. </style>
  162. <script>
  163.     let viewportWidth = 0;
  164.     const updateViewportHeight = () => {
  165.         if(viewportWidth !== window.innerWidth) {
  166.             viewportWidth = window.innerWidth;
  167.             document.documentElement.style.setProperty('--viewport-height', `${document.documentElement.clientHeight}px`);
  168.         }
  169.     };
  170.     window.addEventListener('resize', updateViewportHeight);
  171.     updateViewportHeight();
  172.     if (document.querySelector('[data-device="tablet"]')){
  173.         [].forEach.call( document.querySelectorAll('.front-page-item'), function (el){
  174.             console.log(el);
  175.             el.classList.add('hover');
  176.         }  )
  177.     }
  178. </script>
  179. {% endif %}