From 519e587e5a8e748c02adcf3a32a1a1841e22cf8f Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Wed, 10 Apr 2024 17:06:52 +0100 Subject: [PATCH] add farcaster --- _content/meta.json | 16 +++++++--------- src/components/Icon/index.tsx | 12 +++++++++--- src/components/Networks/NetworkLink.tsx | 2 +- src/components/Networks/index.module.css | 4 ++++ src/images/farcaster.svg | 12 ++++++++++++ 5 files changed, 33 insertions(+), 13 deletions(-) create mode 100644 src/images/farcaster.svg diff --git a/_content/meta.json b/_content/meta.json index 8158528..3dc590b 100644 --- a/_content/meta.json +++ b/_content/meta.json @@ -17,23 +17,21 @@ "network": "Blog", "url": "https://kremalicious.com" }, + { + "network": "GitHub", + "url": "https://github.com/kremalicious" + }, { "network": "Mastodon", - "username": "@krema@mas.to", "url": "https://mas.to/@krema" }, { - "network": "GitHub", - "username": "kremalicious", - "url": "https://github.com/kremalicious" + "network": "Farcaster", + "url": "https://warpcast.com/@krema.eth" } ], "gpg": "/gpg.txt", "addressbook": "/matthias-kretschmann.vcf", "bugs": "https://github.com/kremalicious/portfolio/issues/new", - "allowedHosts": [ - "matthiaskretschmann.com", - "beta.matthiaskretschmann.com", - "localhost" - ] + "allowedHosts": ["matthiaskretschmann.com", "localhost"] } diff --git a/src/components/Icon/index.tsx b/src/components/Icon/index.tsx index 4d1f382..f2dff18 100644 --- a/src/components/Icon/index.tsx +++ b/src/components/Icon/index.tsx @@ -16,10 +16,15 @@ import { Star, Sun } from 'lucide-react' +import Farcaster from '@/images/farcaster.svg' import Mastodon from '@/images/mastodon.svg' import styles from './index.module.css' -export default function Icon({ name, ...props }: { name: string }) { +type Props = React.SVGAttributes<{ + name: string +}> + +export default function Icon({ name, className, ...props }: Props) { const components = { Email: Mail, Link: Compass, @@ -41,12 +46,13 @@ export default function Icon({ name, ...props }: { name: string }) { Mastodon, ChevronDown, Check, - Contrast + Contrast, + Farcaster } const IconMapped = components[name as keyof typeof components] return IconMapped ? ( - + ) : null } diff --git a/src/components/Networks/NetworkLink.tsx b/src/components/Networks/NetworkLink.tsx index c0ee35e..268fde2 100644 --- a/src/components/Networks/NetworkLink.tsx +++ b/src/components/Networks/NetworkLink.tsx @@ -18,7 +18,7 @@ export const NetworkLink = ({ name, url }: { name: string; url: string }) => { href={url} rel="me" > - + {name} diff --git a/src/components/Networks/index.module.css b/src/components/Networks/index.module.css index 26585d2..796387c 100644 --- a/src/components/Networks/index.module.css +++ b/src/components/Networks/index.module.css @@ -56,3 +56,7 @@ height: var(--font-size-base); opacity: 0.8; } + +.farcaster { + stroke-width: 0.1275rem; +} diff --git a/src/images/farcaster.svg b/src/images/farcaster.svg new file mode 100644 index 0000000..b62661d --- /dev/null +++ b/src/images/farcaster.svg @@ -0,0 +1,12 @@ + + +