Skip to content

Commit 1657ad3

Browse files
authored
fix (#192): footer icons on home page (#193)
1 parent d485171 commit 1657ad3

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

src/.vuepress/theme/components/ui/SocialIcon.vue

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<a class="social-icon" :href="link" :title="type" :class="extraClass">
3-
<i class="fab" :class="iconClass"/>
3+
<i class="fa" :class="iconClass" />
44
<span class="sr-only">{{ type }}</span>
55
</a>
66
</template>
@@ -15,7 +15,7 @@ const SOCIAL_ICON_CLASS_MAP = {
1515
Facebook: 'fa-facebook-square',
1616
Instagram: 'fa-instagram',
1717
CodePen: 'fa-codepen',
18-
Medium: 'fa-medium-m'
18+
Medium: 'fa-medium'
1919
}
2020
2121
export default {
@@ -37,7 +37,7 @@ export default {
3737
},
3838
3939
computed: {
40-
iconClass () {
40+
iconClass() {
4141
return SOCIAL_ICON_CLASS_MAP[this.type]
4242
}
4343
}
@@ -46,23 +46,30 @@ export default {
4646

4747
<style lang="scss" scoped>
4848
.fa {
49-
&-github, &-codepen, &-envelope {
49+
&-github,
50+
&-codepen,
51+
&-envelope {
5052
color: #000;
5153
}
5254
53-
&-twitter, &-twitter-square {
55+
&-twitter,
56+
&-twitter-square {
5457
color: #1da1f3;
5558
}
5659
57-
&-linkedin, &-linkedin-square {
60+
&-linkedin,
61+
&-linkedin-square {
5862
color: #0077b5;
5963
}
6064
61-
&-facebook, &-facebook-square {
65+
&-facebook,
66+
&-facebook-square {
6267
color: #3b5998;
6368
}
6469
65-
&-youtube, &-youtube-play, &-youtube-square {
70+
&-youtube,
71+
&-youtube-play,
72+
&-youtube-square {
6673
color: #f00;
6774
}
6875

0 commit comments

Comments
 (0)