-
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
b1a57d9
commit ae5f91a
Showing
10 changed files
with
154 additions
and
6 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
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,3 +1,43 @@ | ||
.deleteColumn > * { | ||
float: right; | ||
} | ||
|
||
.tooltip { | ||
position: relative; | ||
text-decoration: none; | ||
background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 24 24"><path d="M12,2A10,10,0,1,0,22,12,10,10,0,0,0,12,2Zm1,15a1,1,0,0,1-2,0V11a1,1,0,0,1,2,0ZM12,8a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,12,8Z"/></svg>') | ||
no-repeat; | ||
background-position: right top; | ||
padding-right: 18px; | ||
cursor: pointer; | ||
} | ||
|
||
.tooltip:hover::before, | ||
.tooltip.active::before, | ||
.tooltip:focus::before { | ||
position: absolute; | ||
width: 0; | ||
height: 0; | ||
right: 0; | ||
bottom: 15px; | ||
content: ''; | ||
border-style: solid; | ||
border-width: 10px; | ||
border-color: #000 transparent transparent transparent; | ||
} | ||
|
||
.tooltip:hover::after, | ||
.tooltip.active::after, | ||
.tooltip:focus::after { | ||
position: absolute; | ||
right: -10px; | ||
bottom: 35px; | ||
width: 200px; | ||
padding: 12px; | ||
content: attr(data-title); | ||
font-size: 0.9em; | ||
border-radius: 8px; | ||
box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1); | ||
background: #000; | ||
color: #fff; | ||
} |
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,36 @@ | ||
import React from 'react'; | ||
import { withTranslation } from 'react-i18next'; | ||
import { connect } from 'react-redux'; | ||
|
||
import YiviAppBar from '../../widgets/yivi_app_bar'; | ||
import YiviButton from '../../widgets/yivi_button'; | ||
import Column from '../../widgets/column'; | ||
import Spacer from '../../widgets/spacer'; | ||
|
||
const mapStateToProps = (state) => { | ||
return { | ||
explanation: state.login.explanation, | ||
details: state.login.details, | ||
}; | ||
}; | ||
|
||
const WarningMessage = (props) => { | ||
const onReturn = () => { | ||
props.dispatch({ type: 'resolveError' }); | ||
}; | ||
|
||
return ( | ||
<> | ||
<YiviAppBar title={props.t('header')} /> | ||
<Column> | ||
<Spacer /> | ||
<p>{props.t(props.explanation)}</p> | ||
<p>{props.t(props.details)}</p> | ||
<YiviButton theme={'primary'} onClick={onReturn}> | ||
{props.t('return')} | ||
</YiviButton> | ||
</Column> | ||
</> | ||
); | ||
}; | ||
export default connect(mapStateToProps)(withTranslation('warning-message')(WarningMessage)); |
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