Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature add donation link #41

Merged
merged 6 commits into from
Aug 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Get cookies.txt LOCALLY",
"description": "Get cookies.txt, NEVER send information outside with open-source",
"version": "0.4.4",
"version": "0.5.0",
"manifest_version": 3,
"permissions": [
"activeTab",
Expand Down
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