From eff932aa3baac973dd2bed8bae146c47d7b0b9c7 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 19 Sep 2023 19:51:47 +0100 Subject: [PATCH] remove twitter --- _content/resume.json | 5 ----- public/humans.txt | 1 - src/components/Icon/index.test.tsx | 3 --- src/components/Icon/index.tsx | 4 +--- src/components/Meta/index.tsx | 4 ---- src/components/Vcard/_utils.ts | 4 ---- 6 files changed, 1 insertion(+), 20 deletions(-) diff --git a/_content/resume.json b/_content/resume.json index 143829a..1ae5aa8 100644 --- a/_content/resume.json +++ b/_content/resume.json @@ -20,11 +20,6 @@ "network": "GitHub", "username": "kremalicious", "url": "https://github.com/kremalicious" - }, - { - "network": "Twitter", - "username": "kremalicious", - "url": "https://twitter.com/kremalicious" } ], "location": { diff --git a/public/humans.txt b/public/humans.txt index 6707a27..24d47c1 100644 --- a/public/humans.txt +++ b/public/humans.txt @@ -5,7 +5,6 @@ /* TEAM */ design & development : matthias kretschmann Site : https://matthiaskretschmann.com - Twitter : @kremalicious GitHub : @kremalicious Location : Lisboa, Portugal diff --git a/src/components/Icon/index.test.tsx b/src/components/Icon/index.test.tsx index 7c4c56a..17ee6e0 100644 --- a/src/components/Icon/index.test.tsx +++ b/src/components/Icon/index.test.tsx @@ -14,9 +14,6 @@ describe('Icon', () => { rerender() expect(container.firstChild.nodeName).toBe('svg') - - rerender() - expect(container.firstChild.nodeName).toBe('svg') }) it('does not render with unknown name', () => { diff --git a/src/components/Icon/index.tsx b/src/components/Icon/index.tsx index 40667ef..e8b8a3a 100644 --- a/src/components/Icon/index.tsx +++ b/src/components/Icon/index.tsx @@ -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, diff --git a/src/components/Meta/index.tsx b/src/components/Meta/index.tsx index 90e6509..52de5ae 100644 --- a/src/components/Meta/index.tsx +++ b/src/components/Meta/index.tsx @@ -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 = ({ - ) } diff --git a/src/components/Vcard/_utils.ts b/src/components/Vcard/_utils.ts index 266bb25..8ac5414 100644 --- a/src/components/Vcard/_utils.ts +++ b/src/components/Vcard/_utils.ts @@ -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')