/* eslint-disable no-unused-vars */
import { Box, Image, ListItem, Text, UnorderedList } from "@chakra-ui/react";
import cube from "../../assets/images/cube.png";
import MobileSubnet2 from "./MobileSubnet2";
import MobileSubnet3 from "./MobileSubnet3";

import "swiper/css";
import "swiper/css/pagination";
import "swiper/css/navigation";

import { Navigation, Pagination, Autoplay } from "swiper/modules";
import { Swiper, SwiperSlide } from "swiper/react";

const MobileSubnet = () => {
  return (
    <>
      <Swiper
        pagination={true}
        navigation={false}
        modules={[Navigation, Pagination, Autoplay]}
        loop={true}
        slidesPerView={1}
        style={{
          backgroundColor: "#000",
          paddingBottom: "3rem",
          position: "relative",
        }}
        autoplay={{
          delay: 2500,
          disableOnInteraction: false,
        }}
      >
        <SwiperSlide>
          <Box
            backgroundColor={"#000"}
            padding={"1.5rem"}
            height={"100dvh"}
            display={"grid"}
            alignContent={"center"}
          >
            {/* Subnet1 */}
            <Box>
              <Box
                display={"flex"}
                alignItems={"center"}
                justifyContent={"space-between"}
              >
                <Text
                  as={"h2"}
                  paddingTop={"2rem"}
                  fontWeight={500}
                  fontSize={"20px"}
                  textTransform={"capitalize"}
                  color={"#fff"}
                >
                  decentralised Auto Syncing subnets
                </Text>
                {/* <Image
                  src={cube}
                  width={"140px"}
                  transform="translateY(-10%)"
                  animation="floatAnimation 2s infinite alternate"
                  sx={{
                    "@keyframes floatAnimation": {
                      "0%": {
                        transform: "translateY(0)",
                      },
                      "100%": {
                        transform: "translateY(-20px)",
                      },
                    },
                  }}
                /> */}
              </Box>
              <Box>
                <Box>
                  <Text
                    as={"h2"}
                    paddingTop={"2rem"}
                    fontWeight={500}
                    fontSize={"16px"}
                    textTransform={"capitalize"}
                    color={"#fff"}
                  >
                    P2P
                  </Text>
                  <UnorderedList color={"#E1E1E1"}>
                    <ListItem fontSize={"14px"}>
                      Only L1 powering full mobile nodes
                    </ListItem>
                    <ListItem fontSize={"14px"}>
                      Mobile nodes with full state data will settle P2P .
                      Consensus provided by nearby node validators.
                    </ListItem>
                    <ListItem fontSize={"14px"}>
                      High scalability, Partition tolerance and portability
                    </ListItem>
                  </UnorderedList>
                </Box>

                <Box>
                  <Text
                    as={"h2"}
                    paddingTop={"2rem"}
                    fontWeight={500}
                    fontSize={"16px"}
                    textTransform={"capitalize"}
                    color={"#fff"}
                  >
                    Self Sovereign
                  </Text>
                  <UnorderedList color={"#E1E1E1"}>
                    <ListItem fontSize={"14px"}>
                      Permissioned subnets with no oracles and <br />{" "}
                      intermediaries
                    </ListItem>
                    <ListItem fontSize={"14px"}>
                      INo block space ransom
                    </ListItem>
                    <ListItem fontSize={"14px"}>
                      Zero risk of transactions being blocked out of <br />
                      chain.
                    </ListItem>
                  </UnorderedList>
                </Box>

                <Box>
                  <Text
                    as={"h2"}
                    paddingTop={"2rem"}
                    fontWeight={500}
                    fontSize={"16px"}
                    textTransform={"capitalize"}
                    color={"#fff"}
                  >
                    Easier
                  </Text>
                  <UnorderedList color={"#E1E1E1"}>
                    <ListItem>
                      Leverage own infrastructure for block space
                    </ListItem>
                    <ListItem>
                      Smart contracts in Rust , GoLang and C/C++
                    </ListItem>
                    <ListItem>WASM compiler for smooth code migration</ListItem>
                  </UnorderedList>
                </Box>

                <Box>
                  <Text
                    as={"h2"}
                    paddingTop={"2rem"}
                    fontWeight={500}
                    fontSize={"16px"}
                    textTransform={"capitalize"}
                    color={"#fff"}
                  >
                    cheaper
                  </Text>
                  <UnorderedList color={"#E1E1E1"}>
                    <ListItem fontSize={"14px"}>No GAS fees</ListItem>
                    <ListItem fontSize={"14px"}>
                      Incremental and modular infrastructure ask
                    </ListItem>
                    <ListItem fontSize={"14px"}>
                      No expensive re training of development <br />
                      resources
                    </ListItem>
                  </UnorderedList>
                </Box>
              </Box>
            </Box>
          </Box>
        </SwiperSlide>
        <SwiperSlide>
          <MobileSubnet2 />
        </SwiperSlide>
        <SwiperSlide>
          <MobileSubnet3 />
        </SwiperSlide>
      </Swiper>
    </>
  );
};

export default MobileSubnet;
