feat: Update price of pins
All checks were successful
Build Docker / Build Image (push) Successful in 1m23s

This commit is contained in:
2025-02-08 11:04:25 +11:00
parent b6f27cc027
commit 942e0f182e
21 changed files with 51 additions and 45 deletions

View File

@@ -13,8 +13,8 @@ images = {
}
prices = {
"pack1": 45,
"pack2": 45,
"pack1": 50,
"pack2": 50,
}
exchange = {
@@ -35,7 +35,7 @@ def cart(cert):
else:
name = path
image = "pins/pack1.jpg"
price = 45
price = 50
hns = usdToHNS(price)
@@ -69,7 +69,7 @@ def cart_total(cert):
else:
name = path
image = "pins/pack1.jpg"
price = 45
price = 50
hns = usdToHNS(price, True)
hns = hns * int(quantity)
@@ -129,7 +129,7 @@ def total_usd(cert,promo):
if path in prices:
total += prices[path] * int(item['quantity'])
else:
total += 45 * int(item['quantity'])
total += 50 * int(item['quantity'])
if promo:
if promo["constant"]:

View File

@@ -73,16 +73,19 @@ def pins():
hns_45 = 45 / exchange['rate']
hns_30 = 30 / exchange['rate']
hns_50 = 50 / exchange['rate']
# Round to the nearest 5 HNS and add commas
hns_45 = int(hns_45 / 5) * 5
hns_30 = int(hns_30 / 5) * 5
hns_50 = int(hns_50 / 5) * 5
hns_45 = "{:,}".format(hns_45)
hns_30 = "{:,}".format(hns_30)
hns_50 = "{:,}".format(hns_50)
return render_template('pins.html', year=year, hns_45=hns_45, hns_30=hns_30)
return render_template('pins.html', year=year, hns_45=hns_45, hns_30=hns_30,hns_50=hns_50)
@app.route('/pins/<path:path>')
def pins_redirect(path):
@@ -100,14 +103,17 @@ def pins_redirect(path):
hns_45 = 45 / exchange['rate']
hns_30 = 30 / exchange['rate']
hns_50 = 50 / exchange['rate']
# Round to the nearest 5 HNS and add commas
hns_45 = int(hns_45 / 5) * 5
hns_30 = int(hns_30 / 5) * 5
hns_50 = int(hns_50 / 5) * 5
hns_45 = "{:,}".format(hns_45)
hns_30 = "{:,}".format(hns_30)
return render_template('pins/'+path + ".html", year=year, hns_45=hns_45, hns_30=hns_30)
hns_50 = "{:,}".format(hns_50)
return render_template('pins/'+path + ".html", year=year, hns_45=hns_45, hns_30=hns_30,hns_50=hns_50)
@app.route('/pins/order/<path:path>')
def pins_order(path):

View File

@@ -8,15 +8,15 @@
<meta name="theme-color" content="#ffffff">
<link rel="canonical" href="https://hns.au/404">
<meta property="og:url" content="https://hns.au/404">
<meta property="og:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:description" content="The home of Australians using the decentralized web, built on Handshake.">
<meta property="og:description" content="The home of Australians using the decentralized web, built on Handshake.">
<meta name="description" content="Handshake Australia">
<meta property="og:title" content="HNS AU">
<meta property="og:type" content="website">
<meta name="twitter:title" content="HNS AU">
<meta name="twitter:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<meta name="description" content="Handshake Australia">
<meta property="og:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<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" media="(prefers-color-scheme: dark)">
<link rel="icon" type="image/png" sizes="600x627" href="/assets/img/favicon.png">

View File

@@ -8,15 +8,15 @@
<meta name="theme-color" content="#ffffff">
<link rel="canonical" href="https://hns.au/about">
<meta property="og:url" content="https://hns.au/about">
<meta property="og:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:description" content="The home of Australians using the decentralized web, built on Handshake.">
<meta property="og:description" content="The home of Australians using the decentralized web, built on Handshake.">
<meta name="description" content="Handshake Australia">
<meta property="og:title" content="HNS AU">
<meta property="og:type" content="website">
<meta name="twitter:title" content="HNS AU">
<meta name="twitter:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<meta name="description" content="Handshake Australia">
<meta property="og:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<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" media="(prefers-color-scheme: dark)">
<link rel="icon" type="image/png" sizes="600x627" href="/assets/img/favicon.png">

View File

@@ -8,15 +8,15 @@
<meta name="theme-color" content="#ffffff">
<link rel="canonical" href="https://hns.au/blog">
<meta property="og:url" content="https://hns.au/blog">
<meta property="og:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:description" content="The home of Australians using the decentralized web, built on Handshake.">
<meta property="og:description" content="The home of Australians using the decentralized web, built on Handshake.">
<meta name="description" content="Handshake Australia">
<meta property="og:title" content="HNS AU">
<meta property="og:type" content="website">
<meta name="twitter:title" content="HNS AU">
<meta name="twitter:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<meta name="description" content="Handshake Australia">
<meta property="og:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<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" media="(prefers-color-scheme: dark)">
<link rel="icon" type="image/png" sizes="600x627" href="/assets/img/favicon.png">

View File

@@ -8,12 +8,12 @@
<meta name="theme-color" content="#ffffff">
<link rel="canonical" href="https://hns.au/blog/happening.html">
<meta property="og:url" content="https://hns.au/blog/happening.html">
<meta property="og:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<meta name="twitter:card" content="summary_large_image">
<meta property="og:title" content="HNS AU">
<meta property="og:type" content="website">
<meta name="twitter:title" content="HNS AU">
<meta name="twitter:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<meta property="og:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<meta property="og:description" content="The &quot;Happening&quot; is when over 78,000 domain names will be released to auction. These domains will be released in early Feb 2024">
<meta name="description" content="The &quot;Happening&quot; is when over 78,000 domain names will be released to auction. These domains will be released in early Feb 2024">
<meta name="twitter:description" content="The &quot;Happening&quot; is when over 78,000 domain names will be released to auction. These domains will be released in early Feb 2024">

View File

@@ -9,8 +9,8 @@
<link rel="canonical" href="https://hns.au/blog/pins.html">
<meta property="og:url" content="https://hns.au/blog/pins.html">
<meta name="twitter:card" content="summary_large_image">
<meta name="description" content="Handshake Australia">
<meta property="og:type" content="website">
<meta name="description" content="Handshake Australia">
<meta property="og:image" content="https://hns.au/assets/img/pins/IMG_8116.jpg">
<meta name="twitter:description" content="We are thrilled to announce that HNS Lapel Pins are now available for purchase directly from HNSAU using HNS! These high-quality pins are designed to showcase the iconic HNS logo, making them the perfect accessory for anyone passionate about the future of the decentralized web.
">

View File

@@ -8,15 +8,15 @@
<meta name="theme-color" content="#ffffff">
<link rel="canonical" href="https://hns.au/cart">
<meta property="og:url" content="https://hns.au/cart">
<meta property="og:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:description" content="The home of Australians using the decentralized web, built on Handshake.">
<meta property="og:description" content="The home of Australians using the decentralized web, built on Handshake.">
<meta name="description" content="Handshake Australia">
<meta property="og:title" content="HNS AU">
<meta property="og:type" content="website">
<meta name="twitter:title" content="HNS AU">
<meta name="twitter:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<meta name="description" content="Handshake Australia">
<meta property="og:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<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" media="(prefers-color-scheme: dark)">
<link rel="icon" type="image/png" sizes="600x627" href="/assets/img/favicon.png">

View File

@@ -8,15 +8,15 @@
<meta name="theme-color" content="#ffffff">
<link rel="canonical" href="https://hns.au/contact">
<meta property="og:url" content="https://hns.au/contact">
<meta property="og:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:description" content="The home of Australians using the decentralized web, built on Handshake.">
<meta property="og:description" content="The home of Australians using the decentralized web, built on Handshake.">
<meta name="description" content="Handshake Australia">
<meta property="og:title" content="HNS AU">
<meta property="og:type" content="website">
<meta name="twitter:title" content="HNS AU">
<meta name="twitter:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<meta name="description" content="Handshake Australia">
<meta property="og:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<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" media="(prefers-color-scheme: dark)">
<link rel="icon" type="image/png" sizes="600x627" href="/assets/img/favicon.png">

View File

@@ -8,12 +8,12 @@
<meta name="theme-color" content="#ffffff">
<link rel="canonical" href="https://hns.au/domains">
<meta property="og:url" content="https://hns.au/domains">
<meta property="og:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<meta name="twitter:card" content="summary_large_image">
<meta property="og:title" content="HNS AU">
<meta property="og:type" content="website">
<meta name="twitter:title" content="HNS AU">
<meta name="twitter:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<meta property="og:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<meta property="og:description" content="Domains for sale by HNSAU">
<meta name="description" content="Domains for sale by HNSAU">
<meta name="twitter:description" content="Domains for sale by HNSAU">

View File

@@ -8,15 +8,15 @@
<meta name="theme-color" content="#ffffff">
<link rel="canonical" href="https://hns.au/faq">
<meta property="og:url" content="https://hns.au/faq">
<meta property="og:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:description" content="The home of Australians using the decentralized web, built on Handshake.">
<meta property="og:description" content="The home of Australians using the decentralized web, built on Handshake.">
<meta name="description" content="Handshake Australia">
<meta property="og:title" content="HNS AU">
<meta property="og:type" content="website">
<meta name="twitter:title" content="HNS AU">
<meta name="twitter:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<meta name="description" content="Handshake Australia">
<meta property="og:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<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" media="(prefers-color-scheme: dark)">
<link rel="icon" type="image/png" sizes="600x627" href="/assets/img/favicon.png">

View File

@@ -8,15 +8,15 @@
<meta name="theme-color" content="#ffffff">
<link rel="canonical" href="https://hns.au/">
<meta property="og:url" content="https://hns.au/">
<meta property="og:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:description" content="The home of Australians using the decentralized web, built on Handshake.">
<meta property="og:description" content="The home of Australians using the decentralized web, built on Handshake.">
<meta name="description" content="Handshake Australia">
<meta property="og:title" content="HNS AU">
<meta property="og:type" content="website">
<meta name="twitter:title" content="HNS AU">
<meta name="twitter:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<meta name="description" content="Handshake Australia">
<meta property="og:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<script type="application/ld+json">
{
"@context": "http://schema.org",

View File

@@ -8,15 +8,15 @@
<meta name="theme-color" content="#ffffff">
<link rel="canonical" href="https://hns.au/links">
<meta property="og:url" content="https://hns.au/links">
<meta property="og:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:description" content="The home of Australians using the decentralized web, built on Handshake.">
<meta property="og:description" content="The home of Australians using the decentralized web, built on Handshake.">
<meta name="description" content="Handshake Australia">
<meta property="og:title" content="HNS AU">
<meta property="og:type" content="website">
<meta name="twitter:title" content="HNS AU">
<meta name="twitter:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<meta name="description" content="Handshake Australia">
<meta property="og:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<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" media="(prefers-color-scheme: dark)">
<link rel="icon" type="image/png" sizes="600x627" href="/assets/img/favicon.png">

View File

@@ -8,15 +8,15 @@
<meta name="theme-color" content="#ffffff">
<link rel="canonical" href="https://hns.au/login">
<meta property="og:url" content="https://hns.au/login">
<meta property="og:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:description" content="The home of Australians using the decentralized web, built on Handshake.">
<meta property="og:description" content="The home of Australians using the decentralized web, built on Handshake.">
<meta name="description" content="Handshake Australia">
<meta property="og:title" content="HNS AU">
<meta property="og:type" content="website">
<meta name="twitter:title" content="HNS AU">
<meta name="twitter:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<meta name="description" content="Handshake Australia">
<meta property="og:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<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" media="(prefers-color-scheme: dark)">
<link rel="icon" type="image/png" sizes="600x627" href="/assets/img/favicon.png">

View File

@@ -8,15 +8,15 @@
<meta name="theme-color" content="#ffffff">
<link rel="canonical" href="https://hns.au/payment">
<meta property="og:url" content="https://hns.au/payment">
<meta property="og:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:description" content="The home of Australians using the decentralized web, built on Handshake.">
<meta property="og:description" content="The home of Australians using the decentralized web, built on Handshake.">
<meta name="description" content="Handshake Australia">
<meta property="og:title" content="HNS AU">
<meta property="og:type" content="website">
<meta name="twitter:title" content="HNS AU">
<meta name="twitter:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<meta name="description" content="Handshake Australia">
<meta property="og:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<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" media="(prefers-color-scheme: dark)">
<link rel="icon" type="image/png" sizes="600x627" href="/assets/img/favicon.png">

View File

@@ -8,15 +8,15 @@
<meta name="theme-color" content="#ffffff">
<link rel="canonical" href="https://hns.au/payment_info">
<meta property="og:url" content="https://hns.au/payment_info">
<meta property="og:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:description" content="The home of Australians using the decentralized web, built on Handshake.">
<meta property="og:description" content="The home of Australians using the decentralized web, built on Handshake.">
<meta name="description" content="Handshake Australia">
<meta property="og:title" content="HNS AU">
<meta property="og:type" content="website">
<meta name="twitter:title" content="HNS AU">
<meta name="twitter:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<meta name="description" content="Handshake Australia">
<meta property="og:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<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" media="(prefers-color-scheme: dark)">
<link rel="icon" type="image/png" sizes="600x627" href="/assets/img/favicon.png">

View File

@@ -9,8 +9,8 @@
<link rel="canonical" href="https://hns.au/pins">
<meta property="og:url" content="https://hns.au/pins">
<meta name="twitter:card" content="summary_large_image">
<meta name="description" content="Handshake Australia">
<meta property="og:type" content="website">
<meta name="description" content="Handshake Australia">
<meta name="twitter:image" content="https://hns.au/assets/img/pins/IMG_8116.jpg">
<meta property="og:description" content="Show that you support Handshake with a HNS lapel pin. Created to our high stands with multiple colours to choose from. Free shipping worldwide.">
<meta property="og:image" content="https://hns.au/assets/img/pins/IMG_8116.jpg">
@@ -64,8 +64,8 @@
<div class="product-name"><a href="/pins/pack1" style="color: rgb(255,255,255);">Pack of 5 Pins<br>Includes 2x Silver highlights</a></div>
<div class="about">
<div class="price" style="width: 100%;">
<h3>US$45</h3>
<h3>{{hns_45}} HNS</h3>
<h3>US$50</h3>
<h3>{{hns_50}} HNS</h3>
</div>
</div>
</div>
@@ -76,8 +76,8 @@
<div class="product-name"><a href="/pins/pack2" style="color: rgb(255,255,255);">Pack of 5 Pins<br>Includes 2x Gold highlights</a></div>
<div class="about">
<div class="price" style="width: 100%;">
<h3>US$45</h3>
<h3>{{hns_45}} HNS</h3>
<h3>US$50</h3>
<h3>{{hns_50}} HNS</h3>
</div>
</div>
</div>

View File

@@ -9,8 +9,8 @@
<link rel="canonical" href="https://hns.au/pins/pack1.html">
<meta property="og:url" content="https://hns.au/pins/pack1.html">
<meta name="twitter:card" content="summary_large_image">
<meta name="description" content="Handshake Australia">
<meta property="og:type" content="website">
<meta name="description" content="Handshake Australia">
<meta name="twitter:description" content="Show that you support Handshake with a HNS lapel pin. Created to our high stands with multiple colours to choose from. Free shipping worldwide.">
<meta property="og:description" content="Show that you support Handshake with a HNS lapel pin. Created to our high stands with multiple colours to choose from. Free shipping worldwide.">
<meta property="og:title" content="Pins | HNS AU">
@@ -72,7 +72,7 @@
<div class="info">
<h3>Pack of 5 Pins<br>Includes 2x Silver highlights</h3>
<div class="price">
<h3>US$45<br>{{hns_45}} HNS</h3>
<h3>US$50<br>{{hns_50}} HNS</h3>
</div><a class="btn btn-primary" role="button" href="/pins/order/pack1"><i class="icon-basket"></i>Add to Cart</a>
<div class="summary">
<p>Grab your Handshake pins with this pack of 5 pins. This pack includes:<br>1x Gold, Silver &amp; Bronze Pins<br>2x Gold Pins with Silver Highlights</p>

View File

@@ -9,8 +9,8 @@
<link rel="canonical" href="https://hns.au/pins/pack2.html">
<meta property="og:url" content="https://hns.au/pins/pack2.html">
<meta name="twitter:card" content="summary_large_image">
<meta name="description" content="Handshake Australia">
<meta property="og:type" content="website">
<meta name="description" content="Handshake Australia">
<meta name="twitter:title" content="Pins | HNS AU">
<meta property="og:description" content="Show that you support Handshake with a HNS lapel pin. Created to our high stands with multiple colours to choose from. Free shipping worldwide.">
<meta property="og:image" content="https://hns.au/assets/img/pins/IMG_8116.jpg">
@@ -72,7 +72,7 @@
<div class="info">
<h3>Pack of 5 Pins<br>Includes 2x Gold highlights</h3>
<div class="price">
<h3>US$45<br>{{hns_45}} HNS</h3>
<h3>US$50<br>{{hns_50}} HNS</h3>
</div><a class="btn btn-primary" role="button" href="/pins/order/pack2"><i class="icon-basket"></i>Add to Cart</a>
<div class="summary">
<p>Grab your Handshake pins with this pack of 5 pins. This pack includes:<br>1x Gold, Silver &amp; Bronze Pins<br>2x Silver Pins with Gold Highlights</p>

View File

@@ -8,15 +8,15 @@
<meta name="theme-color" content="#ffffff">
<link rel="canonical" href="https://hns.au/promo">
<meta property="og:url" content="https://hns.au/promo">
<meta property="og:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:description" content="The home of Australians using the decentralized web, built on Handshake.">
<meta property="og:description" content="The home of Australians using the decentralized web, built on Handshake.">
<meta name="description" content="Handshake Australia">
<meta property="og:title" content="HNS AU">
<meta property="og:type" content="website">
<meta name="twitter:title" content="HNS AU">
<meta name="twitter:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<meta name="description" content="Handshake Australia">
<meta property="og:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<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" media="(prefers-color-scheme: dark)">
<link rel="icon" type="image/png" sizes="600x627" href="/assets/img/favicon.png">

View File

@@ -8,15 +8,15 @@
<meta name="theme-color" content="#ffffff">
<link rel="canonical" href="https://hns.au/uv">
<meta property="og:url" content="https://hns.au/uv">
<meta property="og:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:description" content="The home of Australians using the decentralized web, built on Handshake.">
<meta property="og:description" content="The home of Australians using the decentralized web, built on Handshake.">
<meta name="description" content="Handshake Australia">
<meta property="og:title" content="HNS AU">
<meta property="og:type" content="website">
<meta name="twitter:title" content="HNS AU">
<meta name="twitter:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<meta name="description" content="Handshake Australia">
<meta property="og:image" content="https://hns.au/assets/img/HNSAU-social.webp">
<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" media="(prefers-color-scheme: dark)">
<link rel="icon" type="image/png" sizes="600x627" href="/assets/img/favicon.png">