Skip to content

Commit 46f9cba

Browse files
committed
test 1
Signed-off-by: Jeffrin Jojo <jeffrinjojo1@gmail.com>
1 parent 784195d commit 46f9cba

1 file changed

Lines changed: 75 additions & 85 deletions

File tree

  • src/sections/Meshery/Meshery-integrations/Individual-Integrations

src/sections/Meshery/Meshery-integrations/Individual-Integrations/howItWork.js

Lines changed: 75 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -37,96 +37,81 @@ const HowIntegrationWorksWrapper = styled.section`
3737
.integration-section-row {
3838
margin: 4rem 0;
3939
align-items: center;
40-
flex-direction: column;
4140
}
4241
h2, h4 {
4342
color: black;
4443
}
4544
.integration-section-data {
46-
width: 100%;
47-
margin-bottom: 2rem;
4845
h1, h3, p {
49-
text-align: center;
50-
color: ${props => props.theme.primaryColor};
46+
text-align: start; color: ${props => props.theme.primaryColor};
5147
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
5248
}
5349
}
5450
5551
.integration-section-caraousel {
56-
width: 100%;
5752
.slick-slider {
58-
position: relative;
59-
width: 100%;
60-
6153
.slick-list {
62-
width: 100%;
63-
margin: 0 auto;
64-
overflow: hidden;
54+
max-width: 50rem;
6555
6656
.slick-slide {
67-
display: flex;
68-
justify-content: center;
69-
align-items: center;
70-
7157
img {
72-
max-width: 100%;
73-
height: auto;
7458
max-height: 20rem;
75-
object-fit: contain;
7659
margin: auto;
7760
}
7861
}
7962
}
8063
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-
}
64+
.slick-arrow{
65+
display: none !important;
9766
}
9867
9968
.slick-dots {
100-
bottom: -2rem;
101-
width: 100%;
102-
display: flex !important;
103-
justify-content: center;
104-
69+
bottom: 0;
70+
top: 0;
71+
left: 52rem;
72+
width: 8rem;
73+
10574
li {
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;
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;
12288
}
12389
}
124-
125-
&.slick-active button {
126-
opacity: 1;
127-
}
12890
}
12991
}
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+
}
130115
}
131116
}
132117
}
@@ -146,16 +131,12 @@ const HowIntegrationWorksWrapper = styled.section`
146131
147132
.integration-section-caraousel .slick-slider {
148133
.slick-list {
149-
width: 100%;
134+
max-width: 80%;
150135
margin: 2rem auto;
151136
}
152-
.slick-arrow {
153-
&.slick-prev {
154-
left: -30px;
155-
}
156-
&.slick-next {
157-
right: -30px;
158-
}
137+
138+
.slick-dots {
139+
left: 92%;
159140
}
160141
}
161142
}
@@ -177,15 +158,16 @@ const HowIntegrationWorksWrapper = styled.section`
177158
178159
.integration-section-caraousel .slick-slider {
179160
.slick-list {
180-
width: 100%;
181-
margin: 2rem auto;
161+
max-width: 85%;
162+
margin: 2rem 0;
182163
}
183-
.slick-arrow {
184-
&.slick-prev {
185-
left: -20px;
186-
}
187-
&.slick-next {
188-
right: -20px;
164+
.slick-dots {
165+
left: 90%;
166+
width: 4rem;
167+
168+
li a img {
169+
height: 2.5rem;
170+
object-fit: contain;
189171
}
190172
}
191173
}
@@ -205,6 +187,10 @@ const HowIntegrationWorksWrapper = styled.section`
205187
}
206188
}
207189
}
190+
.slick-dots {
191+
left: 85%;
192+
top: -1rem;
193+
}
208194
}
209195
}
210196
}
@@ -214,16 +200,20 @@ const HowIntegrationWorksWrapper = styled.section`
214200
const HowIntegrationWorks = ({ name, howitworks, howitworksdetails, slides }) => {
215201

216202
const settings = {
217-
dots: true,
218-
infinite: true,
219-
speed: 500,
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,
220212
slidesToShow: 1,
221213
slidesToScroll: 1,
222-
arrows: true,
223-
autoplay: true,
224-
autoplaySpeed: 4000,
225-
pauseOnHover: true,
226-
adaptiveHeight: true
214+
dots: true,
215+
vertical: true,
216+
verticalSwiping: true
227217
};
228218

229219
return (
@@ -239,7 +229,7 @@ const HowIntegrationWorks = ({ name, howitworks, howitworksdetails, slides }) =>
239229
<Col $xs={12} $xl={4} className="integration-section-data">
240230
<h3>{howitworks != null ? howitworks : "Docker with Meshery" }</h3>
241231
<p>
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."}
232+
{howitworksdetails != null ? howitworksdetails : "The Docker Extension for Meshery extends Docker Desktops position as the cloud native developers go-to Kubernetes environment with easy access to the next layer of cloud native infrastructure: service meshes."}
243233
</p>
244234
</Col>
245235
<Col $xs={12} $xl={8} className="integration-section-caraousel">

0 commit comments

Comments
 (0)