'use client'

import Image from 'next/image'
import { Swiper, SwiperSlide } from 'swiper/react'
import { Navigation, Keyboard } from 'swiper/modules'
import 'swiper/css'
import 'swiper/css/navigation'
import Link from 'next/link'
import { useEffect } from 'react'
import { HomeButton } from '@/app/components/HomeButton'

export default function BerryDashCustomGameInfo () {
  useEffect(() => {
    document.title = 'Lncvrt Games - Berry Dash Custom'
  }, [])

  return (
    <div className='box text-center'>
      <HomeButton />
      <p className='text-4xl'>Berry Dash Custom</p>
      <p>
        Berry Dash Custom is similar to Berry Dash Lite, but with a bit more and
        also new berries and other custom stuff.
      </p>
      <p className='text-2xl mt-4 mb-1'>Screenshots</p>
      <Swiper
        modules={[Keyboard, Navigation]}
        navigation
        keyboard={{ enabled: true }}
        className='screenshots-gallery mx-auto max-w-[960px] w-[calc(100vw-64px)]'
      >
        <SwiperSlide>
          <Image
            src={
              'https://cdn-r2.lncvrt.xyz/games/screenshots/berry-dash-custom/home.png'
            }
            width={960}
            height={540}
            alt=''
          />
        </SwiperSlide>
        <SwiperSlide>
          <Image
            src={
              'https://cdn-r2.lncvrt.xyz/games/screenshots/berry-dash-custom/mode-select.png'
            }
            width={960}
            height={540}
            alt=''
          />
        </SwiperSlide>
        <SwiperSlide>
          <Image
            src={
              'https://cdn-r2.lncvrt.xyz/games/screenshots/berry-dash-custom/playing.png'
            }
            width={960}
            height={540}
            alt=''
          />
        </SwiperSlide>
        <SwiperSlide>
          <Image
            src={
              'https://cdn-r2.lncvrt.xyz/games/screenshots/berry-dash-custom/custom.png'
            }
            width={960}
            height={540}
            alt=''
          />
        </SwiperSlide>
        <SwiperSlide>
          <Image
            src={
              'https://cdn-r2.lncvrt.xyz/games/screenshots/berry-dash-custom/icons.png'
            }
            width={960}
            height={540}
            alt=''
          />
        </SwiperSlide>
      </Swiper>
      <p className='text-2xl mt-4 mb-1'>Downloads</p>
      <div className='downloads'>
        <Link
          href='https://archive.org/download/berry-dash-archive/Berry-Dash-Custom-1.1-android.apk'
          draggable={false}
        >
          Android
        </Link>
        <Link
          href='https://archive.org/download/berry-dash-archive/Berry-Dash-Custom-1.1-ios.ipa'
          draggable={false}
        >
          iOS
        </Link>
        <Link href='/download' draggable={false}>
          Windows, macOS, or Linux
        </Link>
      </div>
    </div>
  )
}
