Skip to content

Commit

Permalink
Merge pull request #173 from istenith/footer-new
Browse files Browse the repository at this point in the history
caraousel update
  • Loading branch information
Sourabh-awasthy authored Aug 2, 2024
2 parents 97a1210 + 205cd45 commit d0d049b
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 26 deletions.
18 changes: 16 additions & 2 deletions public/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -476,25 +476,39 @@

/* Coursel CSS */
.carousel-container {
width: 90%;
width: 80%;
margin: 0 auto;
padding: 10px;
}

.carousel-wrapper {

border-radius: 10px;
padding: 2px;
box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2);
box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
}

.carousel-wrapper .carousel .slide {
border-radius: 10px;
display: flex;
justify-content: center;
}

.carousel-wrapper .carousel .slide img {
border-radius: 10px;
object-fit: cover;
}

.carousel-image-container {
display: flex;

}

.carousel-image {
max-width: 70%;
max-height: 100%;
}

.carousel .control-dots {
display: none;
}
48 changes: 24 additions & 24 deletions src/components/homePageComponents/carousel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,28 +21,28 @@ const ImageCarousel = () => {
technexImage3,
];


return (
<div className="carousel-container">
<div className="carousel-wrapper">
<Carousel
showArrows={false}
showThumbs={false}
showStatus={false}
autoPlay={true}
interval={3000}
infiniteLoop={true}
>
{carouselImages.map((image, index) => (
<div key={index}>
<img src={image} alt={`img ${index + 1}`} />
</div>
))}
</Carousel>
</div>
return (
<div className="carousel-container">
<div className="carousel-wrapper">
<Carousel
showArrows={false}
showThumbs={false}
showStatus={false}
autoPlay={true}
interval={3000}
infiniteLoop={true}
centerMode={false}
selectedItem={0}
>
{carouselImages.map((image, index) => (
<div key={index} className="carousel-image-container">
<img src={image} alt={`img ${index + 1}`} className="carousel-image" />
</div>
))}
</Carousel>
</div>
);
};
export default ImageCarousel;
</div>
);
};

export default ImageCarousel;

0 comments on commit d0d049b

Please sign in to comment.