forked from YJU-OKURA/project_minori-next-deployment-repo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ feature : Creating a Login Modal Component
- Create a component to modal manage logins - Create a function on the intro page to manage the on and close of the modal, then create an interface to type the props. Related issue: YJU-OKURA#45
- Loading branch information
Showing
2 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
import Image from 'next/image'; | ||
import {ModalProps} from '@/src/interfaces/intro'; | ||
import {login} from '@/public/svgs/login'; | ||
import {google, logo} from '@/public/images/login'; | ||
|
||
export default function Login({onClose}: ModalProps) { | ||
return ( | ||
<div className="fixed inset-0 flex items-center justify-center bg-black bg-opacity-50"> | ||
<div className=" bg-white rounded-lg w-1/2 h-3/5 py-10 box-border"> | ||
<div className="w-full h-full flex items-center box-border"> | ||
{/* LEFT */} | ||
<div className="w-3/5 text-center"> | ||
<div className="text-3xl font-semibold">Welcome to Minori</div> | ||
<div className="text-sm text-neutral-400 my-2"> | ||
Get started - it free. No credit card needed. | ||
</div> | ||
<Image | ||
src={login} | ||
alt="logo" | ||
width={450} | ||
height={450} | ||
className="m-auto mb-0" | ||
/> | ||
</div> | ||
{/* RIGHT */} | ||
<div className="w-2/5"> | ||
<div className="w-4/5 text-sm"> | ||
<Image | ||
src={logo} | ||
alt="logo" | ||
width={250} | ||
height={250} | ||
className="m-auto w-4/5 " | ||
/> | ||
<div className="my-5"> | ||
<button className="block m-auto border-2 w-full flex items-center justify-center p-2 m-auto my-3"> | ||
<Image src={google} alt="google" width={15} height={15} /> | ||
<div className="ml-2">Continue with Google</div> | ||
</button> | ||
<button className="block m-auto border-2 w-full flex items-center justify-center p-2 m-auto my-3"> | ||
<Image src={google} alt="google" width={15} height={15} /> | ||
<div className="ml-2">Continue with Google</div> | ||
</button> | ||
<button className="block m-auto border-2 w-full flex items-center justify-center p-2 m-auto my-3"> | ||
<Image src={google} alt="google" width={15} height={15} /> | ||
<div className="ml-2">Continue with Google</div> | ||
</button> | ||
</div> | ||
<div className="w-1/5"></div> | ||
</div> | ||
</div> | ||
</div> | ||
<button | ||
onClick={onClose} | ||
className="px-4 py-2 bg-blue-500 text-white rounded" | ||
> | ||
닫기 | ||
</button> | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export interface ModalProps { | ||
onClose: () => void; | ||
} |