@@ -8,6 +8,7 @@ import {useRouter} from "next/router";
88import Spinner from "@/components/common/Spinner" ;
99import { mockProviders } from "next-auth/client/__tests__/helpers/mocks" ;
1010import callbackUrl = mockProviders . github . callbackUrl ;
11+ import { TextField } from '@mui/material' ;
1112
1213const LoginComponent = ( ) => {
1314 const { data : session , status, update} = useSession ( )
@@ -68,35 +69,58 @@ const LoginComponent = () => {
6869 < div className = "main-box bg-dark-600" style = { { height : 'auto !important' , minHeight : '100vh' } } >
6970 < div style = { { display : 'flex' , flexDirection : 'column' , alignItems : 'center' } } >
7071 < Image src = { logo } alt = "logo" className = "mt-10 text-center" />
71- < div className = "whitebox bg-white rounded px-10 mt-11 py-5 " style = { { height : '546px' , width : '464px' } } >
72- < p className = "text-black text-xl font-weight-bold mt-4 text-center " style = { { fontSize : '1.4rem' } } >
72+ < div className = "px-10 py-5 bg-white rounded whitebox mt-11" style = { { height : '546px' , width : '464px' } } >
73+ < p className = "mt-4 text-xl text-center text-black font-weight-bold " style = { { fontSize : '1.4rem' } } >
7374 Login
7475 </ p >
7576 { errorMessage && < div
76- className = "font-regular mt-5 relative block w-full rounded-lg bg-red-500 p-4 text-base leading-5 text-white opacity-100" >
77+ className = "relative block w-full p-4 mt-5 text-base leading-5 text-white bg-red-500 rounded-lg opacity-100 font-regular " >
7778 { errorMessage }
7879 </ div > }
7980 { successMessage && < div
80- className = "font-regular mt-5 relative block w-full rounded-lg bg-green-500 p-4 text-base leading-5 text-white opacity-100" >
81+ className = "relative block w-full p-4 mt-5 text-base leading-5 text-white bg-green-500 rounded-lg opacity-100 font-regular " >
8182 { successMessage }
8283 </ div > }
8384 { loading && < div className = { 'align-items-center d-flex flex justify-center mt-3' } >
8485 < Spinner height = { '1rem' } width = { '1rem' } />
8586 </ div > }
86- < button
87+ { /* <button
8788 type="button"
8889 onClick={() => handleLoginWithGoogle()}
8990 className="w-full mt-5 text-center justify-center focus:ring-0 focus:outline-none rounded border border-dark-200 md:text-md sm:text-sm text-[10px] px-5 py-3 inline-flex items-center mb-2"
9091 >
9192 <img src="/images/google.svg" alt=""/>
9293 <span
9394 className="uppercase font-medium text-dark-600 ml-1 sm:ml-2 tracking-[1.5px]">continue with google</span>
94- </ button >
95+ </button> */ }
9596
96- < p className = "text-black text-md font-weight-bold mt-5 text-center" > or</ p >
97- < input
97+ { /* <p className="mt-5 text-center text-black text-md font-weight-bold">or</p> */ }
98+ < br />
99+ < br />
100+ < br />
101+ < TextField
102+ label = "Email"
103+ id = "input_email"
104+ size = "small"
105+ variant = "standard"
106+ type = "text"
107+ className = "w-full mb-6"
108+ onChange = { ( e ) => setEmail ( e . target . value ) }
109+ required
110+ />
111+ < TextField
112+ label = "Password"
113+ id = "input_password"
114+ size = "small"
115+ variant = "standard"
116+ type = "password"
117+ className = "w-full mb-6"
118+ onChange = { ( e ) => setPassword ( e . target . value ) }
119+ required
120+ />
121+ { /* <input
98122 type="text"
99- className = "form-control text-black bottom-border w-full mt-5 mt-lg-9"
123+ className="w-full mt-5 text-black form-control bottom-border mt-lg-9"
100124 placeholder="Email"
101125 onChange={(e) => setEmail(e.target.value)}
102126 id="email"
@@ -105,21 +129,21 @@ const LoginComponent = () => {
105129 <input
106130 type="password"
107131 onChange={(e) => setPassword(e.target.value)}
108- className = "form-control text-black bottom-border w-full mt-5 mt-lg-9"
132+ className="w-full mt-5 text-black form-control bottom-border mt-lg-9"
109133 placeholder="Password"
110134 id="password"
111135 required
112- />
136+ /> */ }
113137 < button
114138 onClick = { ( ) => handleLogin ( ) }
115- className = "text-white font-weight-bold text-center bg-dark-600 w-full rounded py-2 mt-8 " > LOGIN
139+ className = "w-full py-2 mt-8 text-center text-white rounded font-weight-bold bg-dark-600 " > LOGIN
116140 </ button >
117- < p className = "text-black text-xl font-weight-bold mt-9 text-center "
141+ < p className = "text-xl text-center text-black font-weight-bold mt-9"
118142 style = { { color : '#1976D2' , fontSize : '14px' } } >
119143 Reset Password
120144 </ p >
121145 < Link href = "/register" >
122- < p className = " text-black text-xl font-weight-bold mt-5 text-center " style = { { fontSize : '14px' } } >
146+ < p className = "mt-5 text-xl text-center text-black font-weight-bold" style = { { fontSize : '14px' } } >
123147 No account? < span style = { { color : '#1976D2' } } > Create one</ span >
124148 </ p >
125149 </ Link >
0 commit comments