templates/FrontBundle/Page/le-majestic.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 class="active"><a href="/{{app.request.locale }}/le-majestic">Le Majestic</a></li>
  11.         <li class="versailles"><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 class="active"><a href="/{{app.request.locale }}/le-majestic">Le Majestic</a></li>
  25.           <li><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-majestic.jpg');">
  31.         <div class="shadow-60"></div>
  32.         <div class="container">
  33.           <h1>Le majestic</h1>
  34.           <p>{{ 'majestic_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 class="active"><a href="/{{app.request.locale }}/le-majestic">Le Majestic</a></li>
  39.           <li><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 esp">
  46.             {% for i in 1..15 %}
  47.                 <div class="item"><img src="/front/img/majestic-slider{{i}}.jpg" alt="majestic 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"></div>
  53.             </div>
  54.             <a href="#next" class="next-arrow"><img src="/front/img/espaces-arrow-b.svg" alt="suivant" /></a>
  55.             <h2 id="next" class="no-bar" style="padding-top: 160px;">{{ 'majestic_s1_title'|tr(tr)|raw }}<span class="full-bar"></span></h2>
  56.             <p class="quote pt-0 mt-5">{{ 'majestic_s1'|tr(tr)|raw }}</p>
  57.         </section>
  58.         <section class="espace-tarifs" style="background-image: url('/front/img/majestic-bg2.jpg');">
  59.             <div class="container">
  60.                 <img class="bubble" src="/front/img/maitre.png" alt="maitre cuisinier" />
  61.                 <div class="link">
  62.                     <a href="/{{app.request.locale }}/{{ 'menus-tarifs'|getUrl(app.request.locale) }}/le-majestic">{{ 'majestic_s2_title'|tr(tr)|raw }} <img src="/front/img/espaces-arrow-link.svg" alt="suivant" /></a>
  63.                 </div>
  64.             </div>
  65.         </section>
  66.     <section class="espace-content second">
  67.             <h2 id="" class="no-bar">{{ 'majestic_s3_title'|tr(tr)|raw }}<span class="full-bar"></span></h2>
  68.             <p class="pt-0 mt-5">{{ 'majestic_s3'|tr(tr)|raw }}
  69.             </p>
  70.         </section>
  71.         <section class="espace-gallery second" style="margin-bottom: 180px;">
  72.                 <div class="project-bar"></div>
  73.                 <div class="project-bar-ctrl"></div>
  74.                 <div class="gallery-container">
  75.                     <div class="col1">
  76.             <div class="col1-1" style="background-image: url('/front/img/majestic1.jpg'); height: 746px; width: 100%; margin-bottom: 30px;"></div>
  77.             <div class="col1-2" style="background-image: url('/front/img/majestic4.jpg'); height: 746px; width: 100%; margin-bottom: 30px;"></div>
  78.                     </div>
  79.                     <div class="col2">
  80.             <div class="col2-1" style="background-image: url('/front/img/majestic2.jpg'); height: 498px; width: 100%; margin-bottom: 30px;"></div>
  81.             <div class="col2-2" style="background-image: url('/front/img/majestic3.jpg'); height: 498px; width: 100%; margin-bottom: 30px;"></div>
  82.             <div class="col2-3" style="background-image: url('/front/img/majestic5.jpg'); height: 466px; width: 40%; margin-bottom: 30px; float: left;"></div>
  83.             <div class="col2-4" style="background-image: url('/front/img/majestic6.jpg'); height: 466px; margin-bottom: 30px; float: right; width: calc(60% - 30px); margin-left: 30px;"></div>
  84.                     </div>
  85.           <div class="col3" style="width:100%; display: table;">
  86.             <div class="col3-1" style="background-image: url('/front/img/majestic7.jpg'); height: 854px; width: 100%;;"></div>
  87.           </div>
  88.                 </div>
  89.         </section>
  90.         {% include 'FrontBundle/Partial/footer.html.twig' %}
  91. {% endblock %}
  92. {% block javascripts %}
  93.   <script src="/front/js/owl.carousel.min.js"></script>
  94.   <script type="text/javascript">
  95.       var owl = $('.owl-carousel');
  96.     owl.owlCarousel({
  97.         loop:false,
  98.         margin:30,
  99.         nav:true,
  100.         responsive:{
  101.             0:{
  102.                 items:1
  103.             },
  104.             600:{
  105.                 items:3
  106.             },
  107.             1920:{
  108.                 items:3
  109.             }
  110.         }
  111.         });
  112.         // HEADER IMAGE SWITCH
  113.     carouselIndex = 0;
  114.     $('.owl-carousel.esp img').mousedown(function() {
  115.         setTimeout(function() { carouselIndex = owl.data()['owl.carousel']._current }, 220);
  116.     });
  117.     $('.owl-carousel.esp img').on('click', function(e){
  118.       e.preventDefault();
  119.       if( carouselIndex == owl.data()['owl.carousel']._current ){
  120.           $('.espace-header').attr('style', 'background-image: url("'+$(this).attr('src')+'");') ;
  121.       }
  122.     });
  123.     // END HEADER IMAGE SWITCH
  124.     if( $('.project-bar-ctrl').length >0 ) {
  125.       offset = $('.project-bar-ctrl').offset().top;
  126.       $('.gallery-container').scroll(function(){
  127.         var pos = $('.gallery-container').scrollTop();
  128.         var top = pos * 706 / 1790;
  129.         $('.project-bar-ctrl').css('top', top+'px');
  130.       });
  131.     }
  132.     owl.on('changed.owl.carousel', function(event) {
  133.       var itemsNbr = owl.data()['owl.carousel'].settings.items;
  134.       var itemsTotal = event.item.count;
  135.       var itemsIndex = event.item.index;
  136.       var pagesNbr = itemsTotal - itemsNbr;
  137.             var horizontalBar = $('.horizontal-bar').outerWidth();
  138.             var horizontalBarCtrl = $('.horizontal-bar-ctrl').outerWidth();
  139.             var courseLength = $('.horizontal-bar').outerWidth() - $('.horizontal-bar-ctrl').outerWidth();
  140.             var left = itemsIndex * 100 / pagesNbr; // percent
  141.             left = left * courseLength / 100;
  142.       $('.horizontal-bar-ctrl').css('left', left+'px');
  143.       
  144.     });
  145.     </script>
  146. {% endblock %}