Skip to content

Commit 54684a7

Browse files
andrerfnevescameri
authored andcommitted
feat: adding powered by ZBD badge if its enabled payment processor
1 parent cef12fd commit 54684a7

File tree

4 files changed

+47
-12
lines changed

4 files changed

+47
-12
lines changed

resources/css/style.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,18 @@
100100
transform: rotate(-45deg);
101101
background-color: #FFFFFF;
102102
}
103+
.description-text {
104+
max-width: 400px;
105+
}
106+
.poweredbyzbd-img {
107+
width: 150px;
108+
transition: 0.15s all ease-in-out;
109+
}
110+
.poweredbyzbd-img:hover {
111+
cursor: pointer;
112+
transform: scale(1.05);
113+
transition: 0.15s all ease-in-out;
114+
}
103115

104116
@keyframes rotate-circle {
105117
0% {

resources/index.html

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,20 @@ <h1 class="mt-4 mb-4 text-center text-nowrap">{{name}}</h1>
1717
</div>
1818
<div class="row">
1919
<div class="col text-center">
20-
<p>
21-
This <a href="https://github.com/nostr-protocol/nostr">Nostr</a> relay <strong>requires</strong> a one-time admission fee.
22-
</p>
23-
<p>
24-
Provide your public key to generate an invoice.
25-
</p>
20+
<div class="row">
21+
<div class="d-flex justify-content-center mt-2">
22+
<p class="description-text">
23+
This <a href="https://github.com/nostr-protocol/nostr">Nostr</a> relay <strong>requires</strong> a one-time
24+
admission
25+
fee. <br /> Once payment is complete, you will be able to post and fetch events from this relay.
26+
</p>
27+
</div>
28+
<div class="d-flex justify-content-center mb-1 mt-2">
29+
<p class="description-text">
30+
Provide your Nostr public key to generate a Bitcoin Lightning invoice.
31+
</p>
32+
</div>
33+
</div>
2634
</div>
2735
</div>
2836
<div class="row justify-content-center">
@@ -50,6 +58,13 @@ <h1 class="mt-4 mb-4 text-center text-nowrap">{{name}}</h1>
5058
<button id="submitBtn" class="btn btn-lg btn-warning" type="submit">Pay {{amount}} sats</button>
5159
</div>
5260
</div>
61+
<div class="row">
62+
<div class="d-flex justify-content-center mb-3 mt-4">
63+
<a href="https://zeb.gg/nostr-zbd-quickstart" target="_blank">
64+
<img class="poweredbyzbd-img" src="https://cdn.zebedee.io/an/nostr/poweredbyzbd.png" />
65+
</a>
66+
</div>
67+
</div>
5368
</form>
5469
</main>
5570
<div class="modal" id="tosModal" tabindex="-1">

resources/invoices.html

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ <h1 class="mt-4 mb-4 text-center text-nowrap">{{name}}</h1>
2323
<div class="row">
2424
<div class="col text-center">
2525
<p class="pending">
26-
Scan with your bitcoin lightning wallet
26+
Scan with your preferred Bitcoin Lightning wallet:
2727
</p>
2828
<p class="paid d-none text-success">
29-
You may connect to {{relay_url}}
29+
You may now connect to {{relay_url}}
3030
</p>
3131
<p class="expired d-none text-secondary">
32-
Your invoice expired
32+
Your invoice expired. Try again!
3333
</p>
3434
</div>
3535
</div>
@@ -47,7 +47,7 @@ <h1 class="mt-4 mb-4 text-center text-nowrap">{{name}}</h1>
4747
<div class="card-body d-flex flex-row justify-content-center">
4848
<div>
4949
<div class="spinner-grow spinner-grow-sm" role="status"></div>
50-
Waiting for payment
50+
Waiting for payment...
5151
</div>
5252
</div>
5353
</div>
@@ -61,13 +61,13 @@ <h1 class="mt-4 mb-4 text-center text-nowrap">{{name}}</h1>
6161
<div class="icon-fix"></div>
6262
</div>
6363
</div>
64-
<h2 class="text-success">Payment successful</h2>
64+
<h2 class="text-success">Payment successful!</h2>
6565
<p class="text-secondary">{{amount}} sats received</p>
6666
</div>
6767
</div>
6868
<div class="card expired d-none col-8 col-lg-4 justify-content-center mb-4">
6969
<div class="card-body text-center">
70-
<h2 class="text-danger">Invoice expired</h2>
70+
<h2 class="text-danger">Invoice expired!</h2>
7171
</div>
7272
</div>
7373
</div>
@@ -86,6 +86,13 @@ <h2 class="text-danger">Invoice expired</h2>
8686
<button class="btn btn-lg btn-primary" type="submit">Get another invoice</button>
8787
</div>
8888
</div>
89+
<div class="row">
90+
<div class="d-flex justify-content-center mb-3 mt-4">
91+
<a href="https://zeb.gg/nostr-zbd-quickstart" target="_blank">
92+
<img class="poweredbyzbd-img" src="https://cdn.zebedee.io/an/nostr/poweredbyzbd.png" />
93+
</a>
94+
</div>
95+
</div>
8996
</form>
9097
</main>
9198
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-cuYeSxntonz0PPNlHhBs68uyIAVpIIOZZ5JqeqvYYIcEL727kskC66kF92t6Xl2V" crossorigin="anonymous"></script>

src/factories/worker-factory.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export const workerFactory = (): AppWorker => {
3232
/**
3333
* TODO: Remove 'unsafe-inline'
3434
*/
35+
'img-src': ["'self'", 'https://cdn.zebedee.io/an/nostr/'],
3536
'connect-src': [settings.info.relay_url as string],
3637
'default-src': ['"self"'],
3738
'script-src-attr': ["'unsafe-inline'"],

0 commit comments

Comments
 (0)