From b81b5126dade45eacf4bbb5b6b9371854ab2d91f Mon Sep 17 00:00:00 2001 From: Austin Hornhead Date: Thu, 23 May 2024 16:34:47 +0200 Subject: [PATCH] refactor: Update Carousel styling and image dimensions Signed-off-by: Austin Hornhead --- src/components/Carousel.jsx | 14 +++++++------- src/index.css | 2 +- src/pages/Home.jsx | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/components/Carousel.jsx b/src/components/Carousel.jsx index 94a5ebd..bfa9919 100644 --- a/src/components/Carousel.jsx +++ b/src/components/Carousel.jsx @@ -87,19 +87,19 @@ export function CarouselFeatured() { slidesToShow: 1, }} orientation="vertical" - className="w-full max-w-xs" + className="mx-auto w-2/3 max-w-lg sm:w-1/2 md:w-1/3 lg:w-1/3 xl:w-1/3" > {images.map((image, index) => ( - - - - - + + + + + ))} - ) + ); } diff --git a/src/index.css b/src/index.css index b8c41f9..3c96a7b 100644 --- a/src/index.css +++ b/src/index.css @@ -168,7 +168,7 @@ set custom font and dim image background when in dark mode } .carousel { - width: 80%; + width: 90%; max-width: 32rem; margin-left: auto; margin-right: auto; diff --git a/src/pages/Home.jsx b/src/pages/Home.jsx index 52b00ca..c916ba4 100644 --- a/src/pages/Home.jsx +++ b/src/pages/Home.jsx @@ -34,11 +34,11 @@ const Section = ({ type, CarouselComponent, reverse }) => { />

{sectionData.title}

{sectionData.description}

-
+

{home.feat[1]}

    {sectionData.features.map((item, index) => ( -
  • +
  • {item}
  • ))} @@ -67,7 +67,7 @@ const Home = () => {