@@ -50,68 +50,67 @@ const HowIntegrationWorksWrapper = styled.section`
5050
5151 .integration-section-caraousel {
5252 .slick-slider {
53+ position: relative;
54+
5355 .slick-list {
54- max-width: 50rem;
56+ max-width: 100%;
57+ margin: 0 auto;
5558
5659 .slick-slide {
5760 img {
5861 max-height: 20rem;
5962 margin: auto;
63+ width: auto;
6064 }
6165 }
6266 }
6367
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+ }
6681 }
6782
6883 .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+
7489 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;
88106 }
89107 }
108+
109+ &.slick-active button {
110+ opacity: 1;
111+ }
90112 }
91113 }
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- }
115114 }
116115 }
117116 }
@@ -131,13 +130,9 @@ const HowIntegrationWorksWrapper = styled.section`
131130
132131 .integration-section-caraousel .slick-slider {
133132 .slick-list {
134- max-width: 80 %;
133+ max-width: 90 %;
135134 margin: 2rem auto;
136135 }
137-
138- .slick-dots {
139- left: 92%;
140- }
141136 }
142137 }
143138 }
@@ -159,16 +154,7 @@ const HowIntegrationWorksWrapper = styled.section`
159154 .integration-section-caraousel .slick-slider {
160155 .slick-list {
161156 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;
172158 }
173159 }
174160 }
@@ -187,10 +173,6 @@ const HowIntegrationWorksWrapper = styled.section`
187173 }
188174 }
189175 }
190- .slick-dots {
191- left: 85%;
192- top: -1rem;
193- }
194176 }
195177 }
196178 }
@@ -200,20 +182,16 @@ const HowIntegrationWorksWrapper = styled.section`
200182const HowIntegrationWorks = ( { name, howitworks, howitworksdetails, slides } ) => {
201183
202184 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 ,
212188 slidesToShow : 1 ,
213189 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
217195 } ;
218196
219197 return (
0 commit comments