Skip to content

Commit 8cc9f18

Browse files
phananchrisvfritz
authored andcommitted
docs: add CodePen as a supported social network (#1260)
1 parent 89b9c0f commit 8cc9f18

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/v2/guide/team.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ order: 803
9090
</ul>
9191
</dd>
9292
</template>
93-
<footer v-if="profile.github || profile.twitter" class="social">
93+
<footer v-if="hasSocialLinks" class="social">
9494
<a class=github v-if="profile.github" :href="githubUrl(profile.github)">
9595
<i class="fa fa-github"></i>
9696
<span class="sr-only">Github</span>
@@ -99,6 +99,10 @@ order: 803
9999
<i class="fa fa-twitter"></i>
100100
<span class="sr-only">Twitter</span>
101101
</a>
102+
<a class=codepen v-if="profile.codepen" :href="'https://codepen.io/' + profile.codepen">
103+
<i class="fa fa-codepen"></i>
104+
<span class="sr-only">CodePen</span>
105+
</a>
102106
</footer>
103107
</dl>
104108
</div>
@@ -895,6 +899,9 @@ order: 803
895899
}).join('</li><li>') +
896900
'</li></ul>'
897901
)
902+
},
903+
hasSocialLinks: function () {
904+
return this.profile.github || this.profile.twitter || this.profile.codepen
898905
}
899906
},
900907
methods: {

themes/vue/source/css/_team.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
line-height: 1
119119
vertical-align: middle
120120
margin-right: 4px
121-
&.github
121+
&.github, &.codepen
122122
color: #000
123123
&.twitter
124124
color: #1da1f3

0 commit comments

Comments
 (0)