2018-05-11 21:44:34 +02:00
|
|
|
import React, { PureComponent } from 'react'
|
2018-04-08 22:49:58 +02:00
|
|
|
import PropTypes from 'prop-types'
|
2018-05-13 00:42:59 +02:00
|
|
|
import Vcard from '../atoms/Vcard'
|
2018-05-12 22:58:16 +02:00
|
|
|
import Networks from '../molecules/Networks'
|
2018-04-06 17:24:35 +02:00
|
|
|
import './Footer.scss'
|
2018-04-02 23:22:48 +02:00
|
|
|
|
2018-05-11 21:44:34 +02:00
|
|
|
class Footer extends PureComponent {
|
2018-05-06 18:38:40 +02:00
|
|
|
constructor(props) {
|
|
|
|
super(props)
|
2018-05-11 21:44:34 +02:00
|
|
|
|
|
|
|
this.state = { year: new Date().getFullYear() }
|
2018-05-06 18:38:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
|
|
const meta = this.props.meta
|
|
|
|
|
|
|
|
return (
|
|
|
|
<footer className="footer">
|
2018-05-12 22:58:16 +02:00
|
|
|
<Networks meta={meta} minimal />
|
2018-05-06 18:38:40 +02:00
|
|
|
<p className="footer__actions">
|
2018-05-13 00:42:59 +02:00
|
|
|
<Vcard meta={meta} />
|
2018-05-06 18:38:40 +02:00
|
|
|
<a href={meta.gpg}>PGP/GPG key</a>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<small>
|
2018-05-11 21:44:34 +02:00
|
|
|
© {this.state.year} {meta.title} — All Rights Reserved
|
2018-05-06 18:38:40 +02:00
|
|
|
</small>
|
|
|
|
</p>
|
|
|
|
</footer>
|
|
|
|
)
|
|
|
|
}
|
2018-04-02 23:22:48 +02:00
|
|
|
}
|
|
|
|
|
2018-04-08 22:49:58 +02:00
|
|
|
Footer.propTypes = {
|
|
|
|
meta: PropTypes.object,
|
|
|
|
}
|
|
|
|
|
2018-04-02 23:22:48 +02:00
|
|
|
export default Footer
|