Skip to content
This repository was archived by the owner on Dec 11, 2024. It is now read-only.

Commit 7806de7

Browse files
committed
Update login page
Signed-off-by: Alex Co <alex.tuan@mindvalley.com>
1 parent 58c030a commit 7806de7

File tree

1 file changed

+53
-34
lines changed

1 file changed

+53
-34
lines changed

web/src/app/auth/login/page.tsx

Lines changed: 53 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -78,43 +78,62 @@ const Page = async (props: {
7878
<div className="absolute top-10x w-full">
7979
<HealthCheckBanner />
8080
</div>
81-
<div className="min-h-screen flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8">
82-
<div>
83-
<Logo height={64} width={64} className="mx-auto w-fit" />
84-
{authUrl && authTypeMetadata && (
85-
<>
86-
<h2 className="text-center text-xl text-strong font-bold mt-6">
87-
Log In to Eve<sup className="ai-superscript">AI</sup>
88-
</h2>
8981

90-
<SignInButton
91-
authorizeUrl={authUrl}
92-
authType={authTypeMetadata?.authType}
93-
/>
94-
</>
95-
)}
96-
{authTypeMetadata?.authType === "basic" && (
97-
<CardSection className="mt-4 w-96">
98-
<div className="flex">
99-
<Title className="mb-2 mx-auto font-bold">
100-
Log In to Eve<sup className="ai-superscript">AI</sup>
101-
</Title>
102-
</div>
103-
<EmailPasswordForm />
104-
<div className="flex">
105-
<Text className="mt-4 mx-auto">
106-
Don&apos;t have an account?{" "}
107-
<Link href="/auth/signup" className="text-link font-medium">
108-
Create an account
109-
</Link>
110-
</Text>
111-
</div>
112-
</CardSection>
113-
)}
114-
</div>
82+
<div className="flex flex-col w-full justify-center">
83+
{authUrl && authTypeMetadata && (
84+
<>
85+
<h2 className="text-center text-xl text-strong font-bold">
86+
<LoginText />
87+
</h2>
88+
89+
<SignInButton
90+
authorizeUrl={authUrl}
91+
authType={authTypeMetadata?.authType}
92+
/>
93+
</>
94+
)}
95+
96+
{authTypeMetadata?.authType === "cloud" && (
97+
<div className="mt-4 w-full justify-center">
98+
<div className="flex items-center w-full my-4">
99+
<div className="flex-grow border-t border-gray-300"></div>
100+
<span className="px-4 text-gray-500">or</span>
101+
<div className="flex-grow border-t border-gray-300"></div>
102+
</div>
103+
<EmailPasswordForm shouldVerify={true} />
104+
105+
<div className="flex">
106+
<Text className="mt-4 mx-auto">
107+
Don&apos;t have an account?{" "}
108+
<Link href="/auth/signup" className="text-link font-medium">
109+
Create an account
110+
</Link>
111+
</Text>
112+
</div>
113+
</div>
114+
)}
115+
116+
{authTypeMetadata?.authType === "basic" && (
117+
<CardSection className="mt-4 w-96">
118+
<div className="flex">
119+
<Title className="mb-2 mx-auto font-bold">
120+
<LoginText />
121+
</Title>
122+
</div>
123+
<EmailPasswordForm />
124+
<div className="flex">
125+
<Text className="mt-4 mx-auto">
126+
Don&apos;t have an account?{" "}
127+
<Link href="/auth/signup" className="text-link font-medium">
128+
Create an account
129+
</Link>
130+
</Text>
131+
</div>
132+
</CardSection>
133+
)}
115134
</div>
116135
</AuthFlowContainer>
117136
);
118137
};
119138

120-
export default Page;
139+
export default Page;

0 commit comments

Comments
 (0)