-
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.
- Loading branch information
1 parent
c96172a
commit 9ddd294
Showing
2 changed files
with
84 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,37 @@ | ||
import React from "react" | ||
import MailPng from '@/assets/mail.png'; | ||
import Container from "@/styles/FindEmail"; | ||
import { useNavigate } from "react-router-dom"; | ||
|
||
interface FindEmailProp { | ||
userName : string; | ||
email : string; | ||
} | ||
|
||
const FindEmail : React.FC<FindEmailProp> = ({userName, email}) => { | ||
const navigate = useNavigate(); | ||
|
||
const handleLoginBtn = () => { | ||
navigate('/sign-in'); | ||
} | ||
const handlePwdBtn = () => { | ||
navigate('/find-password'); | ||
} | ||
return( | ||
<Container> | ||
<div className="wrapper"> | ||
<div style={{gap : '15px'}}> | ||
<img src={MailPng}/> | ||
<span className="result">{userName}님의 이메일은 {email}입니다!</span> | ||
<span className="tool">로그인하고 나만의 영상 아카이빙을 시작해요</span> | ||
</div> | ||
<div style={{gap : '10px'}}> | ||
<button style={{backgroundColor : '#1E1E1E', color : '#FFFFFF'}} onClick={handleLoginBtn}>로그인 하러가기</button> | ||
<button style={{backgroundColor : '#FFFFFF', color : '#787878', border : '1.5px solid #E8E8E8'}} onClick={handlePwdBtn}>비밀번호 찾기</button> | ||
</div> | ||
</div> | ||
</Container> | ||
); | ||
} | ||
|
||
export default FindEmail; |
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,47 @@ | ||
import styled from "styled-components"; | ||
import theme from "./theme"; | ||
|
||
const Container = styled.div` | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
min-width: 1440px; | ||
width: 100%; | ||
min-height: 100vh; | ||
& div { | ||
display : flex; | ||
flex-direction : column; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
& div.wrapper { | ||
width : 740px; | ||
height : 380px; | ||
gap : 60px; | ||
} | ||
& span.result { | ||
${theme.typography.Header4}; | ||
color : ${theme.color.gray500}; | ||
} | ||
& span.tool { | ||
${theme.typography.Body1}; | ||
color : ${theme.color.gray300}; | ||
} | ||
& button { | ||
width : 494px; | ||
height : 56px; | ||
border : none; | ||
border-radius : 12px; | ||
${theme.typography.Body1}; | ||
} | ||
& img { | ||
width : 87px; | ||
height : 87px; | ||
} | ||
` | ||
|
||
export default Container; |