src/StartPlatz/Bundle/AlphaBundle/Resources/views/Benefit/StartupTools__widget.twig line 1

Open in your IDE?
  1. {# this page is related to: dev.startplatz.de/x/startup-tools/home#}
  2. <!-- startup tool -->
  3. <div class="card-general card-general-hover my-3 mx-auto">
  4.     <a class="text-decoration-none text-dark" href="{{ path('x_startup-tools_single', { 'id': item.id, 'slug': item.slug}) }}">
  5.         <div class="card-general-header-image">
  6.             {% if item.imageLink != null %}
  7.                 <img src="{{ item.imageLink }}" class="card-img-top p-2" alt=" ">
  8.             {% else %}
  9.                 <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
  10.                      class="bi bi-image-fill card-img-top d-block p-1 SvGtextColor" viewBox="0 0 16 16">
  11.                     <path d="M.002 3a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-12a2 2 0 0 1-2-2V3zm1 9v1a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V9.5l-3.777-1.947a.5.5 0 0 0-.577.093l-3.71 3.71-2.66-1.772a.5.5 0 0 0-.63.062L1.002 12zm5-6.5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0z"/>
  12.                 </svg>
  13.             {%  endif %}
  14.         </div>
  15.         <hr class="card-general-seperator p-0 m-0">
  16.         <div class="card-general-body p-3">
  17.             <p class="pb-2 m-0">
  18.                             <span class="rounded-pill rounded-pill-grey px-2 mr-1">
  19.                                 #team
  20.                             </span>
  21.                 {{ item.title }}
  22.             </p>
  23.             <p class="pb-2 m-0">
  24.                             <span class="rounded-pill rounded-pill-grey px-2 mr-1">
  25.                                 #industry
  26.                             </span>
  27.                 {%  if item.category != null %}
  28.                     {% set itemTag = item.category|replace ({'#':''})|replace ( {'International':'int.'}) %}
  29.                     {% if itemTag|length > 20 %}
  30.                         {% set iTag = itemTag [0:20] %}
  31.                         {{ pTag ~'...' }}
  32.                     {% else %}
  33.                         {{ itemTag }}
  34.                     {% endif %}
  35.                 {% else %}
  36.                     -
  37.                 {% endif %}
  38.             </p>
  39.             <p class="pt-2 m-0 line-clamp-4">
  40.                             <span class="rounded-pill rounded-pill-green px-2 mr-1">
  41.                                 #tool
  42.                             </span>
  43.                 {{ item.teaser|striptags|raw }}
  44.             </p>
  45.         </div>
  46.     </a>
  47. </div>