templates/areas/homepageHero/homepageHero.html.twig line 1

Open in your IDE?
  1. <figure class="homepage-hero">
  2.     {%- if editmode -%}
  3.         <picture class="homepage-hero__picture">
  4.             {{- pimcore_image('heroImage', {
  5.                 'class': 'homepage-hero__image'
  6.             }) -}}
  7.         </picture>
  8.         <figcaption class="homepage-hero__caption">
  9.             <div class="homepage-hero__claim">
  10.                 {{- pimcore_input('claim', {
  11.                     'placeholder': 'Sie.'
  12.                 }) -}}
  13.             </div>
  14.             <p class="homepage-hero__questions-item homepage-hero__questions-item--one">
  15.                 {{- pimcore_textarea('questionOne', {
  16.                     'placeholder': 'Frage Eins'
  17.                 }) -}}
  18.             </p>
  19.             <p class="homepage-hero__questions-item homepage-hero__questions-item--two">
  20.                 {{- pimcore_textarea('questionTwo', {
  21.                     'placeholder': 'Frage Zwei'
  22.                 }) -}}
  23.             </p>
  24.             <p class="homepage-hero__questions-item homepage-hero__questions-item--three">
  25.                 {{- pimcore_textarea('questionThree', {
  26.                     'placeholder': 'Frage Drei'
  27.                 }) -}}
  28.             </p>
  29.             <p class="homepage-hero__questions-item homepage-hero__questions-item--four">
  30.                 {{- pimcore_textarea('questionFour', {
  31.                     'placeholder': 'Frage Vier'
  32.                 }) -}}
  33.             </p>
  34.             <h1 class="homepage-hero__headline">
  35.                 {{ pimcore_input('headlineWordOne', {
  36.                     'placeholder': 'Wort vorne'
  37.                 }) }}
  38.                 {{ pimcore_input('headlineWordTwo', {
  39.                     'placeholder': 'Wort hinten'
  40.                 }) }}
  41.             </h1>
  42.             {{- pimcore_link('headlineLink') -}}
  43.         </figcaption>
  44.     {%- else -%}
  45.         {%- set heroImage = pimcore_image('heroImage', {
  46.             'thumbnail': 'homepageHeroImage',
  47.             'pictureAttributes': {
  48.                 'class': 'homepage-hero__picture'
  49.             },
  50.             'imgAttributes': {
  51.                 'class': 'homepage-hero__image',
  52.                 'loading': 'eager'
  53.             }
  54.         }) -%}
  55.         {%- set claim = pimcore_input('claim') -%}
  56.         {%- set questionOne = pimcore_textarea('questionOne') -%}
  57.         {%- set questionTwo = pimcore_textarea('questionTwo') -%}
  58.         {%- set questionThree = pimcore_textarea('questionThree') -%}
  59.         {%- set questionFour = pimcore_textarea('questionFour') -%}
  60.         {%- set headlineWordOne = pimcore_input('headlineWordOne') -%}
  61.         {%- set headlineWordTwo = pimcore_input('headlineWordTwo') -%}
  62.         {%- set headlineLink = pimcore_link('headlineLink') -%}
  63.         {%- if not heroImage.isEmpty() -%}
  64.             {{- heroImage|raw -}}
  65.         {%- endif -%}
  66.         <figcaption class="homepage-hero__caption">
  67.             {%- if not claim.isEmpty() -%}
  68.                 <p class="homepage-hero__claim">
  69.                     {{- claim|raw -}}
  70.                 </p>
  71.             {%- endif -%}
  72.             {%- if not questionOne.isEmpty() -%}
  73.                 <p class="homepage-hero__questions-item homepage-hero__questions-item--one">
  74.                     {{- questionOne|nl2br  -}}
  75.                     <span class="anim-wrapper anim-wrapper-1">
  76.                         <span class="border-animation border-animation-1">
  77.                         </span><span class="pulsar"></span>
  78.                     </span>
  79.                 </p>
  80.             {%- endif -%}
  81.             {% if not questionTwo.isEmpty() %}
  82.                 <p class="homepage-hero__questions-item homepage-hero__questions-item--two">
  83.                     {{- questionTwo|nl2br -}}
  84.                     <span class="anim-wrapper anim-wrapper-2">
  85.                         <span class="border-animation border-animation-2">
  86.                         </span><span class="pulsar"></span>
  87.                     </span>
  88.                 </p>
  89.             {%- endif -%}
  90.             {%- if not questionThree.isEmpty() -%}
  91.                 <p class="homepage-hero__questions-item homepage-hero__questions-item--three">
  92.                     {{- questionThree|nl2br -}}
  93.                     <span class="anim-wrapper anim-wrapper-3">
  94.                         <span class="border-animation border-animation-3">
  95.                         </span><span class="pulsar"></span>
  96.                     </span>
  97.                 </p>
  98.             {%- endif -%}
  99.             {%- if not questionFour.isEmpty() -%}
  100.                 <p class="homepage-hero__questions-item homepage-hero__questions-item--four">
  101.                     {{- questionFour|nl2br -}}
  102.                     <span class="anim-wrapper anim-wrapper-4">
  103.                         <span class="border-animation border-animation-4">
  104.                         </span><span class="pulsar"></span>
  105.                     </span>
  106.                 </p>
  107.             {%- endif -%}
  108.             {%- if not headlineWordOne.isEmpty() or not headlineWordTwo.isEmpty() -%}
  109.                 <h1 class="homepage-hero__headline">
  110.                     {%- if not headlineLink.isEmpty() and headlineLink.href != '' -%}
  111.                         <a href="{{ headlineLink.href }}">
  112.                             {%- if not headlineWordOne.isEmpty() -%}
  113.                                 <span class="homepage-hero__headline-one">
  114.                                     {{- headlineWordOne|raw -}}
  115.                                 </span>
  116.                             {%- endif -%}
  117.                             {%- if not headlineWordTwo.isEmpty() -%}
  118.                                 <span class="homepage-hero__headline-two">
  119.                                     {{- headlineWordTwo|raw -}}
  120.                                 </span>
  121.                             {%- endif -%}
  122.                         </a>
  123.                     {%- endif -%}
  124.                     <svg class="icon"
  125.                          aria-hidden="true"
  126.                          focusable="false">
  127.                         <use xlink:href="#angle-down-regular" />
  128.                     </svg>
  129.                 </h1>
  130.             {%- endif -%}
  131.         </figcaption>
  132.     {%- endif -%}
  133. </figure>
  134. <script src="/lef-career/js/hero-observer.js" async></script>