Files
rubix/src/components/MobileComponent/MobileCommunityCard.jsx

290 lines
9.6 KiB
React
Raw Normal View History

2024-04-16 20:34:44 +05:30
/* eslint-disable no-unused-vars */
2024-05-22 20:34:08 +05:30
import React, { useState } from "react";
2024-04-10 20:37:28 +05:30
import { Swiper, SwiperSlide } from "swiper/react";
import { Box, Container, SimpleGrid, Text, Image } from "@chakra-ui/react";
import "swiper/css";
import "swiper/css/pagination";
import imgOne from "../../assets/images/Component115.png";
import imgtwo from "../../assets/images/Component116.png";
import imgthree from "../../assets/images/Component117.png";
import imgfour from "../../assets/images/Component118.png";
import imgfive from "../../assets/images/Component119.png";
import imgsix from "../../assets/images/Component120.png";
import imgseven from "../../assets/images/Component121.png";
import imgeight from "../../assets/images/Component122.png";
import imgnine from "../../assets/images/Component123.png";
import imgten from "../../assets/images/Component128.png";
import imgeleven from "../../assets/images/Component127.png";
import linkedin from "../../assets/images/linkedin.png";
import games from "../../assets/images/discot.png";
2024-05-22 20:34:08 +05:30
import imgtweleve from "../../assets/images/vivek.jpeg";
2024-04-16 20:34:44 +05:30
import { Pagination, Navigation } from "swiper/modules";
import { Link } from "react-router-dom";
2024-05-22 20:34:08 +05:30
import { useGetCommunitiesQuery } from "../../Redux/slice/communitySlice";
2024-04-10 20:37:28 +05:30
const individuals = [
{
location: "india",
name: "KC Reddy",
jobTitle: "Founder/CTO",
description:
"A visionary poised to deliver trustless, secure internet and passwordless cyber security",
imageUrl: imgOne,
link: `https://www.linkedin.com/in/kc-reddy-767a3463/`,
2024-04-10 20:37:28 +05:30
},
2024-05-22 19:53:38 +05:30
{
name: "Vivek Tikoo",
jobTitle: "Co-Founder & CEO| ChainX | RubiX",
description:
"Thought Leader in Web3 enabled Digital transformation with passion for execution",
imageUrl: imgtweleve,
link: `https://www.linkedin.com/in/vivektikoo/`,
},
2024-04-10 20:37:28 +05:30
{
location: "india",
name: "Ravi Srinivasa Murty",
jobTitle: "Chief Strategy Officer",
description:
"Global business leader with a technology orientation and a vision to drive economic value.",
imageUrl: imgtwo,
link: `https://www.linkedin.com/in/ravi-srinivasa-murty-7a46041/`,
2024-04-10 20:37:28 +05:30
},
{
location: "india",
name: "Hari Krishnan",
jobTitle: "Head of Technology",
2024-04-10 20:37:28 +05:30
description:
"Deeply passionate about Cryptography, Zero Knowledge Proofs, and Number Theory.",
imageUrl: imgthree,
link: `https://www.linkedin.com/in/hari-krishnan-1691b6120/`,
2024-04-10 20:37:28 +05:30
},
{
location: "india",
name: "Eser Torun, CFA",
jobTitle: "Chief Growth Officer",
2024-04-10 20:37:28 +05:30
description:
2024-04-16 20:34:44 +05:30
"Expert at balancing risk-taking with sound business judgment in decision-making.",
2024-04-10 20:37:28 +05:30
imageUrl: imgten,
link: `https://www.linkedin.com/in/eser-torun-cfa?utm_source=share&utm_campaign=share_via&utm_content=profile&utm_medium=ios_app`,
2024-04-10 20:37:28 +05:30
},
{
location: "india",
name: "Gokul P S",
jobTitle: "Core Blockchain Developer",
description:
"A proactive Web3 enthusiast ensuring the security and scalability of our 51.4M proofchains.",
imageUrl: imgfour,
link: `https://www.linkedin.com/in/gokul-p-s-3a8445130/`,
2024-04-10 20:37:28 +05:30
},
{
location: "india",
name: "Allen Iype P Cherian",
jobTitle: "Blockchain Engineer",
description:
"A motivated and responsible B tech Graduate, with a strong work ethic.",
imageUrl: imgfive,
link: `https://www.linkedin.com/in/allen-iype-p-cherian/`,
2024-04-10 20:37:28 +05:30
},
{
location: "india",
name: "Nidhin M.",
jobTitle: "Lead Engineer",
description:
"Developed revolutionary PoP protocol, P2P data transfer and transaction processing functions.",
imageUrl: imgsix,
link: `https://www.linkedin.com/in/nidhinmahesh/`,
2024-04-10 20:37:28 +05:30
},
{
location: "india",
name: "Arnab Ghose",
jobTitle: "Senior Blockchain Engineer",
description:
2024-04-16 20:34:44 +05:30
"Master at handling complex tasks and gives 100% effort all the time.",
2024-04-10 20:37:28 +05:30
imageUrl: imgeleven,
link: `https://www.linkedin.com/in/arnabghose997?utm_source=share&utm_campaign=share_via&utm_content=profile&utm_medium=ios_app`,
2024-04-10 20:37:28 +05:30
},
{
location: "india",
name: "Ashita Gupta",
2024-04-10 20:37:28 +05:30
jobTitle: "Blockchain Developer",
description:
"Enthusiastic blockchain developer who pushes herself every day to excel at work.",
imageUrl: imgseven,
link: `https://www.linkedin.com/in/ashita-gupta-5a0827167/`,
2024-04-10 20:37:28 +05:30
},
{
location: "india",
name: "Vaishnav C H",
jobTitle: "Blockchain Developer",
description:
"A very humble and talented Golang developer and mechatronics and blockchain engineer",
imageUrl: imgeight,
link: `https://www.linkedin.com/in/vaishnav-c-h-134053221/`,
2024-04-10 20:37:28 +05:30
},
{
location: "india",
name: "Maneesha Panda",
jobTitle: "Blockchain Engineer",
description:
"A highly keen blockchain engineer with a zeal for innovation who brings new ideas to the table.",
imageUrl: imgnine,
link: `https://www.linkedin.com/in/maneesha-panda/`,
2024-04-10 20:37:28 +05:30
},
];
const MobileCommunityCard = () => {
2024-05-22 20:34:08 +05:30
const { data, error, isLoading } = useGetCommunitiesQuery();
const [state, setState] = useState();
const profile = data?.data?.data;
console.log(data?.data?.data);
2024-04-22 16:32:34 +05:30
const imgHeight = {
minWidth: `162px`,
height: "168px",
borderRadius: "10px",
objectFit: "cover",
};
2024-04-16 20:34:44 +05:30
return (
2024-04-10 20:37:28 +05:30
<>
2024-04-16 20:34:44 +05:30
<Box backgroundColor={"#101015"}>
2024-04-10 20:37:28 +05:30
<Container
maxW={"container.xl"}
padding={"0 5rem"}
paddingBottom={"6rem"}
sx={{
"@media (max-width: 1024px)": {
padding: "3rem",
},
"@media (max-width: 500px)": {
2024-04-16 20:34:44 +05:30
padding: "0 1rem",
paddingBottom: "0rem",
2024-04-10 20:37:28 +05:30
},
}}
>
<Text
as={"h2"}
paddingTop={"3rem"}
paddingBottom={"3rem"}
fontWeight={700}
fontSize={"38px"}
2024-04-16 17:08:05 +05:30
textAlign={"center"}
2024-04-10 20:37:28 +05:30
textTransform={"capitalize"}
color={"#fff"}
id="rubix-community"
2024-04-10 20:37:28 +05:30
sx={{
"@media (max-width: 500px)": {
fontSize: "22px",
2024-04-16 20:34:44 +05:30
fontWeight: "400",
marginBottom: "0px",
paddingBottom: "30px",
2024-04-10 20:37:28 +05:30
},
}}
>
Rubix Community
</Text>
2024-04-16 20:34:44 +05:30
<Swiper
className="team-slider"
spaceBetween={20}
slidesPerView={2}
navigation={true}
pagination={{ clickable: true }}
modules={[Navigation]} // Enables pagination and navigation modules
autoplay={{ delay: 3000 }}
onSlideChange={() => console.log("slide change")}
onSwiper={(swiper) => console.log(swiper)}
style={{ paddingBottom: "8rem", position: "relative" }}
>
2024-05-22 20:34:08 +05:30
{profile?.map((item) => (
2024-04-16 20:34:44 +05:30
<SwiperSlide
// height={"100vh"}
background={"#101015"}
backgroundSize={"cover"}
backgroundRepeat={"no-repeat"}
2024-05-22 20:34:08 +05:30
key={item.id}
2024-04-16 20:34:44 +05:30
>
<Text>
2024-04-10 20:37:28 +05:30
<Text
2024-04-16 20:34:44 +05:30
position="relative"
overflow="hidden"
_hover={{
"&::before": {
content: '""',
position: "absolute",
top: 0,
left: 0,
width: "100%",
height: "100%",
background:
"linear-gradient(to bottom, #f8697a8c 0%, #8d54f86e 86%)",
borderRadius: "5px",
},
}}
2024-04-10 20:37:28 +05:30
>
<Image
2024-05-22 20:34:08 +05:30
src={`https://rubix.betadelivery.com/${item.profile_image}`}
sx={{
"@media (max-width: 820px)": {
height: "auto",
minW: "auto",
2024-05-22 20:34:08 +05:30
minHeight: "190px",
objectFit: "cover",
},
"@media (max-width: 600px)": {
style: { imgHeight },
},
}}
/>
2024-04-10 20:37:28 +05:30
</Text>
2024-04-16 20:34:44 +05:30
</Text>
<Text
color={"#fff"}
fontSize={"16px"}
marginTop={"15px"}
maxWidth={"460px"}
>
2024-05-22 20:34:08 +05:30
{item.member_name}
2024-04-16 20:34:44 +05:30
</Text>
<Text
fontSize={"12px"}
color={"#DEDEDE"}
margin={"4px 0px"}
minHeight={"25px"}
>
2024-05-22 20:34:08 +05:30
{item.designation}
2024-04-16 20:34:44 +05:30
</Text>
<Text
fontSize={"11px"}
color={"#DEDEDE"}
margin={"6px 0px"}
minHeight={"72px"}
>
2024-04-16 20:34:44 +05:30
{item.description}
</Text>
<Text display={"flex"} marginTop={"20px"}>
2024-05-22 20:34:08 +05:30
<Link to={item.linkedin}>
<img
src={linkedin}
style={{
minWidth: "34px",
height: "34px",
marginBottom: "10px",
marginRight: "10px",
}}
/>
</Link>
{/* <img
2024-04-16 20:34:44 +05:30
src={games}
style={{ minWidth: "34px", height: "34px" }}
/> */}
2024-04-16 20:34:44 +05:30
</Text>
</SwiperSlide>
))}
</Swiper>
2024-04-10 20:37:28 +05:30
</Container>
</Box>
</>
);
};
export default MobileCommunityCard;