templates/_parts/index/_about.html.twig line 1

Open in your IDE?
  1. {% set class = class|default('') %}
  2. {% set title = title|default('') %}
  3. {% set items = items|default([]) %}
  4. {% if items %}
  5.     <div class="about {{ class }}">
  6.         <div class="container container_spacer">
  7.             <div class="about__inner">
  8.                 <div class="about__title h1 text__black-text">
  9.                     {{ title }}
  10.                 </div>
  11.                 <div class="about__main">
  12.                     <div class="about__tabs-container">
  13.                         <div class="about__tabs-wrap">
  14.                             <div class="about__tabs tabs tabs__vertical" data-about-menu>
  15.                                 <ul class="about__tabs-list smart-tabs tabs__list">
  16.                                     {% for item in items %}
  17.                                         <li class="about__tab tabs__item {% if loop.first %}_active{% endif %}">
  18.                                             <a href="#project-item-{{ item.id }}"
  19.                                                class="about__tab-link tabs__link"
  20.                                                data-scroll-link
  21.                                                data-offset="-100"
  22.                                                data-duration="1500"
  23.                                                data-about-link
  24.                                             >
  25.                                             <span class="tabs__text">
  26.                                                 {{ item.name }}
  27.                                             </span>
  28.                                             </a>
  29.                                         </li>
  30.                                     {% endfor %}
  31.                                 </ul>
  32.                             </div>
  33.                         </div>
  34.                     </div>
  35.                     <div class="about__content">
  36.                         <ul class="about__list">
  37.                             {% for item in items %}
  38.                                 {% include '_parts/about/_about-item.html.twig' with {
  39.                                     class: 'about__item',
  40.                                     item: item
  41.                                 } %}
  42.                             {% endfor %}
  43.                         </ul>
  44.                     </div>
  45.                 </div>
  46.             </div>
  47.         </div>
  48.     </div>
  49. {% endif %}