Skip to content

Commit 95c663b

Browse files
committed
fix: resolve slider carousel image invisibility in production build
Signed-off-by: Bharath Valaboju <69413757+Bharath314@users.noreply.github.com>
1 parent 9c2420a commit 95c663b

File tree

1 file changed

+36
-18
lines changed
  • src/sections/Meshery/Features-section

1 file changed

+36
-18
lines changed
Lines changed: 36 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import React from "react";
32
import { Row, Col } from "../../../reusecore/Layout";
43
import Button from "../../../reusecore/Button";
@@ -7,20 +6,15 @@ import Slide1 from "../../../assets/images/kanvas/gifs/start-from-scratch.gif";
76
import Slide2 from "../../../assets/images/kanvas/gifs/catalog.gif";
87
import Slide3 from "../../../assets/images/kanvas/gifs/rendered-design.webp";
98
import FeaturesSectionWrapper from "./features-section.style";
10-
import { StaticImage } from "gatsby-plugin-image";
11-
12-
const slide2Path = "../../../assets/images/kanvas/gifs/catalog.gif";
13-
const slide3Path = "../../../assets/images/kanvas/gifs/rendered-design.webp";
149

1510
const slides_list = [Slide1, Slide2, Slide3];
1611

1712
const FeaturesSection = () => {
18-
1913
var settings = {
2014
customPaging: function (i) {
2115
return (
2216
<p>
23-
<img src={slides_list[i]} loading="lazy" alt={"slide-img" + [i]}/>
17+
<img src={slides_list[i]} loading="lazy" alt={"slide-img" + [i]} />
2418
</p>
2519
);
2620
},
@@ -30,7 +24,7 @@ const FeaturesSection = () => {
3024
slidesToScroll: 1,
3125
dots: true,
3226
vertical: true,
33-
verticalSwiping: true
27+
verticalSwiping: true,
3428
};
3529

3630
return (
@@ -47,12 +41,16 @@ const FeaturesSection = () => {
4741
</div> */}
4842
<div className="section-header">
4943
<h2>Cloud native infrastructure is complex.</h2>
50-
<h1>Design it <span>visually and collaboratively</span></h1>
44+
<h1>
45+
Design it <span>visually and collaboratively</span>
46+
</h1>
5147
{/* <h1>
5248
<span>Meshery</span> supports the most service meshes.
5349
</h1> */}
5450
<p>
55-
No matter where you run your workloads, Meshery's Kanvas makes Kubernetes and cloud infrastructure design intuitive and collaborative.
51+
No matter where you run your workloads, Meshery's Kanvas makes
52+
Kubernetes and cloud infrastructure design intuitive and
53+
collaborative.
5654
</p>
5755
</div>
5856
<div className="smp-section">
@@ -61,7 +59,9 @@ const FeaturesSection = () => {
6159
<Col $xs={12} $xl={4} className="smp-section-data">
6260
<h2>The Visual Designer: Kanvas</h2>
6361
<p>
64-
Drag, drop, and deploy your infrastructure with ease. Kanvas, built on Meshery, simplifies Kubernetes and cloud management through intuitive visual designer and operator.
62+
Drag, drop, and deploy your infrastructure with ease. Kanvas,
63+
built on Meshery, simplifies Kubernetes and cloud management
64+
through intuitive visual designer and operator.
6565
</p>
6666
</Col>
6767
<Col $xs={12} $xl={8} className="smp-section-caraousel">
@@ -70,10 +70,10 @@ const FeaturesSection = () => {
7070
<img src={Slide1} alt="Slide 1" />
7171
</div>
7272
<div>
73-
<StaticImage src={slide2Path} alt="Slide 2" loading="lazy" />
73+
<img src={Slide2} alt="Slide 2" />
7474
</div>
7575
<div>
76-
<StaticImage src={slide3Path} alt="Slide 3" loading="lazy" />
76+
<img src={Slide3} alt="Slide 3" />
7777
</div>
7878
</Slider>
7979
</Col>
@@ -83,17 +83,35 @@ const FeaturesSection = () => {
8383
<div>
8484
<h3>One step to managing your microservices</h3>
8585
<h1>Cloud Native Application Management</h1>
86-
<p>Confidently take full advantage of all that your infrastructure offers.</p>
86+
<p>
87+
Confidently take full advantage of all that your infrastructure
88+
offers.
89+
</p>
8790
</div>
8891
<div className="mesh-mngmnt-btn">
8992
<Col $xs={12} $sm={6} $md={4}>
90-
<Button $secondary className="mgmt_button" title="Install" $url="/cloud-native-management/meshery/getting-started" />
93+
<Button
94+
$secondary
95+
className="mgmt_button"
96+
title="Install"
97+
$url="/cloud-native-management/meshery/getting-started"
98+
/>
9199
</Col>
92100
<Col $xs={12} $sm={6} $md={4}>
93-
<Button $secondary className="mgmt_button" title="Manage" $url="/cloud-native-management/meshery/operating-cloud-native-infra" />
101+
<Button
102+
$secondary
103+
className="mgmt_button"
104+
title="Manage"
105+
$url="/cloud-native-management/meshery/operating-cloud-native-infra"
106+
/>
94107
</Col>
95108
<Col $xs={12} $sm={6} $md={4}>
96-
<Button $secondary className="mgmt_button" title="Catalog" $url="/cloud-native-management/catalog" />
109+
<Button
110+
$secondary
111+
className="mgmt_button"
112+
title="Catalog"
113+
$url="/cloud-native-management/catalog"
114+
/>
97115
</Col>
98116
</div>
99117
</div>
@@ -102,4 +120,4 @@ const FeaturesSection = () => {
102120
);
103121
};
104122

105-
export default FeaturesSection;
123+
export default FeaturesSection;

0 commit comments

Comments
 (0)