templates/front/slices/slice_focus_job.html.twig line 1

Open in your IDE?
  1. <section class="slice focus-job">
  2.     <div class="fluid-grid">
  3.         <div class="row">
  4.             <div class="col-12 lg-col-4 mb-8 lg:mb-0">
  5.                 <h2 class="title title--XL text-violet mb-6 md:mb-8">
  6.                     {% if slice.title is defined and slice.title is not null %}
  7.                         {{ slice.title|highlight_word|raw }}
  8.                     {% endif %}
  9.                 </h2>
  10.                 <div class="paragraph paragraph--M-bis focus-job__desc">
  11.                     {% if slice.description is defined and slice.description is not null %}
  12.                         {{ slice.description|raw }}
  13.                     {% endif %}
  14.                 </div>
  15.                 <div class="focus-job__square mt-4">
  16.                     <img width="252" heght="37" class="mb-8 lazyload" data-src="/assets/front/logo-CGF-campus.png"
  17.                          alt="CGF Campus"/>
  18.                     <p class="text-22 md:text-24 md:pr-7 leading-tight font-bold">Des formations sur mesure pour les <span class="text-orange">professionnels du commerce de gros</span></p>
  19.                     <a href="https://www.cgicampus.fr" target="_blank" rel="nofollow" class=" button button--arrow button--rounded button--violet-dark mt-6">
  20.                         <span class="font-weight-bold">Découvrez les formations</span>
  21.                         <svg width="12" height="12" class="picto icon ml-2 flex-shrink-0">
  22.                             <use href="#icon-arrow" xlink:href="#icon-arrow"></use>
  23.                         </svg>
  24.                     </a>
  25.                 </div>
  26.             </div>
  27.             {% if slice.firstPortrait is defined and slice.firstPortrait is not null %}
  28.                 {% set firstportrait = slice.firstPortrait %}
  29.                 {% set secondportrait = slice.secondPortrait %}
  30.             {% else %}
  31.                 {% set firstportrait = find_2_last_portraits()[0] %}
  32.                 {% set secondportrait = find_2_last_portraits()[1] %}
  33.             {% endif %}
  34.             <div class="col-12 md-col-6 lg-col-4 lg:pt-40 focus-job__center">
  35.                 {% include 'front/partials/cards/portrait.html.twig' with {portrait: firstportrait, portraitProperties: firstportrait.contentProperties} %}
  36.             </div>
  37.             <div class="col-12 md-col-6 lg-col-4 pt-6 md:pt-0 lg:pt-4">
  38.                 {% include 'front/partials/cards/portrait.html.twig' with {portrait: secondportrait, portraitProperties: secondportrait.contentProperties} %}
  39.             </div>
  40.         </div>
  41.     </div>
  42. </section>