templates/rea_studycase/index.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="fr">
  3.     <head>
  4.         <title>Etude de cas - Equinoxes - Agence de communication à Reims & Soissons</title>
  5.         <meta charset="utf-8">
  6.         <meta name="viewport" content="width=device-width">
  7.         <link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
  8.         <script src="https://use.fontawesome.com/57fd2a2e70.js"></script>
  9.         <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
  10.         {% block stylesheets %}
  11.             <link href="{{ asset('assets/css/normalize.css') }}" rel="stylesheet"/>
  12.             <link href="{{ asset('assets/css/style.css') }}" rel="stylesheet"/>
  13.             <link href="{{ asset('assets/css/lightbox.min.css') }}" rel="stylesheet"/>
  14.         {% endblock %}
  15.         {% block javascripts %}
  16.             <script src="{{ asset('assets/js/isotope.pkdg.min.js') }}"></script>
  17.         {% endblock %}
  18.     </head>
  19.     <body
  20.         id="digital">
  21.         {# SIDEBAR #}
  22.         <header>
  23.             <div class="entry-logo">
  24.                 {# <a href="https://devreferences.equinoxes.fr/"><img src="/assets/img/logo.png"></a> #}
  25.                 <a href="{{ path('home') }}"><img src="/assets/img/logo.png"></a>
  26.             </div>
  27.             {# <div class="entry-filters">
  28.                             <button class="open">Filtrer par
  29.                                 <i class="fa fa-chevron-right"></i>
  30.                             </a>
  31.                         </div> #}
  32.             {# FILTRES #}
  33.             {# <div class="filter">
  34.                 <div class="button-group filter-button-group">
  35.                     <button data-filter="" class="filtre active">TOUT</button>
  36.                     {% for categorie in categories %}
  37.                         <button data-filter=".{{ categorie.alias }}" class="filtre">{{ categorie.nom }}</button>
  38.                     {% endfor %}
  39.                 </div> #}
  40.                 <!-- /button-group -->
  41.             </div>
  42.             <div class="entry-copyright">
  43.                 <small>&copy; 2021 - Equinoxes</small>
  44.             </div>
  45.         </header>
  46.         <main>
  47.             <section id="wrap-main">
  48.                 <div class="grid web">
  49.                     <div class="grid-sizer">
  50.                         {% for realisation in realisations %}
  51.                             {% set studycaseCategories = "" %}
  52.                             {% set studycaseCategoriesNom = "" %}
  53.                             {% for categorie in realisation.categories %}
  54.                                 {% if loop.last %}
  55.                                     {% set studycaseCategories = studycaseCategories ~ categorie.alias %}
  56.                                     {% set studycaseCategoriesNom = studycaseCategoriesNom ~ categorie.nom %}
  57.                                 {% else %}
  58.                                     {% set studycaseCategories = studycaseCategories ~ categorie.alias ~ " " %}
  59.                                     {% set studycaseCategoriesNom = studycaseCategoriesNom ~ categorie.nom ~ ", "%}
  60.                                 {% endif %}
  61.                             {% endfor %}
  62.                             <a href= "{{ asset('/assets/img/'~realisation.pdf) }}" class="grid-item {{ studycaseCategories }}" target="_blank" title="Site internet de {{ realisation.titre }}">
  63.                                 <div class="item-container">
  64.                                     <div class="overlay">
  65.                                         <h2>{{ studycaseCategoriesNom }}</h2>
  66.                                         <h4>{{ realisation.titre }}</h4>
  67.                                     </div>
  68.                                     <div class="thumbnail">
  69.                                         <div>
  70.                                             {# <img src="{{ realisation.thumbnail }}" alt="{{ realisation.titre }}"> #}
  71.                                             <img src="{{ asset('/assets/img/'~realisation.thumbnail) }}" alt="{{ realisation.titre }}">
  72.                                         </div>
  73.                                     </div>
  74.                                 </div>
  75.                             </a>
  76.                         {% endfor %}
  77.                     </div>
  78.                 </div>
  79.             </section>
  80.         </main>
  81.     </body>
  82.     {% block script %}
  83.         <script type="text/javascript">
  84.             $('.open').click(function () {
  85. $('body').addClass('filtre-open');
  86. $('.filter').css('visibility', 'visible');
  87. $('.filter').css('opacity', '1');
  88. });
  89. $('.filter').click(function () {
  90. $('body').removeClass('filtre-open');
  91. $(this).css('visibility', 'hidden');
  92. $(this).css('opacity', '0');
  93. });
  94. $('.filter .filtre').click(function () {
  95. $('.filter .filtre').removeClass('active');
  96. $(this).addClass('active');
  97. });
  98.         </script>
  99.         <script type="text/javascript" src="/assets/js/script.js" async></script>
  100.     {% endblock %}
  101. </html>