Skip to content

Commit

Permalink
88
Browse files Browse the repository at this point in the history
  • Loading branch information
koiyakiya committed Jul 23, 2024
1 parent 400f4b2 commit 9e554fc
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 38 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"test": "exit 0"
},
"name": "vite-coffee",
"version": "0.0.87-alpha",
"version": "0.0.88-alpha",
"type": "module",
"dependencies": {
"vue": "^3.4.33"
Expand Down
60 changes: 25 additions & 35 deletions src/components/Kofi.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,41 +14,31 @@
props: {
username: { type: String, required: true },
},
computed: {
kofiURL() {
return `https://ko-fi.com/${this.username}`;
},
setup(props) {
const kofiURL = `https://ko-fi.com/${props.username}`;
const style = {
backgroundColor: '#29ABE0',
color: '#fff',
padding: '10px 20px',
borderRadius: '5px',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
textDecoration: 'none',
cursor: 'pointer',
};
const hoverStyle = {
backgroundColor: '#1A8ABE',
};
return {
kofiURL,
style,
hoverStyle,
};
},
});
</script>

<style scoped>
.kofi-button-wrapper >>> .kofi-button {
display: inline-flex;
align-items: center;
background-color: #13233F;
color: white;
padding: 2px 12px;
border-radius: 4px;
text-decoration: none;
font-family: "Helvetica", "Arial", sans-serif;
font-size: 13px;
font-weight: 400;
line-height: 24px;
}
.kofi-button-wrapper >>> .kofi-icon {
width: 35px;
height: 35px;
margin-right: 8px;
}
.kofi-button-wrapper >>> .kofi-text {
color: white;
}
.kofi-button-wrapper >>> .kofi-button:hover {
background-color: #1e3a6a !important;
}
</style>
</script>

0 comments on commit 9e554fc

Please sign in to comment.