Skip to content

Commit

Permalink
0.0.83-alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
koiyakiya committed Jul 23, 2024
1 parent be722dd commit e710c8d
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 31 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.82-alpha",
"version": "0.0.83-alpha",
"type": "module",
"dependencies": {
"vue": "^3.4.33"
Expand Down
58 changes: 30 additions & 28 deletions src/components/Kofi.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<template>
<div class="kofi-button-wrapper">
<a :href="kofiURL" target="_blank" class="kofi-button">
<span class="kofi-icon">♥</span>
<span class="kofi-text">Support me on Ko-fi</span>
<a :href="kofiURL" target="_blank" class="kofi-button" :style="buttonStyle">
<img class="kofi-icon" src="../assets/kofilogo.png" :style="iconStyle" />
<span class="kofi-text" :style="textStyle">Support me on Ko-fi</span>
</a>
</div>
</template>
Expand All @@ -18,36 +18,38 @@
kofiURL() {
return `https://ko-fi.com/${this.username}`;
},
buttonStyle() {
return {
display: 'inline-flex',
alignItems: 'center',
backgroundColor: '#13233F',
color: 'white',
padding: '2px 12px',
borderRadius: '4px',
textDecoration: 'none',
fontFamily: '"Helvetica", "Arial", sans-serif',
fontSize: '13px',
fontWeight: '400',
lineHeight: '24px',
};
},
iconStyle() {
return {
width: '35px',
height: '35px',
marginRight: '8px',
};
},
textStyle() {
return {
color: 'white',
};
},
},
});
</script>

<style scoped>
.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-icon {
font-size: 16px;
margin-right: 8px;
color: '#FF5E5B';
}
.kofi-text {
color: white;
}
.kofi-button-wrapper :deep(.kofi-button) {
all: initial;
* {
Expand Down

0 comments on commit e710c8d

Please sign in to comment.