templates/FrontBundle/Page/le-versailles.html.twig line 1

Open in your IDE?
  1. {% extends 'FrontBundle/layout.html.twig' %}
  2. {% block title %}{{ app_sitename }} - {{ page.metaTitle }}{% endblock %}
  3. {% block description %}{{ page.metaDescription }}{% endblock %}
  4. {% block extra_class %}native{% endblock %}
  5. {# {% block menu_min %}200{% endblock %} #}
  6. {% block menu_max %}2252{% endblock %}
  7. {% block sub_header %}
  8.     <div class="sub-header">
  9.     <ul>
  10.         <li><a href="/{{app.request.locale }}/le-majestic">Le Majestic</a></li>
  11.         <li class="versailles active"><a href="/{{app.request.locale }}/le-versailles">Le Versailles</a></li>
  12.         <li><a href="/{{app.request.locale }}/la-salle">{{ 'espaces_salle'|tr(tr)|raw }}</a></li>
  13.         <li class="lounge"><a href="/{{app.request.locale }}/lounge-club">Lounge club</a></li>
  14.     </ul>
  15.   </div>
  16. {% endblock %}
  17. {% block stylesheets %}
  18.     <link href="/front/css/owl.carousel.min.css" rel="stylesheet">
  19.     <link href="/front/css/owl.theme.default.min.css" rel="stylesheet">
  20. {% endblock %}
  21. {% block body %}
  22.     <section class="info-header">
  23.       <ul>
  24.           <li><a href="/{{app.request.locale }}/le-majestic">Le Majestic</a></li>
  25.           <li class="active gold"><a href="/{{app.request.locale }}/le-versailles">Le Versailles</a></li>
  26.           <li><a href="/{{app.request.locale }}/la-salle">{{ 'espaces_salle'|tr(tr)|raw }}</a></li>
  27.           <li><a href="/{{app.request.locale }}/lounge-club">Lounge club</a></li>
  28.       </ul>
  29.     </section>
  30.     <section class="espace-header" style="background-image: url('/front/img/espaces-le-versailles.jpg');">
  31.          <div class="shadow-60"></div>
  32.         <div class="container">
  33.           <h1>Le versailles</h1>
  34.           <p>{{ 'versailles_desc'|tr(tr)|raw }}</p>
  35.         </div>
  36.       <a href="/{{app.request.locale }}/{{ 'reservation'|getUrl(app.request.locale) }}" class="order-btn-link">{{ 'general_reserver'|tr(tr)|raw }}</a>
  37.       <ul>
  38.           <li><a href="/{{app.request.locale }}/le-majestic">Le Majestic</a></li>
  39.           <li class="active"><a href="/{{app.request.locale }}/le-versailles">Le Versailles</a></li>
  40.           <li><a href="/{{app.request.locale }}/la-salle">{{ 'espaces_salle'|tr(tr)|raw }}</a></li>
  41.           <li><a href="/{{app.request.locale }}/lounge-club">Lounge club</a></li>
  42.       </ul>
  43.     </section>
  44.     <section class="espace-content">
  45.             <div class="owl-carousel versailles esp">
  46.             {% for i in 1..5 %}
  47.                 <div class="item"><img src="/front/img/versailles-slider{{i}}.jpg" alt="versailles slider {{i}}" /></div>
  48.               {% endfor %}
  49.             </div>
  50.             <div class="horizontal-bar-container">
  51.                 <div class="horizontal-bar"></div>
  52.                 <div class="horizontal-bar-ctrl gold"></div>
  53.             </div>
  54.             <a href="#next" class="next-arrow"><img src="/front/img/espaces-arrow-b-v.svg" alt="suivant" /></a>
  55.             <h2 id="next" class="no-bar" style="padding-top: 160px;">{{ 'versailles_s1_title'|tr(tr)|raw }} <span class="full-bar"></span></h2>
  56.             <p class="quote pt-0 mt-5">{{ 'versailles_s1'|tr(tr)|raw }}</p>
  57.         </section>
  58.         <section class="espace-tarifs" style="background-image: url('/front/img/versailles-bg2.jpg');">
  59.             <div class="container">
  60.                 <img class="bubble" src="/front/img/maitre2.png" alt="maitre cuisinier" />
  61.         <img class="bubble bubble2" src="/front/img/maitre3.png" alt="maitre cuisinier" />
  62.                 <div class="link">
  63.                     <a href="/{{app.request.locale }}/menus-tarifs/le-versailles">{{ 'majestic_s2_title'|tr(tr)|raw }} <img src="/front/img/espaces-arrow-link.svg" alt="suivant" /></a>
  64.                 </div>
  65.             </div>
  66.         </section>
  67.     <section class="espace-content second">
  68.             <h2 id="" class="no-bar">{{ 'versailles_s3_title'|tr(tr)|raw }}<span class="full-bar"></span></h2>
  69.             <p class="pt-0 mt-5">{{ 'versailles_s3'|tr(tr)|raw }}
  70.             </p>
  71.         </section>
  72.         <section class="espace-gallery second" style="margin-bottom: 180px;">
  73.                 <div class="project-bar"></div>
  74.                 <div class="project-bar-ctrl gold"></div>
  75.         <div class="gallery-container">
  76.           <div class="col1">
  77.             <div class="col1-1" style="background-image: url('/front/img/versailles1.jpg'); height: 746px; width: 100%; margin-bottom: 30px;"></div>
  78.             <div class="col1-2" style="background-image: url('/front/img/versailles4.jpg'); height: 746px; width: 100%; margin-bottom: 30px;"></div>
  79.           </div>
  80.           <div class="col2">
  81.             <div class="col2-1" style="background-image: url('/front/img/versailles2.jpg'); height: 498px; width: 100%; margin-bottom: 30px;"></div>
  82.             <div class="col2-2" style="background-image: url('/front/img/versailles3.jpg'); height: 498px; width: 100%; margin-bottom: 30px;"></div>
  83.             <div class="col2-3" style="background-image: url('/front/img/versailles5.jpg'); height: 466px; width: 40%; margin-bottom: 30px; float: left;"></div>
  84.             <div class="col2-4" style="background-image: url('/front/img/versailles6.jpg'); height: 466px; margin-bottom: 30px; float: right; width: calc(60% - 30px); margin-left: 30px;"></div>
  85.           </div>
  86.           <div class="col3" style="width:100%; display: table;">
  87.             <div class="col3-1" style="background-image: url('/front/img/versailles7.jpg'); height: 854px; width: 100%;;"></div>
  88.           </div>
  89.         </div>
  90.         </section>
  91.         {% include 'FrontBundle/Partial/footer.html.twig' %}
  92. {% endblock %}
  93. {% block javascripts %}
  94.   <script src="/front/js/owl.carousel.min.js"></script>
  95.   <script type="text/javascript">
  96.       var owl = $('.owl-carousel');
  97.     owl.owlCarousel({
  98.         loop:false,
  99.         margin:30,
  100.         nav:true,
  101.         responsive:{
  102.             0:{
  103.                 items:1
  104.             },
  105.             600:{
  106.                 items:3
  107.             },
  108.             1920:{
  109.                 items:3
  110.             }
  111.         }
  112.         });
  113.         // HEADER IMAGE SWITCH
  114.     carouselIndex = 0;
  115.     $('.owl-carousel.esp img').mousedown(function() {
  116.         setTimeout(function() { carouselIndex = owl.data()['owl.carousel']._current }, 220);
  117.     });
  118.     $('.owl-carousel.esp img').on('click', function(e){
  119.       e.preventDefault();
  120.       if( carouselIndex == owl.data()['owl.carousel']._current ){
  121.           $('.espace-header').attr('style', 'background-image: url("'+$(this).attr('src')+'");') ;
  122.       }
  123.     });
  124.     // END HEADER IMAGE SWITCH
  125.     if( $('.project-bar-ctrl').length >0 ) {
  126.       offset = $('.project-bar-ctrl').offset().top;
  127.       $('.gallery-container').scroll(function(){
  128.         var pos = $('.gallery-container').scrollTop();
  129.         var top = pos * 706 / 1790;
  130.         $('.project-bar-ctrl').css('top', top+'px');
  131.       });
  132.     }
  133.     owl.on('changed.owl.carousel', function(event) {
  134.       var itemsNbr = owl.data()['owl.carousel'].settings.items;
  135.       var itemsTotal = event.item.count;
  136.       var itemsIndex = event.item.index;
  137.       var pagesNbr = itemsTotal - itemsNbr;
  138.             var horizontalBar = $('.horizontal-bar').outerWidth();
  139.             var horizontalBarCtrl = $('.horizontal-bar-ctrl').outerWidth();
  140.             var courseLength = $('.horizontal-bar').outerWidth() - $('.horizontal-bar-ctrl').outerWidth();
  141.             var left = itemsIndex * 100 / pagesNbr; // percent
  142.             left = left * courseLength / 100;
  143.       $('.horizontal-bar-ctrl').css('left', left+'px');
  144.       
  145.     });
  146.     </script>
  147. {% endblock %}