templates/Default/index.html.twig line 1

Open in your IDE?
  1. {% extends 'Default/base.html.twig' %}
  2. {% set menu = 'home' %}
  3. {% set home = true %}
  4. {% import "Default/macros.html.twig" as macros %}
  5. {% block banner %}
  6. <div id="banner" class='relative w100 {{desktop("htop-in")}} {{mobile("htop-in")}}'>
  7.     <figure class='absolute fill top left w100 hoverflow {{desktop("")}} {{mobile("")}}'>
  8.         <img src='{{asset(banner.banner)}}' class='cover'>
  9.     </figure>
  10.     <i class="block gradient-banner absolute fill top left {{desktop('')}}" style=""></i>
  11.     <div class="w100 flex col center relative gpadding {{desktop("top-20-in")}} {{mobile("")}}">
  12.         <div class="relative flex col left hpadding {{desktop('gpadding')}}">
  13.             <div class="flex row left">
  14.                 {% for o in 1..3 %}
  15.                 <i class="padding-6 bg-white right-15"></i>
  16.                 {% endfor %}
  17.             </div>
  18.             <div class="{{desktop('bottom-80-in')}}">
  19.                 <h2 class="white h1 extrabold anim-display anim-from-bottom opened transition-3s {{desktop('vt-60')}}{{mobile('vt-20')}}">
  20.                     {{banner.title|replace({" **":" <strong class='warning extrabold'>","'**":"'<strong class='warning extrabold'>","**":"</strong>"})|raw}}
  21.                 </h2>
  22.                 <a href="{{banner.link}}" class="special bg-warning upper {{desktop('vt-25-in hz-30-in')}} {{mobile('vt-8-in hz-20-in')}}">{{banner.btnTitle}}</a>
  23.             </div>
  24.         </div>
  25.     </div>
  26.     {# <div class="absolute w100 ybottom-80 left">
  27.         <div class="flex row center">
  28.             <a href="#home" class="os-scroll relative icon contain">
  29.                 <img src="{{asset('icons/scroll-down.png')}}" class="contain">
  30.             </a>
  31.         </div>
  32.     </div> #}
  33. </div>
  34. {% endblock %}
  35. {% block content %}
  36. <div id="home" class="relative flex row gpadding">
  37.     <div class="relative bg-success top-20-in gpadding {{desktop('flex row bottom-80-in')}}{{mobile('flex col bottom-30-in')}}">
  38.         <i class="bg-success absolute left w100 ybottom-100 {{desktop('vt-30-in')}}{{mobile('vt-5-in')}}"></i>
  39.         <figure class="relative {{desktop('third')}}{{mobile('mrect')}}">
  40.             <img src="{{asset('images/batiment.jpg')}}" class="cover">
  41.         </figure>
  42.         <div class="flex col left {{desktop('left-80 left-20-in')}}{{mobile('top-20')}}">
  43.             <h2 class="warning">L'EFPJ en bref</h2>
  44.             <div class="article h6 white {{desktop('vt-30')}}{{mobile('vt-10')}}">
  45.                 <p class="">
  46.                     L'École de Formation des Professions Judiciaires est un un établissement public à caractère social et scientifique placé sous la tutelle du Ministère de la Justice et de la Législation. Elle résulte de la volonté du Gouvernement de garantir une formation professionnalisante.
  47.                 </p>
  48.                 <p class="">
  49.                     Elle prend donc en charge la formation du personnel judiciaire de l’Ecole Nationale d’Administration et de la Magistrature (ENAM).
  50.                 </p>
  51.             </div>
  52.             <a href="" class="special bg-warning upper medium {{desktop('vt-25-in hz-30-in')}} {{mobile('vt-8-in hz-20-in')}}">En savoir plus</a>
  53.         </div>
  54.     </div>
  55. </div>
  56. <div class='relative gpadding {{desktop("top-80-in")}} {{mobile("top-30-in")}}'>
  57.     <h2 class="h1 special extrabold left-30-in lh-1">Les formations</h2>
  58.     <div class="flex row space wrap {{desktop("vt-30-in top-30")}}{{mobile('vt-15-in')}}">
  59.         {% for o in servicesCats %}
  60.         <div class="formation relative flex col left {{desktop('half-40')}}{{mobile('vt-10 w100 mrect')}}">
  61.             <figure class="absolute fill">
  62.                 <img src="{{asset(os_param('banner'))}}" class="cover">
  63.             </figure>
  64.             <i class="absolute mask fill top left"></i>
  65.             <div class="absolute w100 bottom left {{desktop('half left-80-in vt-60-in')}}{{mobile('w100 vt-25-in hz-25-in')}}">
  66.                 <div class="flex col left white">
  67.                     <h3 class="extrabold {{desktop('bottom-80')}}{{mobile('bottom-25')}}">{{o.label}}</h3>
  68.                     <a href="{{path('formations-cat',{slug:o.slug})}}" class="special-alt border border-white upper medium {{desktop('vt-25-in hz-30-in')}}{{mobile('vt-10-in hz-20-in')}}">Découvrir</a>
  69.                 </div>
  70.             </div>
  71.         </div>
  72.         {% endfor %}
  73.     </div>
  74. </div>
  75. {#
  76. <div class='relative gpadding {{desktop("top-80-in")}} {{mobile("top-30-in")}}'>
  77.     <h2 class="h1 special extrabold left-30-in lh-1">Nos valeurs</h2>
  78.     <div class="flex row space wrap {{desktop('vt-60-in')}}">
  79.         {% for i in 1..4 %}
  80.         <div class="value relative hpadding flex col center {{desktop('quarter-20')}}{{mobile('w100 vt-10')}}">
  81.             <figure class="absolute fill top left">
  82.                 <img src="{{asset(os_param('banner'))}}" class="cover">
  83.             </figure>
  84.             <i class="gradient-banner absolute fill top left"></i>
  85.             <div class="title absolute top left fill filter-white" style="background-image: url('{{asset(os_param('banner'))}}');">
  86.                 <div class="fill flex col middle center text-center">
  87.                     <h3 class="extrabold">Fraternité</h3>
  88.                 </div>
  89.             </div>
  90.         </div>
  91.         {% endfor %}
  92.     </div>
  93. </div>
  94. #}
  95. <div class='bg-warning relative gpadding {{desktop("top-80-in")}} {{mobile("top-30-in top-20")}}'>
  96.     <div class="flex row space middle">
  97.         <h2 class="h1 special extrabold left-30-in lh-1">Les dernières<br>actualités</h2>
  98.         <a href="{{path('articles')}}" class="flex row middle special bg-white upper medium {{desktop('vt-25-in hz-30-in')}} {{mobile('vt-8-in hz-20-in')}}">
  99.             <span>Toutes les actualités</span>
  100.             <i class="relative icon min"><img src="{{asset('icons/arrow-right-up.png')}}" class="wauto"></i>
  101.         </a>
  102.     </div>
  103.     <div class="flex row space wrap vt-20-in">
  104.         {% for o in articles %}
  105.         {{macros.article(o)}}
  106.         {% endfor %}
  107.     </div>
  108. </div>
  109. <div class='bg-warning relative gpadding {{desktop("flex row space vt-80-in")}} {{mobile("top-10-in bottom-30-in")}}'>
  110.     <div class="relative flex col left {{desktop('half-20')}}{{mobile('w100 mrect vt-15')}}">
  111.         <figure class="absolute fill">
  112.             <img src="{{asset(os_param('banner'))}}" class="cover">
  113.         </figure>
  114.         <i class="absolute mask fill top left"></i>
  115.         <div class="relative w100 {{desktop('hz-40-in vt-40-in')}}{{mobile('flex col space vt-25-in hz-25-in')}}">
  116.             <i></i>
  117.             <div class="flex col left white">
  118.                 <h2 class="extrabold">Les colloques</h2>
  119.                 <p class="{{desktop('top-10 bottom-30')}}{{mobile('top-5 bottom-10')}}">
  120.                     Retrouvez toutes les colloques organisées par l'EFPJ
  121.                 </p>
  122.                 <a href="{{path('events')}}" class="special-alt border border-white upper medium {{desktop('vt-25-in hz-30-in')}}{{mobile('vt-10-in hz-20-in')}}">Parcourir</a>
  123.             </div>
  124.         </div>
  125.     </div>
  126.     <div class="relative flex col left {{desktop('half-20')}}{{mobile('w100 msquare mrect vt-15')}}">
  127.         <figure class="absolute fill">
  128.             <img src="{{asset(os_param('banner'))}}" class="cover">
  129.         </figure>
  130.         <i class="absolute mask fill top left"></i>
  131.         <div class="relative w100 {{desktop('hz-40-in vt-40-in')}}{{mobile('vt-25-in hz-25-in')}}">
  132.             <div class="flex col left white">
  133.                 <h2 class="extrabold">Les professions</h2>
  134.                 <p class="{{desktop('top-10 bottom-30')}}{{mobile('top-5 bottom-10')}}">
  135.                     Découvrez les professions liées à nos formations
  136.                 </p>
  137.                 <a href="{{path('professions')}}" class="special-alt border border-white upper medium {{desktop('vt-25-in hz-30-in')}}{{mobile('vt-10-in hz-20-in')}}">Parcourir</a>
  138.             </div>
  139.         </div>
  140.     </div>
  141. </div>
  142. {% endblock content %}