import Link from "next/link";

export default function Navbar() {
  return (
    <nav className="bg-gray-800 pt-5 mt-0 w-full md:pt-2 px-5">
      <div className="container mx-auto flex flex-wrap items-center">
        <div className="flex w-full md:w-1/2 justify-center md:justify-start text-white font-extrabold">
          <Link
            className="text-white no-underline hover:text-white hover:no-underline"
            href="/"
          >
            <span className="text-2xl pl-2">Echecs France</span>
          </Link>
        </div>
        <div className="flex w-full pt-2 justify-center md:w-1/2 md:justify-end">
          <ul className="list-reset text-white no-underline flex flex-1 justify-around md:flex-none items-center">
            <li className="mr-10">
              <Link
                className="inline-block border-b-4 py-5 border-transparent hover:border-teal-600 transition-all ease-in-out duration-300"
                href="/tournois"
              >
                Tournois
              </Link>
            </li>
            <li className="mr-10">
              <Link
                className="inline-block border-b-4 py-5 border-transparent hover:border-teal-600 transition-all ease-in-out duration-300"
                href="/qui-sommes-nous"
              >
                Qui Sommes-Nous
              </Link>
            </li>
            <li className="">
              <Link
                className="inline-block border-b-4 py-5 border-transparent hover:border-teal-600 transition-all ease-in-out duration-300"
                href="/contactez-nous"
              >
                Contactez-Nous
              </Link>
            </li>
          </ul>
        </div>
      </div>
    </nav>
  );
}
