From 54684a76f3e49a8823f63c2b42e0c4d6bcd6e555 Mon Sep 17 00:00:00 2001 From: Andre Neves Date: Tue, 31 Jan 2023 21:30:30 -0800 Subject: [PATCH] feat: adding powered by ZBD badge if its enabled payment processor --- resources/css/style.css | 12 ++++++++++++ resources/index.html | 27 +++++++++++++++++++++------ resources/invoices.html | 19 +++++++++++++------ src/factories/worker-factory.ts | 1 + 4 files changed, 47 insertions(+), 12 deletions(-) diff --git a/resources/css/style.css b/resources/css/style.css index df3066e..1ec11f2 100644 --- a/resources/css/style.css +++ b/resources/css/style.css @@ -100,6 +100,18 @@ transform: rotate(-45deg); background-color: #FFFFFF; } +.description-text { + max-width: 400px; +} +.poweredbyzbd-img { + width: 150px; + transition: 0.15s all ease-in-out; +} +.poweredbyzbd-img:hover { + cursor: pointer; + transform: scale(1.05); + transition: 0.15s all ease-in-out; +} @keyframes rotate-circle { 0% { diff --git a/resources/index.html b/resources/index.html index a05bf75..d6bef0e 100644 --- a/resources/index.html +++ b/resources/index.html @@ -17,12 +17,20 @@
-

- This Nostr relay requires a one-time admission fee. -

-

- Provide your public key to generate an invoice. -

+
+
+

+ This Nostr relay requires a one-time + admission + fee.
Once payment is complete, you will be able to post and fetch events from this relay. +

+
+
+

+ Provide your Nostr public key to generate a Bitcoin Lightning invoice. +

+
+
@@ -50,6 +58,13 @@
+
+
+ + + +
+
@@ -61,13 +61,13 @@
-

Payment successful

+

Payment successful!

{{amount}} sats received

-

Invoice expired

+

Invoice expired!

@@ -86,6 +86,13 @@ +
+
+ + + +
+
diff --git a/src/factories/worker-factory.ts b/src/factories/worker-factory.ts index 086d3ae..b66b6ec 100644 --- a/src/factories/worker-factory.ts +++ b/src/factories/worker-factory.ts @@ -32,6 +32,7 @@ export const workerFactory = (): AppWorker => { /** * TODO: Remove 'unsafe-inline' */ + 'img-src': ["'self'", 'https://cdn.zebedee.io/an/nostr/'], 'connect-src': [settings.info.relay_url as string], 'default-src': ['"self"'], 'script-src-attr': ["'unsafe-inline'"],