import '../styles/cardBlogs.css'
import '../styles/cardGames.css'
import '../styles/cardLists.css'
import '../styles/cardMod.css'
import '../styles/SimpleSlider.css'
import '../styles/styles.css'

export const HomePage = () => {
  return (
    <div className='InnerBodyMain'>
      <div className='SliderWrapper'>
        <div className='ContainerMain'>
          <div className='IBMSecMain'>
            <div className='simple-slider IBMSMSlider'>
              <div className='swiper-container IBMSMSliderContainer'>
                <div className='swiper-wrapper IBMSMSliderContainerWrapper'>
                  <div className='swiper-slide IBMSMSliderContainerWrapperSlider'>
                    <div
                      className='IBMSMSCWSPic'
                      style={{
                        background:
                          'url(https://www.ggrecon.com/media/fd1bxcwr/tifa-s-cowboy-costume-change.png) center / cover no-repeat'
                      }}
                    ></div>
                    <div className='IBMSMSCWSInfo'>
                      <h3 className='IBMSMSCWSInfoHeading'>Game Mod Title</h3>
                      <p className='IBMSMSCWSInfoText'>
                        Lorem ipsum dolor sit amet, consectetur adipiscing elit.
                        Integer nec odio. Praesent libero. Sed cursus ante
                        dapibus diam. Sed nisi. Nulla quis sem at nibh elementum
                        imperdiet. Duis sagittis ipsum. Praesent mauris. Fusce
                        nec tellus sed augue semper porta. Mauris massa.
                        Vestibulum lacinia arcu eget nulla. className aptent
                        taciti sociosqu ad litora torquent per conubia nostra,
                        per inceptos himenaeos. Curabitur sodales ligula in
                        libero.
                        <br />
                      </p>
                      <div className='IBMSMSliderContainerWrapperSliderAction'>
                        <a
                          className='btn btnMain IBMSMSliderContainerWrapperSliderActionbtn'
                          role='button'
                          href='mods-inner.html'
                        >
                          Check it out
                        </a>
                      </div>
                    </div>
                  </div>
                  <div className='swiper-slide IBMSMSliderContainerWrapperSlider'>
                    <div
                      className='IBMSMSCWSPic'
                      style={{
                        background:
                          'url(https://www.kakuchopurei.com/wp-content/uploads/2022/08/Marvels-Spider-Man-PC-Flag-Mod-1.jpg) center / cover no-repeat'
                      }}
                    ></div>
                    <div className='IBMSMSCWSInfo'>
                      <h3 className='IBMSMSCWSInfoHeading'>Game Mod Title</h3>
                      <p className='IBMSMSCWSInfoText'>
                        Lorem ipsum dolor sit amet, consectetur adipiscing elit.
                        Integer nec odio. Praesent libero. Sed cursus ante
                        dapibus diam. Sed nisi. Nulla quis sem at nibh elementum
                        imperdiet. Duis sagittis ipsum. Praesent mauris. Fusce
                        nec tellus sed augue semper porta. Mauris massa.
                        Vestibulum lacinia arcu eget nulla. className aptent
                        taciti sociosqu ad litora torquent per conubia nostra,
                        per inceptos himenaeos. Curabitur sodales ligula in
                        libero.
                        <br />
                      </p>
                      <div className='IBMSMSliderContainerWrapperSliderAction'>
                        <a
                          className='btn btnMain IBMSMSliderContainerWrapperSliderActionbtn'
                          role='button'
                          href='mods-inner.html'
                        >
                          Check it out
                        </a>
                      </div>
                    </div>
                  </div>
                  <div className='swiper-slide IBMSMSliderContainerWrapperSlider'>
                    <div
                      className='IBMSMSCWSPic'
                      style={{
                        background:
                          'url("/assets/img/DEGMods%20Placeholder%20Img.png") center / cover no-repeat'
                      }}
                    ></div>
                    <div className='IBMSMSCWSInfo'>
                      <h3 className='IBMSMSCWSInfoHeading'>Game Mod Title</h3>
                      <p className='IBMSMSCWSInfoText'>
                        Lorem ipsum dolor sit amet, consectetur adipiscing elit.
                        Integer nec odio. Praesent libero. Sed cursus ante
                        dapibus diam. Sed nisi. Nulla quis sem at nibh elementum
                        imperdiet. Duis sagittis ipsum. Praesent mauris. Fusce
                        nec tellus sed augue semper porta. Mauris massa.
                        Vestibulum lacinia arcu eget nulla. className aptent
                        taciti sociosqu ad litora torquent per conubia nostra,
                        per inceptos himenaeos. Curabitur sodales ligula in
                        libero.
                        <br />
                      </p>
                      <div className='IBMSMSliderContainerWrapperSliderAction'>
                        <a
                          className='btn btnMain IBMSMSliderContainerWrapperSliderActionbtn'
                          role='button'
                          href='mods-inner.html'
                        >
                          Check it out
                        </a>
                      </div>
                    </div>
                  </div>
                </div>
                <div className='swiper-pagination'></div>
                <div className='swiper-button-prev'></div>
                <div className='swiper-button-next'></div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div className='ContainerMain'>
        <div className='IBMSecMainGroup IBMSecMainGroupAlt'>
          <div className='IBMSecMain IBMSMListWrapper'>
            <div className='IBMSMTitleMain'>
              <h2 className='IBMSMTitleMainHeading'>Cool Games</h2>
            </div>
            <div className='IBMSMList IBMSMListFeaturedAlt'>
              <GameCard backgroungLink='https://m.media-amazon.com/images/M/MV5BZTRiNTgxMjQtNDE3OS00YTg4LTg3NTItY2EyNGUzYjAzZGZmXkEyXkFqcGdeQXVyMTI0MzI0MzE4._V1_FMjpg_UX1000_.jpg' />
              <GameCard backgroungLink='https://upload.wikimedia.org/wikipedia/en/0/0c/Witcher_3_cover_art.jpg' />
              <GameCard backgroungLink='https://cdn2.steamgriddb.com/file/sgdb-cdn/grid/9153bb77795515274c2be61ccc59c952.jpg' />
              <GameCard backgroungLink='https://static.trueachievements.com/boxart/Game_12493.jpg' />
              <GameCard backgroungLink='/assets/img/DEGMods%20Placeholder%20Img.png' />
            </div>
            <div className='IBMSMAction'>
              <a
                className='btn btnMain IBMSMActionBtn'
                role='button'
                href='blog.html'
              >
                View All
              </a>
            </div>
          </div>
          <div className='IBMSecMain IBMSMListWrapper'>
            <div className='IBMSMTitleMain'>
              <h2 className='IBMSMTitleMainHeading'>Awesome Mods</h2>
            </div>
            <div className='IBMSMList IBMSMListAlt'>
              <ModCard backgroundLink='https://image.nostr.build/65a11a00bb99c11561735f861c51b498cf9dc07d02beff7303fe7f7ab52f3987.jpg' />
              <ModCard backgroundLink='https://web.archive.org/web/20240215093752im_/https://staticdelivery.nexusmods.com/mods/6144/images/headers/13_1707966408.jpg' />
              <ModCard backgroundLink='https://steamuserimages-a.akamaihd.net/ugc/2013708095892656347/39A93A2B1EB05E725214373849F8E37FCEB4C2EA/?imw=512&amp;imh=256&amp;ima=fit&amp;impolicy=Letterbox&amp;imcolor=%23000000&amp;letterbox=true' />
            </div>
            <div className='IBMSMAction'>
              <a
                className='btn btnMain IBMSMActionBtn'
                role='button'
                href='blog.html'
              >
                View All
              </a>
            </div>
          </div>
          <div className='IBMSecMain IBMSMListWrapper'>
            <div className='IBMSMTitleMain'>
              <h2 className='IBMSMTitleMainHeading'>Latest Mods</h2>
            </div>
            <div className='IBMSMList'>
              <ModCard backgroundLink='https://image.nostr.build/65a11a00bb99c11561735f861c51b498cf9dc07d02beff7303fe7f7ab52f3987.jpg' />
              <ModCard backgroundLink='https://web.archive.org/web/20240215093752im_/https://staticdelivery.nexusmods.com/mods/6144/images/headers/13_1707966408.jpg' />
              <ModCard backgroundLink='https://steamuserimages-a.akamaihd.net/ugc/2013708095892656347/39A93A2B1EB05E725214373849F8E37FCEB4C2EA/?imw=512&amp;imh=256&amp;ima=fit&amp;impolicy=Letterbox&amp;imcolor=%23000000&amp;letterbox=true' />
              <ModCard backgroundLink='/assets/img/DEGMods%20Placeholder%20Img.png' />
            </div>

            <div className='IBMSMAction'>
              <a
                className='btn btnMain IBMSMActionBtn'
                role='button'
                href='blog.html'
              >
                View All
              </a>
            </div>
          </div>
          <div className='IBMSecMain IBMSMListWrapper'>
            <div className='IBMSMTitleMain'>
              <h2 className='IBMSMTitleMainHeading'>Blog Posts</h2>
            </div>
            <div className='IBMSMList'>
              <BlogCard backgroundLink='https://image.nostr.build/d6af39fb1d47feaf09831ddf9d447ccc435ba10fcbb9b6d6e800390f6bbac851.png' />
              <BlogCard backgroundLink='https://nichegamer.com/wp-content/uploads/2023/01/onimai-01-07-2023.jpg' />
              <BlogCard backgroundLink='https://pbs.twimg.com/media/GDrRJOOXYAAeysT.jpg:large' />
              <BlogCard backgroundLink='/assets/img/DEGMods%20Placeholder%20Img.png' />
            </div>

            <div className='IBMSMAction'>
              <a
                className='btn btnMain IBMSMActionBtn'
                role='button'
                href='blog.html'
              >
                View All
              </a>
            </div>
          </div>
        </div>
      </div>
    </div>
  )
}

type GameCardProps = {
  backgroungLink: string
}

const GameCard = ({ backgroungLink }: GameCardProps) => {
  return (
    <a className='cardGameMainWrapperLink' href='search.html'>
      <div
        className='cardGameMain'
        style={{
          background: `url("${backgroungLink}") center / cover no-repeat`
        }}
      ></div>
      <div className='cardGameMainTitle'>
        <p>This is a game title, the best game title</p>
      </div>
    </a>
  )
}

type ModCardProps = {
  backgroundLink: string
}

const ModCard = ({ backgroundLink }: ModCardProps) => {
  return (
    <a className='cardModMainWrapperLink' href='mods-inner.html'>
      <div className='cardModMain'>
        <div
          className='cMMPicture'
          style={{
            background: `url("${backgroundLink}") center / cover no-repeat`
          }}
        ></div>
        <div className='cMMBody'>
          <h3 className='cMMBodyTitle'>
            This is a mod title for an awesome game that will make everyone
            happy! The happiest!
          </h3>
          <p className='cMMBodyText'>
            Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec
            odio. Praesent libero. Sed cursus ante dapibus diam. Sed nisi. Nulla
            quis sem at nibh elementum imperdiet. Duis sagittis ipsum. Praesent
            mauris. Fusce nec tellus sed augue semper porta. Mauris massa.
            Vestibulum lacinia arcu eget nulla. Class aptent taciti sociosqu ad
            litora torquent per conubia nostra, per inceptos himenaeos.
            Curabitur sodales ligula in libero.
            <br />
            <br />
          </p>
        </div>
        <div className='cMMFoot'>
          <div className='cMMFootReactions'>
            <div className='cMMFootReactionsElement'>
              <svg
                xmlns='http://www.w3.org/2000/svg'
                viewBox='0 0 512 512'
                width='1em'
                height='1em'
                fill='currentColor'
              >
                <path d='M0 190.9V185.1C0 115.2 50.52 55.58 119.4 44.1C164.1 36.51 211.4 51.37 244 84.02L256 96L267.1 84.02C300.6 51.37 347 36.51 392.6 44.1C461.5 55.58 512 115.2 512 185.1V190.9C512 232.4 494.8 272.1 464.4 300.4L283.7 469.1C276.2 476.1 266.3 480 256 480C245.7 480 235.8 476.1 228.3 469.1L47.59 300.4C17.23 272.1 .0003 232.4 .0003 190.9L0 190.9z'></path>
              </svg>
              <p>420</p>
            </div>
            <div className='cMMFootReactionsElement'>
              <svg
                xmlns='http://www.w3.org/2000/svg'
                viewBox='0 0 512 512'
                width='1em'
                height='1em'
                fill='currentColor'
              >
                <path d='M512 440.1C512 479.9 479.7 512 439.1 512H71.92C32.17 512 0 479.8 0 440c0-35.88 26.19-65.35 60.56-70.85C43.31 356 32 335.4 32 312C32 272.2 64.25 240 104 240h13.99C104.5 228.2 96 211.2 96 192c0-35.38 28.56-64 63.94-64h16C220.1 128 256 92.12 256 48c0-17.38-5.784-33.35-15.16-46.47C245.8 .7754 250.9 0 256 0c53 0 96 43 96 96c0 11.25-2.288 22-5.913 32h5.879C387.3 128 416 156.6 416 192c0 19.25-8.59 36.25-22.09 48H408C447.8 240 480 272.2 480 312c0 23.38-11.38 44.01-28.63 57.14C485.7 374.6 512 404.3 512 440.1z'></path>
              </svg>
              <p>420</p>
            </div>
            <div className='cMMFootReactionsElement'>
              <svg
                xmlns='http://www.w3.org/2000/svg'
                viewBox='0 0 512 512'
                width='1em'
                height='1em'
                fill='currentColor'
              >
                <path d='M256 32C114.6 32 .0272 125.1 .0272 240c0 49.63 21.35 94.98 56.97 130.7c-12.5 50.37-54.27 95.27-54.77 95.77c-2.25 2.25-2.875 5.734-1.5 8.734C1.979 478.2 4.75 480 8 480c66.25 0 115.1-31.76 140.6-51.39C181.2 440.9 217.6 448 256 448c141.4 0 255.1-93.13 255.1-208S397.4 32 256 32z'></path>
              </svg>
              <p>420</p>
            </div>
          </div>
        </div>
      </div>
    </a>
  )
}

type BlogCardProps = {
  backgroundLink: string
}

const BlogCard = ({ backgroundLink }: BlogCardProps) => {
  return (
    <a className='cardBlogMainWrapperLink' href='blog-inner.html'>
      <div
        className='cardBlogMain'
        style={{
          background: `url("${backgroundLink}") center / cover no-repeat`
        }}
      >
        <div
          className='cardBlogMainInside'
          style={{
            background:
              'linear-gradient( rgba(255, 255, 255, 0) 0%,          #232323 100%)'
          }}
        >
          <h3
            style={{
              display: '-webkit-box',
              WebkitBoxOrient: 'vertical',
              overflow: 'hidden',
              WebkitLineClamp: 2,
              fontSize: '20px',
              lineHeight: 1.5,
              color: 'rgba(255, 255, 255, 0.75)',
              textShadow: '0 0 8px rgba(0, 0, 0, 0.25)'
            }}
          >
            This is a blog title, the best blog title in the world!
          </h3>
        </div>
      </div>{' '}
    </a>
  )
}
