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 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 | import React, { PureComponent } from 'react'; import ReactGA from 'react-ga'; import { Link } from 'react-router-dom'; import moment from 'moment'; import SunIcon from '../Icons/SunIcon'; import TOCButton from '../TOCButton'; import TwitterIcon from '../Icons/Social/TwitterIcon'; import FacebookIcon from '../Icons/Social/FacebookIcon'; import LinkedinIcon from '../Icons/Social/LinkedinIcon'; import globalStyles from '../../assets/styles/page.scss'; import styles from './Footer.scss'; class Footer extends PureComponent { static 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 ( <footer id="footer" className={styles.footer}> <section className={styles.cover}> <div className={styles.banner}> <ul className={`${globalStyles.flatList} ${styles.footnotes__group}`} > <li className={styles.footnotes__note}> <a href="https://twitter.com/nvisionmedia" className={styles.footnotes__link} onClick={this.constructor.popup} target="_blank" rel="noopener noreferrer" > <TwitterIcon className={styles.footnotes__icon} /> </a> </li> <li className={styles.footnotes__note}> <a href="https://www.linkedin.com/in/mauro-colella-8783042/" className={styles.footnotes__link} onClick={this.constructor.popup} target="_blank" rel="noopener noreferrer" > <LinkedinIcon className={styles.footnotes__icon} style={{ width: '54px' }} /> </a> </li> <li className={styles.footnotes__note}> <a href="https://www.facebook.com/nvisionweb/" className={styles.footnotes__link} onClick={this.constructor.popup} target="_blank" rel="noopener noreferrer" > <FacebookIcon className={styles.footnotes__icon} /> </a> </li> </ul> <ul className={`${globalStyles.flatList} ${styles.footnotes__group}`} > <li> <a href="https://www.upwork.com/freelancers/~014e1ddeddccaea1da" className={styles.hireme} onClick={this.constructor.popup} > Hire Me {' '} <SunIcon className={styles.hireme__icon} /> </a> </li> </ul> </div> <div className={styles.footnotes}> <ul className={`${globalStyles.flatList} ${styles.footnotes__group}`} > <li className={styles.footnotes__note}> <small> Copyright © 2017- {moment().year()} </small> </li> </ul> <ul className={`${globalStyles.flatList} ${styles.footnotes__group}`} > <li className={styles.footnotes__note}> <small> <Link to="/privacy" className={styles.footnotes__link} > privacy </Link> </small> </li> <li className={styles.footnotes__note}> <small> <a href="https://github.com/maurocolella/__new_me" className={styles.footnotes__link} onClick={this.constructor.popup} target="_blank" rel="noopener noreferrer" > source code </a> </small> </li> <li className={styles.footnotes__note}> <small> <a href="https://maurocolella.github.io/" className={styles.footnotes__link} onClick={this.constructor.popup} target="_blank" rel="noopener noreferrer" > metrics </a> </small> </li> <li className={styles.footnotes__note}> <small> <a href="https://api.mauro-colella.com" className={styles.footnotes__link} onClick={this.constructor.popup} target="_blank" rel="noopener noreferrer" > api </a> </small> </li> </ul> </div> </section> <TOCButton /> </footer> ); } } export default Footer; |