templates/gallery/index.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}Hello IndexController!{% endblock %}
  3. {% block nav %}
  4.     <header class="header-nav menu_style_home_one style2 navbar-scrolltofixed stricky main-menu">
  5.  
  6. {% endblock %}
  7. {% block stylesheets %}
  8.     <style>
  9.     .gallery_item{
  10.         margin-bottom: 30px;
  11.         position: relative;
  12.     }
  13.     .gallery_item .gallery_overlay{
  14.         background-color: rgba(255, 90, 95, .8);
  15.         border-radius: 5px;
  16.         bottom: 0;
  17.         left: 0;
  18.         position: absolute;
  19.         right: 0;
  20.         top: 0;
  21.         width: 100%;
  22.         -webkit-transform: scale(0);
  23.         -moz-transform: scale(0);
  24.         -o-transform: scale(0);
  25.         -ms-transform: scale(0);
  26.         transform: scale(0);
  27.         -webkit-transition: all 0.3s ease 0s;
  28.         -moz-transition: all 0.3s ease 0s;
  29.         -o-transition: all 0.3s ease 0s;
  30.         transition: all 0.3s ease 0s;
  31.     }
  32.     .gallery_item:hover .gallery_overlay{
  33.         -webkit-transform: scale(1.0);
  34.         -moz-transform: scale(1.0);
  35.         -o-transform: scale(1.0);
  36.         -ms-transform: scale(1.0);
  37.         transform: scale(1.0);
  38.     }
  39.     .gallery_item .gallery_overlay .icon{
  40.         bottom: 0;
  41.         left: 0;
  42.         position: absolute;
  43.         right: 0;
  44.         top: 35%;
  45.         text-align: center;
  46.     }
  47.     .gallery_item .gallery_overlay .icon span{
  48.         color: #ffffff;
  49.         font-size: 50px;
  50.     }
  51. .inner_page_breadcrumb {
  52.   background-image: url({{ asset('https://{{image.domaine}}/uploads/' ~ image) | imagine_filter('gallerieindex') }});
  53.   background-repeat: no-repeat;
  54.   height: 410px;
  55.   position: relative; 
  56. }
  57. </style>
  58.  
  59. {% endblock %}
  60.   {% block logo %}
  61.                                     {{ include('include/logopage.html.twig') }} 
  62. {% endblock %}
  63.  
  64. {% block body %}
  65. <!-- Inner Page Breadcrumb -->
  66.     <section class="inner_page_breadcrumb">
  67.         <div class="container">
  68.             <div class="row">
  69.                 <div class="col-xl-6">
  70.                     <div class="breadcrumb_content">
  71.                         <ol class="breadcrumb">
  72.                             <li class="breadcrumb-item"><a href="#">Home</a></li>
  73.                             <li class="breadcrumb-item active" aria-current="page">Gallery</li>
  74.                         </ol>
  75.                         <h1 class="breadcrumb_title"> {{ titre }}   </h1>
  76.                     </div>
  77.                 </div>
  78.             </div>
  79.         </div>
  80.     </section>
  81.     <!-- About Text Content -->
  82.     <section class="about-section pb30">
  83.         <div class="container">
  84.             <div class="row">
  85.  {% for image in images %}
  86.                 <div class="col-sm-6 col-md-6 col-lg-4">
  87.                     <div class="gallery_item">
  88.                         <img class="img-fluid img-circle-rounded w100" src="https://{{image.domaine}}/uploads/{{ image.image }}" alt="fp1.jpg">
  89.                         <div class="gallery_overlay"><a class="icon popup-img" href="https://{{image.domaine}}/uploads/{{ image.image }}"><span class="flaticon-zoom-in"></span></a></div>
  90.                     </div>
  91.                 </div>
  92.    {% endfor %}
  93.             </div>
  94.         </div>
  95.     </section>
  96.  
  97. {% endblock %}