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