mirror of
https://github.com/kremalicious/portfolio.git
synced 2024-06-23 01:36:39 +02:00
Matthias Kretschmann
447cada700
* next.js + typescript * more testing * script updates * fixes * favicon generation * testing * readme updates * tweaks * tweaks * move tests * image tweaks * ci tweaks * commit next-env.d.ts for ci * migrations * fixes * fixes * ci tweaks * new animations * project preview tweaks * add codeclimate config * dark mode refactor, test tweaks * readme updates * animation tweaks * animate in loaded images * test update * update humans.txt
35 lines
702 B
TypeScript
35 lines
702 B
TypeScript
import meta from '../../../_content/meta.json'
|
|
import resume from '../../../_content/resume.json'
|
|
|
|
export default function Vcard() {
|
|
const { name, label, email, profiles } = resume.basics
|
|
|
|
const vCardMeta = {
|
|
...meta,
|
|
/// photoSrc,
|
|
name,
|
|
label,
|
|
email,
|
|
profiles
|
|
}
|
|
|
|
const handleAddressbookClick = (e) => {
|
|
e.preventDefault()
|
|
|
|
import('./_utils').then(({ init }) => {
|
|
init(vCardMeta)
|
|
})
|
|
}
|
|
|
|
return (
|
|
<a
|
|
// href is kinda fake, only there for usability
|
|
// so user knows what to expect when hovering the link before clicking
|
|
href={meta.addressbook}
|
|
onClick={handleAddressbookClick}
|
|
>
|
|
Add to addressbook
|
|
</a>
|
|
)
|
|
}
|