Skip to content

Commit ced3698

Browse files
author
Luciano Nooijen
committed
Added GitHub social
1 parent 0b490ab commit ced3698

File tree

3 files changed

+111
-1
lines changed

3 files changed

+111
-1
lines changed

lib/SocialIcons.js

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,62 @@ const socialIcons = {
187187
style="fill:${socialIconFillColor};fill-opacity:1;stroke-width:0.06015364" />
188188
</svg>
189189
`,
190+
github: `
191+
<!-- Source GitHub icon: https://fontawesome.com/icons?d=gallery&q=github -->
192+
<!-- Source GitHub icon: https://fontawesome.com/icons?d=gallery&q=github -->
193+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
194+
<svg
195+
xmlns:dc="http://purl.org/dc/elements/1.1/"
196+
xmlns:cc="http://creativecommons.org/ns#"
197+
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
198+
xmlns:svg="http://www.w3.org/2000/svg"
199+
xmlns="http://www.w3.org/2000/svg"
200+
id="svg3937"
201+
version="1.1"
202+
viewBox="0 0 58.5 58.5">
203+
<defs
204+
id="defs3927">
205+
<style
206+
id="style3925">.cls-1{fill:${socialIconFillColor};}.cls-2{fill:none;stroke:${socialIconFillColor};stroke-miterlimit:10;stroke-width:1.5px;}</style>
207+
</defs>
208+
<title
209+
id="title3929">GitHub</title>
210+
<g
211+
data-name="Layer 2"
212+
id="Layer_2">
213+
<g
214+
style="fill:none;fill-opacity:1"
215+
data-name="Layer 4"
216+
id="Layer_4">
217+
<circle
218+
style="fill:none;fill-opacity:1"
219+
id="circle3933"
220+
r="28.5"
221+
cy="29.25"
222+
cx="29.25"
223+
class="cls-2" />
224+
<text
225+
id="text3945"
226+
y="36.260834"
227+
x="21.592564"
228+
style="font-style:normal;font-weight:normal;font-size:26.65069199px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:none;fill-opacity:1;stroke:none;stroke-width:0.66626728"
229+
xml:space="preserve"><tspan
230+
style="stroke-width:0.66626728;fill:none;fill-opacity:1"
231+
y="60.490421"
232+
x="21.592564"
233+
id="tspan3943" /></text>
234+
<path
235+
id="path2"
236+
d="m 32.529697,25.492454 c 3.37184,3.375339 3.325564,8.786864 0.02032,12.110452 -0.0062,0.0068 -0.01354,0.01411 -0.02032,0.02088 l -3.792452,3.792452 c -3.34492,3.344921 -8.78692,3.34447 -12.131332,0 -3.34492,-3.344355 -3.34492,-8.786975 0,-12.131332 l 2.094088,-2.094088 c 0.555324,-0.555323 1.511677,-0.186236 1.540345,0.598554 0.03657,1.000146 0.215922,2.004976 0.546858,2.975325 0.112081,0.328566 0.032,0.692009 -0.213494,0.937503 l -0.738569,0.738568 c -1.581656,1.581656 -1.631263,4.157025 -0.06518,5.754143 1.581543,1.612865 4.181066,1.622459 5.774742,0.02878 L 29.33715,34.43181 c 1.590968,-1.590967 1.584308,-4.162498 0,-5.746806 -0.208867,-0.208472 -0.419258,-0.370441 -0.583597,-0.483594 a 0.90505287,0.90505287 0 0 1 -0.392054,-0.711428 c -0.02235,-0.596352 0.188945,-1.210875 0.66018,-1.68211 l 1.188189,-1.188246 c 0.311579,-0.311579 0.800365,-0.349842 1.161664,-0.09769 a 8.6053677,8.6053677 0 0 1 1.158165,0.970517 z m 7.95371,-7.954103 c -3.344413,-3.344469 -8.786412,-3.34492 -12.131332,0 l -3.792453,3.792452 c -0.0068,0.0068 -0.01411,0.01411 -0.02032,0.02088 -3.305191,3.323588 -3.351524,8.735113 0.02032,12.110451 a 8.6037869,8.6037869 0 0 0 1.158109,0.970462 c 0.361299,0.252152 0.850141,0.213832 1.161664,-0.09769 l 1.188189,-1.188246 c 0.471235,-0.471234 0.682529,-1.085758 0.66018,-1.68211 a 0.90505287,0.90505287 0 0 0 -0.392056,-0.71142 c -0.164339,-0.113153 -0.37473,-0.275122 -0.583597,-0.483594 -1.584308,-1.584309 -1.590968,-4.15584 0,-5.746807 l 3.792452,-3.791888 c 1.593676,-1.593677 4.193143,-1.584082 5.774742,0.02878 1.566079,1.597118 1.516529,4.172487 -0.06518,5.754143 l -0.738569,0.738569 c -0.245494,0.245493 -0.325576,0.608937 -0.213494,0.937503 0.330936,0.970349 0.510287,1.975179 0.546857,2.975325 0.02872,0.78479 0.985022,1.153876 1.540346,0.598553 l 2.094088,-2.094088 c 3.344977,-3.344299 3.344977,-8.786919 5.6e-5,-12.131276 z"
237+
style="fill:none;stroke-width:0.0564353;fill-opacity:1" />
238+
</g>
239+
</g>
240+
<path
241+
id="path2-6"
242+
d="m 23.381517,39.800142 c 0,0.142958 -0.164402,0.257326 -0.371695,0.257326 -0.235882,0.02144 -0.400286,-0.09292 -0.400286,-0.257326 0,-0.14296 0.164404,-0.257327 0.371694,-0.257327 0.21444,-0.02145 0.400287,0.09292 0.400287,0.257327 z m -2.223019,-0.321659 c -0.05004,0.142959 0.09292,0.307363 0.307362,0.350251 0.185848,0.07148 0.400286,0 0.443175,-0.142961 0.04288,-0.142958 -0.09292,-0.307362 -0.307363,-0.371694 -0.185848,-0.05004 -0.393139,0.02144 -0.443174,0.164404 z m 3.159404,-0.121516 c -0.20729,0.05004 -0.350251,0.185848 -0.328807,0.350251 0.02144,0.142959 0.207291,0.235882 0.421731,0.185847 0.207291,-0.05004 0.35025,-0.185847 0.328807,-0.328807 -0.02144,-0.135812 -0.21444,-0.228735 -0.421731,-0.207291 z m 4.703364,-27.391029 c -9.914236,0 -17.498235,7.526816 -17.498235,17.441053 0,7.9271 4.989284,14.710525 12.115812,17.097947 0.914941,0.164404 1.2366,-0.400285 1.2366,-0.864904 0,-0.443174 -0.02145,-2.887781 -0.02145,-4.388854 0,0 -5.00358,1.072196 -6.054332,-2.130096 0,0 -0.814868,-2.08006 -1.987136,-2.616158 0,0 -1.636885,-1.122231 0.114367,-1.100787 0,0 1.779846,0.142959 2.759118,1.844176 1.565406,2.759118 4.188711,1.965693 5.210871,1.493926 0.164404,-1.143675 0.629021,-1.9371 1.143676,-2.408865 -3.995717,-0.443176 -8.027172,-1.022161 -8.027172,-7.89851 0,-1.965692 0.543247,-2.952111 1.68692,-4.210155 -0.185846,-0.464619 -0.793424,-2.380274 0.185849,-4.853473 1.493925,-0.464618 4.932101,1.929953 4.932101,1.929953 1.429594,-0.400287 2.966408,-0.607578 4.488926,-0.607578 1.522518,0 3.059331,0.207291 4.488926,0.607578 0,0 3.438175,-2.401719 4.9321,-1.929953 0.979271,2.480347 0.371695,4.388854 0.185846,4.853473 1.143676,1.265191 1.844178,2.251611 1.844178,4.210155 0,6.897794 -4.210155,7.448186 -8.205871,7.89851 0.657613,0.564689 1.215154,1.636885 1.215154,3.316659 0,2.408866 -0.02144,5.38957 -0.02144,5.975703 0,0.464619 0.328806,1.029308 1.236599,0.864905 7.147971,-2.373127 11.994297,-9.156552 11.994297,-17.083652 0,-9.914237 -8.041468,-17.441053 -17.955706,-17.441053 z M 18.47086,36.619294 c -0.09292,0.07148 -0.07147,0.235883 0.05004,0.371695 0.114368,0.114367 0.278771,0.164403 0.371695,0.07148 0.09292,-0.07148 0.07148,-0.235884 -0.05004,-0.371695 -0.114367,-0.114368 -0.27877,-0.164403 -0.371695,-0.07148 z m -0.771981,-0.578986 c -0.05004,0.09292 0.02144,0.207291 0.164404,0.278771 0.114367,0.07148 0.257327,0.05004 0.307362,-0.05004 0.05004,-0.09292 -0.02145,-0.207291 -0.164404,-0.278771 -0.142958,-0.04289 -0.257326,-0.02145 -0.307362,0.05004 z m 2.315944,2.544678 c -0.114368,0.09292 -0.07148,0.307363 0.09292,0.443175 0.164404,0.164402 0.371695,0.185847 0.46462,0.07148 0.09292,-0.09292 0.05004,-0.307363 -0.09292,-0.443174 -0.157256,-0.164404 -0.371694,-0.185847 -0.464618,-0.07147 z m -0.81487,-1.050753 c -0.114368,0.07148 -0.114368,0.257328 0,0.421731 0.114367,0.164404 0.307363,0.235884 0.400287,0.164404 0.114367,-0.09292 0.114367,-0.27877 0,-0.443174 -0.100072,-0.164403 -0.28592,-0.235884 -0.400287,-0.142961 z"
243+
style="fill:${socialIconFillColor};fill-opacity:1;stroke-width:0.07147971" />
244+
</svg>
245+
`,
190246
};
191247

192248
export default socialIcons;

lib/Socials.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,11 @@ const SocialsContainer = styled.div`
4646
`;
4747

4848
// eslint-disable-next-line object-curly-newline, max-len, prettier/prettier
49-
const AllSocials = ({ link, email, facebook, twitter, linkedin, instagram }) => (
49+
const AllSocials = ({ link, email, github, facebook, twitter, linkedin, instagram }) => (
5050
<SocialsContainer>
5151
<SocialIcon url={link} social="link" />
5252
<SocialIcon url={email} social="email" />
53+
<SocialIcon url={github} social="github" />
5354
<SocialIcon url={facebook} social="facebook" />
5455
<SocialIcon url={twitter} social="twitter" />
5556
<SocialIcon url={instagram} social="instagram" />

static/icons/social/github.svg

Lines changed: 53 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)