File tree Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Original file line number Diff line number Diff line change 1
1
import { Swiper , SwiperSlide } from 'swiper/react' ;
2
- import { Pagination } from 'swiper' ;
2
+ import { Pagination , Navigation } from 'swiper' ;
3
3
import 'swiper/css' ;
4
4
import "swiper/css/pagination" ;
5
+ import "swiper/css/navigation" ;
5
6
6
7
import Card from './Card' ;
7
8
import Container from './Container' ;
@@ -17,15 +18,15 @@ export default function CardsColumns({
17
18
} ) {
18
19
return (
19
20
< Container >
20
- < Swiper
21
+ < Swiper className = { styles . swiper }
21
22
mousewheel = { true }
22
23
grabCursor = { true }
23
- navigation = { true }
24
- pagination = { true } modules = { [ Pagination ] }
24
+ modules = { [ Pagination ] }
25
+ pagination
25
26
centerInsufficientSlides = { true }
26
- slidesPerView = { 1 }
27
+ slidesPerView = { 1.09 }
27
28
breakpoints = { {
28
- 780 : {
29
+ 769 : {
29
30
slidesPerView : 2 ,
30
31
spaceBetween : 50 ,
31
32
} ,
Original file line number Diff line number Diff line change 3
3
4
4
.inner__content {
5
5
margin : 0 auto ;
6
- padding-bottom : 12 rem ;
6
+ padding-bottom : 4 rem ;
7
7
justify-content : center ;
8
8
9
9
@include desktop-breakpoint-plus {
10
10
display : flex ;
11
11
}
12
12
13
13
@include desktop-breakpoint-minus {
14
- padding-bottom : 5 rem ;
14
+ padding-bottom : 1 rem ;
15
15
}
16
16
}
17
17
18
- .swiper-slide {
19
- height : auto ;
20
- }
18
+ .swiper {
19
+ margin-bottom : 6 rem ;
20
+ }
You can’t perform that action at this time.
0 commit comments