Skip to content

Commit 4336a15

Browse files
committed
feat: add SVG icons for Figma, GitHub, LinkedIn, and X
1 parent 87c4aff commit 4336a15

4 files changed

Lines changed: 72 additions & 0 deletions

File tree

src/components/icons/figma.tsx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
export const FigmaIcon = (props: React.ComponentProps<'svg'>) => {
2+
return (
3+
<svg
4+
xmlns="http://www.w3.org/2000/svg"
5+
viewBox="0 0 24 24"
6+
fill="none"
7+
stroke="currentColor"
8+
strokeWidth="2"
9+
strokeLinecap="round"
10+
strokeLinejoin="round"
11+
className="size-4 flex-shrink-0 stroke-1 text-neutral-500 md:size-10"
12+
{...props}>
13+
<path d="M15 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0" />
14+
<path d="M6 3m0 3a3 3 0 0 1 3 -3h6a3 3 0 0 1 3 3v0a3 3 0 0 1 -3 3h-6a3 3 0 0 1 -3 -3z" />
15+
<path d="M9 9a3 3 0 0 0 0 6h3m-3 0a3 3 0 1 0 3 3v-15" />
16+
</svg>
17+
18+
);
19+
}

src/components/icons/github.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
export const GitHubIcon = (props: React.ComponentProps<'svg'>) => {
2+
return (
3+
<svg
4+
viewBox="0 0 24 24"
5+
fill="none"
6+
stroke="currentColor"
7+
strokeWidth="1"
8+
strokeLinecap="round"
9+
strokeLinejoin="round"
10+
className="size-4 flex-shrink-0 text-neutral-500 md:size-9"
11+
{...props}
12+
>
13+
<path d="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5" />
14+
</svg>
15+
);
16+
};

src/components/icons/linkedin.tsx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
export const LinkedInIcon = (props: React.ComponentProps<'svg'>) => {
2+
return (
3+
<svg
4+
viewBox="0 0 24 24"
5+
fill="none"
6+
stroke="currentColor"
7+
strokeWidth="1"
8+
strokeLinecap="round"
9+
strokeLinejoin="round"
10+
className="size-4 flex-shrink-0 text-neutral-500 md:size-10"
11+
{...props}
12+
>
13+
<path d="M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z" />
14+
<path d="M8 11l0 5" />
15+
<path d="M8 8l0 .01" />
16+
<path d="M12 16l0 -5" />
17+
<path d="M16 16v-3a2 2 0 0 0 -4 0" />
18+
</svg>
19+
20+
);
21+
}

src/components/icons/x.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
export const XIcon = (props: React.ComponentProps<'svg'>) => {
2+
return (
3+
<svg
4+
viewBox="0 0 24 24"
5+
fill="none"
6+
stroke="currentColor"
7+
strokeWidth="1"
8+
strokeLinecap="round"
9+
strokeLinejoin="round"
10+
className="size-4 flex-shrink-0 text-neutral-500 md:size-10"
11+
{...props}>
12+
<path d="M4 4l11.733 16h4.267l-11.733 -16z" />
13+
<path d="M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772" />
14+
</svg >
15+
);
16+
}

0 commit comments

Comments
 (0)