Rajoute les logos institutionnels sur l'iframe
parent
e5997bf704
commit
c17feed5e3
|
@ -6,9 +6,8 @@ export default withRouter(
|
|||
componentDidMount() {
|
||||
const script = document.createElement('script')
|
||||
script.id = 'script-simulateur-embauche'
|
||||
script.src =
|
||||
window.location.origin + '/simulateur-iframe-integration.js'
|
||||
script.dataset.couleur = '#2975D1'
|
||||
script.src = window.location.origin + '/simulateur-iframe-integration.js'
|
||||
script.dataset.couleur = '#005aa1'
|
||||
this.DOMNode.appendChild(script)
|
||||
}
|
||||
render() {
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
import LangSwitcher from 'Components/LangSwitcher';
|
||||
import React, { Component } from 'react';
|
||||
import emoji from 'react-easy-emoji';
|
||||
import { Trans, withTranslation } from 'react-i18next';
|
||||
import screenfull from 'screenfull';
|
||||
import { isIE } from '../../../../utils';
|
||||
import LangSwitcher from 'Components/LangSwitcher'
|
||||
import marianneSvg from 'Images/marianne.svg'
|
||||
import urssafSvg from 'Images/urssaf.svg'
|
||||
import React, { Component } from 'react'
|
||||
import emoji from 'react-easy-emoji'
|
||||
import { Trans, withTranslation } from 'react-i18next'
|
||||
import screenfull from 'screenfull'
|
||||
import { isIE } from '../../../../utils'
|
||||
|
||||
export default withTranslation()(
|
||||
class IframeFooter extends Component {
|
||||
|
@ -13,30 +15,54 @@ export default withTranslation()(
|
|||
|
||||
render() {
|
||||
return (
|
||||
<div
|
||||
className="ui__ container"
|
||||
style={{
|
||||
textAlign: 'right',
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'space-between'
|
||||
}}>
|
||||
<LangSwitcher className="ui__ button simple" />
|
||||
{screenfull.enabled && !screenfull.isFullscreen && !isIE() && (
|
||||
<>
|
||||
<div
|
||||
style={{
|
||||
textAlign: 'center',
|
||||
margin: '2rem 0'
|
||||
}}>
|
||||
<a href="https://www.urssaf.fr" target="_blank">
|
||||
<img
|
||||
style={{ height: '2.5rem', marginRight: '1rem' }}
|
||||
src={urssafSvg}
|
||||
alt="un service fourni par l'Urssaf"
|
||||
/>
|
||||
</a>
|
||||
<a href="https://beta.gouv.fr" target="_blank">
|
||||
<img
|
||||
style={{ height: '2.5rem' }}
|
||||
src={marianneSvg}
|
||||
alt="un service de l’Etat français incubé par beta.gouv.fr"
|
||||
/>
|
||||
</a>
|
||||
</div>
|
||||
<div
|
||||
className="ui__ container"
|
||||
style={{
|
||||
textAlign: 'right',
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'space-between'
|
||||
}}>
|
||||
<LangSwitcher className="ui__ button simple" />
|
||||
{screenfull.enabled && !screenfull.isFullscreen && !isIE() && (
|
||||
<button
|
||||
className="ui__ button small"
|
||||
onClick={() => {
|
||||
screenfull.toggle()
|
||||
}}>
|
||||
{emoji('🖵')}
|
||||
<Trans>Plein écran</Trans>
|
||||
</button>
|
||||
)}
|
||||
<button
|
||||
className="ui__ button small"
|
||||
onClick={() => {
|
||||
screenfull.toggle()
|
||||
}}>
|
||||
{emoji('🖵')}
|
||||
<Trans>Plein écran</Trans>
|
||||
onClick={() => window.print()}>
|
||||
{emoji('🖨')}
|
||||
<Trans>Imprimer</Trans>
|
||||
</button>
|
||||
)}
|
||||
<button className="ui__ button small" onClick={() => window.print()}>
|
||||
{emoji('🖨')}
|
||||
<Trans>Imprimer</Trans>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue