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-13 21:50:55 +02:00
|
|
|
import LogoUnit from '../atoms/LogoUnit'
|
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
|
2018-05-14 20:10:59 +02:00
|
|
|
const pkg = this.props.pkg
|
2018-05-06 18:38:40 +02:00
|
|
|
|
|
|
|
return (
|
|
|
|
<footer className="footer">
|
2018-05-13 21:50:55 +02:00
|
|
|
<LogoUnit meta={meta} minimal />
|
2018-05-12 22:58:16 +02:00
|
|
|
<Networks meta={meta} minimal />
|
2018-05-13 21:50:55 +02:00
|
|
|
|
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>
|
2018-05-14 20:10:59 +02:00
|
|
|
<a href={pkg.bugs}>Found a bug?</a>
|
2018-05-06 18:38:40 +02:00
|
|
|
</p>
|
2018-05-13 21:50:55 +02:00
|
|
|
<p className="footer__copyright">
|
2018-05-06 18:38:40 +02:00
|
|
|
<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-05-14 22:30:18 +02:00
|
|
|
pkg: PropTypes.object
|
2018-04-08 22:49:58 +02:00
|
|
|
}
|
|
|
|
|
2018-04-02 23:22:48 +02:00
|
|
|
export default Footer
|