docs: add route author

This commit is contained in:
DIYgod
2018-08-14 00:46:44 +08:00
parent f17a8016d9
commit 362a59c38b
2 changed files with 129 additions and 95 deletions

View File

@@ -0,0 +1,32 @@
<template>
<span class="badge">
By <a :href="`https://github.com/${uid}`">@{{ uid }}</a>
</span>
</template>
<script>
export default {
props: {
uid: {
type: String,
default: 'DIYgod'
},
}
}
</script>
<style lang="stylus" scoped>
.badge
display inline-block
font-size 14px
height 18px
line-height 18px
border-radius 3px
padding 0 6px
color white
margin-right 5px
vertical-align top
background-color #F5712C
a
color #fff
</style>