/* eslint-disable no-unused-vars */
import { Box, Container, Text, Image, Button } from "@chakra-ui/react";
import Partner from "../../assets/images/partner.png"
import PlaceCard from "../Card/PlaceCard";
import Enterprise from "../../assets/images/enterprise.png";
import Banner from "../../assets/images/place-banner.png";

const content = [
  {
    id: 1,
    title:'Partners',
    cardicon: Partner,
    text: `Our partners strengthen our foundation and the utility offered by the revolutionary L1 Rubix platform through the development and scaling of groundbreaking apps for ESG, media, real estate, construction, telecom, pharma, NFT, metaverse, DeFi, GameFi, cybersecurity, cloud, and more.`,
    button:'Explore our ecosystem',
  },
  {
    id: 2,
    title:'Enterprises',
    cardicon: Enterprise,
    text: `Rubix’s unique, lightweight subnet architecture and revolutionary Proof-of-Pledge protocol enables our partner DEVS to build secure, reliable, and efficient dApps that enable enterprises to realize their transformation goals.`,
    button:'See how it works',
  },
  {
    id: 3,
    title:'Developers',
    cardicon: Enterprise,
    text: `Our developers bring the passion, knowledge, and technical resources needed to deliver next-generation Web3 and Web5 platforms and through innovative, scalable solutions.`,
    button:'Start Building',
  },
  {
    id: 4,
    title:'Advisors',
    cardicon: Enterprise,
    text: `Our Advisors Share Our Passion For Making This Word A Better Place Through Web3. They Inspire Our Core Team To Change The Status Quo And Make The Impossible Possible.`,
    button:'Contact Us',
  },
];

const Content = {
  heading: `Find your place at the table`,
};

const Place = () => {
  return (
    <Box
      // height={"100vh"}
      background={"#000"}
      backgroundSize={"cover"}
      backgroundRepeat={"no-repeat"}
      backgroundImage={`url(${Banner})`}
    >
      <Box
        paddingLeft={"7rem"}
        paddingBottom={"2rem"}
        // height={"50vh"}
        sx={{
          "@media (max-width: 435px)": {
            paddingLeft: "3rem",
          },
        }}
      >
        <Text
          as={"h2"}
          paddingTop={"2rem"}
          paddingBottom={"2rem"}
          fontWeight={700}
          fontSize={"40px"}
          textTransform={"capitalize"}
          color={"#fff"}
          sx={{
            "@media (max-width: 435px)": {
              fontSize: "35px",
            },
            "@media (max-width: 375px)": {
              fontSize: "28px",
            },
          }}
        >
          {Content.heading}
        </Text>
        <Box
          display={"flex"}
          alignItems={"center"}
          gap={"25px"}
          overflowX={"auto"}
          sx={{
            "&::-webkit-scrollbar": {
              width: "0px",
            },
          }}
        >
          {content.map((item) => (
            <PlaceCard 
                key={item.id} 
                cardicon={item.cardicon}
                title={item.title}
                date={item.date} 
                text={item.text} 
                button={item.button}
            />
          ))}
        </Box>
      </Box>
    </Box>
  );
};

export default Place;
