commit e6c38ea75fdc4ea040ba33a7f62e8b77cdf417fb
parent c98898cb0403f66377711920d87d66de15492219
Author: parazyd <parazyd@dyne.org>
Date: Mon, 21 Jan 2019 15:42:14 +0100
Add contact route.
Diffstat:
4 files changed, 44 insertions(+), 1 deletion(-)
diff --git a/diaspora.py b/diaspora.py
@@ -378,6 +378,14 @@ def users():
return render_template('users.html', users=userlist)
+@app.route('/contact')
+def contact():
+ """
+ Contact route
+ """
+ return render_template('contact.html')
+
+
@app.route('/')
def main():
"""
diff --git a/static/img/qr-bitcoin.png b/static/img/qr-bitcoin.png
Binary files differ.
diff --git a/templates/contact.html b/templates/contact.html
@@ -0,0 +1,35 @@
+{% include 'header.html' %}
+
+ <title>Contact | Diaspora Diaries</title>
+
+{% include 'nav.html' %}
+
+ <main role="main" class="container cover">
+
+ <h1 class="cover-heading">Contact</h1>
+ <hr style="width: 100%; height: 2px;">
+
+ <p class="lead">You can contact us at <a href="mailto:elena@dyne.org">elena@dyne.org</a>
+ and <a href="mailto:parazyd@dyne.org">parazyd.dyne.org</a></p>
+
+ <p class="lead">If you wish to donate funds to support the platform, you can
+ do so with a bank transfer or by sending us bitcoins:</p>
+
+ <h2>Bank transfer</h2>
+ <p class="lead">People wanting to do a bank transfer can use the following
+ link: <a href="https://bunq.me/parazyd">https://bunq.me/parazyd</a></p>
+
+ <h2>Bitcoin</h2>
+ <p class="lead">If you prefer using Bitcoin, please consider sending transactions to the
+ following address:</p>
+ <p><a href="bitcoin:1E5S4BrvonFGEgaNRLkX3GRw1yyP4FwrEn">1E5S4BrvonFGEgaNRLkX3GRw1yyP4FwrEn</a></p>
+
+ <p class="lead">For ease of use, below is a QR code you can scan as well:</p>
+
+ <p><img src="/static/img/qr-bitcoin.png"></p>
+
+ <p class="lead">Thank you kindly! ❤️</p>
+
+ </main>
+
+{% include 'footer.html' %}
diff --git a/templates/nav.html b/templates/nav.html
@@ -31,7 +31,7 @@
</div>
</li>
<li class="nav-item">
- <a class="nav-link disabled" href="/contact">Contact</a>
+ <a class="nav-link" href="/contact">Contact</a>
</li>
</ul>