parent
be4c3eb14f
commit
43e32502ce
After Width: | Height: | Size: 7.0 KiB |
After Width: | Height: | Size: 7.2 KiB |
@ -0,0 +1,17 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import i18n from '../../i18n'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
const Helloasso = (props) => {
|
||||||
|
const locale=i18n.language.substring(0,2).toLowerCase()==="fr"?"fr":"en";
|
||||||
|
const linkHelloAssoBanner=(locale==="fr")?"https://www.helloasso.com/associations/mieux-voter/formulaires/1/widget":"https://www.helloasso.com/associations/mieux-voter/formulaires/1/widget/en";
|
||||||
|
|
||||||
|
return (
|
||||||
|
<a href={linkHelloAssoBanner} target="_blank" rel="noopener noreferrer">
|
||||||
|
<img src={"/banner/"+locale+"/helloasso.png"} style={{width:props.width}} />
|
||||||
|
</a>);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
export default Helloasso;
|
Loading…
Reference in new issue