Skip to content

Commit

Permalink
chore: change twitter logo
Browse files Browse the repository at this point in the history
  • Loading branch information
kuizuo committed Nov 23, 2023
1 parent 6458c9f commit 77ba49a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 16 deletions.
19 changes: 11 additions & 8 deletions src/components/SocialLinks/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ import styles from './styles.module.scss'
function SocialLink({
href,
icon,
title,
...prop
}: {
href: string
title: string
icon: string | JSX.Element
}) {
return (
<a href={href} target="_blank" {...prop}>
<a href={href} target="_blank" {...prop} title={title}>
{typeof icon === 'string' ? <Icon icon={icon} /> : icon}
</a>
)
Expand All @@ -38,17 +40,18 @@ export default function SocialLinks({ ...prop }) {

return (
<div className={styles.social__links} {...prop}>
<SocialLink href={socials.github} icon="ri:github-line" />
<SocialLink href={socials.juejin} icon={<JuejinIcon />} />
<SocialLink href={socials.twitter} icon="ri:twitter-line" />
<SocialLink href={socials.qq} icon="ri:qq-line" />
<SocialLink href={socials.zhihu} icon="ri:zhihu-line" />
<SocialLink href={socials.email} icon="ri:mail-line" />
<SocialLink href={socials.github} title="gitub" icon="ri:github-line" />
<SocialLink href={socials.juejin} title="掘金" icon={<JuejinIcon />} />
<SocialLink href={socials.twitter} title="X" icon="ri:twitter-x-line" />
<SocialLink href={socials.qq} title="QQ" icon="ri:qq-line" />
<SocialLink href={socials.zhihu} title="知乎" icon="ri:zhihu-line" />
<SocialLink href={socials.email} title="Email" icon="ri:mail-line" />
<SocialLink
href={socials.cloudmusic}
title="Music"
icon="ri:netease-cloud-music-line"
/>
<SocialLink href="/rss.xml" icon="ri:rss-line" />
<SocialLink href="/rss.xml" title="Rss" icon="ri:rss-line" />
</div>
)
}
8 changes: 0 additions & 8 deletions src/components/SocialLinks/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
transition-property: all;
transition-duration: 0.3s;
transition-delay: 0s;

&:hover {
background-color: #ecfeff;
}
}

.dropdown {
Expand All @@ -46,10 +42,6 @@
}
}

html[data-theme='dark'] .social__links a:hover {
background-color: #515967;
}

.social__links > *,
.social__links svg,
.social__links svg path {
Expand Down

1 comment on commit 77ba49a

@vercel
Copy link

@vercel vercel bot commented on 77ba49a Nov 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

blog – ./

blog-kuizuo1.vercel.app
kuizuo.cn
blog-git-main-kuizuo1.vercel.app
blog-kuizuo.vercel.app

Please sign in to comment.