File tree Expand file tree Collapse file tree 2 files changed +17
-6
lines changed
src/sections/Meshery/Features-section Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -30,14 +30,14 @@ const FeaturesSectionWrapper = styled.section`
3030 top: 0.5px;
3131 }
3232 .rect-2-left {
33- background: ${ props => props . theme . secondaryColor } ;
33+ background: ${ ( props ) => props . theme . secondaryColor } ;
3434 border-radius: 0 0 3.5rem 0;
3535 grid-column: 1/2;
3636 height: 5rem;
3737 grid-row: 2;
3838 }
3939 .rect-3-right {
40- background: ${ props => props . theme . secondaryColor } ;
40+ background: ${ ( props ) => props . theme . secondaryColor } ;
4141 border-radius: 3.5rem 0 0 0;
4242 grid-column: 10/11;
4343 grid-row: 1;
@@ -74,7 +74,7 @@ const FeaturesSectionWrapper = styled.section`
7474 h1 {
7575 line-height: 3.125rem;
7676 span {
77- color: ${ props => props . theme . secondaryColor } ;
77+ color: ${ ( props ) => props . theme . secondaryColor } ;
7878 }
7979 }
8080 h2 {
@@ -114,8 +114,14 @@ const FeaturesSectionWrapper = styled.section`
114114 .slick-list {
115115 max-width: 50rem;
116116 max-height: 520px;
117+ height: auto;
118+
119+ .slick-track {
120+ height: auto;
121+ }
117122
118123 .slick-slide {
124+ height: auto;
119125 img {
120126 max-height: 20rem;
121127 margin: auto;
@@ -297,4 +303,4 @@ const FeaturesSectionWrapper = styled.section`
297303 }
298304` ;
299305
300- export default FeaturesSectionWrapper ;
306+ export default FeaturesSectionWrapper ;
Original file line number Diff line number Diff line change @@ -7,6 +7,11 @@ import Slide2 from "../../../assets/images/kanvas/gifs/catalog.gif";
77import Slide3 from "../../../assets/images/kanvas/gifs/rendered-design.webp" ;
88import FeaturesSectionWrapper from "./features-section.style" ;
99
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" ;
14+
1015const slides_list = [ Slide1 , Slide2 , Slide3 ] ;
1116
1217const FeaturesSection = ( ) => {
@@ -70,10 +75,10 @@ const FeaturesSection = () => {
7075 < img src = { Slide1 } alt = "Slide 1" />
7176 </ div >
7277 < div >
73- < img src = { Slide2 } alt = "Slide 2" />
78+ < StaticImage src = { slide2Path } alt = "Slide 2" loading = "lazy " />
7479 </ div >
7580 < div >
76- < img src = { Slide3 } alt = "Slide 3" />
81+ < StaticImage src = { slide3Path } alt = "Slide 3" loading = "lazy " />
7782 </ div >
7883 </ Slider >
7984 </ Col >
You can’t perform that action at this time.
0 commit comments