2024-03-28 20:29:24 +05:30
/* eslint-disable no-unused-vars */
2024-03-27 16:32:05 +05:30
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" ;
2024-03-27 16:32:05 +05:30
// 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. ` ,
2024-04-11 21:00:19 +05:30
href : ` https://www.ensurity.com/ ` ,
2024-03-27 16:32:05 +05:30
} ,
2024-04-12 16:21:09 +05:30
2024-03-27 16:32:05 +05:30
{
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 ` ,
2024-04-11 21:00:19 +05:30
href : ` https://www.finaoeducation.com/ ` ,
2024-03-27 16:32:05 +05:30
} ,
{
id : 5 ,
src : jupiter ,
alt : "Jupiter" ,
text : ` Mobile-based wallet that generates and stores private keys on a mobile device ` ,
2024-04-11 21:00:19 +05:30
href : ` https://jupitermeta.io/ ` ,
2024-03-27 16:32:05 +05:30
} ,
2024-04-12 16:21:09 +05:30
{
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 ` ,
} ,
2024-03-27 16:32:05 +05:30
] ;
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 ) ;
2024-03-27 16:32:05 +05:30
return (
< Box
// height={"100vh"}
background = { "#000" }
backgroundSize = { "cover" }
backgroundRepeat = { "no-repeat" }
2024-04-09 13:00:11 +05:30
padding = { "2rem 0 4rem 0" }
2024-03-27 16:32:05 +05:30
>
2024-04-11 19:33:00 +05:30
< 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" ,
2024-04-11 19:33:00 +05:30
} ,
} }
>
{ 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" }
2024-03-27 16:32:05 +05:30
paddingBottom = { "2rem" }
// height={"50vh"}
sx = { {
2024-04-16 17:08:05 +05:30
"@media (max-width: 600px)" : {
padding : "1rem" ,
2024-03-27 16:32:05 +05:30
} ,
} }
>
< 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 ) => (
2024-03-27 16:32:05 +05:30
< 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-03-27 16:32:05 +05:30
/ >
2024-06-04 19:32:03 +05:30
) ) }
{ / * { c o n t e n t . m a p ( ( i t e m ) = > (
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
) ) } * / }
2024-03-27 16:32:05 +05:30
< / Box >
2024-04-05 20:18:08 +05:30
< / Box >
2024-03-27 16:32:05 +05:30
< / Box >
) ;
} ;
export default LearnDev ;