custom/static-plugins/NdVoorwindenTheme/src/Resources/views/storefront/element/cms-element-faq.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/element/cms-element-faq.html.twig' %}
  2. {% block element_faq_margin_top %}
  3. <div class="boxed-layout my-4 faq-container tab-content w-full sm:inline-block lg:mt-0 {% if groups | length > 1 %}xl:col-span-9{% else %}xl:col-span-6 xl:col-start-4{% endif %}">
  4.     {% endblock %}
  5.     {% block element_faq_ul_style %}
  6.         <ul class="faq-select nav nav-tabs mb-4 flex md:flex-col flex-nowrap grid-gap-4 overflow-x-scroll flex-shrink-0 lg:w-[300px]  lg:block lg:overflow-visible">
  7.             {% for group in groups %}
  8.                 {% set name = 'FAQ_' ~ loop.index %}
  9.                 <li class="custom-select-ul-child font-montserrat uppercase active:no-underline text-[#0A0A0B] tracking-wider font-bold flex items-center grid-gap-4 text-base leading-8 text-black">
  10.                     <a class="tab-trigger border-b whitespace-nowrap active:no-underline text-sm lg:text-base py-2 text-black w-full flex grid-gap-4 justify-between items-center lg:whitespace-normal {% if loop.first %} active{% endif %}"
  11.                        href="#{{ name }}_tab"
  12.                        id="{{ name }}-tab"
  13.                        data-toggle="tab"
  14.                        role="tab"
  15.                        aria-control="{{ name }}_tab"
  16.                        aria-selected="true">
  17.                         {{ group.name }}
  18.                     </a>
  19.                     {% if not loop.last %}
  20.                         <span class="hidden">&bull;</span>
  21.                     {% endif %}
  22.                 </li>
  23.             {% endfor %}
  24.         </ul>
  25.     {% endblock %}
  26.     {% block  element_faq_style %}
  27.     <div class=" border-b border-[#C4C5CB] py-2"
  28.          x-data="{ id: {{ key }}, get expanded() { return this.active === this.id }, set expanded(value) { this.active = value ? this.id : null } }">
  29.         <div class="faq-question question-btn text-base font-bold text-grey-900 cursor-pointer leading-8 w-full flex justify-between"
  30.              x-on:click="expanded = !expanded" :aria-expanded="expanded">
  31.             {{ qa.question }}
  32.             <span
  33.                  aria-hidden="true"
  34.                   class="block w-6 h-6 transition-all duration-300 mt-1"
  35.                    x-bind:style="expanded = expanded ? 'transform: rotate(180deg);' : ''">
  36.                  {% sw_icon 'chevron-down' style{ 'pack': 'theme-icons', 'class': 'stroke full-size w-8' } %}
  37.             </span>
  38.         </div>
  39.            <div class="faq-answer wysiwyg"
  40.                  x-show="expanded" x-collapse.duration.500ms>
  41.                 <div class="text-grey-900 text-base leading-6 font-normal">
  42.                     {{ qa.answer|raw }}
  43.                 </div>
  44.             </div>
  45.         </div>
  46. {% endblock %}