fix: Consertando a responsividade do slick, via breakpoint #4

Merged
josecarloslins merged 1 commits from feature/optimization into main 2022-12-18 14:43:48 +00:00

View File

@ -68,28 +68,28 @@ export default class Footer {
async addCarrossel() {
const elemento = document.querySelector(".sliderPratileira");
if (window.screen.width > 1024) {
$(elemento).slick({
slidesToShow: 4,
slidesToScroll: 1,
infinite: true,
arrows: true,
});
} else if (window.screen.width < 640) {
$(elemento).slick({
slidesToShow: 2,
slidesToScroll: 1,
infinite: true,
arrows: true,
});
} else {
$(elemento).slick({
slidesToShow: 3,
slidesToScroll: 1,
infinite: true,
arrows: true,
});
}
$(elemento).slick({
slidesToShow: 4,
slidesToScroll: 1,
infinite: true,
arrows: true,
responsive: [
{
breakpoint: 1025,
settings: {
slidesToShow: 3,
slidesToScroll: 1,
},
},
{
breakpoint: 641,
settings: {
slidesToShow: 2,
slidesToScroll: 1,
},
},
],
});
}
async api() {