Files
rubix/src/components/LearnPage/LearnDev.jsx

143 lines
3.9 KiB
React
Raw Normal View History

/* eslint-disable no-unused-vars */
import { Box, Container, Text, Image, Button } from "@chakra-ui/react";
import LearnCard from "../Card/LearnCard";
import chainx from "../../assets/images/LearnCard2.png";
import ensurity from "../../assets/images/LearnCard4.png";
import exr from "../../assets/images/LearnCard5.png";
import finalo from "../../assets/images/LearnCard1.png";
import jupiter from "../../assets/images/LearnCard3.png";
2024-03-29 19:54:51 +05:30
import { useMediaQuery } from "@chakra-ui/react";
2024-05-15 17:39:01 +05:30
import { useGetpartnerCardQuery } from "../../Redux/slice/learPageSlice";
2024-05-22 12:37:02 +05:30
import DevCards from "../Card/DevCards";
// import { Badge } from "@chakra-ui/react";
const content = [
{
id: 2,
src: ensurity,
alt: "Ensurity",
text: `Building solutions for an easier transition from Web2 to Web3 for global enterprises with a focus on public sector companies.`,
href: `https://www.ensurity.com/`,
},
{
id: 4,
src: finalo,
alt: "Finalo Education",
text: `Delivers KYC/DID solutions for banks, and financial institutions, a highly secure algorithm for quantum security and a password-less authentication process for secure scaling`,
href: `https://www.finaoeducation.com/`,
},
{
id: 5,
src: jupiter,
alt: "Jupiter",
text: `Mobile-based wallet that generates and stores private keys on a mobile device`,
href: `https://jupitermeta.io/`,
},
{
id: 3,
src: exr,
alt: "EXR",
text: `A metaverse, XR, and Web3 entity offering solutions that infuse gamification and tokenomics.`,
href: `https://getfexr.com/`,
},
{
id: 1,
src: `${chainx}`,
alt: "ChainX",
text: `Building a Web3 infrastructure to support nonprofit communities, starting with YMCA`,
},
];
const Content = {
heading: `Enabling developers across a variety`,
span: `of applications`,
};
const LearnDev = () => {
2024-03-29 19:54:51 +05:30
const [isSmallScreen] = useMediaQuery("(max-width: 996px)");
2024-05-15 17:39:01 +05:30
const { data, isLoading, error } = useGetpartnerCardQuery();
const partnerCard = data?.data?.data;
console.log(partnerCard);
return (
<Box
// height={"100vh"}
background={"#000"}
backgroundSize={"cover"}
backgroundRepeat={"no-repeat"}
2024-04-09 13:00:11 +05:30
padding={"2rem 0 4rem 0"}
>
<Text
as={"h2"}
paddingTop={"2rem"}
paddingBottom={"2rem"}
paddingLeft={"7rem"}
fontWeight={700}
fontSize={"40px"}
textAlign={"left"}
textTransform={"capitalize"}
color={"#fff"}
width={"fit-content"}
sx={{
2024-04-16 17:08:05 +05:30
"@media (max-width: 500px)": {
fontSize: "22px",
fontWeight: "400",
marginBottom: "30px",
2024-05-15 17:39:01 +05:30
padding: "1rem",
paddingBottom: "0px",
},
}}
>
{Content.heading} {isSmallScreen ? null : <br />}
{Content.span}
</Text>
2024-04-05 20:18:08 +05:30
<Box
// maxW="container.xl"
2024-04-11 13:41:31 +05:30
paddingLeft={"6rem"}
paddingBottom={"2rem"}
// height={"50vh"}
sx={{
2024-04-16 17:08:05 +05:30
"@media (max-width: 600px)": {
padding: "1rem",
},
}}
>
<Box
display={"flex"}
alignItems={"center"}
gap={"25px"}
overflowX={"auto"}
overflowY={"auto"}
sx={{
"&::-webkit-scrollbar": {
width: "0px",
},
}}
>
2024-06-04 19:32:03 +05:30
{partnerCard?.map((item) => (
<LearnCard
key={item.id}
2024-05-15 17:39:01 +05:30
src={item.company_logo}
// alt={item.alt}
text={item.description}
href={item.website_link}
/>
2024-06-04 19:32:03 +05:30
))}
{/* {content.map((item) => (
2024-05-22 12:37:02 +05:30
<DevCards
key={item.id}
src={item.src}
alt={item.alt}
text={item.text}
href={item.href}
/>
2024-06-04 19:32:03 +05:30
))} */}
</Box>
2024-04-05 20:18:08 +05:30
</Box>
</Box>
);
};
export default LearnDev;