Skip to content

Commit

Permalink
v0.0.81-alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
koiyakiya committed Jul 23, 2024
1 parent 4bbc795 commit dce8148
Show file tree
Hide file tree
Showing 3 changed files with 45 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.8-alpha",
"version": "0.0.81-alpha",
"type": "module",
"dependencies": {
"vue": "^3.4.33"
Expand Down
77 changes: 42 additions & 35 deletions src/components/Kofi.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<template>
<a :href="kofiURL" target="_blank" class="kofi-button">
<span class="kofi-icon">♥</span>
Support me on Ko-fi
</a>
<div class="kofi-button-wrapper">
<a :href="kofiURL" target="_blank" class="kofi-button" :style="buttonStyle">
<span class="kofi-icon" :style="iconStyle">♥</span>
<span class="kofi-text" :style="textStyle">Support me on Ko-fi</span>
</a>
</div>
</template>

<script lang="ts">
Expand All @@ -16,41 +18,46 @@
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 {
fontSize: '16px',
marginRight: '8px',
color: '#FF5E5B',
};
},
textStyle() {
return {
color: 'white',
};
},
},
});
</script>

<style scoped>
.kofi-button {
display: inline-flex;
align-items: center;
background-color: #29abe0;
color: white;
padding: 5px 12px;
border-radius: 4px;
text-decoration: none;
font-family: 'Helvetica', 'Arial', sans-serif;
font-size: 13px;
font-weight: 600;
line-height: 1;
transition: background-color 0.2s ease;
}
.kofi-button:hover {
background-color: #2795c4;
.kofi-button-wrapper :deep(.kofi-button) {
all: initial;
* {
all: unset;
}
}
.kofi-icon {
display: inline-block;
width: 20px;
height: 20px;
background-color: white;
border-radius: 50%;
margin-right: 8px;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
color: #ff5e5b;
.kofi-button-wrapper :deep(.kofi-button:hover) {
background-color: #1e3a6a !important;
}
</style>

0 comments on commit dce8148

Please sign in to comment.