Skip to content

Commit 784195d

Browse files
committed
responsive issue
Signed-off-by: Jeffrin Jojo <jeffrinjojo1@gmail.com>
1 parent 462b86a commit 784195d

1 file changed

Lines changed: 40 additions & 8 deletions

File tree

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

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

Lines changed: 40 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,46 +37,62 @@ 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 {
5358
position: relative;
59+
width: 100%;
5460
5561
.slick-list {
56-
max-width: 100%;
62+
width: 100%;
5763
margin: 0 auto;
64+
overflow: hidden;
5865
5966
.slick-slide {
67+
display: flex;
68+
justify-content: center;
69+
align-items: center;
70+
6071
img {
72+
max-width: 100%;
73+
height: auto;
6174
max-height: 20rem;
75+
object-fit: contain;
6276
margin: auto;
63-
width: auto;
6477
}
6578
}
6679
}
6780
6881
.slick-arrow {
6982
display: block !important;
7083
z-index: 1;
84+
width: 40px;
85+
height: 40px;
7186
&:before {
7287
color: ${props => props.theme.secondaryColor};
7388
font-size: 2rem;
89+
opacity: 1;
7490
}
7591
&.slick-prev {
76-
left: 1rem;
92+
left: -50px;
7793
}
7894
&.slick-next {
79-
right: 1rem;
95+
right: -50px;
8096
}
8197
}
8298
@@ -130,9 +146,17 @@ const HowIntegrationWorksWrapper = styled.section`
130146
131147
.integration-section-caraousel .slick-slider {
132148
.slick-list {
133-
max-width: 90%;
149+
width: 100%;
134150
margin: 2rem auto;
135151
}
152+
.slick-arrow {
153+
&.slick-prev {
154+
left: -30px;
155+
}
156+
&.slick-next {
157+
right: -30px;
158+
}
159+
}
136160
}
137161
}
138162
}
@@ -153,9 +177,17 @@ const HowIntegrationWorksWrapper = styled.section`
153177
154178
.integration-section-caraousel .slick-slider {
155179
.slick-list {
156-
max-width: 85%;
180+
width: 100%;
157181
margin: 2rem auto;
158182
}
183+
.slick-arrow {
184+
&.slick-prev {
185+
left: -20px;
186+
}
187+
&.slick-next {
188+
right: -20px;
189+
}
190+
}
159191
}
160192
}
161193
}
@@ -207,7 +239,7 @@ const HowIntegrationWorks = ({ name, howitworks, howitworksdetails, slides }) =>
207239
<Col $xs={12} $xl={4} className="integration-section-data">
208240
<h3>{howitworks != null ? howitworks : "Docker with Meshery" }</h3>
209241
<p>
210-
{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."}
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."}
211243
</p>
212244
</Col>
213245
<Col $xs={12} $xl={8} className="integration-section-caraousel">

0 commit comments

Comments
 (0)