-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #206 from YAPP-Github/dev
Release 0.1.14
- Loading branch information
Showing
37 changed files
with
227 additions
and
55 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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,70 @@ | ||
import { MatchingFail } from '@/assets/img'; | ||
import styled from 'styled-components'; | ||
|
||
function FailBox() { | ||
return ( | ||
<> | ||
<> | ||
<MatchingImg src={MatchingFail} alt="매칭 실패 이미지" /> | ||
<StringEle> | ||
매칭에 실패하였습니다. | ||
<br /> | ||
다시 매칭할까요? | ||
</StringEle> | ||
<Actions> | ||
<ReviewLink | ||
href="https://docs.google.com/forms/d/e/1FAIpQLSeSnI-tB9acPtCepl-FM8cCTF-uezGOJ5SjwFOdQ6DT92xjmQ/viewform?usp=sf_link" | ||
target="_blank" | ||
> | ||
후기작성 | ||
</ReviewLink> | ||
<ReportLink | ||
href="https://docs.google.com/forms/d/e/1FAIpQLSfTSBwk6bb0ywTBoHu4cZM1gV8DN0OjMB4jVFvdzbYDrjnJdg/viewform?usp=sf_link" | ||
target="_blank" | ||
> | ||
신고하기 | ||
</ReportLink> | ||
</Actions> | ||
</> | ||
</> | ||
); | ||
} | ||
|
||
export const MatchingImg = styled.img` | ||
width: 140px; | ||
margin-bottom: 20px; | ||
`; | ||
export const StringEle = styled.p` | ||
line-height: 26px; | ||
`; | ||
|
||
export const Actions = styled.div` | ||
display: flex; | ||
margin-top: 18px; | ||
& > a { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
font-size: 12px; | ||
color: rgba(0, 0, 0, 0.6); | ||
width: 100%; | ||
height: 28px; | ||
} | ||
`; | ||
|
||
const ReviewLink = styled.a` | ||
position: relative; | ||
&:after { | ||
position: absolute; | ||
right: 0; | ||
content: ''; | ||
width: 1px; | ||
height: 15px; | ||
background-color: rgba(0, 0, 0, 0.6); | ||
} | ||
`; | ||
|
||
const ReportLink = styled.a``; | ||
|
||
export default FailBox; |
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
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
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
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
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
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 |
---|---|---|
@@ -1,15 +1,80 @@ | ||
import { Button } from '@/components/base'; | ||
import React from 'react'; | ||
import { Button } from '@/components/base'; | ||
import { CopyWhiteIcon } from '@/assets/img'; | ||
import styled from 'styled-components'; | ||
import { Modal } from '@/components/base'; | ||
import { useToggle } from '@/hooks/common'; | ||
|
||
function SuccessButton() { | ||
const handleClick = () => { | ||
console.log('asd'); | ||
const [isModal, onToggleModal] = useToggle(); | ||
const [isErrorModal, onToggleErrorModal] = useToggle(); | ||
|
||
const handleCopy = async (text: string) => { | ||
try { | ||
onToggleModal(); | ||
await navigator.clipboard.writeText(text); | ||
} catch (e) { | ||
onToggleErrorModal(); | ||
} | ||
}; | ||
return ( | ||
<Button onClick={handleClick} size="medium" variant={'kakao'}> | ||
<strong>카카오페이</strong>로 간편하고 안전하게 결제 | ||
</Button> | ||
<SuccessButtonBlock> | ||
<Button onClick={() => handleCopy('농협 301-0312-2534-81')} size="medium"> | ||
<img src={CopyWhiteIcon} alt="복사" width={17} height={17} /> <Text>농협 301-0312-2534-81</Text> | ||
</Button> | ||
<Warning> | ||
받는 분 통장 표시는 <span>카톡 아이디 첫 7자리</span>로 해주세요! <br /> | ||
(ex: minsu30) | ||
</Warning> | ||
{isModal && ( | ||
<Modal | ||
width={200} | ||
height={140} | ||
bottonName="확인" | ||
title="알림" | ||
text="복사완료!" | ||
onToggleModal={onToggleModal} | ||
onClick={() => { | ||
void 0; | ||
}} | ||
/> | ||
)} | ||
{isErrorModal && ( | ||
<Modal | ||
width={200} | ||
height={140} | ||
bottonName="확인" | ||
title="알림" | ||
text="복사중 에러가 발생했습니다😭 다시한번 시도해 주세요!" | ||
onToggleModal={onToggleErrorModal} | ||
onClick={() => { | ||
void 0; | ||
}} | ||
/> | ||
)} | ||
</SuccessButtonBlock> | ||
); | ||
} | ||
|
||
const SuccessButtonBlock = styled.section` | ||
display: flex; | ||
flex-direction: column; | ||
width: 100%; | ||
`; | ||
|
||
const Text = styled.span` | ||
margin-left: 5px; | ||
`; | ||
|
||
const Warning = styled.strong` | ||
text-align: center; | ||
font-size: 12px; | ||
margin-top: 7px; | ||
line-height: 1.2; | ||
span { | ||
color: #ff0000; | ||
} | ||
`; | ||
|
||
export default SuccessButton; |
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
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
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
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
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
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
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
Oops, something went wrong.