templates/areas/iconflipbox/view.html.twig line 1

Open in your IDE?
  1. {% if editmode %}
  2. <div class="bg-gray-100 p-5">
  3.     {% include 'areaHeadAndFooter.html.twig' with { 'header': 'STWH: Icon Flipbox' } %}
  4.     {% include 'padding.html.twig' %}
  5.     {% include 'headline-editmode.html.twig' with {'name': 'headline' } %}
  6.     <div class="bg-white flex flex-wrap overflow-hidden xl:-mx-3">
  7.         <div class="w-1/3 my-3 px-3">
  8.             1. Box, Bild vorne:
  9.             {{ pimcore_image('first-image', {'width': '250'}) }}
  10.         </div>
  11.         <div class="w-1/3 my-3 px-3">
  12.             1. Box, Titel vorne:
  13.             {{ pimcore_input('first-front-text') }}
  14.         </div>
  15.         <div class="w-1/3 my-3 px-3">
  16.             1. Box, Text hinten:
  17.             {{ pimcore_textarea('first-back-text') }}
  18.         </div>
  19.     </div>
  20.     <hr />
  21.     <div class="bg-white flex flex-wrap overflow-hidden xl:-mx-3">
  22.         <div class="w-1/2 my-3 px-3">
  23.             {% include 'color-selector.html.twig' with { 'name': 'textColor1', 'description': 'Schrift-Farbe', 'type': 'accordeon' } %}
  24.         </div>
  25.         <div class="w-1/2 my-3 px-3">
  26.             {% include 'color-selector.html.twig' with { 'name': 'backColor1', 'description': 'Hintergrundfarbe', 'type': 'accordeon' } %}
  27.         </div>
  28.     </div>
  29.     <hr>
  30.     <div class="flex flex-wrap overflow-hidden xl:-mx-3">
  31.         <div class="w-1/3 my-3 px-3">
  32.             2. Box, Bild vorne:
  33.             {{ pimcore_image('second-image', {'width': '250'}) }}
  34.         </div>
  35.         <div class="w-1/3 my-3 px-3">
  36.             2. Box, Titel vorne:
  37.             {{ pimcore_input('second-front-text') }}
  38.         </div>
  39.         <div class="w-1/3 my-3 px-3">
  40.             2. Box, Text hinten:
  41.             {{ pimcore_textarea('second-back-text') }}
  42.         </div>
  43.     </div>
  44.     <hr>
  45.     <hr />
  46.     <div class="flex flex-wrap overflow-hidden xl:-mx-3">
  47.         <div class="w-1/2 my-3 px-3">
  48.             {% include 'color-selector.html.twig' with { 'name': 'textColor2', 'description': 'Schrift-Farbe', 'type': 'accordeon' } %}
  49.         </div>
  50.         <div class="w-1/2 my-3 px-3">
  51.             {% include 'color-selector.html.twig' with { 'name': 'backColor2', 'description': 'Hintergrundfarbe', 'type': 'accordeon' } %}
  52.         </div>
  53.     </div>
  54.     <hr>
  55.     <div class="bg-white flex flex-wrap overflow-hidden xl:-mx-3">
  56.         <div class="w-1/3 my-3 px-3">
  57.             3. Box, Bild vorne:
  58.             {{ pimcore_image('third-image', {'width': '250'}) }}
  59.         </div>
  60.         <div class="w-1/3 my-3 px-3">
  61.             3. Box, Titel vorne:
  62.             {{ pimcore_input('third-front-text') }}
  63.         </div>
  64.         <div class="w-1/3 my-3 px-3">
  65.             3. Box, Text hinten:
  66.             {{ pimcore_textarea('third-back-text') }}
  67.         </div>
  68.     </div>
  69.     <hr />
  70.     <div class="bg-white flex flex-wrap overflow-hidden xl:-mx-3">
  71.         <div class="w-1/2 my-3 px-3">
  72.             {% include 'color-selector.html.twig' with { 'name': 'textColor3', 'description': 'Schrift-Farbe', 'type': 'accordeon' } %}
  73.         </div>
  74.         <div class="w-1/2 my-3 px-3">
  75.             {% include 'color-selector.html.twig' with { 'name': 'backColor3', 'description': 'Hintergrundfarbe', 'type': 'accordeon' } %}
  76.         </div>
  77.     </div>
  78. </div>
  79. {% else %}
  80.     <section class="md:px-6 py-8">
  81.         {%  if not pimcore_input('headline-headline').isEmpty() %}
  82.             <div class="container flex flex-wrap w-full mx-auto px-4">
  83.                 {% include 'headline.html.twig' with {'name': 'headline', 'input_name': 'headline-headline', 'classes':  'my-4 font-bold text-3xl'} %}
  84.             </div>
  85.         {% endif %}
  86.         <div class="container flex flex-wrap justify-center w-full mx-auto px-4">
  87.             <div tabindex="0" class="flip-card flex flex-col items-stretch bg-transparent w-full min-h-flip lg:w-2/3 xl:w-1/3 lg:px-12 my-4 relative">
  88.                 <div class="absolute hidden lg:flex right-0 h-full w-32 z-0 -mr-12  items-center">
  89.                     <div class="bg-arrow  bg-cover bg-center bg-no-repeat w-full h-32"></div>
  90.                 </div>
  91.                 <div class="flip-card-inner flex-auto items-stretch flex shadow-xl rounded-lg w-full relative">
  92.                     <div class="flip-card-front bg-{{ pimcore_select("backColor1").getData() }} z-10 w-full h-full absolute flex items-center justify-center flex-col border-gray-300 border rounded-lg  shadow-flip-boxes">
  93.                         <img class="my-4 h-32 lazy"
  94.                              data-src="{{ pimcore_image('first-image').getThumbnail('icon-flipbox-front') }}"
  95.                              alt="{{ pimcore_image('first-image').getAlt() }}">
  96.                         <h3 class="text-{{ pimcore_select("textColor1").getData() }} font-bold flex items-center flex-wrap my-2 text-3xl px-6">
  97.                             {{ pimcore_input('first-front-text').getData() }}
  98.                         </h3>
  99.                     </div>
  100.                     <div class="flip-card-back z-50 bg-{{ pimcore_select("backColor1").getData() }} shadow-flip-boxes w-full flex-auto flex-col flex items-stretch border-gray-300 border rounded-lg px-6 py-8">
  101.                         <div class="flex justify-between items-center"
  102.                              x-data="{ first: '{{ pimcore_input('first-front-text').getData() }}' }">
  103.                             <h3 class="text-{{ pimcore_select("textColor1").getData() }} font-bold w-2/3 my-2 text-2xl lg:text-3xl" x-html="first">
  104.                             </h3>
  105.                             <img class="w-1/3 text-center mr-3 my-2 lazy"
  106.                                  data-src="{{ pimcore_image('first-image').getThumbnail('icon-flipbox-back') }}"
  107.                                  alt="{{ pimcore_image('first-image').getAlt() }}">
  108.                         </div>
  109.                         <p class="text-{{ pimcore_select("textColor1").getData() }} text-base">
  110.                             {{ pimcore_textarea('first-back-text').getData() }}
  111.                         </p></div>
  112.                 </div>
  113.             </div>
  114.             <div tabindex="0" class="flip-card flex flex-col items-stretch bg-transparent w-full min-h-flip lg:w-2/3 xl:w-1/3 lg:px-12 my-4 relative">
  115.                 <div class="absolute hidden lg:flex right-0 h-full w-32 z-0 -mr-12  items-center">
  116.                     <div class="bg-arrow  bg-cover bg-center bg-no-repeat w-full h-32"></div>
  117.                 </div>
  118.                 <div  class="flip-card-inner flex-auto items-stretch flex shadow-xl rounded-lg w-full relative">
  119.                     <div class="flip-card-front bg-{{ pimcore_select("backColor2").getData() }} z-10 w-full h-full absolute flex items-center justify-center flex-col border-gray-300 rounded-lg border shadow-flip-boxes">
  120.                         <img class="my-4 h-32 lazy"
  121.                              data-src="{{ pimcore_image('second-image').getThumbnail('icon-flipbox-front') }}"
  122.                              alt="{{ pimcore_image('second-image').getAlt() }}">
  123.                         <h3 class="text-{{ pimcore_select("textColor2").getData() }} font-bold flex items-center flex-wrap my-2 text-3xl px-6">
  124.                             {{ pimcore_input('second-front-text').getData() }}
  125.                         </h3>
  126.                     </div>
  127.                     <div class="flip-card-back bg-{{ pimcore_select("backColor2").getData() }} z-50 shadow-flip-boxes w-full flex-auto flex-col flex items-stretch border-gray-300 rounded-lg border px-6 py-8">
  128.                         <div class="flex justify-between items-center"
  129.                              x-data="{ second: '{{ pimcore_input('second-front-text').getData() }}' }">
  130.                             <h3 class="text-{{ pimcore_select("textColor2").getData() }} font-bold w-2/3 my-2 text-2xl lg:text-3xl" x-html="second">
  131.                             </h3>
  132.                             <img class="w-1/3 text-center mr-3 my-2 lazy"
  133.                                  data-src="{{ pimcore_image('second-image').getThumbnail('icon-flipbox-back') }}"
  134.                                  alt="{{ pimcore_image('second-image').getAlt() }}">
  135.                         </div>
  136.                         <p class="text-{{ pimcore_select("textColor2").getData() }} text-base">
  137.                             {{ pimcore_textarea('second-back-text').getData() }}
  138.                         </p></div>
  139.                 </div>
  140.             </div>
  141.             <div tabindex="0" class="flip-card flex flex-col items-stretch bg-transparent w-full min-h-flip lg:w-2/3 xl:w-1/3 lg:px-12 my-4 relative">
  142.                 <div  class="flip-card-inner flex-auto items-stretch flex shadow-xl rounded-lg w-full relative">
  143.                     <div class="flip-card-front bg-{{ pimcore_select("backColor3").getData() }} z-10 w-full h-full absolute flex items-center justify-center flex-col border-gray-300 border rounded-lg shadow-flip-boxes">
  144.                         <img class="my-4 h-32 lazy"
  145.                              data-src="{{ pimcore_image('third-image').getThumbnail('icon-flipbox-front') }}"
  146.                              alt="{{ pimcore_image('third-image').getAlt() }}">
  147.                         <h3 class="text-{{ pimcore_select("textColor3").getData() }} font-bold flex items-center flex-wrap my-2 text-3xl px-6">
  148.                             {{ pimcore_input('third-front-text').getData() }}
  149.                         </h3>
  150.                     </div>
  151.                     <div class="flip-card-back bg-{{ pimcore_select("backColor3").getData() }} z-50  shadow-flip-boxes w-full flex-auto flex-col flex items-stretch border-gray-300 border rounded-lg px-6 py-8">
  152.                         <div class="flex justify-between items-center"
  153.                              x-data="{ third: '{{ pimcore_input('third-front-text').getData() }}' }">
  154.                             <h3 class="text-{{ pimcore_select("textColor3").getData() }} font-bold w-2/3 my-2 text-2xl lg:text-3xl" x-html="third">
  155.                             </h3>
  156.                             <img class="w-1/3 text-center mr-3 my-2 lazy"
  157.                                  data-src="{{ pimcore_image('third-image').getThumbnail('icon-flipbox-back') }}"
  158.                                  alt="{{ pimcore_image('third-image').getAlt() }}">
  159.                         </div>
  160.                         <p class="text-{{ pimcore_select("textColor3").getData() }} text-base">
  161.                             {{ pimcore_textarea('third-back-text').getData() }}
  162.                         </p></div>
  163.                 </div>
  164.             </div>
  165.         </div>
  166.     </section>
  167. {% endif %}