Skip to content

Commit 46f5e9b

Browse files
authored
feat: Add Git commit icon (#598)
1 parent db0c164 commit 46f5e9b

File tree

2 files changed

+99
-0
lines changed

2 files changed

+99
-0
lines changed
+98
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
import createIcon from './createIcon'
2+
3+
export default createIcon(({ size, color }) => (
4+
<svg
5+
width={size}
6+
viewBox="0 0 24 24"
7+
fill="none"
8+
xmlns="http://www.w3.org/2000/svg"
9+
>
10+
<g
11+
clipPath="url(#clip0_6369_22416)"
12+
filter="url(#filter0_d_6369_22416)"
13+
>
14+
<mask
15+
id="path-1-inside-1_6369_22416"
16+
fill="white"
17+
>
18+
<path d="M4 8C4 8.27614 4.22386 8.5 4.5 8.5H8.78822C8.76306 8.33702 8.75 8.17003 8.75 8C8.75 7.82997 8.76306 7.66299 8.78822 7.5H4.5C4.22386 7.5 4 7.72386 4 8Z" />
19+
<path d="M19.5 8.5C19.7761 8.5 20 8.27614 20 8C20 7.72386 19.7761 7.5 19.5 7.5H15.2118C15.2369 7.66299 15.25 7.82997 15.25 8C15.25 8.17003 15.2369 8.33702 15.2118 8.5H19.5Z" />
20+
<path
21+
fillRule="evenodd"
22+
clipRule="evenodd"
23+
d="M15.25 8C15.25 9.79493 13.7949 11.25 12 11.25C10.2051 11.25 8.75 9.79493 8.75 8C8.75 6.20508 10.2051 4.75 12 4.75C13.7949 4.75 15.25 6.20508 15.25 8ZM12 10.25C13.2426 10.25 14.25 9.24264 14.25 8C14.25 6.75736 13.2426 5.75 12 5.75C10.7574 5.75 9.75 6.75736 9.75 8C9.75 9.24264 10.7574 10.25 12 10.25Z"
24+
/>
25+
</mask>
26+
<path
27+
d="M4 8C4 8.27614 4.22386 8.5 4.5 8.5H8.78822C8.76306 8.33702 8.75 8.17003 8.75 8C8.75 7.82997 8.76306 7.66299 8.78822 7.5H4.5C4.22386 7.5 4 7.72386 4 8Z"
28+
fill={color}
29+
/>
30+
<path
31+
d="M19.5 8.5C19.7761 8.5 20 8.27614 20 8C20 7.72386 19.7761 7.5 19.5 7.5H15.2118C15.2369 7.66299 15.25 7.82997 15.25 8C15.25 8.17003 15.2369 8.33702 15.2118 8.5H19.5Z"
32+
fill={color}
33+
/>
34+
<path
35+
fillRule="evenodd"
36+
clipRule="evenodd"
37+
d="M15.25 8C15.25 9.79493 13.7949 11.25 12 11.25C10.2051 11.25 8.75 9.79493 8.75 8C8.75 6.20508 10.2051 4.75 12 4.75C13.7949 4.75 15.25 6.20508 15.25 8ZM12 10.25C13.2426 10.25 14.25 9.24264 14.25 8C14.25 6.75736 13.2426 5.75 12 5.75C10.7574 5.75 9.75 6.75736 9.75 8C9.75 9.24264 10.7574 10.25 12 10.25Z"
38+
fill={color}
39+
/>
40+
<path
41+
d="M8.78822 8.5V9.5H9.95449L9.77651 8.3474L8.78822 8.5ZM8.78822 7.5L9.77651 7.6526L9.95449 6.5H8.78822V7.5ZM15.2118 7.5V6.5H14.0455L14.2235 7.6526L15.2118 7.5ZM15.2118 8.5L14.2235 8.3474L14.0455 9.5H15.2118V8.5ZM4.5 9.5H8.78822V7.5H4.5V9.5ZM8.78822 6.5H4.5V8.5H8.78822V6.5ZM19.5 6.5H15.2118V8.5H19.5V6.5ZM19.5 7.5H15.2118V9.5H19.5V7.5ZM14.25 8C14.25 9.24264 13.2426 10.25 12 10.25V12.25C14.3472 12.25 16.25 10.3472 16.25 8H14.25ZM12 10.25C10.7574 10.25 9.75 9.24264 9.75 8H7.75C7.75 10.3472 9.65279 12.25 12 12.25V10.25ZM9.75 8C9.75 6.75736 10.7574 5.75 12 5.75V3.75C9.65279 3.75 7.75 5.65279 7.75 8H9.75ZM12 5.75C13.2426 5.75 14.25 6.75736 14.25 8H16.25C16.25 5.65279 14.3472 3.75 12 3.75V5.75ZM9.77651 8.3474C9.75911 8.23473 9.75 8.11876 9.75 8H7.75C7.75 8.22131 7.767 8.4393 7.79994 8.6526L9.77651 8.3474ZM9.75 8C9.75 7.88124 9.75911 7.76527 9.77651 7.6526L7.79994 7.3474C7.767 7.5607 7.75 7.7787 7.75 8H9.75ZM14.2235 7.6526C14.2409 7.76527 14.25 7.88124 14.25 8H16.25C16.25 7.7787 16.233 7.5607 16.2001 7.3474L14.2235 7.6526ZM14.25 8C14.25 8.11876 14.2409 8.23473 14.2235 8.3474L16.2001 8.6526C16.233 8.4393 16.25 8.22131 16.25 8H14.25ZM13.25 8C13.25 8.69036 12.6904 9.25 12 9.25V11.25C13.7949 11.25 15.25 9.79493 15.25 8H13.25ZM12 9.25C11.3096 9.25 10.75 8.69036 10.75 8H8.75C8.75 9.79493 10.2051 11.25 12 11.25V9.25ZM10.75 8C10.75 7.30964 11.3096 6.75 12 6.75V4.75C10.2051 4.75 8.75 6.20507 8.75 8H10.75ZM12 6.75C12.6904 6.75 13.25 7.30964 13.25 8H15.25C15.25 6.20507 13.7949 4.75 12 4.75V6.75ZM21 8C21 7.17157 20.3284 6.5 19.5 6.5V8.5C19.2239 8.5 19 8.27614 19 8H21ZM4.5 6.5C3.67157 6.5 3 7.17157 3 8H5C5 8.27614 4.77614 8.5 4.5 8.5V6.5ZM19 8C19 7.72386 19.2239 7.5 19.5 7.5V9.5C20.3284 9.5 21 8.82843 21 8H19ZM4.5 7.5C4.77614 7.5 5 7.72386 5 8H3C3 8.82843 3.67157 9.5 4.5 9.5V7.5Z"
42+
fill={color}
43+
mask="url(#path-1-inside-1_6369_22416)"
44+
/>
45+
</g>
46+
<defs>
47+
<filter
48+
id="filter0_d_6369_22416"
49+
x="0"
50+
y="0"
51+
width="24"
52+
height="24"
53+
filterUnits="userSpaceOnUse"
54+
colorInterpolationFilters="sRGB"
55+
>
56+
<feFlood
57+
floodOpacity="0"
58+
result="BackgroundImageFix"
59+
/>
60+
<feColorMatrix
61+
in="SourceAlpha"
62+
type="matrix"
63+
values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
64+
result="hardAlpha"
65+
/>
66+
<feOffset dy="4" />
67+
<feGaussianBlur stdDeviation="2" />
68+
<feComposite
69+
in2="hardAlpha"
70+
operator="out"
71+
/>
72+
<feColorMatrix
73+
type="matrix"
74+
values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"
75+
/>
76+
<feBlend
77+
mode="normal"
78+
in2="BackgroundImageFix"
79+
result="effect1_dropShadow_6369_22416"
80+
/>
81+
<feBlend
82+
mode="normal"
83+
in="SourceGraphic"
84+
in2="effect1_dropShadow_6369_22416"
85+
result="shape"
86+
/>
87+
</filter>
88+
<clipPath id="clip0_6369_22416">
89+
<rect
90+
width="16"
91+
height="16"
92+
fill="white"
93+
transform="translate(4)"
94+
/>
95+
</clipPath>
96+
</defs>
97+
</svg>
98+
))

src/icons.ts

+1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ export { default as FiltersIcon } from './components/icons/FiltersIcon'
7979
export { default as FingerPrintIcon } from './components/icons/FingerPrintIcon'
8080
export { default as FolderIcon } from './components/icons/FolderIcon'
8181
export { default as GearTrainIcon } from './components/icons/GearTrainIcon'
82+
export { default as GitCommitIcon } from './components/icons/GitCommitIcon'
8283
export { default as GitHubIcon } from './components/icons/GitHubIcon'
8384
export { default as GitHubLogoIcon } from './components/icons/GitHubLogoIcon'
8485
export { default as GitLabLogoIcon } from './components/icons/GitLabLogoIcon'

0 commit comments

Comments
 (0)