add x logo

This commit is contained in:
Timothy Lin 2024-05-01 11:09:29 +08:00
parent 37f3195288
commit 194d7072d4
5 changed files with 14 additions and 2 deletions

View File

@ -13,6 +13,7 @@ export default function Footer() {
<SocialIcon kind="youtube" href={siteMetadata.youtube} size={6} />
<SocialIcon kind="linkedin" href={siteMetadata.linkedin} size={6} />
<SocialIcon kind="twitter" href={siteMetadata.twitter} size={6} />
<SocialIcon kind="x" href={siteMetadata.x} size={6} />
<SocialIcon kind="instagram" href={siteMetadata.instagram} size={6} />
<SocialIcon kind="threads" href={siteMetadata.threads} size={6} />
</div>

View File

@ -44,6 +44,14 @@ export function Twitter(svgProps: SVGProps<SVGSVGElement>) {
)
}
export function X(svgProps: SVGProps<SVGSVGElement>) {
return (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...svgProps}>
<path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z" />
</svg>
)
}
export function Youtube(svgProps: SVGProps<SVGSVGElement>) {
return (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...svgProps}>

View File

@ -5,6 +5,7 @@ import {
Youtube,
Linkedin,
Twitter,
X,
Mastodon,
Threads,
Instagram,
@ -17,6 +18,7 @@ const components = {
youtube: Youtube,
linkedin: Linkedin,
twitter: Twitter,
x: X,
mastodon: Mastodon,
threads: Threads,
instagram: Instagram,

View File

@ -13,7 +13,8 @@ const siteMetadata = {
mastodon: 'https://mastodon.social/@mastodonuser',
email: 'address@yoursite.com',
github: 'https://github.com',
twitter: 'https://twitter.com/Twitter',
x: 'https://twitter.com/x',
// twitter: 'https://twitter.com/Twitter',
facebook: 'https://facebook.com',
youtube: 'https://youtube.com',
linkedin: 'https://www.linkedin.com',

View File

@ -37,7 +37,7 @@ export default function AuthorLayout({ children, content }: Props) {
<SocialIcon kind="mail" href={`mailto:${email}`} />
<SocialIcon kind="github" href={github} />
<SocialIcon kind="linkedin" href={linkedin} />
<SocialIcon kind="twitter" href={twitter} />
<SocialIcon kind="x" href={twitter} />
</div>
</div>
<div className="prose max-w-none pb-8 pt-8 dark:prose-invert xl:col-span-2">