"use server";
import Link from "next/link";

export default async function Home() {
  const currentDate = new Date().toLocaleString("tr-TR", { timeZone: "Europe/Istanbul" });

  return (
    <div className="flex flex-col items-center justify-center min-h-screen bg-gradient-to-b from-blue-50 to-white p-8">
      <div className="w-full max-w-4xl bg-white rounded-xl shadow-lg overflow-hidden">

        <div className="bg-blue-600 text-white p-8 text-center">
          <h1 className="text-4xl font-bold mb-2">Welcome to EVYOS</h1>
          <p className="text-xl">Enterprise Management System</p>
          <p className="text-sm mt-4">Server Time: {currentDate}</p>
        </div>

        <div className="p-8">
          <div className="bg-white rounded-lg p-6 border border-gray-200">
            <Link
              href="/auth/en/login"
              className="w-full bg-blue-600 text-white py-2 px-4 rounded-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 transition-colors"
            >Go to Sign In</Link>
          </div>

          <div className="mt-6 text-center text-sm text-gray-600">
            <p>© {new Date().getFullYear()} EVYOS. All rights reserved.</p>
          </div>
        </div>
      </div>
    </div>
  );
}