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

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/element/cms-element-contact-options.html.twig' %}
  2.         {% block contact_options %}
  3.             <div class="flex flex-col">
  4.                 <div class="flex flex-col w-full text-start md:text-center">
  5.                     <div class="text-2xl md:text-4xl text-grey-900 font-display font-bold tracking-tight">{{ element.config.title.value }}</div>
  6.                     <div class="text-base text-grey-600 font-body my-6">{{ element.config.description.value }}</div>
  7.                 </div>
  8.                 <div class="contact-options flex flex-col justify-center mt-6 md:flex-row space-x-0 md:space-x-6 space-y-4 md:space-y-0">
  9.                     {% if element.config.options.value %}
  10.                         {% for option in element.config.options.value %}
  11.                             {% set icon %}
  12.                                 {% if option.type == 'mail' %}
  13.                                     {% sw_icon 'mail' style{'pack': 'theme-icons', 'class': 'text-red-300 w-5 xl:w-10 3xl:w-16'} %}
  14.                                 {% elseif option.type == 'facebook' %}
  15.                                     {% sw_icon 'facebook' style{'pack': 'theme-icons', 'class': 'w-5 xl:w-10 3xl:w-16'} %}
  16.                                 {% elseif option.type == 'instagram' %}
  17.                                     {% sw_icon 'instagram' style{'pack': 'theme-icons', 'class': 'w-5 xl:w-10 3xl:w-16'} %}
  18.                                 {% elseif option.type == 'phone' %}
  19.                                     {% sw_icon 'phone' style{'pack': 'theme-icons', 'class': 'w-5 xl:w-10 3xl:w-16'} %}
  20.                                 {% elseif option.type == 'store' %}
  21.                                     {% sw_icon 'locator' style{'pack': 'default', 'class': 'w-5 xl:w-10 3xl:w-16'} %}
  22.                                 {% endif %}
  23.                             {% endset %}
  24.                             <div class="flex flex-col gap-y-6 justify-between w-full bg-grey-50 rounded-sm p-6">
  25.                                 <div class="hidden contact-option-icon mb-4 flex justify-start flex-shrink-0 text-black"
  26.                                      data-icon="{{ option.type }}">
  27.                                     {{ icon }}
  28.                                 </div>
  29.                                 <div class="space-y-6">
  30.                                     <h1 class="font-bold font-display text-2xl tracking-tight"> {{ option.title }} </h1>
  31.                                     <p class="font-body text-sm "> {{ option.subtitle|raw }} </p>
  32.                                 </div>
  33.                                 {% if option.url and option.actionText %}
  34.                                     <a href="{{ option.url }}"
  35.                                        role="button"
  36.                                             {% if option.newTab %}
  37.                                                 target="_blank"
  38.                                             {% endif %}
  39.                                        class="flex justify-start contact-option-title uppercase font-bold font-accent text-sm text-center w-full lg:w-fit md:w-auto py-2 px-4 grid-gap-x-2 h-[40px] flex justify-center items-center border border-grey-900 tracking-wider hover:text-grey-400 hover:border-grey-400">
  40.                                         {{ option.actionText }}
  41.                                         {% if option.btnIcon %}
  42.                                             <span class="w-4 h-auto">{% sw_icon 'chevron-right' style{'pack': 'theme-icons', 'class': ' w-4 mr-4 flex items-center '} %}</span>
  43.                                         {% endif %}
  44.                                     </a>
  45.                                 {% endif %}
  46.                             </div>
  47.                         {% endfor %}
  48.                     {% endif %}
  49.                 </div>
  50.             </div>
  51.         {% endblock %}