-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* adjust SubmitArea style * add success feedback * finish success feedback * finish FailFeedback * add `hasClose` props to Modal to decide if close button display * add facebook login fail feedback in submit area
- Loading branch information
1 parent
261be2f
commit 92f66fc
Showing
7 changed files
with
314 additions
and
63 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,58 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
|
||
import Warning from 'common/icons/Warning'; | ||
import Button from 'common/button/Button'; | ||
|
||
const FacebookFail = ({ buttonClick }) => ( | ||
<div | ||
style={{ | ||
padding: '55px', | ||
width: '470px', | ||
}} | ||
> | ||
<Warning | ||
style={{ | ||
fill: '#FCD406', | ||
height: '82px', | ||
width: '82px', | ||
marginBottom: '32px', | ||
}} | ||
/> | ||
<h2 | ||
style={{ | ||
fontSize: '2rem', | ||
marginBottom: '19px', | ||
}} | ||
> | ||
Facebook 登入失敗 | ||
</h2> | ||
<p | ||
style={{ | ||
marginBottom: '30px', | ||
}} | ||
> | ||
為了避免使用者大量輸入假資訊,我們會以您的 Facebook 帳戶做驗證。但別擔心!您的帳戶資訊不會以任何形式被揭露、顯示。 | ||
</p> | ||
<div | ||
style={{ | ||
display: 'flex', | ||
justifyContent: 'center', | ||
}} | ||
> | ||
<Button | ||
btnStyle="black" | ||
circleSize="md" | ||
onClick={buttonClick} | ||
> | ||
以 f 認證,送出資料 | ||
</Button> | ||
</div> | ||
</div> | ||
); | ||
|
||
FacebookFail.propTypes = { | ||
buttonClick: PropTypes.func, | ||
}; | ||
|
||
export default FacebookFail; |
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,58 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
|
||
import Warning from 'common/icons/Warning'; | ||
import Button from 'common/button/Button'; | ||
|
||
const FailFeedback = ({ buttonClick }) => ( | ||
<div | ||
style={{ | ||
padding: '55px', | ||
width: '470px', | ||
}} | ||
> | ||
<Warning | ||
style={{ | ||
fill: '#FCD406', | ||
height: '82px', | ||
width: '82px', | ||
marginBottom: '32px', | ||
}} | ||
/> | ||
<h2 | ||
style={{ | ||
fontSize: '2rem', | ||
marginBottom: '19px', | ||
}} | ||
> | ||
Oops 有些錯誤發生 | ||
</h2> | ||
<p | ||
style={{ | ||
marginBottom: '30px', | ||
}} | ||
> | ||
請查看你的網路連線再試一次,如果你還沒填寫完,請先別關閉瀏覽器! | ||
</p> | ||
<div | ||
style={{ | ||
display: 'flex', | ||
justifyContent: 'center', | ||
}} | ||
> | ||
<Button | ||
btnStyle="black" | ||
circleSize="md" | ||
onClick={buttonClick} | ||
> | ||
好,我知道了 | ||
</Button> | ||
</div> | ||
</div> | ||
); | ||
|
||
FailFeedback.propTypes = { | ||
buttonClick: PropTypes.func, | ||
}; | ||
|
||
export default FailFeedback; |
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,51 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
|
||
import Checked from 'common/icons/Checked'; | ||
import Button from 'common/button/Button'; | ||
|
||
const SuccessFeedback = ({ buttonClick }) => ( | ||
<div | ||
style={{ | ||
padding: '55px', | ||
width: '470px', | ||
}} | ||
> | ||
<Checked | ||
style={{ | ||
fill: '#FCD406', | ||
height: '82px', | ||
width: '82px', | ||
marginBottom: '32px', | ||
}} | ||
/> | ||
<h2 | ||
style={{ | ||
fontSize: '2rem', | ||
marginBottom: '47px', | ||
}} | ||
> | ||
上傳成功 | ||
</h2> | ||
<div | ||
style={{ | ||
display: 'flex', | ||
justifyContent: 'center', | ||
}} | ||
> | ||
<Button | ||
btnStyle="black" | ||
circleSize="md" | ||
onClick={buttonClick} | ||
> | ||
查看本篇 | ||
</Button> | ||
</div> | ||
</div> | ||
); | ||
|
||
SuccessFeedback.propTypes = { | ||
buttonClick: PropTypes.func, | ||
}; | ||
|
||
export default SuccessFeedback; |
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.