(refactor) moving sign-in button to more prominent place
This commit is contained in:
@@ -9,6 +9,7 @@ import { ExclamationTriangleIcon } from "@heroicons/react/24/outline";
|
||||
import { paragraphFormatFactory } from '../lib/paragraphFormatFactory';
|
||||
import { getAuthProviders } from '../lib/getProviders';
|
||||
import { EnterOrSignInButton } from '../ui/EnterOrSignInButton';
|
||||
import Link from 'next/link';
|
||||
|
||||
const h1ClassName = "text-3xl font-bold max-w-[38rem] mx-auto text-neutral-50";
|
||||
const h2ClassName = h1ClassName + " mt-8";
|
||||
@@ -33,11 +34,10 @@ const Page: FC = async () => {
|
||||
<h1 className={h1ClassName}>
|
||||
{t.rich("main-card.title", paragraphFormat)}
|
||||
</h1>
|
||||
{t.rich("main-card.text", paragraphFormat)}
|
||||
<Image src={t("main-card.image-url")} alt={t("main-card.image-alt")} className="m-auto mt-0" width={400} height={300} />
|
||||
|
||||
<EnterOrSignInButton session={session} locale={locale} providers={providers} />
|
||||
|
||||
{t.rich("main-card.text", paragraphFormat)}
|
||||
<Image src={t("main-card.image-url")} alt={t("main-card.image-alt")} className="m-auto mt-0" width={400} height={300} />
|
||||
{
|
||||
// Google will refuse OAuth signin if it's inside a webview (i.e. Facebook)
|
||||
insideWebeview &&
|
||||
|
||||
Reference in New Issue
Block a user