From b1d0c5c4754d76a951c48b805e5fd15ffcba7abf Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Tue, 28 Feb 2023 10:39:11 +0200 Subject: [PATCH] feat: add landing page --- tasks.py | 2 +- templates/nostrmarket/index.html | 55 +++++++++++++++++++++++++++++++- 2 files changed, 55 insertions(+), 2 deletions(-) diff --git a/tasks.py b/tasks.py index cbf1b74..3254dcc 100644 --- a/tasks.py +++ b/tasks.py @@ -21,7 +21,7 @@ async def wait_for_paid_invoices(): async def on_invoice_paid(payment: Payment) -> None: - if payment.extra.get("tag") != "market": + if payment.extra.get("tag") != "nostrmarket": return print("### on_invoice_paid") diff --git a/templates/nostrmarket/index.html b/templates/nostrmarket/index.html index cf4ff44..410fbf4 100644 --- a/templates/nostrmarket/index.html +++ b/templates/nostrmarket/index.html @@ -3,7 +3,60 @@
- section + + Wellcome to Nostr Market!
+ In Nostr Market, merchant and customer communicate via NOSTR relays, so + loss of money, product information, and reputation become far less + likely if attacked. +
+ + Terms
+
    +
  • + merchant - seller of products with + NOSTR key-pair +
  • +
  • + customer - buyer of products with + NOSTR key-pair +
  • +
  • + product - item for sale by the + merchant +
  • +
  • + stall - list of products controlled + by merchant (a merchant can have multiple stalls) +
  • +
  • + marketplace - clientside software for + searching stalls and purchasing products +
  • +
+
+ +
+
+ + Use an existing private key (hex or npub) + + + A new key pair will be generated for you + +
+
+