templates/home/index.html.twig line 1
{% extends 'base.html.twig' %}
{% block title %}Accueil{% endblock %}
{% block stylesheets %}
<link rel="stylesheet" href="https://unpkg.com/swiper/swiper-bundle.min.css" />
<link rel="stylesheet" href="{{ asset('assets/front/swiper.css') }}" />
<link rel="stylesheet" href="{{ asset('assets/front/accueil.css') }}" />
{% endblock %}
{% block body %}
{% include 'home/slider.html.twig' %}
{% include 'home/cabinet.html.twig' %}
{% include 'home/categories.html.twig' %}
{# {% include 'home/protocoles.html.twig' %} #}
{% include 'home/materiel.html.twig' %}
{% include 'home/news.html.twig' %}
{% endblock %}
{% block javascripts %}
<!-- Swiper JS -->
<script src="https://unpkg.com/swiper/swiper-bundle.min.js"></script>
<!-- Initialize Swiper du slider -->
<script>
var swiper = new Swiper(".mySwiper", {
speed: 600,
parallax: true,
autoplay: {
delay: 2500,
disableOnInteraction: false,
},
pagination: {
el: ".swiper-pagination",
clickable: true,
},
navigation: {
nextEl: ".swiper-button-next",
prevEl: ".swiper-button-prev",
},
});
</script>
<!-- Initialize Swiper des protocoles -->
<script>
var swiper = new Swiper('.swiper', {
slidesPerView: 6,
spaceBetween: 10,
direction: 'horizontal',
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
},
breakpoints: {
1300: {
slidesPerView: 6,
spaceBetween: 10,
},
1024: {
slidesPerView: 5,
},
768: {
slidesPerView: 4,
},
640: {
slidesPerView: 3,
},
480: {
slidesPerView: 2,
spaceBetween: 20,
},
100: {
slidesPerView: 1,
spaceBetween: 20,
},
},
});
/* function getDirection() {
var windowWidth = window.innerWidth;
var direction = window.innerWidth <= 760 ? 'vertical' : 'horizontal';
return direction;
} */
</script>
{% endblock %}