templates/front/accueil.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block style %}
  3.     <style>
  4.         .modal-content {
  5.             border-radius: 50px;
  6.         }
  7.         .modal-body {
  8.             padding: 40px;
  9.             min-width: 500px;
  10.             min-height: 500px;
  11.             color: #fff;
  12.             border-radius: 50px;
  13.             position: relative;
  14.         }
  15.         button.close {
  16.             color: #fff;
  17.             border: 2px solid #fff;
  18.             border-radius: 50%;
  19.             width: 30px;
  20.             height: 30px;
  21.             position: absolute;
  22.             top: 15px;
  23.             right: 15px;
  24.         }
  25.         .home-slide  {
  26.             min-height: 1080px;
  27.             display: block;
  28.             overflow: hidden;
  29.         }
  30.         #background-video {
  31.           width: 100%;
  32.           height: 100%;
  33.           object-fit: cover;
  34.           position: fixed;
  35.           left: 0;
  36.           right: 0;
  37.           top: 0;
  38.           bottom: 0;
  39.           z-index: -1;
  40.           border-radius: 15px;
  41.         }
  42.         @media (max-width: 1549px){
  43.             .home-slide  { 
  44.                 display: block;min-height: 800px;
  45.                 overflow: hidden;
  46.             }
  47.             .img-box .img-1 { height: 591px; width:auto; display:block; object-fit:cover;}
  48.         } 
  49.         @media (max-width: 768px) {
  50.             #background-video { display: none; }
  51.             .img-box .img-1 {
  52.                 height:auto;
  53.             }
  54.         }
  55.     </style>
  56. {% endblock %}
  57. {% block banniere %}
  58.     <section class="home-slide owl-carousel">
  59.         {% for slide in slides %}
  60.         <div class="item-slide">
  61.             <div class="bg-slide"><img src="{{ asset(slider_directory ~ slide.image) }}" alt="" {% if loop.index  !=  1  %} loading="lazy" {% endif %} class="img"></div>
  62.             <div class="container-fluid">
  63.                 <div class="title">
  64.                     {{ slide.titre | raw }}
  65.                 </div>
  66.                 <div class="desc">
  67.                     {{ slide.soustitre | raw }}
  68.                 </div>
  69.                 <a href="{{ slide.buttonLink }}" class="btn-slide btn-3">
  70.                     {{ slide.buttonText }}
  71.                 </a>
  72.             </div>
  73.         </div>
  74.         {% endfor %}
  75.     </section>
  76. {% endblock %}
  77. {% block contenu %}
  78.     <section class="pt-75 pb-35 home-page">
  79.         <div class="container clearfix">
  80.             <div class="clearfix">
  81.                 <div class="img-box float-lg-left wow fadeInLeft" data-wow-delay="1s">
  82.                     <img src="{{ src }}" loading="lazy" alt="olivier ecole de surf de la cote sauvage la palmyre bouverie" class="img-1">
  83.                     <div class="text-img">
  84.                     </div>
  85.                 </div>
  86.                 <div class="sect-title text-center  pt-40 wow fadeInRight" data-wow-delay="1.5s">
  87.                     <h1>
  88.                         {{ page.titre }}
  89.                     </h1>
  90.                 </div>
  91.                 <div class="bloc-text wow fadeInRight" data-wow-delay="1.5s">
  92.                     {{ page.contenu | raw }}
  93.                 </div>
  94.             </div>
  95.             <div class="text-center">
  96.                 <div class="logo-surf wow fadeInUp"  data-wow-delay="0.5s">
  97.                     <img src="{{ asset('front/images/logo-surf.png') }}" loading="lazy" alt="ecoles du surf francais esf logo">
  98.                     <object data="{{ asset('front/images/text-surf.svg') }}" type=""></object>
  99.                 </div>
  100.             </div>
  101.         </div>
  102.     </section>
  103. {% endblock %}
  104. {% block atout %}
  105.     <section class="pt-35  avt-section wow slideInUp" data-wow-delay="0.5s">
  106.         <div class="container container-one">
  107.             <div class="sect-title text-center">
  108.                 <div class="h1">
  109.                     Nos atouts exclusifs
  110.                 </div>
  111.             </div>
  112.             <div class="avt-list">
  113.                 <div class="row  no-gutters">
  114.                     <div class="col-xxl-6 col-xl-6 col-12">
  115.                         <div class="item-avt">
  116.                             <div class="row no-gutters">
  117.                                 <div class="col-md-6">
  118.                                     <div class="content">
  119.                                         <img src="{{ asset('front/images/a-1.png') }}" loading="lazy" width="78" alt="decouvir le surf sur la cote sauvage">
  120.                                         <div class="title">
  121.                                             Les meilleures conditions de vagues
  122.                                         </div>
  123.                                         <div class="desc">
  124.                                             Des plannings adaptés aux marées et à la houle pour bénéficier des meilleures vagues de la journée !
  125.                                         </div>
  126.                                         <a href="/nos-atouts-et-services-exclusifs.html" class="btn-2">
  127.                                             <span>voir tous les atouts</span>
  128.                                             <div class="wave"></div>
  129.                                         </a>
  130.                                     </div>
  131.                                 </div>
  132.                                 <div class="col-md-6">
  133.                                     <div class="img-avt avt-1">
  134.                                         <img src="{{ asset('front/images/atouts-et-avantages/meilleure-vague.jpg') }}" class="img" loading="lazy" alt="ecole de surf la palmyre">
  135.                                     </div>
  136.                                 </div>
  137.                             </div>
  138.                             <a href="/nos-atouts-et-services-exclusifs.html" class="full-link"></a>
  139.                         </div>
  140.                     </div>
  141.                     <div class="col-xxl-6 col-xl-6 col-12">
  142.                         <div class="item-avt" style="background-color: #d14357;">
  143.                             <div class="row no-gutters">
  144.                                 <div class="col-md-6">
  145.                                     <div class="content">
  146.                                         <img src="{{ asset('front/images/a-2.png') }}" width="113" loading="lazy" alt="chariot electrique plage cote sauvage ecole de surf">
  147.                                         <div class="title">
  148.                                             Chariot électrique <br> 4x4
  149.                                         </div>
  150.                                         <div class="desc">
  151.                                             Unique sur la Côte Sauvage : l’assurance d’accéder aux plus beaux spots en toute facilité !
  152.                                         </div>
  153.                                         <a href="/nos-atouts-et-services-exclusifs.html" class="btn-2">
  154.                                             <span>voir tous les atouts</span>
  155.                                             <div class="wave"></div>
  156.                                         </a>
  157.                                     </div>
  158.                                 </div>
  159.                                 <div class="col-md-6">
  160.                                     <div class="img-avt avt-2">
  161.                                         <img src="{{ asset('front/images/atouts-et-avantages/chariot-electrique.jpg') }}" class="img" loading="lazy" alt="ecole de surf charente maritime">
  162.                                     </div>
  163.                                 </div>
  164.                             </div>
  165.                             <a href="/nos-atouts-et-services-exclusifs.html" class="full-link"></a>
  166.                         </div>
  167.                     </div>
  168.                     <div class="col-xxl-6 col-xl-6 col-12">
  169.                         <div class="item-avt" style="background-color: #ed8f1f;">
  170.                             <div class="row no-gutters">
  171.                                 <div class="col-md-6">
  172.                                     <div class="img-avt avt-3">
  173.                                         <img src="{{ asset('front/images/atouts-et-avantages/securite-maximale.jpg') }}" class="img" loading="lazy" alt="ecole de surf plage de la bouverie">
  174.                                     </div>
  175.                                 </div>
  176.                                 <div class="col-md-6">
  177.                                     <div class="content">
  178.                                         <img src="{{ asset('front/images/a-3.png') }}" loading="lazy" width="75" alt="ecole de surf cote sauvage">
  179.                                         <div class="title">
  180.                                             Sécurité maximale
  181.                                         </div>
  182.                                         <div class="desc">
  183.                                             Nos moniteurs de surf sont tous des Sauveteurs Nautiques diplômés et expérimentés.
  184.                                         </div>
  185.                                         <a href="/nos-atouts-et-services-exclusifs.html" class="btn-2">
  186.                                             <span>voir tous les atouts</span>
  187.                                             <div class="wave"></div>
  188.                                         </a>
  189.                                     </div>
  190.                                 </div>
  191.                             </div>
  192.                             <a href="/nos-atouts-et-services-exclusifs.html" class="full-link"></a>
  193.                         </div>
  194.                     </div>
  195.                     <div class="col-xxl-6 col-xl-6 col-12">
  196.                         <div class="item-avt" style="background-color: #2db3b9;">
  197.                             <div class="row no-gutters">
  198.                                 <div class="col-md-6">
  199.                                     <div class="img-avt avt-4">
  200.                                         <img src="{{ asset('front/images/atouts-et-avantages/combinaison-gratuite.jpg') }}" class="img" loading="lazy" alt="ecole de surf planche de surf et combinaison gratuites">
  201.                                     </div>
  202.                                 </div>
  203.                                 <div class="col-md-6">
  204.                                     <div class="content">
  205.                                         <img src="{{ asset('front/images/a-4.png') }}" loading="lazy" width="65" alt="ecole de surf la palmyre cote sauvage">
  206.                                         <div class="title">
  207.                                             prêt du matériel gratuit
  208.                                         </div>
  209.                                         <div class="desc">
  210.                                             Planches de surf, combinaisons, lycras... Tout est compris dans nos formules et sans supplément !
  211.                                         </div>
  212.                                         <a href="/nos-atouts-et-services-exclusifs.html" class="btn-2">
  213.                                             <span>voir tous les atouts</span>
  214.                                             <div class="wave"></div>
  215.                                         </a>
  216.                                     </div>
  217.                                 </div>
  218.                             </div>
  219.                             <a href="/nos-atouts-et-services-exclusifs.html" class="full-link"></a>
  220.                         </div>
  221.                     </div>
  222.                 </div>
  223.             </div>
  224.         </div>
  225.     </section>
  226. {% endblock %}
  227. {% block formule %}
  228.     {% include 'front/formule.html.twig' %}
  229. {% endblock %}
  230. {% block carte %}
  231.     <section class="">
  232.         <div class="container-fluid px-xl-5">
  233.             <div class="cote-box wow fadeInUp" data-wow-duration="1.5s">
  234.                 <video id="background-video" autoplay loop muted poster="{{ asset('front/images/back-0.jpg') }}">
  235.                 <source src="{{ asset('front/images/video-vague-escs.mp4') }}" type="video/mp4">
  236.                 </video>
  237.                 <div class="sect-title text-center">
  238.                     <div class="h1 text-white">
  239.                         Toute l’année, sur les plages de la Côte Sauvage, <br>découvrez le surf avec l’ESCS !
  240.                     </div>
  241.                 </div>
  242.                 <div class="d-flex align-items-center justify-content-center flex-wrap" style="gap:20px;">
  243.                     <a href="{{ path('app_index', {'slug': 'contact.html'}) }}" class="btn-2">Nous contacter <i class="fa fa-angle-right"></i>
  244.                         <div class="wave"></div>
  245.                     </a>
  246.                     <a href="/niveaux-et-publics-cours-de-surf-cote-sauvage.html" class="btn-2">Surfez selon votre niveau ! <div class="wave"></div></a>
  247.                 </div>
  248.             </div>
  249.         </div>
  250.     </section>
  251. {% endblock %}
  252. {% block actualite %}
  253.     
  254.     <section class="pt-75 pb-40 blog-section">
  255.         <div class="container">
  256.             <div class="row  ">
  257.                 <div class="col-xl-9 col-lg-8 text-center col-12 mb-30">
  258.                     <div class="sect-title mb-0">
  259.                         <div class="h1 text-uppercase wow fadeInDown" data-wow-delay="0.5s">
  260.                             blog escs : les 3 derniers posts
  261.                         </div>
  262.                     </div>
  263.                 </div>
  264.                 <div class="col-xl-3 col-lg-4 mb-30">
  265.                     <a href="{{ path('app_actualites') }}" class="btn-1"><span>voir tous les ARTICLES</span>
  266.                         <div class="wave"></div>
  267.                     </a>
  268.                 </div>
  269.             </div>
  270.             <div class="row">
  271.                 {% for actualite in actualites %}
  272.                 {{ actualite.init() }}
  273.                 <div class="col-xl-4 col-md-6 col-12 mb-40 wow fadeInUp" data-wow-delay="0.9s">
  274.                     <div class="item-blog">
  275.                         <div class="img">
  276.                             <img src="{{ asset(actualite.imgSrc) }}" loading="lazy" alt="blog ecole de surf">
  277.                         </div>
  278.                         <div class="content">
  279.                             <div class="date">
  280.                                 <span>
  281.                                     {{ actualite.date|localizeddate('none', 'none', null, null, 'd') }}
  282.                                 </span> {{ actualite.date|localizeddate('none', 'none', null, null, 'MMMM') | slice(0, 3) }}. <br>{{ actualite.date|localizeddate('none', 'none', null, null, 'Y') }}
  283.                             </div>
  284.                             <div class="rubrique">
  285.                                 {% if actualite.categorie is not null %}
  286.                                     {{ actualite.categorie.nom }}
  287.                                 {% endif %}
  288.                             </div>
  289.                             <div class="title">
  290.                                 {{ actualite.titre }}
  291.                             </div>
  292.                             <div class="desc">
  293.                                 {{ actualite.contenu | slice(0, 120) | striptags | raw }} [...]
  294.                             </div>
  295.                             <div class="link">
  296.                                 Lire la suite
  297.                             </div>
  298.                         </div>
  299.                         <a href="{{ path('app_actualite_detail', { slug : actualite.slug }) }}" class="full-link"></a>
  300.                     </div>
  301.                 </div>
  302.                 {% endfor %}
  303.                 
  304.             </div>
  305.             <div class="item-cours hover-box cours-1 mb-40 mt-75 wow fadeInRight" data-wow-duration="2s" data-wow-delay="0.5s">
  306.                 <img src="{{ asset('front/images/cours-1.jpg') }}" class="default" alt="tarifs cours de surf cote sauvage">
  307.                 <img src="{{ asset('front/images/cours-1h.jpg') }}" class="hover wow fadeIn" alt="tarif stage de surf la palmyre bouverie">
  308.                 <div class="row">
  309.                     <div class="col-xl-5 col-lg-5 col-md-7 col-12">
  310.                         <div class="sect-title">
  311.                             <div class="sub-title text-white">
  312.                                 débutant · perfectionnement · enfants · ados · adultes...
  313.                             </div>
  314.                             <div class="h1 text-white">
  315.                                 Les cours de surf <br> proposés par l’ESCS, <br> c’est pour tout le monde et pour tous les niveaux !
  316.                             </div>
  317.                         </div>
  318.                         <a href="/niveaux-et-publics-cours-de-surf-cote-sauvage.html" class="btn-2 text-uppercase">en savoir plus <div class="wave"></div></a>
  319.                     </div>
  320.                 </div>
  321.             </div>
  322.             <div class="item-cours hover-box cours-2 mb-40 wow fadeInLeft"  data-wow-duration="1.5s" data-wow-delay="1s">
  323.                 <img src="{{ asset('front/images/cours-2.jpg') }}" class="default" alt="surfshop la palmyre">
  324.                 <img src="{{ asset('front/images/cours-2h.jpg') }}" class="hover" alt="location planche de surf cote sauvage">
  325.                 <div class="row">
  326.                     <div class="col-xl-5 col-lg-5 col-md-7 col-12">
  327.                         <div class="sect-title">
  328.                             <div class="sub-title text-white">
  329.                                 surfboards · combinaisons · bodyboards ·vélos...
  330.                             </div>
  331.                             <div class="h1 text-white">
  332.                                 Le Surfshop de l’ESCS : <br> les locations surf <br> les moins chères <br> de la Côte Sauvage !
  333.                             </div>
  334.                         </div>
  335.                         <a href="/le-surfshop-location-de-materiel-escs-cote-sauvage.html" class="btn-2 text-uppercase">découvrez nos offres <div class="wave"></div></a>
  336.                     </div>
  337.                 </div>
  338.             </div>
  339.         </div>
  340.     </section>
  341. {% endblock %}
  342. {% block avis %}
  343.     <section class="temoignage-section">
  344.         <div class="container">
  345.             <div class="text-center mb-40">
  346.                 <div class="sect-title mb-2">
  347.                     <div class="h1 text-uppercase wow fadeInUp">
  348.                         Vos témoignages sur l’escs
  349.                     </div>
  350.                 </div>
  351.                 <div class="text-1 mb-20 wow fadeInDown">
  352.                     L’Ecole de Surf de la Côte Sauvage,c’est vous qui en parlez le mieux !
  353.                 </div>
  354.             </div>
  355.             <div class="temoignage-slide wow fadeInUp">
  356.                 {% for avis in avisListe %}
  357.                 <div class="item">
  358.                     <div class="avatar">
  359.                         <img src="{{ asset(avis_directory~avis.avatar) }}" loading="lazy" alt="avis ecole de surf cote sauvage">
  360.                     </div>
  361.                     <div class="content">
  362.                         <div class="icons">
  363.                             <img src="{{ asset('front/images/icons-1.png') }}" alt="temoignage ecole de surf la palmyre" width="60">
  364.                         </div>
  365.                         <div class="stars">
  366.                             {% for i in 1..5 %}
  367.                                 {% if (i <= avis.note) %}
  368.                                     <i class="fa fa-star"></i>
  369.                                 {% else %}
  370.                                     <i class="fa fa-star empty"></i>
  371.                                 {% endif %}
  372.                             {% endfor %}
  373.                         </div>
  374.                         <div class="desc">
  375.                             {{ avis.commentaire }}
  376.                         </div>
  377.                         <div class="title">
  378.                             {{ avis.nom }}
  379.                         </div>
  380.                     </div>
  381.                     <a href="" class="full-link"></a>
  382.                 </div>
  383.                 {% endfor %}
  384.             </div>
  385.         </div>
  386.     </section>
  387. {% endblock %}
  388. {% block modal %}
  389.     {% if popup is defined and popup is not null %}
  390.     <!-- Modal -->
  391.     <div class="modal fade" id="modal-popup" tabindex="-1" role="dialog" aria-hidden="true">
  392.         <div class="modal-dialog modal-dialog-centered" role="document">
  393.             <div class="modal-content">
  394.                 <div class="modal-body" style="background: url({{ asset(popup_directory ~ popup.image) }}) no-repeat center/cover;">
  395.                     <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  396.                         <span aria-hidden="true">&times;</span>
  397.                     </button>
  398.                     {{ popup.contenu | raw }}
  399.                 </div>
  400.             </div>
  401.         </div>
  402.     </div>
  403.     {% endif %}
  404. {% endblock %}