|
| 1 | +import Image from 'next/image'; |
| 2 | +import {ModalProps} from '@/src/interfaces/intro'; |
| 3 | +import svgs from '@/public/svgs/login'; |
| 4 | +import {logo} from '@/public/images/login'; |
| 5 | + |
| 6 | +export default function Login({onClose}: ModalProps) { |
| 7 | + return ( |
| 8 | + <div className="fixed inset-0 flex items-center justify-center bg-black bg-opacity-50"> |
| 9 | + <div className=" bg-white rounded-lg w-1/2 h-3/5 py-10 box-border"> |
| 10 | + <div className="w-full h-full flex items-center box-border"> |
| 11 | + {/* LEFT */} |
| 12 | + <div className="w-3/5 text-center"> |
| 13 | + <div className="text-3xl font-semibold">Welcome to Minori</div> |
| 14 | + <div className="text-sm text-neutral-400 my-2"> |
| 15 | + Get started - it free. No credit card needed. |
| 16 | + </div> |
| 17 | + <Image |
| 18 | + src={svgs.login} |
| 19 | + alt="logo" |
| 20 | + width={450} |
| 21 | + height={450} |
| 22 | + className="m-auto mb-0" |
| 23 | + /> |
| 24 | + </div> |
| 25 | + {/* RIGHT */} |
| 26 | + <div className="w-2/5"> |
| 27 | + <div className="w-4/5 text-sm"> |
| 28 | + <Image |
| 29 | + src={logo} |
| 30 | + alt="logo" |
| 31 | + width={250} |
| 32 | + height={250} |
| 33 | + className="m-auto w-4/5 " |
| 34 | + /> |
| 35 | + <div className="my-5"> |
| 36 | + <button className="block m-auto border-2 w-full flex items-center justify-between px-10 py-2 m-auto my-3"> |
| 37 | + <Image |
| 38 | + src={svgs.google} |
| 39 | + alt="google" |
| 40 | + width={15} |
| 41 | + height={15} |
| 42 | + /> |
| 43 | + <div className="ml-2 text-center w-full"> |
| 44 | + Continue with Google |
| 45 | + </div> |
| 46 | + </button> |
| 47 | + <button className="block m-auto border-2 w-full flex items-center justify-between px-10 py-2 m-auto my-3"> |
| 48 | + <Image src={svgs.yahoo} alt="google" width={15} height={15} /> |
| 49 | + <div className="ml-2 text-center w-full"> |
| 50 | + Continue with Yahoo |
| 51 | + </div> |
| 52 | + </button> |
| 53 | + <button className="block m-auto border-2 w-full flex items-center justify-between px-10 py-2 m-auto my-3"> |
| 54 | + <Image src={svgs.line} alt="google" width={15} height={15} /> |
| 55 | + <div className="ml-2 text-center w-full"> |
| 56 | + Continue with Line |
| 57 | + </div> |
| 58 | + </button> |
| 59 | + </div> |
| 60 | + <div className="w-1/5"></div> |
| 61 | + </div> |
| 62 | + </div> |
| 63 | + </div> |
| 64 | + <button |
| 65 | + onClick={onClose} |
| 66 | + className="px-4 py-2 bg-blue-500 text-white rounded" |
| 67 | + > |
| 68 | + 닫기 |
| 69 | + </button> |
| 70 | + </div> |
| 71 | + </div> |
| 72 | + ); |
| 73 | +} |
0 commit comments