1
- //signin page
2
- "use client"
3
- import React from 'react'
1
+ "use client" ;
2
+ import React from 'react' ;
4
3
import { IoLogoGoogle } from "react-icons/io5" ;
5
4
import { FaFacebook } from "react-icons/fa" ;
6
5
import { TiVendorMicrosoft } from "react-icons/ti" ;
@@ -11,49 +10,48 @@ import NavBar from '../components/navbar';
11
10
import Link from 'next/link' ;
12
11
13
12
const SignIn = ( ) => {
13
+ const notify = ( ) => toast . success ( 'Complete !' , {
14
+ position : "top-center" ,
15
+ autoClose : 5000 ,
16
+ hideProgressBar : false ,
17
+ closeOnClick : false ,
18
+ pauseOnHover : true ,
19
+ draggable : true ,
20
+ progress : undefined ,
21
+ theme : "dark" ,
22
+ transition : Bounce ,
23
+ } ) ;
14
24
15
- const notify = ( ) => toast . success ( 'Complete !' , {
16
- position : "top-center" ,
17
- autoClose : 5000 ,
18
- hideProgressBar : false ,
19
- closeOnClick : false ,
20
- pauseOnHover : true ,
21
- draggable : true ,
22
- progress : undefined ,
23
- theme : "dark" ,
24
- transition : Bounce ,
25
- } ) ;
26
- return (
27
- < >
28
- < NavBar />
29
- < div className = 'w-full h-full flex ' >
30
- < div className = 'h-full w-[50%] bg-gray-600 text-white text-[40px] font-semibold ' >
31
- < img src = 'favicon.ico' className = 'absolute top-[25%] left-[10%] h-96 w-96 rounded-lg mix-blend-multiply' />
32
- </ div >
25
+ return (
26
+ < >
27
+ < NavBar />
28
+ < div className = 'w-full min-h-screen flex flex-col lg:flex-row' >
29
+ < div className = 'w-full lg:w-[50%] bg-gray-600 text-white text-4xl sm:text-5xl md:text-6xl font-semibold flex items-center justify-center' >
30
+ < img src = 'favicon.ico' className = 'h-48 w-48 sm:h-72 sm:w-72 md:h-96 md:w-96 rounded-lg mix-blend-multiply' alt = "Logo" />
31
+ </ div >
33
32
34
-
35
- < div className = 'h-full w-[50%] bg-gray-900 p-36 ' >
36
- < div className = 'flex flex-col gap-4 ' >
37
- < input type = 'text' placeholder = 'Name' className = 'p-3 text-white bg-gray-900 border-b-2 border-white' />
38
- < input type = 'email' placeholder = 'Email' className = 'p-3 text-white bg-gray-900 border-b-2 border-white' />
39
- < input type = 'password' placeholder = 'Password' className = 'p-3 text-white bg-gray-900 border-b-2 border-white' />
40
- < Link href = '/loanDetail' >
41
- < button className = 'text-white bg-green-500 p-3 w-[100%] my-5 hover:bg-green-600 transition duration-600' onClick = { notify } > Continue</ button >
42
- </ Link >
43
- < h3 className = 'text-white text-xl text-center' > OR</ h3 >
44
- < hr className = 'border-b-2 border-white' />
45
- < div className = 'flex justify-center gap-5 text-white text-3xl' >
46
- < div > < IoLogoGoogle /> </ div >
47
- < div > < FaFacebook /> </ div >
48
- < div > < TiVendorMicrosoft /> </ div >
49
- < div > < FaXTwitter /> </ div >
33
+ < div className = 'w-full lg:w-[50%] bg-gray-900 p-4 sm:p-8 md:p-12 lg:p-36 flex items-center justify-center' >
34
+ < div className = 'w-full max-w-md flex flex-col gap-4' >
35
+ < input type = 'text' placeholder = 'Name' className = 'p-3 text-white bg-gray-900 border-b-2 border-white w-full' />
36
+ < input type = 'email' placeholder = 'Email' className = 'p-3 text-white bg-gray-900 border-b-2 border-white w-full' />
37
+ < input type = 'password' placeholder = 'Password' className = 'p-3 text-white bg-gray-900 border-b-2 border-white w-full' />
38
+ < Link href = '/loanDetail' >
39
+ < button className = 'text-white bg-green-500 p-3 w-full my-5 hover:bg-green-600 transition duration-600' onClick = { notify } > Continue</ button >
40
+ </ Link >
41
+ < h3 className = 'text-white text-xl text-center' > OR</ h3 >
42
+ < hr className = 'border-b-2 border-white' />
43
+ < div className = 'flex justify-center gap-5 text-white text-3xl' >
44
+ < div > < IoLogoGoogle /> </ div >
45
+ < div > < FaFacebook /> </ div >
46
+ < div > < TiVendorMicrosoft /> </ div >
47
+ < div > < FaXTwitter /> </ div >
48
+ </ div >
49
+ </ div >
50
+ </ div >
51
+ < ToastContainer />
50
52
</ div >
51
- </ div >
52
- </ div >
53
- < ToastContainer />
54
- </ div >
55
- </ >
56
- )
53
+ </ >
54
+ )
57
55
}
58
56
59
- export default SignIn
57
+ export default SignIn ;
0 commit comments