feat: Update to use HNSAU branding
All checks were successful
Build Docker / Build Image (push) Successful in 29s

This commit is contained in:
Nathan Woodburn 2024-02-11 20:20:50 +11:00
parent 5673a3fcfa
commit cdcbf44bf2
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1
3 changed files with 9 additions and 9 deletions

View File

@ -2,6 +2,7 @@ from flask import Flask, make_response, redirect, request, jsonify, render_templ
import os
import dotenv
import requests
import datetime
app = Flask(__name__)
dotenv.load_dotenv()
@ -13,6 +14,7 @@ def send_report(path):
@app.route('/')
def index():
year = datetime.datetime.now().year
https_redirect="<script src=\"https://nathan.woodburn/https.js\"></script>"
# Get host from request
@ -30,7 +32,7 @@ def index():
if 'data' not in sales:
if tld.startswith('xn--'):
tld = tld.encode('ascii').decode('idna')
return render_template('index.html', tld=tld, https_redirect=https_redirect, sales=0)
return render_template('index.html', tld=tld, https_redirect=https_redirect, sales=0, year=year)
tld_sales = 0
sales = sales['data']
@ -42,7 +44,7 @@ def index():
if tld.startswith('xn--'):
tld = tld.encode('ascii').decode('idna')
return render_template('index.html', tld=tld, https_redirect=https_redirect, sales=tld_sales)
return render_template('index.html', tld=tld, https_redirect=https_redirect, sales=tld_sales, year=year)
# 404 catch all
@app.errorhandler(404)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 25 KiB

View File

@ -20,9 +20,7 @@
<div class="container-fluid"><a class="navbar-brand" href="/" style="font-size: 30px;font-weight: bold;color: white;">.{{tld}}/</a><button data-bs-toggle="collapse" class="navbar-toggler" data-bs-target="#navcol-1"><span class="visually-hidden">Toggle navigation</span><span class="navbar-toggler-icon"></span></button>
<div class="collapse navbar-collapse" id="navcol-1">
<ul class="navbar-nav ms-auto" style="font-size: 20px;font-weight: bold;">
<li class="nav-item"><a class="nav-link active" href="/">Home</a></li>
<li class="nav-item"><a class="nav-link" href="https://reg.woodburn.au/tld/{{tld}}">Get yourname.{{tld}}/</a></li>
<li class="nav-item"><a class="nav-link" href="https://hns.au" target="_blank">HNSAU</a></li>
<li class="nav-item"><a class="nav-link" href="https://domains.hns.au/tld/{{tld}}">Get yourname.{{tld}}/</a></li>
</ul>
</div>
</div>
@ -30,22 +28,22 @@
<header>
<div class="container">
<div style="text-align: center;">
<h1 class="display-1 text-center" style="font-weight: bold;margin: 0px;">.{{tld}} domains</h1><span style="font-weight: bold;font-size: 40px;"><br>The domain name for your next project<br><br></span>
<h1 class="display-1 text-center" style="font-weight: bold;margin: 0px;">.{{tld}}/ domains</h1><span style="font-weight: bold;font-size: 40px;"><br>The domain name for your next project<br><br></span>
</div>
</div>
</header>
<section style="font-size: 25px;">
<div class="text-center" id="pricing">
<p class="text-center" style="font-weight: bold;">.{{tld}}/ domains now available for registration at Woodburn Registry.</p>
<p class="text-center" style="font-weight: bold;">.{{tld}}/ domains now available for registration at HNSAU.</p>
<span>Get yourname.{{tld}}/</span>
<p class="text-center" style="font-weight: bold;">{{sales}} .{{tld}}/ domains claimed so far</p>
</div>
</section>
<footer style="font-size: 25px;background: black;color: white;margin-top: 250px;">
<span>© 2023 .{{tld}}/</span>
<span>© {{year}} .{{tld}}/</span>
<span class="right-footer">
Domains by
<a href="https://nathan.woodburn.au" target="_blank">Nathan.Woodburn/</a>
<a href="https://hns.au" target="_blank">HNSAU/</a>
</span>
</footer>
{{https_redirect | safe}}