Skip to content

Commit 1949a4d

Browse files
committed
feat: add email login option to the login page
1 parent 435c8a4 commit 1949a4d

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

web/src/modules/auth/components/loginPage.tsx

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,18 @@ export const LoginPage = () => {
6464
</div>
6565

6666
<div className='flex flex-col w-full gap-4'>
67+
{/* Login with Email */}
68+
<Link
69+
data-test='login-discord'
70+
href={'/login/email'}
71+
className='flex items-center text-white outline outline-white outline-1 bg-none p-2.5 hover:outline-blue-500 hover:text-blue-500 hover:transition-all duration-200 uppercase rounded-lg'
72+
>
73+
<FontAwesomeIcon
74+
icon={faRightToBracket}
75+
className='align-middle mr-2 h-5'
76+
/>
77+
<span className='flex-1 text-nowrap'>Log in with email</span>
78+
</Link>
6779
{/* Login with Google */}
6880
<Link
6981
data-test='login-google'
@@ -100,17 +112,6 @@ export const LoginPage = () => {
100112
/>
101113
<span className='flex-1 text-nowrap'>Log in with Discord</span>
102114
</Link>
103-
<Link
104-
data-test='login-discord'
105-
href={'/login/email'}
106-
className='flex items-center text-white outline outline-white outline-1 bg-none p-2.5 hover:outline-blue-500 hover:text-blue-500 hover:transition-all duration-200 uppercase rounded-lg'
107-
>
108-
<FontAwesomeIcon
109-
icon={faRightToBracket}
110-
className='align-middle mr-2 h-5'
111-
/>
112-
<span className='flex-1 text-nowrap'>Log in with email</span>
113-
</Link>
114115
</div>
115116

116117
<p className='text-xs whitespace-normal w-3/4 text-zinc-400'>

0 commit comments

Comments
 (0)