import React, { PureComponent } from 'react' import { StaticQuery, graphql } from 'gatsby' import Container from '../atoms/Container' import Vcard from '../molecules/Vcard' import Subscribe from '../molecules/Subscribe' import ModalThanks from '../molecules/ModalThanks' import { ReactComponent as Github } from '../../images/github.svg' import { ReactComponent as Bitcoin } from '../../images/bitcoin.svg' import styles from './Footer.module.scss' const query = graphql` query { contentYaml { author { name uri bitcoin github } } } ` export default class Footer extends PureComponent { state = { year: null, showModal: false } toggleModal = () => { this.setState({ showModal: !this.state.showModal }) } componentDidMount() { const year = new Date().getFullYear() this.setState({ year }) } render() { return ( { const { name, uri, bitcoin, github } = data.contentYaml.author return ( ) }} /> ) } }