Files
rubix/src/components/Community/LearnMore.jsx

189 lines
5.1 KiB
React
Raw Normal View History

2024-04-04 16:50:03 +05:30
import { Box, Button, Container, Text } from "@chakra-ui/react";
2024-04-05 17:54:18 +05:30
import banner from "../../assets/images/moreBanner.png";
2024-04-04 16:50:03 +05:30
const SectionContent = {
heading: `Connect with us to learn more!`,
2024-04-05 17:54:18 +05:30
subContent: `With countless applications, there's a place for everyone in the Rubix community.`,
2024-04-04 16:50:03 +05:30
btnContent: `Contact Us`,
2024-04-05 17:54:18 +05:30
btnBild:"Build with Rubix",
2024-04-04 16:50:03 +05:30
};
const LearnMore = () => {
return (
<Box
height={"auto"}
2024-04-05 17:54:18 +05:30
backgroundImage={`url(${banner})`}
2024-04-04 16:50:03 +05:30
backgroundSize={"cover"}
backgroundRepeat={"no-repeat"}
sx={{
"@media (max-width: 1024px)": {
height: "auto",
},
"@media (max-width: 600px)": {
fontSize: "28px",
},
}}
>
<Text
as={"h2"}
2024-04-09 13:00:11 +05:30
paddingTop={"3rem"}
paddingBottom={"1rem"}
2024-04-04 16:50:03 +05:30
fontWeight={700}
2024-04-10 20:37:28 +05:30
fontSize={"38px"}
2024-04-04 16:50:03 +05:30
textAlign={"center"}
textTransform={"capitalize"}
color={"#fff"}
sx={{
"@media (max-width: 1024px)": {},
2024-04-10 20:37:28 +05:30
"@media (max-width: 500px)": {
fontSize: "20px",
fontWeight:'500',
marginBottom:'5px'
2024-04-04 16:50:03 +05:30
},
}}
>
{SectionContent.heading}
</Text>
<Container
maxW="container.md"
textAlign={"center"}
display={"grid"}
placeContent={"center"}
// height={"30vh"}
2024-04-09 13:00:11 +05:30
paddingBottom={"4rem"}
2024-04-04 16:50:03 +05:30
>
<Text
color={"#E4E4E4"}
2024-04-10 20:37:28 +05:30
fontSize={"22px"}
2024-04-04 16:50:03 +05:30
marginBottom={"2rem"}
fontFamily={"Poppins"}
2024-04-10 20:37:28 +05:30
sx={{
"@media (max-width: 500px)": {
fontSize: "14px",
fontWeight:'100',
marginBottom:'5px',
marginBottom:'30px'
},
}}
2024-04-04 16:50:03 +05:30
>
{SectionContent.subContent}
</Text>
2024-04-05 17:54:18 +05:30
<Text>
2024-04-04 16:50:03 +05:30
<Button
fontSize={"20px"}
// minW={"284px"}
2024-04-10 20:37:28 +05:30
height={"54px"}
2024-04-04 16:50:03 +05:30
fontFamily={"Poppins"}
backgroundColor={"transparent"}
border={"1px solid #fff"}
color={"#fff"}
fontWeight={"400"}
2024-04-05 17:54:18 +05:30
margin={"0 10px"}
// transition="0.3s ease-in-out"
zIndex={"1"}
overflow={"hidden"}
padding={"0 3rem"}
sx={{
"::before": {
content: '""',
position: "absolute",
top: "50%",
left: "50%",
transform: "translate(-50%, -50%)",
width: "65px",
height: "65px",
borderRadius: "50%",
transition: "0.35s linear",
zIndex: -1,
bgGradient:
"radial-gradient(circle, #ffffff, #eee2f2, #e7c3dc, #e5a3ba, #de858e)",
opacity: "0",
},
"&:hover::before": {
width: "100%",
height: "120%",
borderRadius: "0px",
opacity: "1",
},
2024-04-10 20:37:28 +05:30
"@media (max-width: 500px)": {
padding:'5px 15px',
height:'40px',
fontSize:'14px',
margin:'0 7px',
bgGradient:
"radial-gradient(circle, #ffffff, #eee2f2, #e7c3dc, #e5a3ba, #de858e)",
color:'#000',
fontWeight:'600'
},
2024-04-05 17:54:18 +05:30
}}
_hover={{
color: "#000",
border: "none",
zIndex: 1,
}}
>
{SectionContent.btnBild}
</Button>
<Button
fontSize={"20px"}
// minW={"284px"}
2024-04-10 20:37:28 +05:30
height={"54px"}
2024-04-05 17:54:18 +05:30
fontFamily={"Poppins"}
backgroundColor={"transparent"}
border={"1px solid #fff"}
color={"#fff"}
fontWeight={"400"}
margin={"0 10px"}
2024-04-04 16:50:03 +05:30
// transition="0.3s ease-in-out"
zIndex={"1"}
overflow={"hidden"}
padding={"0 3rem"}
sx={{
"::before": {
content: '""',
position: "absolute",
top: "50%",
left: "50%",
transform: "translate(-50%, -50%)",
width: "65px",
height: "65px",
borderRadius: "50%",
transition: "0.35s linear",
zIndex: -1,
bgGradient:
"radial-gradient(circle, #ffffff, #eee2f2, #e7c3dc, #e5a3ba, #de858e)",
opacity: "0",
},
"&:hover::before": {
width: "100%",
height: "120%",
borderRadius: "0px",
opacity: "1",
},
2024-04-10 20:37:28 +05:30
"@media (max-width: 500px)": {
padding:'5px 15px',
height:'40px',
fontSize:'14px',
margin:'0 7px',
bgGradient:
"radial-gradient(circle, #ffffff, #eee2f2, #e7c3dc, #e5a3ba, #de858e)",
color:'#000',
fontWeight:'600'
},
2024-04-04 16:50:03 +05:30
}}
_hover={{
color: "#000",
border: "none",
zIndex: 1,
}}
>
{SectionContent.btnContent}
</Button>
2024-04-05 17:54:18 +05:30
</Text>
2024-04-04 16:50:03 +05:30
</Container>
</Box>
);
};
export default LearnMore;