mirror of
https://github.com/kremalicious/portfolio.git
synced 2025-01-03 02:15:00 +01:00
remove twitter
This commit is contained in:
parent
9bc1ffd01c
commit
eff932aa3b
@ -20,11 +20,6 @@
|
||||
"network": "GitHub",
|
||||
"username": "kremalicious",
|
||||
"url": "https://github.com/kremalicious"
|
||||
},
|
||||
{
|
||||
"network": "Twitter",
|
||||
"username": "kremalicious",
|
||||
"url": "https://twitter.com/kremalicious"
|
||||
}
|
||||
],
|
||||
"location": {
|
||||
|
@ -5,7 +5,6 @@
|
||||
/* TEAM */
|
||||
design & development : matthias kretschmann
|
||||
Site : https://matthiaskretschmann.com
|
||||
Twitter : @kremalicious
|
||||
GitHub : @kremalicious
|
||||
Location : Lisboa, Portugal
|
||||
|
||||
|
@ -14,9 +14,6 @@ describe('Icon', () => {
|
||||
|
||||
rerender(<Icon name={'Blog'} />)
|
||||
expect(container.firstChild.nodeName).toBe('svg')
|
||||
|
||||
rerender(<Icon name={'Twitter'} />)
|
||||
expect(container.firstChild.nodeName).toBe('svg')
|
||||
})
|
||||
|
||||
it('does not render with unknown name', () => {
|
||||
|
@ -14,8 +14,7 @@ import {
|
||||
Mail,
|
||||
Moon,
|
||||
Star,
|
||||
Sun,
|
||||
Twitter
|
||||
Sun
|
||||
} from 'lucide-react'
|
||||
import Mastodon from '../../images/mastodon.svg'
|
||||
import styles from './index.module.css'
|
||||
@ -30,7 +29,6 @@ export default function Icon({ name, ...props }: { name: string }) {
|
||||
Blog: Feather,
|
||||
ArrowDownCircle,
|
||||
GitHub: Github,
|
||||
Twitter,
|
||||
Sun,
|
||||
Moon,
|
||||
Compass,
|
||||
|
@ -13,9 +13,6 @@ const Meta = ({
|
||||
image?: string
|
||||
slug?: string
|
||||
}) => {
|
||||
const twitterHandle = resume.basics.profiles.filter(
|
||||
({ network }) => network === 'Twitter'
|
||||
)[0].username
|
||||
const url = slug ? `${meta.url}/${slug}` : meta.url
|
||||
|
||||
return (
|
||||
@ -29,7 +26,6 @@ const Meta = ({
|
||||
<meta property="og:image" content={`${meta.url}/${image}`} />
|
||||
<meta property="og:url" content={url} />
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<meta name="twitter:creator" content={twitterHandle} />
|
||||
</Head>
|
||||
)
|
||||
}
|
||||
|
@ -31,9 +31,6 @@ export async function toDataURL(photoSrc: string, outputFormat) {
|
||||
export async function constructVcard(meta, dataUrl: string) {
|
||||
const contact = new vCard()
|
||||
const blog = meta.profiles.filter(({ network }) => network === 'Blog')[0].url
|
||||
const twitter = meta.profiles.filter(
|
||||
({ network }) => network === 'Twitter'
|
||||
)[0].url
|
||||
const github = meta.profiles.filter(({ network }) => network === 'GitHub')[0]
|
||||
.url
|
||||
|
||||
@ -47,7 +44,6 @@ export async function constructVcard(meta, dataUrl: string) {
|
||||
contact.set('nickname', 'kremalicious')
|
||||
contact.set('url', meta.url, { type: 'Portfolio' })
|
||||
contact.add('url', blog, { type: 'Blog' })
|
||||
contact.add('x-socialprofile', twitter, { type: 'twitter' })
|
||||
contact.add('x-socialprofile', github, { type: 'GitHub' })
|
||||
|
||||
const vcard = contact.toString('3.0')
|
||||
|
Loading…
Reference in New Issue
Block a user