templates/croisiere/index.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block stylesheets %}
  3.     <link href="{{ asset('front/plugins/colorbox/colorbox.css') }}" rel="stylesheet" type="text/css">
  4.     <link rel="stylesheet" type="text/css" href="{{ asset('front/style/blog_style.css') }}">
  5.     <link rel="stylesheet" type="text/css" href="{{ asset('front/style/blog_responsive.css') }}">
  6.     <link rel="stylesheet" type="text/css" href="{{ asset('front/style/single_listing_style.css') }}">
  7.     <link rel="stylesheet" type="text/css" href="{{ asset('front/style/single_listing_responsive.css') }}">
  8.     <link rel="stylesheet" type="text/css" href="{{ asset('front/style/about_style.css') }}">
  9.     <link rel="stylesheet" type="text/css" href="{{ asset('front/style/about_responsive.css') }}">
  10.     {# <style>
  11.         .intro_price {
  12.             font-size: 20px;
  13.             font-weight: 600;
  14.             color: #FFFFFF;
  15.             margin-top: -4px;
  16.         }
  17.         .button a:hover {
  18.             background-color: #ff9100;
  19.             color: white;
  20.         }
  21.         .intro_item_background {
  22.             position: relative;
  23.             overflow: hidden;
  24.             margin: auto;
  25.             top: 0;
  26.             left: 0;
  27.             width: 100%;
  28.             height: 100%;
  29.             background-repeat: no-repeat;
  30.             background-size: cover;
  31.             background-position: center center;
  32.             z-index: 1;
  33.         }
  34.         .intro_item_background img {
  35.             max-width: 100%;
  36.             transition: all 0.3s;
  37.             display: block;
  38.             transform: scale(1);
  39.         }
  40.         .offer_name{
  41.             display: block;
  42.             font-size: 22px;
  43.             font-weight: 700;
  44.             background: #0093a9;
  45.             color: #FFFFFF;
  46.             width: 360px;
  47.             line-height: 35px;
  48.             padding-left: 12px;
  49.             height: 50px;
  50.         }
  51.         .intro_item_background:hover img {
  52.             transform: scale(1.1);
  53.         }
  54.         .container {
  55.             max-width: 1440px!important;
  56.         }
  57.         .main_nav_item a {
  58.             font-family: 'Open Sans', sans-serif;
  59.             font-size: 15px;
  60.             font-weight: 700;
  61.             color: #0093a9!important;
  62.             text-transform: uppercase;
  63.             padding-bottom: 10px;
  64.             padding-top: 10px;
  65.         }
  66.         .main_nav_item::after {
  67.             display: block;
  68.             position: absolute;
  69.             left: -1px;
  70.             bottom: -11px;
  71.             width: calc(100% + 2px);
  72.             height: 2px;
  73.             background: linear-gradient(to right, #b29b63, #0093a9)!important;
  74.             content: '';
  75.             opacity: 0;
  76.             -webkit-transition: all 200ms ease;
  77.             -moz-transition: all 200ms ease;
  78.             -ms-transition: all 200ms ease;
  79.             -o-transition: all 200ms ease;
  80.             transition: all 200ms ease;
  81.         }
  82.     </style> #}
  83.     <style>
  84.         .cta {
  85.             padding-top: 190px;
  86.             padding-bottom: 183px;
  87.             background: linear-gradient(to right, #b29b63, #0093a9);
  88.         }
  89.         .search_tab.active {
  90.             background: linear-gradient(to right, #b29b63, #0093a9);
  91.             color: #FFFFFF;
  92.         }
  93.         .search_tab:hover {
  94.             background: linear-gradient(to right, #0093a9, #b29b63);
  95.             color: #FFFFFF;
  96.         }
  97.         .content {
  98.             max-height: 3em; /* Limite initiale de hauteur en fonction du nombre de lignes */
  99.             overflow: hidden;
  100.         }
  101.         .expanded {
  102.             max-height: none; /* Agrandir la hauteur lorsque le paragraphe est étendu */
  103.         }
  104.         .read-more {
  105.             cursor: pointer;
  106.             color: blue;
  107.         }
  108.         .home_slider_background {
  109.             height: 170vh;
  110.             width: 100%;
  111.             background-size: cover;
  112.             background-position: center center;
  113.             background-repeat: no-repeat;
  114.         }
  115.         .offers_price {
  116.             display: inline-block;
  117.             font-size: 29px;
  118.             font-weight: 700;
  119.             color: #ff9100;
  120.             line-height: 25px;
  121.         }
  122.         .offers_price a{
  123.             display: inline-block;
  124.             font-size: 22px;
  125.             font-weight: 700;
  126.             color: #0093a9;
  127.             line-height: 25px;
  128.         }
  129.         .offer_name{
  130.             display: block;
  131.             font-size: 22px;
  132.             font-weight: 700;
  133.             background: #0093a9;
  134.             color: #FFFFFF;
  135.             width: 310px;
  136.             line-height: 35px;
  137.             padding-left: 12px;
  138.         }
  139.         .offers_item {
  140.             border-radius: 12px;
  141.             overflow: hidden;
  142.             position: relative;
  143.             box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  144.             transition: all 300ms;
  145.         }
  146.         .offers_item:hover {
  147.             transform: translateY(-2px);
  148.             box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  149.         }
  150.         .offers_image_background {
  151.             position: relative;
  152.             margin: auto;
  153.             overflow: hidden;
  154.         }
  155.         .offers_image_background img {
  156.             max-width: 100%;
  157.             transition: all 0.3s;
  158.             display: block;
  159.             transform: scale(1);
  160.         }
  161.         .offers_image_background:hover img {
  162.             transform: scale(1.1);
  163.         }
  164.         .offers_content {
  165.             margin-top: 22px;
  166.             margin-left: 17px;
  167.             margin-bottom: 22px;
  168.             margin-right: 17px;
  169.         }
  170.         .offers_link {
  171.             margin-top: 24px;
  172.         }
  173.         .intro_price {
  174.             font-size: 20px;
  175.             font-weight: 600;
  176.             color: #FFFFFF;
  177.             margin-top: -4px;
  178.         }
  179.         .button a:hover {
  180.             background-color: #ff9100;
  181.             color: white;
  182.         }
  183.         .ctaBackground {
  184.             position: absolute;
  185.             top: 0;
  186.             left: 0;
  187.             width: 100%;
  188.             height: 210%;
  189.             background-repeat: no-repeat;
  190.             background-size: cover;
  191.             background-position: center center;
  192.             opacity: 0.27;
  193.         }
  194.         img {
  195.             max-width: 100%;
  196.             height: 100%;
  197.         }
  198.         .container {
  199.             max-width: 1440px!important;
  200.         }
  201.         .main_nav_item a {
  202.             font-family: 'Open Sans', sans-serif;
  203.             font-size: 15px;
  204.             font-weight: 700;
  205.             color: #0093a9!important;
  206.             text-transform: uppercase;
  207.             padding-bottom: 10px;
  208.             padding-top: 10px;
  209.         }
  210.         .main_nav_item::after {
  211.             display: block;
  212.             position: absolute;
  213.             left: -1px;
  214.             bottom: -11px;
  215.             width: calc(100% + 2px);
  216.             height: 2px;
  217.             background: linear-gradient(to right, #b29b63, #0093a9)!important;
  218.             content: '';
  219.             opacity: 0;
  220.             -webkit-transition: all 200ms ease;
  221.             -moz-transition: all 200ms ease;
  222.             -ms-transition: all 200ms ease;
  223.             -o-transition: all 200ms ease;
  224.             transition: all 200ms ease;
  225.         }
  226.         .section-title h2 {
  227.             text-align: center;
  228.             font-size: 18px;
  229.             font-weight: 600;
  230.             text-transform: uppercase;
  231.             padding-bottom: 6px;
  232.             color: #000;
  233.             letter-spacing: 0.3px;
  234.             padding: 0;
  235.         }
  236.         .section-title::after {
  237.             content: "";
  238.             height: 3px;
  239.             background: #fbb900;
  240.             width: 80px;
  241.             position: absolute;
  242.             left: 0;
  243.             right: 0;
  244.             margin: auto;
  245.         }
  246.         /****************/
  247.         /*     BX-SLIDER     */
  248.         /****************/
  249.         section.client {
  250.             padding:0em 0em;
  251.         }
  252.         section.client .section-title {
  253.             margin-bottom: 6em;
  254.         }
  255.         .bx-controls {
  256.             position: relative;
  257.         }
  258.         .bx-wrapper{
  259.             margin: auto;
  260.             margin-top: 70px;
  261.         }
  262.         .bx-wrapper .bx-pager {
  263.             text-align: center;
  264.             padding-top: 30px;
  265.             display: none;
  266.         }
  267.         .bx-wrapper .bx-pager .bx-pager-item, .bx-wrapper .bx-controls-auto .bx-controls-auto-item {
  268.             display: inline-block;
  269.             *zoom: 1;
  270.             *display: inline;
  271.         }
  272.         .bx-wrapper .bx-pager.bx-default-pager a {
  273.             background: #666;
  274.             text-indent: -9999px;
  275.             display: block;
  276.             width: 10px;
  277.             height: 10px;
  278.             margin: 0 5px;
  279.             outline: 0;
  280.             -moz-border-radius: 5px;
  281.             -webkit-border-radius: 5px;
  282.             border-radius: 5px;
  283.         }
  284.     </style>
  285. {% endblock %}
  286. {% block body %}
  287.     <div class="intro" style="padding-top: 71px;">
  288.         <div class="container mt-4">
  289.             <div class="row intro_items" style="margin-top: 99px;">
  290.                 {% for c in croisiere %}
  291.                     <div class="col-lg-4 intro_col">
  292.                         <div class="intro_item" style="position: relative; width: 100%; height: 320px; margin-top: 40px ;box-shadow: 0 16px 38px -12px rgba(0, 0, 0, 0.56), 0 4px 25px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2);">
  293.                             <div class="intro_item_background" style="position: relative;">
  294.                                 {% for img in c.imagescroisieres %}
  295.                                     {% if loop.first %}
  296.                                         <a href="{{ path('details',{'croisiereId':c.id}) }}">
  297.                                             <img src="{{ asset('./rusticav/public/uploads/croisieres/'~img.name) }}" alt="" width="100%" height="100%" />
  298.                                             <div class="offer_name" style="position: absolute; top: 95%; left: 50%; transform: translate(-50%, -50%); text-align: center; width: 100%; color: #fff;">
  299.                                                 {{ c.name }}
  300.                                             </div>
  301.                                         </a>
  302.                                     {% endif %}
  303.                                 {% endfor %}
  304.                             </div>
  305.                         </div>
  306.                     </div>
  307.                 {% endfor %}
  308.             </div>
  309.             <div class="d-flex justify-content-end" style="margin-top: 60px">
  310.                 {% do croisiere.setPageRange(1) %}
  311.                 {{ knp_pagination_render(croisiere, 'pagination.html.twig') }}
  312.             </div>
  313.         </div>
  314.     </div>
  315.     <!-- Intro -->
  316.     <div class="intro" >
  317.         <div class="intro" style="margin-top: -196px;">
  318.             <section class="client">
  319.                 <div class="container">
  320.                     <div class="row">
  321.                         <div class="col text-center">
  322.                             <h2 class="section_title" style="font-size: 33px;color: #0093a9">Nos Partenaires</h2>
  323.                         </div>
  324.                     </div>
  325.                     <div class="row">
  326.                         <div class="col text-center">
  327.                             <div class="carousel-client">
  328.                                 <div class="slide">
  329.                                     <img src="{{ asset('front/images/logo_starcroisieres.svg') }}" style="margin-top: 15px">
  330.                                 </div>
  331.                                 <div class="slide">
  332.                                     <img src="{{ asset('front/images/msc.webp') }}">
  333.                                 </div>
  334.                                 <div class="slide">
  335.                                     <img src="{{ asset('front/images/costa.webp') }}">
  336.                                 </div>
  337.                                 <div class="slide">
  338.                                     <img src="{{ asset('front/images/rccl.webp') }}">
  339.                                 </div>
  340.                                 <div class="slide">
  341.                                     <img src="{{ asset('front/images/ponant.webp') }}">
  342.                                 </div>
  343.                                 <div class="slide">
  344.                                     <img src="{{ asset('front/images/celestyal.webp') }}">
  345.                                 </div>
  346.                             </div>
  347.                         </div>
  348.                     </div>
  349.                 </div>
  350.             </section>
  351.             <script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
  352.             <script src="https://cdnjs.cloudflare.com/ajax/libs/bxslider/4.2.5/jquery.bxslider.js"></script>
  353.             <script src="{{ asset('front/plugins/OwlCarousel2-2.2.1/owl.carousel.js') }}"></script>
  354.             <script>
  355.                 $('.carousel-client').bxSlider({
  356.                     auto: true,
  357.                     slideWidth: 234,
  358.                     minSlides: 1,
  359.                     maxSlides: 6,
  360.                     controls: false
  361.                 });
  362.             </script>
  363.         </div>
  364.     </div>
  365. {% endblock %}