import Image from "next/image";
import Link from "next/link";

export default function Home() {
  return (
    <div className="grid grid-rows-[20px_1fr_20px] items-center justify-items-center min-h-screen p-8 pb-20 gap-16 sm:p-20 font-[family-name:var(--font-geist-sans)]">
      <main className="flex flex-col gap-8 row-start-2 items-center sm:items-start">

        <ol className="list-inside list-decimal text-sm text-center sm:text-left font-[family-name:var(--font-geist-mono)]">
          <li className="mb-2">
            Site coming soon, written in{" "}
            <code className="bg-black/[.05] dark:bg-white/[.06] px-1 py-0.5 rounded font-semibold">
              next.js
            </code>
            !
          </li>
          <li>Meanwhile, enjoy some media.</li>
        </ol>

        <div className="flex gap-4 items-center flex-col sm:flex-row">
          <Link
            className="rounded-full border border-solid border-transparent transition-colors flex items-center justify-center bg-foreground text-background gap-2 hover:bg-[#383838] dark:hover:bg-[#ccc] text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5"
            href="https://request.vixflix.online/"
            target="_blank"
            rel="noopener noreferrer"
            legacyBehavior>
            <Image
              className="dark:invert"
              src="/overseerr.svg"
              alt="Vercel logomark"
              width={20}
              height={20}
            />
            Go to VixFlixOnline
          </Link>
          <Link
            className="rounded-full border border-solid border-black/[.08] dark:border-white/[.145] transition-colors flex items-center justify-center hover:bg-[#f2f2f2] dark:hover:bg-[#1a1a1a] hover:border-transparent text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5"
            href="/api-docs"
            legacyBehavior>
            <Image
              className="dark:invert"
              src="/file.svg"
              alt="API docs icon"
              width={20}
              height={20}
            />
            API Documentation
          </Link>
          <Link
            className="rounded-full border border-solid border-black/[.08] dark:border-white/[.145] transition-colors flex items-center justify-center hover:bg-[#f2f2f2] dark:hover:bg-[#1a1a1a] hover:border-transparent text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5"
            href="/files"
            legacyBehavior>
            <Image
              className="dark:invert"
              src="/file.svg"
              alt="Files icon"
              width={20}
              height={20}
            />
            Upload Files
          </Link>
        </div>
      </main>
    </div>
  );
}
