Skip to content

Commit 2c2cdb3

Browse files
authored
Merge pull request #356 from MaheshBharadwaj/neutral-icons
Added theme neutral icons for some social sites
2 parents db23c74 + ebbb1da commit 2c2cdb3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1791
-129
lines changed

src/components/markdown.js

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,9 @@ const DisplaySupport = props => {
275275
)
276276
}
277277
const Markdown = props => {
278+
const icon_base_url =
279+
"https://raw.githubusercontent.com/MaheshBharadwaj/github-profile-readme-generator/neutral-icons/src/images/icons/Social/";
280+
278281
return (
279282
<div id="markdown-content" className="break-words">
280283
<>
@@ -382,7 +385,7 @@ const Markdown = props => {
382385
<>
383386
<DisplaySocial
384387
base="https://codepen.io"
385-
icon="https://cdn.jsdelivr.net/npm/[email protected]/icons/codepen.svg"
388+
icon={icon_base_url + "codepen.svg"}
386389
username={props.social.codepen}
387390
/>
388391
</>
@@ -396,21 +399,21 @@ const Markdown = props => {
396399
<>
397400
<DisplaySocial
398401
base="https://twitter.com"
399-
icon="https://cdn.jsdelivr.net/npm/[email protected]/icons/twitter.svg"
402+
icon={icon_base_url + "twitter.svg"}
400403
username={props.social.twitter}
401404
/>
402405
</>
403406
<>
404407
<DisplaySocial
405-
base="https://linkedin.com/in"
406-
icon="https://cdn.jsdelivr.net/npm/[email protected]/icons/linkedin.svg"
408+
base="https://linkedin.com/in"
409+
icon={icon_base_url + "linked-in-alt.svg"}
407410
username={props.social.linkedin}
408411
/>
409412
</>
410413
<>
411414
<DisplaySocial
412415
base="https://stackoverflow.com/users"
413-
icon="https://cdn.jsdelivr.net/npm/[email protected]/icons/stackoverflow.svg"
416+
icon={icon_base_url + "stack-overflow.svg"}
414417
username={props.social.stackoverflow}
415418
/>
416419
</>
@@ -424,49 +427,49 @@ const Markdown = props => {
424427
<>
425428
<DisplaySocial
426429
base="https://kaggle.com"
427-
icon="https://cdn.jsdelivr.net/npm/[email protected]/icons/kaggle.svg"
430+
icon={icon_base_url + "kaggle.svg"}
428431
username={props.social.kaggle}
429432
/>
430433
</>
431434
<>
432435
<DisplaySocial
433436
base="https://fb.com"
434-
icon="https://cdn.jsdelivr.net/npm/[email protected]/icons/facebook.svg"
437+
icon={icon_base_url + "facebook.svg"}
435438
username={props.social.fb}
436439
/>
437440
</>
438441
<>
439442
<DisplaySocial
440443
base="https://instagram.com"
441-
icon="https://cdn.jsdelivr.net/npm/[email protected]/icons/instagram.svg"
444+
icon={icon_base_url + "instagram.svg"}
442445
username={props.social.instagram}
443446
/>
444447
</>
445448
<>
446449
<DisplaySocial
447450
base="https://dribbble.com"
448-
icon="https://cdn.jsdelivr.net/npm/[email protected]/icons/dribbble.svg"
451+
icon={icon_base_url + "dribbble.svg"}
449452
username={props.social.dribbble}
450453
/>
451454
</>
452455
<>
453456
<DisplaySocial
454457
base="https://www.behance.net"
455-
icon="https://cdn.jsdelivr.net/npm/[email protected]/icons/behance.svg"
458+
icon={icon_base_url + "behance.svg"}
456459
username={props.social.behance}
457460
/>
458461
</>
459462
<>
460463
<DisplaySocial
461464
base="https://medium.com"
462-
icon="https://cdn.jsdelivr.net/npm/[email protected]/icons/medium.svg"
465+
icon={icon_base_url + "medium.svg"}
463466
username={props.social.medium}
464467
/>
465468
</>
466469
<>
467470
<DisplaySocial
468471
base="https://www.youtube.com/c"
469-
icon="https://cdn.jsdelivr.net/npm/[email protected]/icons/youtube.svg"
472+
icon={icon_base_url + "youtube.svg"}
470473
username={props.social.youtube}
471474
/>
472475
</>
@@ -480,7 +483,7 @@ const Markdown = props => {
480483
<>
481484
<DisplaySocial
482485
base="https://www.hackerrank.com"
483-
icon="https://cdn.jsdelivr.net/npm/[email protected]/icons/hackerrank.svg"
486+
icon={icon_base_url + "hackerrank.svg"}
484487
username={props.social.hackerrank}
485488
/>
486489
</>
@@ -494,21 +497,21 @@ const Markdown = props => {
494497
<>
495498
<DisplaySocial
496499
base="https://www.leetcode.com"
497-
icon="https://cdn.jsdelivr.net/npm/[email protected]/icons/leetcode.svg"
500+
icon={icon_base_url+"leet-code.svg"}
498501
username={props.social.leetcode}
499502
/>
500503
</>
501504
<>
502505
<DisplaySocial
503506
base="https://www.hackerearth.com"
504-
icon="https://cdn.jsdelivr.net/npm/[email protected]/icons/hackerearth.svg"
507+
icon={icon_base_url+"hackerearth.svg"}
505508
username={props.social.hackerearth}
506509
/>
507510
</>
508511
<>
509512
<DisplaySocial
510513
base="https://auth.geeksforgeeks.org/user"
511-
icon="https://cdn.jsdelivr.net/npm/[email protected]/icons/geeksforgeeks.svg"
514+
icon={icon_base_url + "geeks-for-geeks.svg"}
512515
username={props.social.geeks_for_geeks}
513516
/>
514517
</>
@@ -522,14 +525,14 @@ const Markdown = props => {
522525
<>
523526
<DisplaySocial
524527
base="https://discord.gg"
525-
icon="https://cdn.jsdelivr.net/npm/[email protected]/icons/discord.svg"
528+
icon={icon_base_url + "discord.svg"}
526529
username={props.social.discord}
527530
/>
528531
</>
529532
<>
530533
<DisplaySocial
531534
base=""
532-
icon="https://cdn.jsdelivr.net/npm/[email protected]/icons/rss.svg"
535+
icon={icon_base_url + "rss.svg"}
533536
username={props.social.rssurl}
534537
/>
535538
</>

0 commit comments

Comments
 (0)