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.     {% if startup.startplatz == 'extern' %}
  14.         {% if visibility == 'public' %}
  15.             {% set targetUrl = path('homepage_startup_single', {'slug': startup.id ~ '-' ~ startup.slug}) %}
  16.         {% else %}
  17.             {% set targetUrl = path('x_community_startup_single', {'id':startup.id, 'slug': startup.slug}) %}
  18.         {% endif %}
  19.     {% else %}
  20.         {% set targetUrl = path('homepage_startup_single', {'slug': startup.id ~ '-' ~ startup.slug}) %}
  21.     {% endif %}
  22.     <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" />
  23.     <div class="row m-0 p-0" style="width: 100%; height: 100%;">
  24.         <div class="m-0 p-0" style="
  25.         width: 50%;
  26.         height: 20rem;
  27.         flex-direction: column;
  28.         overflow: hidden;">
  29.             <a href="{{ targetUrl }}"> <div class="card-startup-logo p-3">
  30.             {% if startup.logoUrl %}
  31.                 <img src="{{ startup.logoUrl }}" alt="Logo {{ startup.name }}">
  32.             {% else %}
  33.                 <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
  34.                      class="bi bi-image-fill card-img-top d-block p-1 SvGtextColor" viewBox="0 0 16 16">
  35.                     <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"/>
  36.                 </svg>
  37.             {% endif %}
  38.             </div>
  39.             </a>
  40.         </div>
  41.         <div class="m-0 p-2" style="
  42.         width: 50%;
  43.         height: 20rem;
  44.         flex-direction: column;
  45.         overflow: hidden;">
  46.             <div class="card-name">
  47.                 <div class="oneLineEllipsis" title="{{ startup.name }}">
  48.                     {{ startup.name }}
  49.                 </div>
  50.             </div>
  51.             <div class="card-content">
  52.                 {% 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 ) %}
  53.                         <div class="pt-1 inline">
  54.                            {#  <span class="material-symbols-outlined" style="color: #7ab800; font-size: 30px">
  55.                             workspace_premium
  56.                             </span>#}
  57.                             {% if 'badge-startplatz' in team.tags %}
  58.                                 <img class="startplatzBadgeSizeHomepage startplatzBadgePositionHomepage m-0 p-0" style="vertical-align: middle; object-fit:contain;"
  59.                                      src="https://res.cloudinary.com/startplatz/image/upload/v1635935633/logos/STARTPLATZ_Logos/STARTPLATZ_Logo_La%CC%88ufer_Rund_1.png">
  60.                             {% endif %}
  61.                             {% if 'badge-rheinland-pitch' in team.tags %}
  62.                                 <img class="startplatzBadgeSizeHomepage startplatzBadgePositionHomepage m-0 p-0" style="vertical-align: middle; object-fit:contain;"
  63.                                      src="https://res.cloudinary.com/startplatz/image/upload/v1678349347/rheinland-pitch/Logos/rheinlandpitch-logo-rund.png">
  64.                             {% endif %}
  65.                             {% if 'badge-gruenderstipendium' in team.tags %}
  66.                                 <img class="startplatzBadgeSizeHomepage startplatzBadgePositionHomepage m-0 p-0" style="vertical-align: middle; object-fit:contain;"
  67.                                      src="https://res.cloudinary.com/startplatz/image/upload/v1678959540/logos/gru%CC%88nderstipendium-logo-rund.png">
  68.                             {% endif %}
  69.                             {% if 'badge-accelerator' in team.tags %}
  70.                                 <img class="startplatzBadgeSizeHomepage startplatzBadgePositionHomepage m-0 p-0" style="vertical-align: middle; object-fit:contain;"
  71.                                      src="https://res.cloudinary.com/startplatz/image/upload/v1678959541/logos/accelerator-logo-rund.png">
  72.                             {% endif %}
  73.                         </div>
  74.                         <div class="general-line-clamp general-line-clamp-4">
  75.                         <p class="">{{ startup.oneSentencePitch|raw }}</p>
  76.                         </div>
  77.                 {% else %}
  78.                     <div class="general-line-clamp general-line-clamp-5">
  79.                         <p>{{ startup.oneSentencePitch|raw }}</p>
  80.                     </div>
  81.                 {% endif %}
  82.                 <div class="card-place">
  83.                     {% if startup.city %}
  84.                      <img src="https://res.cloudinary.com/startplatz/image/upload/v1662592361/Icons/Vector_2.png" alt="">
  85.                     {{ startup.city }}
  86.                     {% endif %}
  87.                 </div>
  88.                 <div class="card-link">
  89.                     <img src="https://res.cloudinary.com/startplatz/image/upload/v1662592847/Icons/Vector_1.png" alt="">
  90.                     <a href="{{ targetUrl }}">{% if lang== 'DE' %} kennenlernen {% else %} Get to know them {% endif %}</a>
  91.                 </div>
  92.             </div>
  93.         </div>
  94.     </div>
  95. </div>