From aa21e9f203199fdee42ca019ffde450f1310cc0d Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Sun, 11 Feb 2024 20:00:42 +1100 Subject: [PATCH] feat: Update home page --- server.py | 17 +++++++++++++---- templates/about.html | 8 ++++---- templates/blog.html | 6 +++--- templates/blog/happening.html | 6 +++--- templates/contact.html | 15 ++++----------- templates/domains.html | 6 +++--- templates/faq.html | 6 +++--- templates/index.html | 6 +++--- templates/links.html | 24 ++++++++++++------------ templates/uv.html | 6 +++--- 10 files changed, 51 insertions(+), 49 deletions(-) diff --git a/server.py b/server.py index 878deca..35a90f4 100644 --- a/server.py +++ b/server.py @@ -2,7 +2,7 @@ from flask import Flask, make_response, redirect, request, jsonify, render_templ import os import dotenv import requests -import CloudFlare +import datetime app = Flask(__name__) dotenv.load_dotenv() @@ -40,20 +40,29 @@ def wallet(path): +# Special routes +@app.route('/email') +def email(): + return redirect('mailto:hns@hns.au') + + + # Main routes @app.route('/') def index(): - return render_template('index.html') + year = datetime.datetime.now().year + return render_template('index.html',year=year) @app.route('/') def catch_all(path): + year = datetime.datetime.now().year # If file exists, load it if os.path.isfile('templates/' + path): - return render_template(path) + return render_template(path, year=year) # Try with .html if os.path.isfile('templates/' + path + '.html'): - return render_template(path + '.html') + return render_template(path + '.html', year=year) return render_template('404.html'), 404 diff --git a/templates/about.html b/templates/about.html index 1d53234..ceee86f 100644 --- a/templates/about.html +++ b/templates/about.html @@ -55,9 +55,9 @@ @@ -75,7 +75,7 @@
-

Support Us

You can support us by donating HNS to 
hs1qjdsz8u2ftm93jmczq8x36zqmfh3pqagq0hkkaf

Or by using our alias

@donate.hnsau

You can also support us by buying a domain from https://domains.hnsau  +

Support Us

You can support us by donating HNS to 
hs1qjdsz8u2ftm93jmczq8x36zqmfh3pqagq0hkkaf

Or by using our alias

@donate.hnsau

You can also support us by buying an SLD from https://domains.hns.au
Or by buying a TLD from here
@@ -95,14 +95,14 @@
Contact
diff --git a/templates/blog.html b/templates/blog.html index ef42e6b..2f64256 100644 --- a/templates/blog.html +++ b/templates/blog.html @@ -53,9 +53,9 @@ @@ -98,14 +98,14 @@
Contact
diff --git a/templates/blog/happening.html b/templates/blog/happening.html index 2325df9..66e0b61 100644 --- a/templates/blog/happening.html +++ b/templates/blog/happening.html @@ -53,9 +53,9 @@ @@ -97,14 +97,14 @@
Contact
diff --git a/templates/contact.html b/templates/contact.html index f817bf7..12162cb 100644 --- a/templates/contact.html +++ b/templates/contact.html @@ -54,9 +54,9 @@ @@ -82,15 +82,8 @@
Join Server
-

You can also find us on Facebook

- -
+

Or you can contact us via Email
Send us an Email

-
@@ -106,14 +99,14 @@ data-show-facepile="false">
Contact
diff --git a/templates/domains.html b/templates/domains.html index d209763..5f8ea87 100644 --- a/templates/domains.html +++ b/templates/domains.html @@ -53,9 +53,9 @@ @@ -181,14 +181,14 @@
Contact
diff --git a/templates/faq.html b/templates/faq.html index 9d73aa4..7416b63 100644 --- a/templates/faq.html +++ b/templates/faq.html @@ -53,9 +53,9 @@ @@ -100,14 +100,14 @@
Contact
diff --git a/templates/index.html b/templates/index.html index 5b40cf7..98f72a8 100644 --- a/templates/index.html +++ b/templates/index.html @@ -62,9 +62,9 @@ @@ -110,14 +110,14 @@
Contact
diff --git a/templates/links.html b/templates/links.html index 199c0a4..01d9f21 100644 --- a/templates/links.html +++ b/templates/links.html @@ -53,9 +53,9 @@ @@ -69,6 +69,15 @@

Links to help you learn about and use Handshake

+
+
+
+

Domain Registry

+

Selling SLDs on Australian Handshake TLDs

+ +
+
+
@@ -105,15 +114,6 @@
-
-
-
-

Woodburn Registry

-

Selling SLDs on Australian Handshake TLDs

- -
-
-
@@ -187,14 +187,14 @@
Contact
diff --git a/templates/uv.html b/templates/uv.html index 2c644df..a1e0e2d 100644 --- a/templates/uv.html +++ b/templates/uv.html @@ -53,9 +53,9 @@
@@ -93,14 +93,14 @@
Contact