Skip to content

Commit

Permalink
v0.1.0-alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
koiyakiya committed Jul 23, 2024
1 parent 93312d2 commit b9f29f0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 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.9-alpha",
"version": "0.1.0-alpha",
"type": "module",
"dependencies": {
"vue": "^3.4.33"
Expand Down
16 changes: 13 additions & 3 deletions src/components/Kofi.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div class="kofi-button-wrapper">
<a :href="kofiURL" target="_blank" class="kofi-button" :style="style" @mouseover="hover = true" @mouseleave="hover = false">
<img class="kofi-icon" src="../assets/kofilogo.png" />
<img class="kofi-icon" src="../assets/kofilogo.png" :style="imgStyle"/>
<span class="kofi-text">Support me on Ko-fi</span>
</a>
</div>
Expand All @@ -28,15 +28,25 @@
return {
backgroundColor: this.hover ? '#29ABE0' : '#1A8ABE',
color: '#fff',
padding: '10px 20px',
borderRadius: '5px',
padding: '10px',
borderRadius: '10px',
gap: '5px',
display: 'flex',
width: '175px',
height: '20px',
alignItems: 'center',
justifyContent: 'center',
textDecoration: 'none',
cursor: 'pointer',
}
},
imgStyle() {
return {
width: '35px',
marginLeft: '-10px',
marginRight: '-5px',
}
}
},
});
</script>
Expand Down

0 comments on commit b9f29f0

Please sign in to comment.