Browse Source

rename socialhandles to platformlogos in case of adblockers

pull/617/head
Ginger Wong 4 years ago
parent
commit
cd52e5b0a3
  1. 0
      webroot/img/platformlogos/bandcamp.svg
  2. 0
      webroot/img/platformlogos/default.svg
  3. 0
      webroot/img/platformlogos/discord.svg
  4. 0
      webroot/img/platformlogos/facebook.svg
  5. 0
      webroot/img/platformlogos/github.svg
  6. 0
      webroot/img/platformlogos/gitlab.svg
  7. 0
      webroot/img/platformlogos/google.svg
  8. 0
      webroot/img/platformlogos/instagram.svg
  9. 0
      webroot/img/platformlogos/keyoxide.png
  10. 0
      webroot/img/platformlogos/ko-fi.svg
  11. 0
      webroot/img/platformlogos/linkedin.svg
  12. 0
      webroot/img/platformlogos/mastodon.svg
  13. 0
      webroot/img/platformlogos/patreon.svg
  14. 0
      webroot/img/platformlogos/paypal.svg
  15. 0
      webroot/img/platformlogos/snapchat.svg
  16. 0
      webroot/img/platformlogos/soundcloud.svg
  17. 0
      webroot/img/platformlogos/spotify.svg
  18. 0
      webroot/img/platformlogos/tiktok.svg
  19. 0
      webroot/img/platformlogos/twitch.svg
  20. 0
      webroot/img/platformlogos/twitter.svg
  21. 0
      webroot/img/platformlogos/youtube.svg
  22. 2
      webroot/js/components/platform-logos-list.js
  23. 40
      webroot/js/utils/platforms.js

0
webroot/img/socialhandles/bandcamp.svg → webroot/img/platformlogos/bandcamp.svg

Before

Width:  |  Height:  |  Size: 177 B

After

Width:  |  Height:  |  Size: 177 B

0
webroot/img/socialhandles/default.svg → webroot/img/platformlogos/default.svg

Before

Width:  |  Height:  |  Size: 9.0 KiB

After

Width:  |  Height:  |  Size: 9.0 KiB

0
webroot/img/socialhandles/discord.svg → webroot/img/platformlogos/discord.svg

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

0
webroot/img/socialhandles/facebook.svg → webroot/img/platformlogos/facebook.svg

Before

Width:  |  Height:  |  Size: 430 B

After

Width:  |  Height:  |  Size: 430 B

0
webroot/img/socialhandles/github.svg → webroot/img/platformlogos/github.svg

Before

Width:  |  Height:  |  Size: 854 B

After

Width:  |  Height:  |  Size: 854 B

0
webroot/img/socialhandles/gitlab.svg → webroot/img/platformlogos/gitlab.svg

Before

Width:  |  Height:  |  Size: 829 B

After

Width:  |  Height:  |  Size: 829 B

0
webroot/img/socialhandles/google.svg → webroot/img/platformlogos/google.svg

Before

Width:  |  Height:  |  Size: 436 B

After

Width:  |  Height:  |  Size: 436 B

0
webroot/img/socialhandles/instagram.svg → webroot/img/platformlogos/instagram.svg

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

0
webroot/img/socialhandles/keyoxide.png → webroot/img/platformlogos/keyoxide.png

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 5.0 KiB

0
webroot/img/socialhandles/ko-fi.svg → webroot/img/platformlogos/ko-fi.svg

Before

Width:  |  Height:  |  Size: 729 B

After

Width:  |  Height:  |  Size: 729 B

0
webroot/img/socialhandles/linkedin.svg → webroot/img/platformlogos/linkedin.svg

Before

Width:  |  Height:  |  Size: 642 B

After

Width:  |  Height:  |  Size: 642 B

0
webroot/img/socialhandles/mastodon.svg → webroot/img/platformlogos/mastodon.svg

Before

Width:  |  Height:  |  Size: 995 B

After

Width:  |  Height:  |  Size: 995 B

0
webroot/img/socialhandles/patreon.svg → webroot/img/platformlogos/patreon.svg

Before

Width:  |  Height:  |  Size: 297 B

After

Width:  |  Height:  |  Size: 297 B

0
webroot/img/socialhandles/paypal.svg → webroot/img/platformlogos/paypal.svg

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

0
webroot/img/socialhandles/snapchat.svg → webroot/img/platformlogos/snapchat.svg

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

0
webroot/img/socialhandles/soundcloud.svg → webroot/img/platformlogos/soundcloud.svg

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

0
webroot/img/socialhandles/spotify.svg → webroot/img/platformlogos/spotify.svg

Before

Width:  |  Height:  |  Size: 729 B

After

Width:  |  Height:  |  Size: 729 B

0
webroot/img/socialhandles/tiktok.svg → webroot/img/platformlogos/tiktok.svg

Before

Width:  |  Height:  |  Size: 712 B

After

Width:  |  Height:  |  Size: 712 B

0
webroot/img/socialhandles/twitch.svg → webroot/img/platformlogos/twitch.svg

Before

Width:  |  Height:  |  Size: 324 B

After

Width:  |  Height:  |  Size: 324 B

0
webroot/img/socialhandles/twitter.svg → webroot/img/platformlogos/twitter.svg

Before

Width:  |  Height:  |  Size: 634 B

After

Width:  |  Height:  |  Size: 634 B

0
webroot/img/socialhandles/youtube.svg → webroot/img/platformlogos/youtube.svg

Before

Width:  |  Height:  |  Size: 501 B

After

Width:  |  Height:  |  Size: 501 B

2
webroot/js/components/platform-logos-list.js

@ -12,7 +12,7 @@ function SocialIcon(props) { @@ -12,7 +12,7 @@ function SocialIcon(props) {
const iconSupplied = !!icon
const name = inList ? platformInfo.name : platform;
const finalIcon = iconSupplied ? icon : (inList ? platformInfo.icon : '/img/socialhandles/default.svg')
const finalIcon = iconSupplied ? icon : (inList ? platformInfo.icon : '/img/platformlogos/default.svg')
const style = `background-image: url(${finalIcon});`

40
webroot/js/utils/platforms.js

@ -1,83 +1,83 @@ @@ -1,83 +1,83 @@
export const SOCIAL_PLATFORMS = {
default: {
name: "default",
icon: '/img/socialhandles/default.svg',
icon: '/img/platformlogos/default.svg',
},
facebook: {
name: "Facebook",
icon: '/img/socialhandles/facebook.svg',
icon: '/img/platformlogos/facebook.svg',
},
twitter: {
name: "Twitter",
icon: '/img/socialhandles/twitter.svg',
icon: '/img/platformlogos/twitter.svg',
},
instagram: {
name: "Instagram",
icon: '/img/socialhandles/instagram.svg',
icon: '/img/platformlogos/instagram.svg',
},
snapchat: {
name: "Snapchat",
icon: '/img/socialhandles/snapchat.svg',
icon: '/img/platformlogos/snapchat.svg',
},
tiktok: {
name: "TikTok",
icon: '/img/socialhandles/tiktok.svg',
icon: '/img/platformlogos/tiktok.svg',
},
soundcloud: {
name: "Soundcloud",
icon: '/img/socialhandles/soundcloud.svg',
icon: '/img/platformlogos/soundcloud.svg',
},
bandcamp: {
name: "Bandcamp",
icon: '/img/socialhandles/bandcamp.svg',
icon: '/img/platformlogos/bandcamp.svg',
},
patreon: {
name: "Patreon",
icon: '/img/socialhandles/patreon.svg',
icon: '/img/platformlogos/patreon.svg',
},
youtube: {
name: "YouTube",
icon: '/img/socialhandles/youtube.svg',
icon: '/img/platformlogos/youtube.svg',
},
spotify: {
name: "Spotify",
icon: '/img/socialhandles/spotify.svg',
icon: '/img/platformlogos/spotify.svg',
},
twitch: {
name: "Twitch",
icon: '/img/socialhandles/twitch.svg',
icon: '/img/platformlogos/twitch.svg',
},
paypal: {
name: "Paypal",
icon: '/img/socialhandles/paypal.svg',
icon: '/img/platformlogos/paypal.svg',
},
github: {
name: "Github",
icon: '/img/socialhandles/github.svg',
icon: '/img/platformlogos/github.svg',
},
linkedin: {
name: "LinkedIn",
icon: '/img/socialhandles/linkedin.svg',
icon: '/img/platformlogos/linkedin.svg',
},
discord: {
name: "Discord",
icon: '/img/socialhandles/discord.svg',
icon: '/img/platformlogos/discord.svg',
},
mastodon: {
name: "Mastodon",
icon: '/img/socialhandles/mastodon.svg',
icon: '/img/platformlogos/mastodon.svg',
},
gitlab: {
name: "Gitlab",
icon: '/img/socialhandles/gitlab.svg',
icon: '/img/platformlogos/gitlab.svg',
},
kofi: {
name: "Ko-Fi",
icon: '/img/socialhandles/ko-fi.svg',
icon: '/img/platformlogos/ko-fi.svg',
},
keyoxide: {
name: "Key Oxide",
icon: '/img/socialhandles/keyoxide.png',
icon: '/img/platformlogos/keyoxide.png',
},
};

Loading…
Cancel
Save