Skip to content

Commit

Permalink
이메일 찾기 결과 컴포넌트
Browse files Browse the repository at this point in the history
  • Loading branch information
sehyun0518 committed Feb 15, 2024
1 parent c96172a commit 9ddd294
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 0 deletions.
37 changes: 37 additions & 0 deletions src/components/FindEmail.tsx
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;
47 changes: 47 additions & 0 deletions src/styles/FindEmail.ts
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;

0 comments on commit 9ddd294

Please sign in to comment.