main: Updated register page
All checks were successful
Build Docker / Build Bot (push) Successful in 23s
Build Docker / Build Master (push) Successful in 30s

This commit is contained in:
Nathan Woodburn 2023-09-02 13:48:10 +10:00
parent 8ab4ed574f
commit 79a8e092eb
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1
3 changed files with 14 additions and 5 deletions

View File

@ -442,6 +442,15 @@ def home():
return render_template('index.html', site_count = str(len(sites))) return render_template('index.html', site_count = str(len(sites)))
# Register page
@app.route('/register')
def register():
buy_license_link = os.getenv('BUY_LICENSE_LINK')
# Show register template
return render_template('register.html', buy_license_link=buy_license_link)
# Admin page # Admin page
@app.route('/admin') @app.route('/admin')
def admin(): def admin():

View File

@ -115,8 +115,8 @@
<div class="col mb-4"> <div class="col mb-4">
<div class="card bg-secondary-light"> <div class="card bg-secondary-light">
<div class="card-body text-center px-4 py-5 px-md-5"> <div class="card-body text-center px-4 py-5 px-md-5">
<p class="fw-bold text-secondary card-text mb-2">Free</p> <p class="fw-bold text-secondary card-text mb-2">Free Licences</p>
<h5 class="fw-bold card-title mb-3">We offer a free tier with 1 GB storage capacity.<br>If you would like more please contact us to find an acceptable price for you.</h5> <h5 class="fw-bold card-title mb-3">We offer a free tier with 1 GB storage capacity.<br>If you would like more please contact us to find an acceptable price for you.<br>Join our Discord for a free licence</h5>
</div> </div>
</div> </div>
</div> </div>

View File

@ -41,9 +41,9 @@
<div class="col-md-6 col-xl-4"> <div class="col-md-6 col-xl-4">
<div class="card"> <div class="card">
<div class="card-body text-center d-flex flex-column align-items-center"> <div class="card-body text-center d-flex flex-column align-items-center">
<form method="post"> <form method="post" action="/add-site">
<div class="mb-3"><input class="form-control" type="email" name="email" placeholder="Email"></div> <div class="mb-3"><input type="text" name="domain" placeholder="Domain"></div>
<div class="mb-3"><input class="form-control" type="password" name="password" placeholder="Password"></div> <div class="mb-3"><input type="text" placeholder="Licence Key" name="licence"></div>
<div class="mb-3"><button class="btn btn-primary shadow d-block w-100" type="submit">Sign up</button></div> <div class="mb-3"><button class="btn btn-primary shadow d-block w-100" type="submit">Sign up</button></div>
<p class="text-muted">Don't have a licence?<br><a href="{buy_licence_link}" target="_blank">Click here to buy one</a></p> <p class="text-muted">Don't have a licence?<br><a href="{buy_licence_link}" target="_blank">Click here to buy one</a></p>
</form> </form>