1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2024-06-30 05:31:44 +02:00
portfolio/src/components/organisms/Footer.jsx

39 lines
825 B
React
Raw Normal View History

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
class Footer extends PureComponent {
2018-05-06 18:38:40 +02:00
constructor(props) {
super(props)
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>
&copy; {this.state.year} {meta.title} &mdash; 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