All checks were successful
Build Docker / Build Image (push) Successful in 2m10s
187 lines
11 KiB
HTML
187 lines
11 KiB
HTML
<!DOCTYPE html>
|
|
<html data-bs-theme="auto" lang="en">
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
|
|
<title>Login - HNSAU</title>
|
|
<meta name="theme-color" content="#ffffff">
|
|
<link rel="canonical" href="https://hns.au/promo">
|
|
<meta property="og:url" content="https://hns.au/promo">
|
|
<meta name="twitter:description" content="Handshake Australia; The leading hub for Australians leveraging the decentralized web, powered by Handshake.">
|
|
<meta name="twitter:image" content="https://hns.au/assets/img/HNSAU-social.webp">
|
|
<meta name="twitter:title" content="HNS AU">
|
|
<meta property="og:type" content="website">
|
|
<meta property="og:title" content="HNS AU">
|
|
<meta name="twitter:card" content="summary_large_image">
|
|
<meta property="og:description" content="Handshake Australia; The leading hub for Australians leveraging the decentralized web, powered by Handshake.">
|
|
<meta name="description" content="Handshake Australia; The leading hub for Australians leveraging the decentralized web, powered by Handshake.">
|
|
<meta property="og:image" content="https://hns.au/assets/img/HNSAU-social.webp">
|
|
<script>
|
|
(function() {
|
|
|
|
// JavaScript snippet handling Dark/Light mode switching
|
|
|
|
const getStoredTheme = () => localStorage.getItem('theme');
|
|
const setStoredTheme = theme => localStorage.setItem('theme', theme);
|
|
const forcedTheme = document.documentElement.getAttribute('data-bss-forced-theme');
|
|
|
|
const getPreferredTheme = () => {
|
|
|
|
if (forcedTheme) return forcedTheme;
|
|
|
|
const storedTheme = getStoredTheme();
|
|
if (storedTheme) {
|
|
return storedTheme;
|
|
}
|
|
|
|
const pageTheme = document.documentElement.getAttribute('data-bs-theme');
|
|
|
|
if (pageTheme) {
|
|
return pageTheme;
|
|
}
|
|
|
|
return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
|
|
}
|
|
|
|
const setTheme = theme => {
|
|
if (theme === 'auto' && window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
|
document.documentElement.setAttribute('data-bs-theme', 'dark');
|
|
} else {
|
|
document.documentElement.setAttribute('data-bs-theme', theme);
|
|
}
|
|
}
|
|
|
|
setTheme(getPreferredTheme());
|
|
|
|
const showActiveTheme = (theme, focus = false) => {
|
|
const themeSwitchers = [].slice.call(document.querySelectorAll('.theme-switcher'));
|
|
|
|
if (!themeSwitchers.length) return;
|
|
|
|
document.querySelectorAll('[data-bs-theme-value]').forEach(element => {
|
|
element.classList.remove('active');
|
|
element.setAttribute('aria-pressed', 'false');
|
|
});
|
|
|
|
for (const themeSwitcher of themeSwitchers) {
|
|
|
|
const btnToActivate = themeSwitcher.querySelector('[data-bs-theme-value="' + theme + '"]');
|
|
|
|
if (btnToActivate) {
|
|
btnToActivate.classList.add('active');
|
|
btnToActivate.setAttribute('aria-pressed', 'true');
|
|
}
|
|
}
|
|
}
|
|
|
|
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', () => {
|
|
const storedTheme = getStoredTheme();
|
|
if (storedTheme !== 'light' && storedTheme !== 'dark') {
|
|
setTheme(getPreferredTheme());
|
|
}
|
|
});
|
|
|
|
window.addEventListener('DOMContentLoaded', () => {
|
|
showActiveTheme(getPreferredTheme());
|
|
|
|
document.querySelectorAll('[data-bs-theme-value]')
|
|
.forEach(toggle => {
|
|
toggle.addEventListener('click', (e) => {
|
|
e.preventDefault();
|
|
const theme = toggle.getAttribute('data-bs-theme-value');
|
|
setStoredTheme(theme);
|
|
setTheme(theme);
|
|
showActiveTheme(theme);
|
|
})
|
|
})
|
|
});
|
|
})();
|
|
</script>
|
|
<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-light.png" media="(prefers-color-scheme: dark)">
|
|
<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-light.png" media="(prefers-color-scheme: dark)">
|
|
<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="manifest" href="/manifest.json" crossorigin="use-credentials">
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat:400,400i,700,700i,600,600i&display=swap">
|
|
<link rel="stylesheet" href="/assets/css/bss-overrides.css">
|
|
<link rel="stylesheet" href="/assets/css/Hero-Features-icons.css">
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/baguettebox.js/1.10.0/baguetteBox.min.css">
|
|
<link rel="stylesheet" href="/assets/css/theme.css">
|
|
<link rel="stylesheet" href="/assets/css/vanilla-zoom.min.css">
|
|
<script async src="https://umami.woodburn.au/script.js" data-website-id="15852010-8d3c-4553-92fc-2d6ac31098e8"></script>
|
|
{{handshake_scripts | safe}}
|
|
</head>
|
|
|
|
<body>
|
|
<nav class="navbar navbar-expand-lg fixed-top bg-secondary-subtle clean-navbar navbar-light">
|
|
<div class="container-fluid"><a class="navbar-brand logo" href="/" style="width: 50%;"><img src="/assets/img/HandshakeAustraliaT.webp" style="margin-right: 10px;height: 50px;" class="light-only"><img src="/assets/img/HandshakeAustraliaTW.webp" style="margin-right: 10px;height: 50px;" class="dark-only"></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">
|
|
<li class="nav-item"><a class="nav-link" href="/" style="color: var(--bs-primary);">Home</a></li>
|
|
<li class="nav-item"><a class="nav-link" href="/blog" style="color: var(--bs-primary);">Blog</a></li>
|
|
<li class="nav-item"><a class="nav-link" href="/links" style="color: var(--bs-primary);">Links</a></li>
|
|
<li class="nav-item"><a class="nav-link" href="/#about" style="color: var(--bs-primary);">About</a></li>
|
|
<li class="nav-item"><a class="nav-link" href="https://domains.hns.au" style="color: var(--bs-primary);">Domains</a></li>
|
|
<li class="nav-item"><a class="nav-link" href="/#contact" style="color: var(--bs-primary);">Contact</a></li>
|
|
</ul>
|
|
<div><button class="btn btn-primary btn-sm" type="button" onclick="toggle();"><svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="currentColor" viewBox="0 0 16 16" class="bi bi-sun light-only" style="font-size: 20px;margin: auto;">
|
|
<path d="M8 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6m0 1a4 4 0 1 0 0-8 4 4 0 0 0 0 8M8 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 0m0 13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 13m8-5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 1 .5.5M3 8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2A.5.5 0 0 1 3 8m10.657-5.657a.5.5 0 0 1 0 .707l-1.414 1.415a.5.5 0 1 1-.707-.708l1.414-1.414a.5.5 0 0 1 .707 0m-9.193 9.193a.5.5 0 0 1 0 .707L3.05 13.657a.5.5 0 0 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0zm9.193 2.121a.5.5 0 0 1-.707 0l-1.414-1.414a.5.5 0 0 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .707M4.464 4.465a.5.5 0 0 1-.707 0L2.343 3.05a.5.5 0 1 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .708z"></path>
|
|
</svg><svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="currentColor" viewBox="0 0 16 16" class="bi bi-moon-fill dark-only" style="font-size: 20px;margin: auto;">
|
|
<path d="M6 .278a.768.768 0 0 1 .08.858 7.208 7.208 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277.527 0 1.04-.055 1.533-.16a.787.787 0 0 1 .81.316.733.733 0 0 1-.031.893A8.349 8.349 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.752.752 0 0 1 6 .278"></path>
|
|
</svg></button></div>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
<main class="page login-page">
|
|
<section class="clean-block clean-form dark">
|
|
<div class="container">
|
|
<div class="block-heading">
|
|
<h2 class="text-info">Create Promo Code</h2>
|
|
</div>
|
|
<form method="post">
|
|
<div style="margin-bottom: 16px;"><label class="form-label" for="code">Code</label><input class="form-control" type="text" data-bs-theme="light" name="code" placeholder="Promo Code"></div>
|
|
<div style="margin-bottom: 16px;"><label class="form-label" for="constant">US$ Off</label><input class="form-control" type="text" data-bs-theme="light" name="constant" placeholder="10"></div>
|
|
<div style="margin-bottom: 16px;"><label class="form-label" for="percent">% Off</label><input class="form-control" type="text" data-bs-theme="light" name="percent" placeholder="25"></div>
|
|
<div style="margin-bottom: 16px;"><label class="form-label" for="uses">Uses</label><input class="form-control" type="text" data-bs-theme="light" name="uses" placeholder="1"><span>Enter -1 for unlimited uses</span></div><button class="btn btn-primary" type="submit">Create</button>
|
|
</form>
|
|
</div>
|
|
<div style="margin: auto;margin-top: 25px;max-width: 700px;">
|
|
<h3 class="text-center">Existing Promo Codes</h3>{{promos | safe}}
|
|
</div>
|
|
</section>
|
|
</main>
|
|
<footer class="page-footer dark">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<h5>Get started</h5>
|
|
<ul>
|
|
<li><a href="/">Home</a></li>
|
|
<li><a href="/links">Links</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="col-sm-3">
|
|
<h5>Contact</h5>
|
|
<ul>
|
|
<li><a href="https://discord.gg/WJ6vpjuQv5" target="_blank">Discord</a></li>
|
|
<li><a href="/email" target="_blank">Email</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="footer-copyright">
|
|
<p>© {{year}} Handshake AU</p>
|
|
</div>
|
|
</footer>
|
|
<script src="/assets/bootstrap/js/bootstrap.min.js"></script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/baguettebox.js/1.10.0/baguetteBox.min.js"></script>
|
|
<script src="/assets/js/vanilla-zoom.js"></script>
|
|
<script src="/assets/js/theme.js"></script>
|
|
</body>
|
|
|
|
</html> |