@@ -37,81 +37,96 @@ const HowIntegrationWorksWrapper = styled.section`
3737 .integration-section-row {
3838 margin: 4rem 0;
3939 align-items: center;
40+ flex-direction: column;
4041 }
4142 h2, h4 {
4243 color: black;
4344 }
4445 .integration-section-data {
46+ width: 100%;
47+ margin-bottom: 2rem;
4548 h1, h3, p {
46- text-align: start; color: ${ props => props . theme . primaryColor } ;
49+ text-align: center;
50+ color: ${ props => props . theme . primaryColor } ;
4751 transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
4852 }
4953 }
5054
5155 .integration-section-caraousel {
56+ width: 100%;
5257 .slick-slider {
58+ position: relative;
59+ width: 100%;
60+
5361 .slick-list {
54- max-width: 50rem;
62+ width: 100%;
63+ margin: 0 auto;
64+ overflow: hidden;
5565
5666 .slick-slide {
67+ display: flex;
68+ justify-content: center;
69+ align-items: center;
70+
5771 img {
72+ max-width: 100%;
73+ height: auto;
5874 max-height: 20rem;
75+ object-fit: contain;
5976 margin: auto;
6077 }
6178 }
6279 }
6380
64- .slick-arrow{
65- display: none !important;
81+ .slick-arrow {
82+ display: block !important;
83+ z-index: 1;
84+ width: 40px;
85+ height: 40px;
86+ &:before {
87+ color: ${ props => props . theme . secondaryColor } ;
88+ font-size: 2rem;
89+ opacity: 1;
90+ }
91+ &.slick-prev {
92+ left: -50px;
93+ }
94+ &.slick-next {
95+ right: -50px;
96+ }
6697 }
6798
6899 .slick-dots {
69- bottom: 0 ;
70- top: 0 ;
71- left: 52rem ;
72- width: 8rem ;
73-
100+ bottom: -2rem ;
101+ width: 100% ;
102+ display: flex !important ;
103+ justify-content: center ;
104+
74105 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;
106+ display: inline-block;
107+ width: 10px;
108+ height: 10px;
109+ margin: 0 5px;
110+
111+ button {
112+ width: 10px;
113+ height: 10px;
114+ padding: 0;
115+ border-radius: 50%;
116+ background: ${ props => props . theme . primaryColor } ;
117+ opacity: 0.5;
118+ border: none;
119+
120+ &:before {
121+ display: none;
88122 }
89123 }
124+
125+ &.slick-active button {
126+ opacity: 1;
127+ }
90128 }
91129 }
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- }
115130 }
116131 }
117132 }
@@ -131,12 +146,16 @@ const HowIntegrationWorksWrapper = styled.section`
131146
132147 .integration-section-caraousel .slick-slider {
133148 .slick-list {
134- max- width: 80 %;
149+ width: 100 %;
135150 margin: 2rem auto;
136151 }
137-
138- .slick-dots {
139- left: 92%;
152+ .slick-arrow {
153+ &.slick-prev {
154+ left: -30px;
155+ }
156+ &.slick-next {
157+ right: -30px;
158+ }
140159 }
141160 }
142161 }
@@ -158,16 +177,15 @@ const HowIntegrationWorksWrapper = styled.section`
158177
159178 .integration-section-caraousel .slick-slider {
160179 .slick-list {
161- max- width: 85 %;
162- margin: 2rem 0 ;
180+ width: 100 %;
181+ margin: 2rem auto ;
163182 }
164- .slick-dots {
165- left: 90%;
166- width: 4rem;
167-
168- li a img {
169- height: 2.5rem;
170- object-fit: contain;
183+ .slick-arrow {
184+ &.slick-prev {
185+ left: -20px;
186+ }
187+ &.slick-next {
188+ right: -20px;
171189 }
172190 }
173191 }
@@ -187,10 +205,6 @@ const HowIntegrationWorksWrapper = styled.section`
187205 }
188206 }
189207 }
190- .slick-dots {
191- left: 85%;
192- top: -1rem;
193- }
194208 }
195209 }
196210 }
@@ -200,20 +214,16 @@ const HowIntegrationWorksWrapper = styled.section`
200214const HowIntegrationWorks = ( { name, howitworks, howitworksdetails, slides } ) => {
201215
202216 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 ,
217+ dots : true ,
218+ infinite : true ,
219+ speed : 500 ,
212220 slidesToShow : 1 ,
213221 slidesToScroll : 1 ,
214- dots : true ,
215- vertical : true ,
216- verticalSwiping : true
222+ arrows : true ,
223+ autoplay : true ,
224+ autoplaySpeed : 4000 ,
225+ pauseOnHover : true ,
226+ adaptiveHeight : true
217227 } ;
218228
219229 return (
@@ -229,7 +239,7 @@ const HowIntegrationWorks = ({ name, howitworks, howitworksdetails, slides }) =>
229239 < Col $xs = { 12 } $xl = { 4 } className = "integration-section-data" >
230240 < h3 > { howitworks != null ? howitworks : "Docker with Meshery" } </ h3 >
231241 < p >
232- { howitworksdetails != null ? howitworksdetails : "The Docker Extension for Meshery extends Docker Desktop’ s position as the cloud native developer’ s go-to Kubernetes environment with easy access to the next layer of cloud native infrastructure: service meshes." }
242+ { howitworksdetails != null ? howitworksdetails : "The Docker Extension for Meshery extends Docker Desktop' s position as the cloud native developer' s go-to Kubernetes environment with easy access to the next layer of cloud native infrastructure: service meshes." }
233243 </ p >
234244 </ Col >
235245 < Col $xs = { 12 } $xl = { 8 } className = "integration-section-caraousel" >
0 commit comments