Skip to content

Commit

Permalink
Merge pull request #41 from kairi003/feature-add-donation-link
Browse files Browse the repository at this point in the history
Feature add donation link
  • Loading branch information
kairi003 authored Aug 11, 2023
2 parents 4edaf90 + 0569310 commit 61eb80c
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 1 deletion.
52 changes: 52 additions & 0 deletions src/donation.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/* summary styles */
.donation details summary {
width: fit-content;
outline: none;
text-decoration: underline;
cursor: pointer;
font-weight: bold;
}

.donation details summary:hover {
outline: none;
box-shadow: 0 0 5px rgba(0, 128, 255, 0.5);
}

/* donation description styles */
.donation-description p {
margin-block-start: 0.5em;
margin-block-end: 0.5em;
}

/* payment button container styles */
.donation .payment-buttons-container {
display: flex;
gap: 10px;
padding: 0;
list-style-type: none;
justify-content: center;
margin-top: 15px;
text-decoration: none;
}

/* payment button styles */
.donation .payment-button {
display: flex;
align-items: center;
padding: 5px 10px;
background-color: #aaedad;
color: #333;
text-decoration: none;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
transition: filter 0.3s;
}

.donation .payment-button:hover {
filter: brightness(0.8);
}

.donation .payment-button img {
margin-right: 5px;
height: 20px;
}
1 change: 1 addition & 0 deletions src/images/generic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/images/paypal.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/popup.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
html {
width: 500px;
box-sizing: border-box;
font-family: sans-serif;
font-family: 'Arial', sans-serif;
}

body {
Expand Down
26 changes: 26 additions & 0 deletions src/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
<html>

<head>
<meta charset="utf-8">
<link rel="stylesheet" href="popup.css">
<link rel="stylesheet" href="iconfont/material-icons.css">
<link rel="stylesheet" href="donation.css">
<script src="popup.js" defer></script>
</head>

Expand Down Expand Up @@ -58,6 +60,30 @@ <h1>
<tbody></tbody>
</table>
</div>

<div class="donation">
<details>
<summary class>
Buy Me a Coffee ☕
</summary>
<div class="donation-description">
<p>Got a $2,000 offer to buy this extension, but I'm never going to sell it to spammers!</p>
<p>By the way, your cup of coffee pleases me 😎</p>
</div>
<ul class="payment-buttons-container">
<li>
<a class="payment-button" href="https://www.buymeacoffee.com/kairi003" target="_blank">
<img src="images/generic.svg" alt="Credit Card"> Credit Card
</a>
</li>
<li>
<a class="payment-button" href="https://paypal.me/kairi003" target="_blank">
<img src="images/paypal.svg" alt="PayPal"> PayPal
</a>
</li>
</ul>
</details>
</div>
</main>
</body>

Expand Down

0 comments on commit 61eb80c

Please sign in to comment.