Skip to content

Commit 7b87ffe

Browse files
committedFeb 11, 2025·
Update page.js
1 parent 0aa7d79 commit 7b87ffe

File tree

1 file changed

+42
-44
lines changed

1 file changed

+42
-44
lines changed
 

‎app/signin/page.js

+42-44
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
//signin page
2-
"use client"
3-
import React from 'react'
1+
"use client";
2+
import React from 'react';
43
import { IoLogoGoogle } from "react-icons/io5";
54
import { FaFacebook } from "react-icons/fa";
65
import { TiVendorMicrosoft } from "react-icons/ti";
@@ -11,49 +10,48 @@ import NavBar from '../components/navbar';
1110
import Link from 'next/link';
1211

1312
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+
});
1424

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>
3332

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 />
5052
</div>
51-
</div>
52-
</div>
53-
<ToastContainer />
54-
</div>
55-
</>
56-
)
53+
</>
54+
)
5755
}
5856

59-
export default SignIn
57+
export default SignIn;

0 commit comments

Comments
 (0)
Please sign in to comment.