diff --git a/src/components/Card/HomeCard.jsx b/src/components/Card/HomeCard.jsx index 57ca2b2..92cc926 100644 --- a/src/components/Card/HomeCard.jsx +++ b/src/components/Card/HomeCard.jsx @@ -12,6 +12,12 @@ const HomeCard = ({ key, date, text }) => { } padding={"1px"} borderRadius={"10px"} + sx={{ + "@media (max-width: 600px)": { + width: "90%", + margin: "0 auto", + }, + }} > { borderRadius={"10px"} minHeight={"502px"} key={key} + sx={{ + "@media (max-width: 600px)": { + width: "100%", + minHeight: "0", + }, + }} > diff --git a/src/components/Card/MobileHomeCard.jsx b/src/components/Card/MobileHomeCard.jsx new file mode 100644 index 0000000..c217828 --- /dev/null +++ b/src/components/Card/MobileHomeCard.jsx @@ -0,0 +1,105 @@ +/* eslint-disable react/prop-types */ +/* eslint-disable no-unused-vars */ +import { Box, Container, Text, Image, Button } from "@chakra-ui/react"; +import cardimg from "../../assets/images/CardImg.png"; +import { Badge } from "@chakra-ui/react"; +import "swiper/css"; +import "swiper/css/pagination"; +import "swiper/css/navigation"; + +import { Navigation, Pagination } from "swiper/modules"; +import { Swiper, SwiperSlide } from "swiper/react"; + +const MobileHomeCard = () => { + return ( + + + + + + INSIGHT + + + + {date} + + + {text} + + + + + + + + + ); +}; + +export default MobileHomeCard; diff --git a/src/components/HomePage/HomeBanner.jsx b/src/components/HomePage/HomeBanner.jsx index 69ed6ca..74a6a16 100644 --- a/src/components/HomePage/HomeBanner.jsx +++ b/src/components/HomePage/HomeBanner.jsx @@ -62,74 +62,80 @@ const HomeBanner = () => { textAlign={"center"} paddingTop={"12%"} > - {BannerContent.map((item, index) => { - return ( - - + + {BannerContent[0].heading1} + {!isSmallScreen ? ( + <> +
+ + {BannerContent[0].heading2} + + + ) : ( + <> +
+ - {item.heading1} - {!isSmallScreen ? ( - - {item.heading2} - - ) : ( - - {item.heading2} - - )} -
- - {item.subheading} - -
- ); - })} + }} + > + {BannerContent[0].heading2} + + + )} + + + {BannerContent[1].subheading} + +
+ {BannerContent[2] && (