Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add x.com icon #145

Merged
merged 1 commit into from
Jul 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import type { BlogState, DateFormat, Post } from "./types.d.ts";
const socialAppIcons = new Map([
["github.com", IconGithub],
["twitter.com", IconTwitter],
["x.com", IconX],
["instagram.com", IconInstagram],
["linkedin.com", IconLinkedin],
["mastodon.social", IconMastodon],
Expand Down Expand Up @@ -391,6 +392,22 @@ function IconTwitter() {
);
}

function IconX() {
return (
<svg
className="inline-block w-5 h-5"
viewBox="0 0 20 20"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M86.8918 28.25H99.0219L72.5243 58.5334L103.698 99.75H79.285L60.1647 74.7536L38.2929 99.75H26.1627L54.5069 67.3565L24.5938 28.25H49.6199L66.9004 51.0974L86.8918 28.25ZM82.6337 92.4904H89.3555L45.9716 35.1301H38.7584L82.6337 92.4904Z"
fill="black"
/>
</svg>
);
}

function IconInstagram() {
return (
<svg
Expand Down
Loading