@@ -50,68 +50,67 @@ const HowIntegrationWorksWrapper = styled.section`
50
50
51
51
.integration-section-caraousel {
52
52
.slick-slider {
53
+ position: relative;
54
+
53
55
.slick-list {
54
- max-width: 50rem;
56
+ max-width: 100%;
57
+ margin: 0 auto;
55
58
56
59
.slick-slide {
57
60
img {
58
61
max-height: 20rem;
59
62
margin: auto;
63
+ width: auto;
60
64
}
61
65
}
62
66
}
63
67
64
- .slick-arrow{
65
- display: none !important;
68
+ .slick-arrow {
69
+ display: block !important;
70
+ z-index: 1;
71
+ &:before {
72
+ color: ${ props => props . theme . secondaryColor } ;
73
+ font-size: 2rem;
74
+ }
75
+ &.slick-prev {
76
+ left: 1rem;
77
+ }
78
+ &.slick-next {
79
+ right: 1rem;
80
+ }
66
81
}
67
82
68
83
.slick-dots {
69
- bottom: 0 ;
70
- top: 0 ;
71
- left: 52rem ;
72
- width: 8rem ;
73
-
84
+ bottom: -2rem ;
85
+ width: 100% ;
86
+ display: flex !important ;
87
+ justify-content: center ;
88
+
74
89
li {
75
- display: block;
76
- width: 100%;
77
- height: auto;
78
- margin: 1rem auto;
79
- opacity: 0.6;
80
-
81
- a {
82
- display: block;
83
-
84
- img {
85
- height: 5rem;
86
- vertical-align: middle;
87
- object-fit: contain;
90
+ display: inline-block;
91
+ width: 10px;
92
+ height: 10px;
93
+ margin: 0 5px;
94
+
95
+ button {
96
+ width: 10px;
97
+ height: 10px;
98
+ padding: 0;
99
+ border-radius: 50%;
100
+ background: ${ props => props . theme . primaryColor } ;
101
+ opacity: 0.5;
102
+ border: none;
103
+
104
+ &:before {
105
+ display: none;
88
106
}
89
107
}
108
+
109
+ &.slick-active button {
110
+ opacity: 1;
111
+ }
90
112
}
91
113
}
92
- .slick-dots
93
- li.slick-active {
94
- opacity: 1;
95
- }
96
- }
97
- }
98
- }
99
- }
100
-
101
- @media screen and (max-width: 1600px) {
102
- .integration-section .integration-section-caraousel .slick-slider {
103
- .slick-list {
104
- max-width: 38rem;
105
- }
106
-
107
- .slick-dots {
108
- left: 40rem;
109
- width: 6rem;
110
-
111
- li a img {
112
- height: 4rem;
113
- object-fit: contain;
114
- }
115
114
}
116
115
}
117
116
}
@@ -131,13 +130,9 @@ const HowIntegrationWorksWrapper = styled.section`
131
130
132
131
.integration-section-caraousel .slick-slider {
133
132
.slick-list {
134
- max-width: 80 %;
133
+ max-width: 90 %;
135
134
margin: 2rem auto;
136
135
}
137
-
138
- .slick-dots {
139
- left: 92%;
140
- }
141
136
}
142
137
}
143
138
}
@@ -159,16 +154,7 @@ const HowIntegrationWorksWrapper = styled.section`
159
154
.integration-section-caraousel .slick-slider {
160
155
.slick-list {
161
156
max-width: 85%;
162
- margin: 2rem 0;
163
- }
164
- .slick-dots {
165
- left: 90%;
166
- width: 4rem;
167
-
168
- li a img {
169
- height: 2.5rem;
170
- object-fit: contain;
171
- }
157
+ margin: 2rem auto;
172
158
}
173
159
}
174
160
}
@@ -187,10 +173,6 @@ const HowIntegrationWorksWrapper = styled.section`
187
173
}
188
174
}
189
175
}
190
- .slick-dots {
191
- left: 85%;
192
- top: -1rem;
193
- }
194
176
}
195
177
}
196
178
}
@@ -200,20 +182,16 @@ const HowIntegrationWorksWrapper = styled.section`
200
182
const HowIntegrationWorks = ( { name, howitworks, howitworksdetails, slides } ) => {
201
183
202
184
const settings = {
203
- customPaging : ( i ) => {
204
- return (
205
- < a >
206
- < img src = { slides [ i ] . publicURL } alt = { `Slide ${ i } ` } />
207
- </ a >
208
- ) ;
209
- } ,
210
- infinite : false ,
211
- speed : 400 ,
185
+ dots : true ,
186
+ infinite : true ,
187
+ speed : 500 ,
212
188
slidesToShow : 1 ,
213
189
slidesToScroll : 1 ,
214
- dots : true ,
215
- vertical : true ,
216
- verticalSwiping : true
190
+ arrows : true ,
191
+ autoplay : true ,
192
+ autoplaySpeed : 4000 ,
193
+ pauseOnHover : true ,
194
+ adaptiveHeight : true
217
195
} ;
218
196
219
197
return (
0 commit comments