templates/front/landingPostsList.html.twig line 1

Open in your IDE?
  1. <section class="bgp-center bgs-cover w-100 pat-100 nztydk"
  2.          style="background-image:url({{ asset('assets/img/labgpos.png')|imagine_filter('large') }})">
  3.     <div class="container container-post-lp">
  4.         <div class="d-sm-flex justify-content-between justify-content-center-sm align-items-center mab-50-sm mab-25">
  5.             <div class="d-flex cg-20 justify-content-center-sm align-items-center">
  6.                 <img src="{{ asset('assets/img/catmid.svg') }}" alt="Facomia"
  7.                      class="wi-50"/>
  8.                 <h2 class="ljtsnw mab-0">{{ "landing_posts_list.title"|trans }}</h2>
  9.             </div>
  10.             <a href="{{ path('front_posts') }}" class="btn btn2 d-none d-md-inline-block position-relative l-45">
  11.                 <div class="btn-text">
  12.                     {{ "landing_posts_list.btn"|trans }}
  13.                 </div>
  14.             </a>
  15.         </div>
  16.         {% for key, post in posts|slice(0, 1) %}
  17.             <div class="d-sm-flex mab-30-sm mab-20 align-items-stretch position-relative r-30-sm link-post" data-link>
  18.                 <div class="col-sm-5 overflow-hidden he-280 img-post-lan pax-0">
  19.                     <div class="bgp-center h-100 w-100 bgs-cover  "
  20.                          style="background-image:url({{ asset(vich_uploader_asset(post, 'postFile')) | imagine_filter('medium') }})">
  21.                     </div>
  22.                 </div>
  23.                 <div class="col-sm-7 mat-0-sm mat-20 text-post-lan bgc-white pay-40-lg pay-20 pax-60-lg pax-30-md pax-10  dupore position-relative d-flex align-items-center pax-0" data-link>
  24.                     <div class="position-relative zi-99">
  25.                         <h3 class="cbbnln mab-10">{{ post.title }}</h3>
  26.                         <div class="kwgxkp mab-30">
  27.                             {{ post.introRaw|length > 50 ? post.introRaw|slice(0, 50) ~ '...' : post.introRaw }}
  28.                         </div>
  29.                         <div>
  30.                             <a href="{{ path('front_post', {'slug':post.slug}) }}" class="hgwsxs">
  31.                                 <i class="fa fa-arrow-right mar-5"></i>
  32.                                 {{ "landing_posts_list.post.btn"|trans }}
  33.                             </a>
  34.                         </div>
  35.                     </div>
  36.                 </div>
  37.             </div>
  38.         {% endfor %}
  39.         <div class="text-center">
  40.             <a href="{{ path('front_posts') }}" class="btn btn2 d-inline-block d-md-none position-relative l-45-md">
  41.                 <div class="btn-text">
  42.                     {{ "landing_posts_list.btn"|trans }}
  43.                 </div>
  44.             </a>
  45.         </div>
  46.     </div>
  47. </section>