1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2025-01-03 10:25:00 +01:00

comment out vcf code for now

* ref #1
This commit is contained in:
Matthias Kretschmann 2018-05-07 01:46:28 +02:00
parent 270abc5551
commit dc544cef63
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -1,6 +1,6 @@
import React, { Component } from 'react' import React, { Component } from 'react'
import PropTypes from 'prop-types' import PropTypes from 'prop-types'
import vCard from 'vcf' // import vCard from 'vcf'
import FileSaver from 'file-saver' import FileSaver from 'file-saver'
import Social from '../molecules/Social' import Social from '../molecules/Social'
import './Footer.scss' import './Footer.scss'
@ -12,22 +12,22 @@ class Footer extends Component {
} }
constructVcard() { constructVcard() {
const meta = this.props.meta // const meta = this.props.meta
const contact = new vCard() // const contact = new vCard()
const photo = meta.avatarBase64 // const photo = meta.avatarBase64
contact.set('fn', meta.title) // contact.set('fn', meta.title)
contact.set('title', meta.tagline) // contact.set('title', meta.tagline)
contact.set('email', meta.email) // contact.set('email', meta.email)
contact.set('url', meta.url, { type: 'Portfolio' }) // contact.set('url', meta.url, { type: 'Portfolio' })
contact.add('url', meta.social.Blog, { type: 'Blog' }) // contact.add('url', meta.social.Blog, { type: 'Blog' })
contact.set('nickname', 'kremalicious') // contact.set('nickname', 'kremalicious')
contact.add('x-socialprofile', meta.social.Twitter, { type: 'twitter' }) // contact.add('x-socialprofile', meta.social.Twitter, { type: 'twitter' })
contact.add('x-socialprofile', meta.social.GitHub, { type: 'GitHub' }) // contact.add('x-socialprofile', meta.social.GitHub, { type: 'GitHub' })
contact.set('photo', photo, { encoding: 'b', type: 'JPEG' }) // contact.set('photo', photo, { encoding: 'b', type: 'JPEG' })
const vcard = contact.toString('3.0') // const vcard = contact.toString('3.0')
this.downloadVcard(vcard, meta) // this.downloadVcard(vcard, meta)
} }
downloadVcard(vcard, meta) { downloadVcard(vcard, meta) {
@ -48,9 +48,9 @@ class Footer extends Component {
<footer className="footer"> <footer className="footer">
<Social meta={meta} minimal /> <Social meta={meta} minimal />
<p className="footer__actions"> <p className="footer__actions">
<a href="#" onClick={this.handleAddressbookClick}> {/* <a href="#" onClick={this.handleAddressbookClick}>
Add to addressbook Add to addressbook
</a> </a> */}
<a href={meta.gpg}>PGP/GPG key</a> <a href={meta.gpg}>PGP/GPG key</a>
</p> </p>
<p> <p>