Added a donation page
This commit is contained in:
@@ -44,6 +44,10 @@ def short_url(token):
|
||||
# Redirect to the url of the token
|
||||
return redirect(query.url)
|
||||
|
||||
# Donate route
|
||||
@app.route("/donate")
|
||||
def donate():
|
||||
return render_template("donate.html")
|
||||
|
||||
# Error handling routes
|
||||
@app.errorhandler(404)
|
||||
|
||||
@@ -99,6 +99,17 @@ body {
|
||||
margin: 40vh auto 0 auto;
|
||||
}
|
||||
|
||||
.donation {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
color: #ffffff;
|
||||
list-style: none;
|
||||
text-align: center;
|
||||
margin: 40vh auto 0 auto;
|
||||
}
|
||||
|
||||
|
||||
.page-container {
|
||||
position: relative;
|
||||
min-height: 100vh;
|
||||
@@ -123,6 +134,7 @@ footer {
|
||||
|
||||
.footer-list li {
|
||||
color: #ffffff;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.footer-list li a:link {
|
||||
@@ -130,6 +142,10 @@ footer {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.footer-list li a:visited {
|
||||
color: #bb86fc;
|
||||
}
|
||||
|
||||
.footer-list li a:hover {
|
||||
color: #7b59a5;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
{% extends "layout.html" %}
|
||||
|
||||
{% block body %}
|
||||
<body>
|
||||
<div class="headers">
|
||||
<a class="title" href="{{ url_for('index') }}">tiny0</a>
|
||||
<h1 class="desc">Custom URL Shortener</h1>
|
||||
</div>
|
||||
|
||||
<ul class="donation">
|
||||
<li><h1>Bitcoin Address</h1></li>
|
||||
<li><h1>1Mg55rPVuQ2P8zKsCcLdsmgqH24uLXfLbR</h1></li>
|
||||
</ul>
|
||||
</body>
|
||||
{% endblock %}
|
||||
@@ -6,6 +6,7 @@
|
||||
<a class="title" href="{{ url_for('index') }}">tiny0</a>
|
||||
<h1 class="desc">Custom URL Shortener</h1>
|
||||
</div>
|
||||
|
||||
<div class="error-message">
|
||||
<h1>{{ error_message }}</h1>
|
||||
</div>
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
<h1 id="desc" class="desc"></h1>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="container">
|
||||
<form method="POST" action="">
|
||||
{{ form.hidden_tag() }}
|
||||
|
||||
@@ -18,7 +18,10 @@
|
||||
<footer>
|
||||
<ul class="footer-list">
|
||||
<li>© 2020 Muhammed Ali Dilek</li>
|
||||
<li><a href="https://github.com/xemeds" target="_blank">GitHub</a></p></li>
|
||||
<ul>
|
||||
<li><a href="{{ url_for('donate') }}">Donate</a></li>
|
||||
<li><a href="https://github.com/xemeds" target="_blank">GitHub</a></li>
|
||||
</ul>
|
||||
</ul>
|
||||
</footer>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user