Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | import React, { PureComponent } from 'react'; import ReactGA from 'react-ga'; import AWSArchitectAssociateImg from '../../../assets/images/AWS-Certified_Solutions-Architect_Associate.png'; import styles from '../styles.scss'; class AWSArchitectAssociateBadge extends PureComponent { popup = (event) => { event.preventDefault(); event.stopPropagation(); const url = event.currentTarget.getAttribute('href'); const urlHash = btoa(url); const cookiesAccepted = localStorage ? localStorage.getItem('cookiesAccepted') : false; if (cookiesAccepted) { ReactGA.outboundLink( { label: url, }, () => {}, ); } window.open(url, urlHash); } render() { return ( <a href="https://www.certmetrics.com/amazon/public/badge.aspx?i=1&t=c&d=2019-09-02&ci=AWS00594118" onClick={this.popup} target="_blank" rel="noopener noreferrer" > <img src={AWSArchitectAssociateImg} alt="AWS Certified Solutions Architect Associate" className={styles.badge} /> </a> ); } } export default AWSArchitectAssociateBadge; |