Last active
April 8, 2021 13:52
-
-
Save letswritetw/17d11c9467df17424c31bf4d375f543d to your computer and use it in GitHub Desktop.
vuepress-document-style-component
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template lang="pug"> | |
a.btn.btn-main(:href="uri" target="_blank") {{ title }} | |
</template> | |
<script> | |
export default { | |
data: () => { | |
return {} | |
}, | |
props: ['title', 'uri'] | |
} | |
</script> | |
<style scoped lang="stylus"> | |
.btn-main | |
display inline-block | |
background-color: transparent | |
border: 1px solid #0088cc | |
color: #0088cc | |
&:hover | |
background-color: #0088cc | |
color: #FFF | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment