From 3e0329d54e06c7bb3e5fb5c8a48fa5e055a17e1a Mon Sep 17 00:00:00 2001 From: mroxso Date: Sun, 13 Aug 2023 23:43:45 +0200 Subject: [PATCH] wip --- src/server.rs | 365 +++++++++++++++++++++++++++----------------------- 1 file changed, 195 insertions(+), 170 deletions(-) diff --git a/src/server.rs b/src/server.rs index 3c2b9f2..e90a534 100644 --- a/src/server.rs +++ b/src/server.rs @@ -266,73 +266,82 @@ async fn handle_web_request( } let html = r#" - - - - - - -
-

Enter your pubkey

-
-

- -

- -
- -
- - - + + + + + + + + + Enter Your Pubkey + + + +
+
+
+

Enter your pubkey

+
+
+ +
+
+ + +
+
+ +
+
+
+ +
+
+
+
+ + + + + + + + + + "#; Ok(Response::builder() .status(StatusCode::OK) @@ -445,89 +454,94 @@ async fn handle_web_request( let html_result = format!( r#" - - - - - - - -
-

- To use this relay, an admission fee of {} sats is required. By paying the fee, you agree to the terms. -

-
-
-
- {} -
-
-
-
-

{}

- -
-
-

This page will not refresh

-

Verify admission here once you have paid

-
-
- - - - - + + + + + + + + + Join Nostr - Invoice + + + +
+
+
+

+ To use this relay, an admission fee of {} sats is required. By paying the fee, you agree to the terms. +

+ +
+ {} +
+ +
+

{}

+ +
+ +
+

This page will not refresh

+

Verify admission here once you have paid

+
+
+
+
+ + + + + + + + + + "#, settings.pay_to_relay.admission_cost, qr_code, invoice_info.bolt11, - pubkey, - invoice_info.bolt11 + pubkey ); Ok(Response::builder() @@ -582,30 +596,41 @@ async fn handle_web_request( let html_result = format!( r#" - - - - - - - -
-
{} {} admitted
-
- - - + + + + + + + + + Bootstrap Admissions + + + +
+
{ } { } admitted
+
+ + + + + + + "#, pubkey, text