From 50244ee9ca8739cf91b94f59711fddcac300970e Mon Sep 17 00:00:00 2001 From: ekzyis Date: Sun, 10 Sep 2023 23:39:47 +0200 Subject: [PATCH] Update HTML and CSS --- pages/index.html | 12 +++++------ pages/invoice.html | 2 +- pages/market.html | 52 +++++++++++----------------------------------- pages/user.html | 48 ++++++++++++++++++++++-------------------- public/index.css | 13 +++++++++++- public/market.css | 4 ++++ 6 files changed, 61 insertions(+), 70 deletions(-) diff --git a/pages/index.html b/pages/index.html index fe66c76..c942f16 100644 --- a/pages/index.html +++ b/pages/index.html @@ -29,12 +29,12 @@
-     _      _       _     _        
-  __| | ___| |_ __ | |__ (_)       
- / _` |/ _ \ | '_ \| '_ \| |       
-| (_| |  __/ | |_) | | | | |       
- \__,_|\___|_| .__/|_| |_|_|.market
-             |_|                   
+ _ _ _ _ + __| | ___| |_ __ | |__ (_) + / _` |/ _ \ | '_ \| '_ \| | +| (_| | __/ | |_) | | | | | + \__,_|\___|_| .__/|_| |_|_| + |_|
A prediction market using the lightning network [WIP]
diff --git a/pages/invoice.html b/pages/invoice.html index 44c7316..43054bb 100644 --- a/pages/invoice.html +++ b/pages/invoice.html @@ -46,7 +46,7 @@
- +
{{.lnurl}}
diff --git a/pages/market.html b/pages/market.html index 49a096e..277c013 100644 --- a/pages/market.html +++ b/pages/market.html @@ -38,53 +38,25 @@
{{.Description}}
-
- Order Book +
+ Order Book - - - + + {{ range .Orders }} - - {{ if and (eq .Share.Description "YES") (eq .Side "BUY") }} - - {{ else }} - - {{ end }} - {{ if (eq .Side "SELL") }} - - {{ else }} - - {{ end }} - {{ if and (eq .Share.Description "NO") (eq .Side "BUY") }} - - {{ else }} - - {{ end }} + + + + {{ end }}
BUY YESSELLBUY NO
-
- YES - {{.Quantity}} @ {{.Price}} ⚡ -
-
-
- {{.Share.Description}} - {{.Quantity}} @ {{.Price}} ⚡ -
-
-
- NO - {{.Quantity}} @ {{.Price}} ⚡ -
-
{{ .Side }}{{ .Share.Description }}{{.Quantity}} @ {{.Price}} ⚡
-
+

-
- Order Form +
+ Order Form
@@ -102,7 +74,7 @@
-
+ diff --git a/pages/user.html b/pages/user.html index 1d01278..b4c04bf 100644 --- a/pages/user.html +++ b/pages/user.html @@ -37,21 +37,28 @@
- You are: {{substr .session.Pubkey 0 8}} +
+ You are: {{substr .session.Pubkey 0 8}} +
+
+
+ +
+
-
- Open Orders +
+ Open Orders - - - - + + + + {{ range .Orders }} {{ if .Invoice.ConfirmedAt.Valid }} - @@ -61,35 +68,32 @@ {{ end }} {{ end }}
MarketSideShareQuantity @ PriceMarket
+ {{.Share.MarketId}} {{.Side}}
-
-
- Unpaid Orders + +
+ Unpaid Orders - - - - - + + + + + {{ range .Orders }} {{ if not .Invoice.ConfirmedAt.Valid }} - - + {{ end }} {{ end }}
MarketSideShareQuantity @ PriceInvoiceMarketInvoice
+ {{.Share.MarketId}} {{.Side}} {{.Share.Description}} {{.Quantity}} @ {{.Price}} ⚡invoiceinvoice
-
-
- -
+