templates/areas/insights-overview-brick/view.html.twig line 1

Open in your IDE?
  1. {% embed 'app/area-brick-layout.html.twig' %}
  2.     {% block content %}
  3.         <!-- Cards masonry -->
  4.         <section class="bg-gray-200">
  5.             <div class="md:container pt-10 mx-auto">
  6.                 {% if pagination.getItems() is defined %}
  7.                     <div class="flex md:items-end justify-between flex-col md:flex-row">
  8.                         {# Tabs as links #}
  9.                         {% set projectsPage = document.getProperty('projectsPage') %}
  10.                         {% set newsPage = document.getProperty('newsPage') %}
  11.                         <div class="flex gap-8 js-tabs filter-tabs pb-6 px-5 md:px-0 md:mb-0">
  12.                             {% if newsPage %}
  13.                                 <a href="{{ newsPage.url }}">{{ 'Insights' | trans }}</a>
  14.                             {% endif %}
  15.                             {% if projectsPage is not empty %}
  16.                                 <a href="{{ projectsPage.url }}">{{ 'Projects' | trans }}</a>
  17.                             {% endif %}
  18.                         </div>
  19.                         <form
  20.                             method="get"
  21.                             class="flex flex-col items-center justify-between md:flex-row">
  22.                             <div
  23.                                 class="flex flex-col justify-end w-full gap-3 px-5 pt-6 md:py-6 bg-blue-200 md:bg-white md:gap-6 md:flex-row md:bg-opacity-0 md:px-0">
  24.                                 <div data-filter="type" class="filter-dropdown js-filter">
  25.                                     <div class="flex flex-row gap-8 items-center justify-between sm:justify-start">
  26.                                         <label data-base-label="{{ 'Type' | trans }}" class="js-filter-label" for="type">{{ 'Type' | trans }}</label>
  27.                                         <div class="flex flex-row gap-4 pointer-events-none items-center">
  28.                                             <svg class="pointer-events-none select-open-arrow" xmlns="http://www.w3.org/2000/svg" width="16" height="9.42468697"><path fill="#323E48" fill-rule="evenodd" d="M15.65624442 7.3520215 8.9247854.38881541C8.68558505.14026701 8.3504987-4.8e-7 7.99960082-4.8e-7c-.34971019 0-.68446606.14012915-.92503804.38866442L.3428726 7.352109C.12004 7.5819731 0 7.8825387 0 8.1937897c0 .3429687.1462408.6715199.4108179.9068985l.11367.0902432c.509531.3590258 1.2271427.3021077 1.6687114-.1543865l5.80789478-6.00860086 5.80601078 6.00749926c.47506145.4925072 1.27101644.5211493 1.78259099.0650323.51947241-.4630657.5501348-1.2485897.06654857-1.7484541Z"/></svg>
  29.                                             <button class="js-filter-clear pointer-events-auto">
  30.                                                 <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path fill="#323E48" fill-rule="evenodd" d="M1.7859559.30642159 8 6.521 14.2140441.30642159c.4085621-.40856212 1.0709722-.40856212 1.4795343 0 .4085621.40856212.4085621 1.07097219 0 1.47953431L9.479 8l6.2145784 6.2140441c.4085621.4085621.4085621 1.0709722 0 1.4795343-.4085621.4085621-1.0709722.4085621-1.4795343 0L8 9.479l-6.2140441 6.2145784c-.40856212.4085621-1.0709722.4085621-1.47953431 0-.40856212-.4085621-.40856212-1.0709722 0-1.4795343L6.521 8 .30642159 1.7859559c-.40856212-.40856212-.40856212-1.0709722 0-1.47953431.40856212-.40856212 1.07097219-.40856212 1.47953431 0Z"/></svg>
  31.                                             </button>
  32.                                         </div>
  33.                                     </div>
  34.                                     <input
  35.                                         name="type"
  36.                                     >
  37.                                     <div class="flex flex-col filter-dropdown__list js-filter-list drop-shadow-xl">
  38.                                         {% for id, name in filters['type'] %}
  39.                                             <button class="filter-dropdown__option js-filter-option text-left" value="{{ id }}" {{ app.request.query.get('type') == id ? 'selected' : '' }}>{{ name }}</button>
  40.                                         {% endfor %}
  41.                                     </div>
  42.                                 </div>
  43.                                 <div data-filter="solutions" class="filter-dropdown js-filter">
  44.                                     <div class="flex flex-row gap-8 items-center justify-between sm:justify-start">
  45.                                         <label data-base-label="{{ 'Solutions' | trans }}" class="js-filter-label" for="solutions">{{ 'Solutions' | trans }}</label>
  46.                                         <div class="flex flex-row gap-4 pointer-events-none items-center">
  47.                                             <svg class="pointer-events-none select-open-arrow" xmlns="http://www.w3.org/2000/svg" width="16" height="9.42468697"><path fill="#323E48" fill-rule="evenodd" d="M15.65624442 7.3520215 8.9247854.38881541C8.68558505.14026701 8.3504987-4.8e-7 7.99960082-4.8e-7c-.34971019 0-.68446606.14012915-.92503804.38866442L.3428726 7.352109C.12004 7.5819731 0 7.8825387 0 8.1937897c0 .3429687.1462408.6715199.4108179.9068985l.11367.0902432c.509531.3590258 1.2271427.3021077 1.6687114-.1543865l5.80789478-6.00860086 5.80601078 6.00749926c.47506145.4925072 1.27101644.5211493 1.78259099.0650323.51947241-.4630657.5501348-1.2485897.06654857-1.7484541Z"/></svg>
  48.                                             <button class="js-filter-clear pointer-events-auto">
  49.                                                 <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path fill="#323E48" fill-rule="evenodd" d="M1.7859559.30642159 8 6.521 14.2140441.30642159c.4085621-.40856212 1.0709722-.40856212 1.4795343 0 .4085621.40856212.4085621 1.07097219 0 1.47953431L9.479 8l6.2145784 6.2140441c.4085621.4085621.4085621 1.0709722 0 1.4795343-.4085621.4085621-1.0709722.4085621-1.4795343 0L8 9.479l-6.2140441 6.2145784c-.40856212.4085621-1.0709722.4085621-1.47953431 0-.40856212-.4085621-.40856212-1.0709722 0-1.4795343L6.521 8 .30642159 1.7859559c-.40856212-.40856212-.40856212-1.0709722 0-1.47953431.40856212-.40856212 1.07097219-.40856212 1.47953431 0Z"/></svg>
  50.                                             </button>
  51.                                         </div>
  52.                                     </div>
  53.                                     <input
  54.                                         name="solutions"
  55.                                     >
  56.                                     <div class="flex flex-col filter-dropdown__list js-filter-list drop-shadow-xl">
  57.                                         {% for id, name in filters['solutions'] %}
  58.                                             <button class="filter-dropdown__option js-filter-option text-left" value="{{ id }}" {{ app.request.query.get('solutions') == id ? 'selected' : '' }}>{{ name }}</button>
  59.                                         {% endfor %}
  60.                                     </div>
  61.                                 </div>
  62.                                 <div data-filter="industries" class="filter-dropdown js-filter">
  63.                                     <div class="flex flex-row gap-8 items-center justify-between sm:justify-start">
  64.                                         <label data-base-label="{{ 'Industries' | trans }}" class="js-filter-label" for="industries">{{ 'Industries' | trans }}</label>
  65.                                         <div class="flex flex-row gap-4 pointer-events-none items-center">
  66.                                             <svg class="pointer-events-none select-open-arrow" xmlns="http://www.w3.org/2000/svg" width="16" height="9.42468697"><path fill="#323E48" fill-rule="evenodd" d="M15.65624442 7.3520215 8.9247854.38881541C8.68558505.14026701 8.3504987-4.8e-7 7.99960082-4.8e-7c-.34971019 0-.68446606.14012915-.92503804.38866442L.3428726 7.352109C.12004 7.5819731 0 7.8825387 0 8.1937897c0 .3429687.1462408.6715199.4108179.9068985l.11367.0902432c.509531.3590258 1.2271427.3021077 1.6687114-.1543865l5.80789478-6.00860086 5.80601078 6.00749926c.47506145.4925072 1.27101644.5211493 1.78259099.0650323.51947241-.4630657.5501348-1.2485897.06654857-1.7484541Z"/></svg>
  67.                                             <button class="js-filter-clear pointer-events-auto">
  68.                                                 <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path fill="#323E48" fill-rule="evenodd" d="M1.7859559.30642159 8 6.521 14.2140441.30642159c.4085621-.40856212 1.0709722-.40856212 1.4795343 0 .4085621.40856212.4085621 1.07097219 0 1.47953431L9.479 8l6.2145784 6.2140441c.4085621.4085621.4085621 1.0709722 0 1.4795343-.4085621.4085621-1.0709722.4085621-1.4795343 0L8 9.479l-6.2140441 6.2145784c-.40856212.4085621-1.0709722.4085621-1.47953431 0-.40856212-.4085621-.40856212-1.0709722 0-1.4795343L6.521 8 .30642159 1.7859559c-.40856212-.40856212-.40856212-1.0709722 0-1.47953431.40856212-.40856212 1.07097219-.40856212 1.47953431 0Z"/></svg>
  69.                                             </button>
  70.                                         </div>
  71.                                     </div>
  72.                                     <input
  73.                                         name="industries"
  74.                                     >
  75.                                     <div class="flex flex-col filter-dropdown__list js-filter-list drop-shadow-xl">
  76.                                         {% for id, name in filters['industries'] %}
  77.                                             <button class="filter-dropdown__option js-filter-option text-left" value="{{ id }}" {{ app.request.query.get('industries') == id ? 'selected' : '' }}>{{ name }}</button>
  78.                                         {% endfor %}
  79.                                     </div>
  80.                                 </div>
  81.                             </div>
  82.                         </form>
  83.                     </div>
  84.                 {% endif %}
  85.             </div>
  86.         </section>
  87.         <section class="bg-blue-200">
  88.         {% set items = pagination.getItems() %}
  89.         {% if items|length > 0 %}
  90.             <div class="container py-10 mx-auto md:py-20 ">
  91.                 <div class="grid grid-cols-12 gap-8 mb-20 lg:gap-y-16">
  92.                     {% for newsItem in items | slice(0,5) %}
  93.                         {% include 'includes/cards/insight.html.twig' with {
  94.                             item: newsItem,
  95.                             class: "md:col-span-6 lg:col-span-4",
  96.                         } %}
  97.                     {% endfor %}
  98.                     {% include 'includes/cards/cta.html.twig' with {
  99.                         class: "md:col-span-6 lg:col-span-4 mx-4 sm:mx-0",
  100.                     } %}
  101.                     {% for newsItem in items | slice(5, 9) %}
  102.                         {% include 'includes/cards/insight.html.twig' with {
  103.                             item: newsItem,
  104.                             class: "md:col-span-6 lg:col-span-4",
  105.                         } %}
  106.                     {% endfor %}
  107.                 </div>
  108.                 {% if pagination is defined %}
  109.                     <div class="container">
  110.                         {% include 'includes/pagination.html.twig' %}
  111.                     </div>
  112.                 {% endif %}
  113.             </div>
  114.         {% else %}
  115.             <div class="container py-10 mx-auto md:py-20">
  116.                 <p>{{ "Binnen de gekozen filters zijn helaas geen insights gevonden. Probeer het opnieuw."|trans }}</p>
  117.             </div>
  118.             </section>
  119.         {% endif %}
  120.     {% endblock %}
  121. {% endembed %}