Added a donation page

This commit is contained in:
xemeds
2020-07-23 18:26:18 +00:00
parent 0fad841ee6
commit d1ad9ace3e
7 changed files with 46 additions and 6 deletions
+15
View File
@@ -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 %}
+1
View File
@@ -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>
+1
View File
@@ -14,6 +14,7 @@
<h1 id="desc" class="desc"></h1>
</div>
{% endif %}
<div class="container">
<form method="POST" action="">
{{ form.hidden_tag() }}
+4 -1
View File
@@ -18,7 +18,10 @@
<footer>
<ul class="footer-list">
<li>&#169; 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>
+5 -5
View File
@@ -7,12 +7,12 @@
<h1 class="desc">Custom URL Shortener</h1>
</div>
<div class="container">
<div class="inputs">
<input type="text" value="{{ url }}" id="url" class="url" readonly>
<button onclick="copyURL()" class="button">Copy</button>
</div>
<div class="container">
<div class="inputs">
<input type="text" value="{{ url }}" id="url" class="url" readonly>
<button onclick="copyURL()" class="button">Copy</button>
</div>
</div>
<script>
function copyURL() {