feat: Add terms page

This commit is contained in:
Nathan Woodburn 2024-10-11 14:23:29 +11:00
parent de2ffd022a
commit 875dc77dad
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1
8 changed files with 105 additions and 7 deletions

2
.gitignore vendored
View File

@ -1,6 +1,6 @@
.env .env
.venv/
__pycache__/ __pycache__/
avatars/ avatars/

View File

@ -80,6 +80,10 @@ def index():
return render.site(data, host) return render.site(data, host)
return redirect(f'https://{DOMAINS[0]}') return redirect(f'https://{DOMAINS[0]}')
@app.route('/terms')
def terms():
return render_template('terms.html')
@app.route('/site') @app.route('/site')
def site(): def site():
# Get auth domain # Get auth domain

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -153,6 +153,7 @@
<div class="col-sm-4 col-md-3 text-center text-lg-start d-flex flex-column"> <div class="col-sm-4 col-md-3 text-center text-lg-start d-flex flex-column">
<h3 class="fs-6 fw-bold">About</h3> <h3 class="fs-6 fw-bold">About</h3>
<ul class="list-unstyled"> <ul class="list-unstyled">
<li><a href="/terms">Terms</a></li>
<li><a href="https://hns.au" target="_blank">HNSAU</a></li> <li><a href="https://hns.au" target="_blank">HNSAU</a></li>
<li><a href="https://nathan.woodburn.au" target="_blank">Nathan.Woodburn/</a></li> <li><a href="https://nathan.woodburn.au" target="_blank">Nathan.Woodburn/</a></li>
</ul> </ul>

View File

@ -87,6 +87,7 @@
<div class="col-sm-4 col-md-3 text-center text-lg-start d-flex flex-column"> <div class="col-sm-4 col-md-3 text-center text-lg-start d-flex flex-column">
<h3 class="fs-6 fw-bold">About</h3> <h3 class="fs-6 fw-bold">About</h3>
<ul class="list-unstyled"> <ul class="list-unstyled">
<li><a href="/terms">Terms</a></li>
<li><a href="https://hns.au" target="_blank">HNSAU</a></li> <li><a href="https://hns.au" target="_blank">HNSAU</a></li>
<li><a href="https://nathan.woodburn.au" target="_blank">Nathan.Woodburn/</a></li> <li><a href="https://nathan.woodburn.au" target="_blank">Nathan.Woodburn/</a></li>
</ul> </ul>

View File

@ -143,6 +143,7 @@
<div class="col-sm-4 col-md-3 text-center text-lg-start d-flex flex-column"> <div class="col-sm-4 col-md-3 text-center text-lg-start d-flex flex-column">
<h3 class="fs-6 fw-bold">About</h3> <h3 class="fs-6 fw-bold">About</h3>
<ul class="list-unstyled"> <ul class="list-unstyled">
<li><a href="/terms">Terms</a></li>
<li><a href="https://hns.au" target="_blank">HNSAU</a></li> <li><a href="https://hns.au" target="_blank">HNSAU</a></li>
<li><a href="https://nathan.woodburn.au" target="_blank">Nathan.Woodburn/</a></li> <li><a href="https://nathan.woodburn.au" target="_blank">Nathan.Woodburn/</a></li>
</ul> </ul>

91
templates/terms.html Normal file
View File

@ -0,0 +1,91 @@
<!DOCTYPE html>
<html data-bs-theme="light" lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<title>Testimonials - HNS Links</title>
<meta name="twitter:title" content="HNS Links">
<meta name="twitter:image" content="https://links.hns.au/assets/img/dashboard.png">
<meta name="twitter:card" content="summary">
<meta property="og:type" content="website">
<meta property="og:title" content="HNS Links">
<meta name="description" content="Create a links page for your domain">
<meta property="og:description" content="Create a links page for your domain">
<meta property="og:image" content="https://links.hns.au/assets/img/dashboard.png">
<meta name="twitter:description" content="Create a links page for your domain">
<link rel="icon" type="image/png" sizes="600x627" href="/assets/img/favicon.png">
<link rel="icon" type="image/png" sizes="600x627" href="/assets/img/favicon.png">
<link rel="icon" type="image/png" sizes="600x627" href="/assets/img/favicon.png">
<link rel="icon" type="image/png" sizes="600x627" href="/assets/img/favicon.png">
<link rel="icon" type="image/png" sizes="600x627" href="/assets/img/favicon.png">
<link rel="stylesheet" href="/assets/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800&amp;display=swap">
<link rel="stylesheet" href="/assets/css/styles.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
<script async src="https://umami.woodburn.au/script.js" data-website-id="a165bb1c-eef8-4737-8066-fcd8b4a380bd"></script>
</head>
<body>
<nav class="navbar navbar-expand-md sticky-top py-3 navbar-dark" id="mainNav">
<div class="container"><a class="navbar-brand d-flex align-items-center" href="/"><img src="/assets/img/favicon.png" width="45px"><span>&nbsp;HNS Links</span></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 mx-auto">
<li class="nav-item"><a class="nav-link" href="/">Home</a></li>
<li class="nav-item"><a class="nav-link" href="/#contact">Contact</a></li>
</ul>
</div>
</div>
</nav>
<section class="py-5">
<div class="container py-5">
<div class="row mb-5">
<div class="col-md-8 col-xl-6 text-center mx-auto">
<p class="fw-bold text-success mb-2">Terms</p>
</div>
</div>
<div class="row d-sm-flex">
<div class="col mb-4">
<div>
<p>Terms of Service for HNS Links Last Updated: 11/10/24<br><br>Welcome to HNS Links! Please carefully read the following terms before using our hosting services.<br><br>By using our website hosting services, you agree to comply with and be bound by the following terms and conditions. If you do not agree to these terms, please do not use our services.<br><br>1. Acceptance of Terms:<br>By accessing or using our website hosting services, you agree to these Terms of Service and all applicable laws and regulations.<br><br>2. Hosting Services:<br>HNS Links provides hosting services for websites, and related content.<br><br>3. Content and Usage:<br>You are solely responsible for the content hosted on your website. You agree not to host any content that violates applicable laws or infringes on the rights of others. This includes anything usually classified as NSFW. HNS Links reserves the right to suspend or terminate services for any user found in violation of this provision.<br><br>4. Data Security:<br>We implement reasonable measures to protect the security of your data, but we cannot guarantee its absolute security. You should backup any critical data using your own backup solution.<br><br>5. Uptime and Downtime:<br>HNS Links strives to provide high uptime for its hosting services. However, downtime may occur for maintenance or other reasons. We will make reasonable efforts to notify you in advance of scheduled maintenance.<br><br>6. Support:<br>We offer customer support for technical issues related to our hosting services. Support availability and response times may vary. We can not guarantee support for issues unrelated to our hosting services.<br><br>7. Termination:<br>HNS Links reserves the right to terminate or suspend your site at any time for violation of these terms or for any other reason. You may also terminate your site by contacting us.<br><br>8. Changes to Terms:<br>HNS Links reserves the right to modify these Terms of Service at any time. Any changes will be effective immediately upon posting on our website. It is your responsibility to review these terms regularly.<br><br><br>By using our hosting services, you agree to these terms. If you have any questions or concerns, please contact us.<br>Thank you for choosing HNS Links!</p>
</div>
</div>
</div>
</div>
</section>
<footer class="bg-dark">
<div class="container py-4 py-lg-5">
<div class="row justify-content-center">
<div class="col-sm-4 col-md-3 text-center text-lg-start d-flex flex-column">
<h3 class="fs-6 fw-bold">Services</h3>
<ul class="list-unstyled">
<li><a href="https://hnshosting.au" target="_blank">Wordpress Hosting</a></li>
<li><a href="https://firewallet.au" target="_blank">FireWallet</a></li>
</ul>
</div>
<div class="col-sm-4 col-md-3 text-center text-lg-start d-flex flex-column">
<h3 class="fs-6 fw-bold">About</h3>
<ul class="list-unstyled">
<li></li>
<li><a href="https://hns.au" target="_blank">HNSAU</a></li>
<li><a href="https://nathan.woodburn.au" target="_blank">Nathan.Woodburn/</a></li>
</ul>
</div>
<div class="col-lg-3 text-center text-lg-start d-flex flex-column align-items-center order-first align-items-lg-start order-lg-last">
<div class="fw-bold d-flex align-items-center mb-2"><span>HNS Links</span></div>
<p class="text-muted">Easy to manage links page on Handshake domains</p>
</div>
</div>
<hr>
<div class="text-muted d-flex justify-content-between align-items-center pt-3">
<p class="mb-0">Copyright © 2024 HNS Links</p>
</div>
</div>
</footer>
<script src="/assets/js/jquery.min.js"></script>
<script src="/assets/bootstrap/js/bootstrap.min.js"></script>
<script src="https://auth.varo.domains/v1"></script>
<script src="/assets/js/script.min.js"></script>
</body>
</html>