Skip to content

Commit

Permalink
Merge pull request #159 from synfinner/dev
Browse files Browse the repository at this point in the history
add donation page
  • Loading branch information
synfinner authored Jun 3, 2024
2 parents c4ad1ed + f72312a commit e35d38a
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kevin.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ def serve_robots_txt():
def serve_privacy_policy():
return send_from_directory(app.static_folder, 'privacy.html')

@app.route('/donate')
def serve_donate():
return send_from_directory(app.static_folder, 'donate.html')

# Route for example page ("/example")
@app.route("/examples")
@cache.cached(timeout=3600) # 1 hour cache for the example page.
Expand Down
74 changes: 74 additions & 0 deletions static/donate.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Donate to Our Project</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f9f9f9;
}
.container {
max-width: 800px;
margin: 50px auto;
padding: 20px;
background-color: #fff;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
border-radius: 8px;
}
h1 {
text-align: center;
color: #333;
}
.crypto-list {
list-style-type: none;
padding: 0;
}
.crypto-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px;
border-bottom: 1px solid #eee;
}
.crypto-item:last-child {
border-bottom: none;
}
.crypto-item .name {
font-weight: bold;
}
.crypto-item .address {
font-family: 'Courier New', Courier, monospace;
word-break: break-all;
}
@media (max-width: 600px) {
.crypto-item {
flex-direction: column;
align-items: flex-start;
}
}
</style>
</head>
<body>
<div class="container">
<h1>Cryptocurrency Addresses</h1>
<ul class="crypto-list">
<li class="crypto-item">
<span class="name">Bitcoin (BTC):</span>
<span class="address">bc1qz54vrq4sz5p80d0gxg07uruln0l99hxh5gplrs</span>
</li>
<li class="crypto-item">
<span class="name">Ethereum (ETH):</span>
<span class="address">0x03F9C1047481f184010ff7DfB0a758d3EF1a7279</span>
</li>
<li class="crypto-item">
<span class="name">Dogecoin (DOGE):</span>
<span class="address">DRWTzhDmQboyw5MQSedm9eJkPigAx66Lcf</span>
</li>
</ul>
</div>
</body>
</html>
8 changes: 8 additions & 0 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,14 @@ <h5 class="mt-4">Issues/Requests</h5>
<h5 class="mt-4">Privacy Policy</h5>
<!-- Issues/Requests Section Content -->
<p> <a href="https://kevin.gtfkd.com/privacy-policy" target="_blank">GTFKD KEVin Privacy Policy</a>.</p>
<h5 class="mt-4">Donations</h5>
<!-- Issues/Requests Section Content -->
<p>This project is provided for free to the security community. If you'd like to donate to support infrastructure costs or buy me a coffee, please see the donation page here:</p>
<p>
<ul>
<li><a href="https://kevin.gtfkd.com/donate" target="_blank">KEVin API Donations Page</a></li>
</ul>
</p>
<hr class="my-4">
A <a href="https://twitter.com/synfinner" target="_blank">Synfinner</a> project.
</div>
Expand Down

0 comments on commit e35d38a

Please sign in to comment.