src/StartPlatz/Bundle/AlphaBundle/Resources/views/Startup/_widget.startup.html.twig line 1

Open in your IDE?
  1. <div class="card card-startup"> {# container #}
  2.     {% set team = false %}
  3.     {% if attribute(teams,startup.teamId) is defined %}
  4.         {% set team = attribute(teams,startup.teamId) %}
  5.     {% endif %}
  6.     {# Anzeige einer Information danach mit
  7.         {{team ? team.name }}
  8.         oder
  9.         {% if team %}
  10.             {% if 'badgeRheinlandPitch' in team.tags %}show badge{% endif %}
  11.         {% endif %}
  12.     #}
  13.     {# UP-024: startplatz field removed - always use homepage route #}
  14.     {% set targetUrl = path('homepage_startup_single', {'slug': startup.id ~ '-' ~ startup.slug}) %}
  15.     <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" />
  16.     <div class="row m-0 p-0" style="width: 100%; height: 100%;">
  17.         <div class="m-0 p-0" style="
  18.         width: 50%;
  19.         height: 20rem;
  20.         flex-direction: column;
  21.         overflow: hidden;">
  22.             <a href="{{ targetUrl }}"> <div class="card-startup-logo p-3">
  23.             {% if startup.logoUrl %}
  24.                 <img src="{{ startup.logoUrl }}" alt="Logo {{ startup.name }}">
  25.             {% else %}
  26.                 <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
  27.                      class="bi bi-image-fill card-img-top d-block p-1 SvGtextColor" viewBox="0 0 16 16">
  28.                     <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"/>
  29.                 </svg>
  30.             {% endif %}
  31.             </div>
  32.             </a>
  33.         </div>
  34.         <div class="m-0 p-2" style="
  35.         width: 50%;
  36.         height: 20rem;
  37.         flex-direction: column;
  38.         overflow: hidden;">
  39.             <div class="card-name">
  40.                 <div class="oneLineEllipsis" title="{{ startup.name }}">
  41.                     {{ startup.name }}
  42.                 </div>
  43.             </div>
  44.             <div class="card-content">
  45.                 {% if team and ('badge-startplatz' in team.tags or 'badge-accelerator' in team.tags or 'badge-rheinland-pitch' in team.tags or 'badge-gruenderstipendium' in team.tags ) %}
  46.                         <div class="pt-1 inline">
  47.                            {#  <span class="material-symbols-outlined" style="color: #7ab800; font-size: 30px">
  48.                             workspace_premium
  49.                             </span>#}
  50.                             {% if 'badge-startplatz' in team.tags %}
  51.                                 <img class="startplatzBadgeSizeHomepage startplatzBadgePositionHomepage m-0 p-0" style="vertical-align: middle; object-fit:contain;"
  52.                                      src="https://res.cloudinary.com/startplatz/image/upload/v1635935633/logos/STARTPLATZ_Logos/STARTPLATZ_Logo_La%CC%88ufer_Rund_1.png">
  53.                             {% endif %}
  54.                             {% if 'badge-rheinland-pitch' in team.tags %}
  55.                                 <img class="startplatzBadgeSizeHomepage startplatzBadgePositionHomepage m-0 p-0" style="vertical-align: middle; object-fit:contain;"
  56.                                      src="https://res.cloudinary.com/startplatz/image/upload/v1678349347/rheinland-pitch/Logos/rheinlandpitch-logo-rund.png">
  57.                             {% endif %}
  58.                             {% if 'badge-gruenderstipendium' in team.tags %}
  59.                                 <img class="startplatzBadgeSizeHomepage startplatzBadgePositionHomepage m-0 p-0" style="vertical-align: middle; object-fit:contain;"
  60.                                      src="https://res.cloudinary.com/startplatz/image/upload/v1678959540/logos/gru%CC%88nderstipendium-logo-rund.png">
  61.                             {% endif %}
  62.                             {% if 'badge-accelerator' in team.tags %}
  63.                                 <img class="startplatzBadgeSizeHomepage startplatzBadgePositionHomepage m-0 p-0" style="vertical-align: middle; object-fit:contain;"
  64.                                      src="https://res.cloudinary.com/startplatz/image/upload/v1678959541/logos/accelerator-logo-rund.png">
  65.                             {% endif %}
  66.                         </div>
  67.                         <div class="general-line-clamp general-line-clamp-4">
  68.                         <p class="">{{ startup.oneSentencePitch|raw }}</p>
  69.                         </div>
  70.                 {% else %}
  71.                     <div class="general-line-clamp general-line-clamp-5">
  72.                         <p>{{ startup.oneSentencePitch|raw }}</p>
  73.                     </div>
  74.                 {% endif %}
  75.                 <div class="card-place">
  76.                     {% if startup.city %}
  77.                      <img src="https://res.cloudinary.com/startplatz/image/upload/v1662592361/Icons/Vector_2.png" alt="">
  78.                     {{ startup.city }}
  79.                     {% endif %}
  80.                 </div>
  81.                 <div class="card-link">
  82.                     <img src="https://res.cloudinary.com/startplatz/image/upload/v1662592847/Icons/Vector_1.png" alt="">
  83.                     <a href="{{ targetUrl }}">{% if lang== 'DE' %} kennenlernen {% else %} Get to know them {% endif %}</a>
  84.                 </div>
  85.             </div>
  86.         </div>
  87.     </div>
  88. </div>