From 33b115c1dca0f4fb669ee5082d2a6177e40c1c33 Mon Sep 17 00:00:00 2001 From: YasinShaikh123 <123150391+YasinShaikh123@users.noreply.github.com> Date: Wed, 10 Apr 2024 20:37:28 +0530 Subject: [PATCH] community page --- src/components/Card/HappenCard.jsx | 41 ++- src/components/Card/InsightsCard.jsx | 30 ++- src/components/Card/PlaceCard.jsx | 62 +++-- src/components/Community/CommunityBanner.jsx | 17 +- src/components/Community/Connect.jsx | 228 +++++++++++------ src/components/Community/Happen.jsx | 45 +++- src/components/Community/Insights.jsx | 123 +++++---- src/components/Community/LearnMore.jsx | 44 +++- src/components/Community/Place.jsx | 17 +- .../MobileComponent/MobileCommunityCard.jsx | 236 ++++++++++++++++++ src/index.css | 37 ++- src/pages/Community.jsx | 27 +- 12 files changed, 726 insertions(+), 181 deletions(-) create mode 100644 src/components/MobileComponent/MobileCommunityCard.jsx diff --git a/src/components/Card/HappenCard.jsx b/src/components/Card/HappenCard.jsx index d7ff43d..e0e5a3a 100644 --- a/src/components/Card/HappenCard.jsx +++ b/src/components/Card/HappenCard.jsx @@ -12,6 +12,12 @@ const HappenCard = ({ key, date, text, para, month, curentDate }) => { position={"relative"} // minHeight={"402px"} key={key} + sx={{ + "@media (max-width: 500px)": { + width:'320px', + minHeight:'300px' + }, + }} > {
{curentDate}
- + {date} - + {text} - {para} + + {para} + diff --git a/src/components/Card/InsightsCard.jsx b/src/components/Card/InsightsCard.jsx index 6dc96a0..b11ba0e 100644 --- a/src/components/Card/InsightsCard.jsx +++ b/src/components/Card/InsightsCard.jsx @@ -13,6 +13,11 @@ const InsightsCard = ({ key, title, text }) => { } padding={"1px"} borderRadius={"10px"} + sx={{ + "@media (max-width: 500px)": { + marginBottom:'2rem' + }, + }} > { minHeight={"430px"} key={key} transition={"all 1s"} + sx={{ + "@media (max-width: 500px)": { + width:'320px', + minHeight:'300px' + }, + }} > @@ -39,13 +50,25 @@ const InsightsCard = ({ key, title, text }) => { bottom={"14px"} left={"12px"} transition={"all 1s"} + sx={{ + "@media (max-width: 500px)": { + fontSize:'12px', + }, + }} > INSIGHT )} - + {title} { marginBottom={"20px"} minHeight={"73px"} maxWidth={"460px"} + sx={{ + "@media (max-width: 500px)": { + fontSize:'14px', + }, + }} > {text} diff --git a/src/components/Card/PlaceCard.jsx b/src/components/Card/PlaceCard.jsx index 69b56db..a41c604 100644 --- a/src/components/Card/PlaceCard.jsx +++ b/src/components/Card/PlaceCard.jsx @@ -1,14 +1,11 @@ /* eslint-disable no-unused-vars */ import { Box, Container, Text, Image, Button } from "@chakra-ui/react"; -import {ArrowForwardIcon } from '@chakra-ui/icons' -import Arrow from "../../assets/images/arrow-right.png" +import { ArrowForwardIcon } from "@chakra-ui/icons"; +import Arrow from "../../assets/images/arrow-right.png"; -const PlaceCard = ({ key, text, cardicon ,title,button}) => { +const PlaceCard = ({ key, text, cardicon, title, button }) => { return ( - + { minHeight={"350px"} key={key} padding={"15px 20px"} + sx={{ + "@media (max-width: 500px)": { + width: "320px", + fontWeight: "400", + minHeight:'290px' + }, + }} > - + - - {title} + + {title} { marginBottom={"20px"} minHeight={"73px"} maxWidth={"460px"} + sx={{ + "@media (max-width: 500px)": { + fontSize: "12px", + }, + }} > {text} - + { fontWeight={"400"} display={"flex"} alignItems={"center"} + sx={{ + "@media (max-width: 500px)": { + fontSize: "12px", + }, + }} > - {button} + {button} + diff --git a/src/components/Community/CommunityBanner.jsx b/src/components/Community/CommunityBanner.jsx index f34f9da..fba7458 100644 --- a/src/components/Community/CommunityBanner.jsx +++ b/src/components/Community/CommunityBanner.jsx @@ -68,16 +68,12 @@ const CommunityBanner = () => { letterSpacing={"1px"} sx={{ "@media (max-width: 996px)": { - fontSize: "35px", + fontSize: "46px", }, "@media (max-width: 600px)": { - fontSize: "28px", - marginBottom: "2rem", - }, - "@media (max-width: 500px)": { - marginTop: "2rem", - marginBottom: "2rem", - fontSize: "36px", + fontSize: "40px", + marginBottom: "0rem", + lineHeight:'54px' }, }} > @@ -113,6 +109,7 @@ const CommunityBanner = () => { }, "@media (max-width: 500px)": { fontSize: "16px", + lineHeight:'28px' }, }} > @@ -162,6 +159,10 @@ const CommunityBanner = () => { width: "230px", height: "44px", marginTop: "2rem", + bgGradient: + "radial-gradient(circle, #ffffff, #eee2f2, #e7c3dc, #e5a3ba, #de858e)", + color:'#000', + fontWeight:'600' }, }} _hover={{ diff --git a/src/components/Community/Connect.jsx b/src/components/Community/Connect.jsx index d1fba9f..831313c 100644 --- a/src/components/Community/Connect.jsx +++ b/src/components/Community/Connect.jsx @@ -64,99 +64,175 @@ const Connect = () => { backgroundRepeat={"no-repeat"} > Connect with Rubix community - - {items.map((item) => ( - <> - + {items.map((item) => ( + <> + + - - */} + - {/* */} - + + + + + + + - {item.head} - - - - - - - - - {item.social1} + {item.social1} + + + + + + {item.social2} + + + {item.social3 ? ( + + + + {item.social3} - - - - {item.social2} - - - {item.social3 ? ( - - - - {item.social3} - - - ) : ( - "" - )} - - - - - ))} - + ) : ( + "" + )} + + + + + ))} + ); diff --git a/src/components/Community/Happen.jsx b/src/components/Community/Happen.jsx index 58b1e1d..2ac1b3f 100644 --- a/src/components/Community/Happen.jsx +++ b/src/components/Community/Happen.jsx @@ -40,8 +40,7 @@ const Content = { heading: `Latest Happenings`, }; -const Happen = () => { - return ( +const Happen = () => { return ( { "@media (max-width: 1024px)": { padding: "3rem", }, - "@media (max-width: 435px)": {}, + "@media (max-width: 500px)": { + padding:'1rem' + }, }} > { fontSize={"40px"} textTransform={"capitalize"} color={"#fff"} + sx={{ + "@media (max-width: 500px)": { + fontSize: "22px", + fontWeight:'400' + }, + }} > {Content.heading} @@ -74,8 +81,8 @@ const Happen = () => { paddingBottom={"2rem"} // height={"50vh"} sx={{ - "@media (max-width: 435px)": { - paddingLeft: "3rem", + "@media (max-width: 500px)": { + paddingLeft: "0rem", }, }} > @@ -83,6 +90,15 @@ const Happen = () => { {Latest.map((item) => ( { ))} - + - + fontWeight: "600", + }, + }} + _hover={{ + color: "#000", + border: "none", + zIndex: 1, + }} + > + View More + + ); }; diff --git a/src/components/Community/LearnMore.jsx b/src/components/Community/LearnMore.jsx index 7e77a94..b10bb74 100644 --- a/src/components/Community/LearnMore.jsx +++ b/src/components/Community/LearnMore.jsx @@ -29,15 +29,16 @@ const LearnMore = () => { paddingTop={"3rem"} paddingBottom={"1rem"} fontWeight={700} - // fontSize={"40px"} - className="rubix-text-title" + fontSize={"38px"} textAlign={"center"} textTransform={"capitalize"} color={"#fff"} sx={{ "@media (max-width: 1024px)": {}, - "@media (max-width: 600px)": { - fontSize: "28px", + "@media (max-width: 500px)": { + fontSize: "20px", + fontWeight:'500', + marginBottom:'5px' }, }} > @@ -53,10 +54,17 @@ const LearnMore = () => { > {SectionContent.subContent} @@ -64,7 +72,7 @@ const LearnMore = () => {