templates/achievement/show.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}Réalisation - RénovAtHome{% endblock %}
  3. {% block stylesheets %}
  4.     {{ parent() }}
  5.     <link rel="stylesheet" href="{{ asset('assets/styles/realisation.css')}}">
  6. {% endblock %}
  7. {% block banner %}{% endblock %}
  8. {% block main %}
  9.     <main>
  10.         <div class="container-real-show">
  11.             <div class="last-real">
  12.                 {% if realisation.avant != "" and realisation.apres != "" %}
  13.                     <div class="slider">
  14.                         <div class="slider__before" style="background-image:url({{ asset('uploads/realisations/'~realisation.avant) | imagine_filter('middle')}});"></div>
  15.                         <div class="slider__separator">
  16.                             <div class="bar__separator"></div>
  17.                             <div class="btn__separator">
  18.                                 <span class="btn__separator_left_arrow"></span>
  19.                                 <span class="btn__separator_right_arrow"></span>
  20.                             </div>
  21.                             <div class="bar__separator"></div>
  22.                         </div>
  23.                         <div class="slider__after" style="background-image:url({{ asset('uploads/realisations/'~realisation.apres) | imagine_filter('middle')}});"></div>
  24.                         <input class="slider__range" type="range" min="2" max="98" value="50"/>
  25.                     </div>
  26.                     {% else %}
  27.                     <img src="{{ asset('uploads/realisations/'~realisation.cover) | imagine_filter('middle')}}" alt="photo de couverture de la réalisation" class="img-place-holder">
  28.                     {% endif %}
  29.                 <div class="desc-real">
  30.                     <div class="titre">
  31.                         <div class="deco-sous-titre"></div>
  32.                         <span class="sous-titre">{{realisation.categorie.nom}}</span>
  33.                     </div>
  34.                     <h2 class="titre-real">{{ realisation.nom }}</h2>
  35.                     <p>{{ realisation.description |raw }}</p>
  36.                     <p>
  37.                         <b>Solution apportée par nos équipes :</b><br>
  38.                         {{ realisation.taches |raw}}
  39.                     </p>
  40.                 </div>
  41.             </div>
  42.             {%  if realisation.photos[0] is defined %}
  43.                 <div class="galerie-real">
  44.                     <h2 class="titre-deco-dessous">Photo</h2>
  45.                     <div class="deco-sous-titre"></div>
  46.                     <div id="popup-bg">
  47.                         <span id="previous"><i class="fa-solid fa-angle-left"></i></span>
  48.                         <div id="popup-content">
  49.                             <img id="popup-img" src="#" alt="Rénovation effectué par RenvoAtHome" />
  50.                         </div>
  51.                         <span id="next"><i class="fa-solid fa-angle-right"></i></span>
  52.                     </div>
  53.                     <div class="photo-real">
  54.                         {% for photo in realisation.photos |sort((a, b) => a.id <= b.id) %}
  55.                             <div class="item-galerie">
  56.                                 <img src="{{ asset('uploads/realisations/'~photo.image) | imagine_filter('miniature')}}" alt="Rénovation effectué par RenvoAtHome" class="photo-galerie" id="{{photo.image}}">
  57.                             </div>
  58.                         {% endfor %}
  59.                     </div>
  60.                 </div>
  61.             {% endif %}
  62.             {%  if realisation.temoignages[0] is defined %}
  63.                 <div class="testimonial-real">
  64.                     <div class="title-testimonial">
  65.                         <span>Témoignage du client</span>
  66.                         <div class="deco-sous-titre"></div>
  67.                     </div>
  68.                     {% if realisation.temoignages[0].video != null %}
  69.                         <div class="commentaire-video" >
  70.                             <div class="youtube_player" videoID="{{ realisation.temoignages[0].video }}" rel="rel=1" controls="controls=1" showinfo="showinfo=0" autoplay="autoplay=0"  loop="loop=0" loading="loading=1"></div>
  71.                         </div>
  72.                     {% else %}
  73.                         <img src="{{ asset('uploads/temoignages/'~realisation.temoignages[0].photo) | imagine_filter('logo')}}" alt="Rénovation effectué par RenvoAtHome" class="img-rounded">
  74.                         <span class="name-client">{{ realisation.temoignages[0].client }}</span>
  75.                         <div class="commentaire" >
  76.                             {{ realisation.temoignages[0].commentaire | raw }}
  77.                         </div>
  78.                     {% endif %}
  79.                 </div>
  80.             {% endif %}
  81.             <div class="titre">
  82.                 <div class="deco-sous-titre"></div>
  83.                 <span class="sous-titre">Nos réalisations</span>
  84.             </div>
  85.             <h2 class="titre-other-real">Nos autres réalisations</h2>
  86.             <div class="other-real">
  87.                 {% for other in others |sort((a, b) => a.id <= b.id) %}
  88.                     <div class="card-real {{ other.categorie.nom|lower|replace({' ': '-'}) }}">
  89.                         <a class="titre-evenement" href="{{ path('realisation', { 'slug' : other.slug })}}">
  90.                             <div class="layer">
  91.                                 <img src="{{ asset('uploads/realisations/'~other.cover) | imagine_filter('miniature')}}" alt="{{ other.nom }}">
  92.                                 <div class="overlay">
  93.                                     <div class="text"><span>EN DÉCOUVRIR PLUS <i class="fa-solid fa-arrow-right"></i></span></div>
  94.                                 </div>
  95.                             </div>
  96.                             <span class="card-real-category">{{ other.categorie.nom }}</span>
  97.                             <h3 class="card-real-title">{{ other.nom }}</h3>
  98.                         </a>
  99.                     </div>
  100.                 {% endfor %}
  101.             </div>
  102.         </div>
  103.     </main>
  104. {% endblock %}
  105. {% block contact %}{% endblock %}
  106. {% block footer %}{% endblock %}
  107. {% block script %}
  108.     {{ parent() }}
  109.     <script src="{{ asset('assets/js/main.js')}}"></script>
  110.     <script src="{{ asset('assets/js/realisations.js')}}"></script>
  111. {% endblock %}