Skip to content

Commit e7edf4c

Browse files
committed
feat: enable home page carrousel
1 parent 0df10af commit e7edf4c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/views/Home/components/SpeakersCarousel/SpeakerSwiper.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, {FC} from "react";
2-
import {Autoplay, Parallax} from "swiper";
2+
import {Parallax} from "swiper";
33
import {Swiper, SwiperSlide} from "swiper/react";
44
import styled from "styled-components";
55
import {Color} from "../../../../styles/colors";
@@ -49,15 +49,15 @@ const SpeakerSwiper: FC<React.PropsWithChildren<unknown>> = () => {
4949
{isLoading && <p>Loading</p>}
5050
{conferenceData.carrousel.enabled && swiperSpeakers && (
5151
<Swiper
52-
autoplay={{
53-
delay: 500,
52+
/*autoplay={{
53+
delay: 5000,
5454
disableOnInteraction: true,
55-
}}
55+
}}*/
5656
slidesPerView={1}
5757
spaceBetween={10}
58-
speed={3000}
58+
speed={5000}
5959
parallax={true}
60-
loop={true}
60+
//loop={true}
6161
grabCursor={true}
6262
breakpoints={{
6363
340: {
@@ -72,14 +72,14 @@ const SpeakerSwiper: FC<React.PropsWithChildren<unknown>> = () => {
7272
},
7373
1024: {
7474
width: 1024,
75-
slidesPerView: 4,
75+
slidesPerView: 5,
7676
centeredSlides: true,
7777
spaceBetween: 30,
7878
autoHeight: true,
7979
},
8080
}}
8181
centeredSlides={true}
82-
modules={[Autoplay, Parallax]}
82+
modules={[/*Autoplay,*/ Parallax]}
8383
className="mySwiper"
8484
>
8585
{swiperSpeakers.map((speaker) => (

0 commit comments

Comments
 (0)