disable apple login for now

This commit is contained in:
Dobromir Popov
2024-05-04 01:02:37 +03:00
parent b845d9c159
commit d772e506b1

View File

@ -58,10 +58,7 @@ export default function SignIn({ csrfToken }) {
<div className="page"> <div className="page">
<div className="signin"> <div className="signin">
<div className="min-h-screen flex flex-col items-center justify-center bg-gray-100"> <div className="min-h-screen flex flex-col items-center justify-center bg-gray-100">
{/* Page Title */}
<h1 className="text-2xl font-bold text-gray-900 mt-6">Вход</h1> <h1 className="text-2xl font-bold text-gray-900 mt-6">Вход</h1>
{/* Section for Social Sign-On Providers */}
<div className="mt-8 w-full max-w-md px-4 py-8 bg-white shadow rounded-lg"> <div className="mt-8 w-full max-w-md px-4 py-8 bg-white shadow rounded-lg">
{/* <h2 className="text-center text-lg font-semibold text-gray-900 mb-4">Sign in with a Social Media Account</h2> */} {/* <h2 className="text-center text-lg font-semibold text-gray-900 mb-4">Sign in with a Social Media Account</h2> */}
<button onClick={() => signIn('google', { callbackUrl: '/' })} <button onClick={() => signIn('google', { callbackUrl: '/' })}
@ -71,22 +68,16 @@ export default function SignIn({ csrfToken }) {
Влез чрез Google Влез чрез Google
</button> </button>
{/* Apple Sign-In Button */} {/* Apple Sign-In Button */}
<button onClick={() => signIn('apple', { callbackUrl: '/' })} {/* <button onClick={() => signIn('apple', { callbackUrl: '/' })}
className="mt-4 flex items-center justify-center w-full py-3 px-4 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 bg-white hover:bg-gray-50"> className="mt-4 flex items-center justify-center w-full py-3 px-4 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 bg-white hover:bg-gray-50">
<img loading="lazy" height="24" width="24" alt="Apple logo" <img loading="lazy" height="24" width="24" alt="Apple logo"
src="https://authjs.dev/img/providers/apple.svg" className="mr-2" /> src="https://authjs.dev/img/providers/apple.svg" className="mr-2" />
Влез чрез Apple Влез чрез Apple
</button> </button> */}
{/* Add more buttons for other SSO providers here in similar style */}
</div> </div>
{/* Divider (Optional) */}
<div className="w-full max-w-xs mt-8 mb-8"> <div className="w-full max-w-xs mt-8 mb-8">
<hr className="border-t border-gray-300" /> <hr className="border-t border-gray-300" />
</div> </div>
{/* Local Account Email and Password Form */}
<div className="w-full max-w-md mt-8 mb-8 px-4 py-8 bg-white shadow rounded-lg"> <div className="w-full max-w-md mt-8 mb-8 px-4 py-8 bg-white shadow rounded-lg">
<h2 className="text-center text-lg font-semibold text-gray-900 mb-4">Влез с локален акаунт</h2> <h2 className="text-center text-lg font-semibold text-gray-900 mb-4">Влез с локален акаунт</h2>
<form onSubmit={handleSubmit}> <form onSubmit={handleSubmit}>