1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2024-06-23 01:36:39 +02:00
portfolio/src/components/Vcard/index.tsx
Matthias Kretschmann 447cada700
Migrate to Next.js + TypeScript (#1038)
* 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
2022-11-15 23:14:59 +00:00

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>
)
}