SatSale

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit d0c8acdb4abc202fc927d4c7f6062fe4d305013a
parent 4c53364849daa17283f41f8b5b1869e724b26ffa
Author: NicholasFarrow <nicholas.w.farrow@gmail.com>
Date:   Mon, 15 Feb 2021 01:40:35 +1100

add separate styleheet in static. Large UI impovementsgit add static/style.css

Diffstat:
Astatic/style.css | 90+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Mtemplates/donate.html | 70+---------------------------------------------------------------------
Mtemplates/index.html | 86++++++++-----------------------------------------------------------------------
3 files changed, 99 insertions(+), 147 deletions(-)

diff --git a/static/style.css b/static/style.css @@ -0,0 +1,90 @@ +html, body { + display: flex; + /* height:auto; + width:260px; */ +} +body{ + background-color: inherit; + overflow: hidden; + font-family: "Lucida Console", "Courier New", monospace; +} +p { + /* display: inline-block; */ + overflow-wrap: break-word; + word-wrap: break-word; + margin: 0; + padding: 5px; +} +h1 { + font-size: 2em; +} + +.button { + background-color: black; + border: none; + color: white; + padding: 10px 15px; + text-align: center; + /* text-decoration: none; */ + display: inline-block; + cursor: pointer; + -webkit-transition-duration: 0.4s; /* Safari */ + transition-duration: 0.4s; + font-family: "Lucida Console", "Courier New", monospace; +} + +.button1 { + box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19); +} + +#paybox { + background-color: #f7931a; + border-radius: 25px; + padding-left: 30px; + padding-right: 30px; + padding-top: 10px; + padding-bottom: 10px; + font-size: 16px + + /* height:auto; */ + height: 275px; + /* width:220px; */ + width:360px; + + + position: absolute; + left: 50%; + top: 50%; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); + +} +#row { + display: flex; +} + #left { + width: 60%; + padding: 0 10px 0 0; + float: left; +} +#right { + width: 40%; + padding: 0 10px 0 0; + float: right; +} +#address { + overflow-wrap: break-word; + text-align: right; +} +#about { + color:#000; +} +.qr { + transition: transform .2s; + object-fit: cover; +} +.qr:hover { + -ms-transform: scale(2.5); /* IE 9 */ + -webkit-transform: scale(2.5); /* Safari 3-8 */ + transform: scale(3); +} diff --git a/templates/donate.html b/templates/donate.html @@ -8,76 +8,8 @@ <script src="//cdnjs.cloudflare.com/ajax/libs/socket.io/3.0.4/socket.io.js"></script> <!-- <script src="{{ url_for('static', filename='server_connection.js') }}"></script> --> - <style> - html, body { - display: flex; - /* height:auto; - width:260px; */ - } - body{ - background-color: inherit; - overflow: hidden; - } - p { - /* display: inline-block; */ - overflow-wrap: break-word; - word-wrap: break-word; - margin: 0; - padding: 5px; - } - h1 { - font-size: 2em; - } - #paybox { - background-color: #f7931a; - border-radius: 25px; - padding-left: 30px; - padding-right: 30px; - padding-top: 10px; - padding-bottom: 10px; - font-size: 16px + <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}"> - /* height:auto; */ - height: 275px; - width:360px; - - position: absolute; - left: 50%; - top: 50%; - -webkit-transform: translate(-50%, -50%); - transform: translate(-50%, -50%); - - } - #row { - display: flex; - } - #left { - width: 60%; - padding: 0 10px 0 0; - float: left; - } - #right { - width: 40%; - padding: 0 10px 0 0; - float: right; - } - #address { - overflow-wrap: break-word; - text-align: right; - } - #about { - color:#000; - } - .qr { - transition: transform .2s; - object-fit: cover; - } - .qr:hover { - -ms-transform: scale(2.5); /* IE 9 */ - -webkit-transform: scale(2.5); /* Safari 3-8 */ - transform: scale(3); - } - </style> </head> diff --git a/templates/index.html b/templates/index.html @@ -8,6 +8,8 @@ <script src="//cdnjs.cloudflare.com/ajax/libs/socket.io/3.0.4/socket.io.js"></script> <script src="{{ url_for('static', filename='server_connection.js') }}"></script> + <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}"> + <!-- Initate the payment websocket --> <script type="text/javascript"> payment_data = {{ params|tojson }}; @@ -15,80 +17,6 @@ initiate(payment_data); </script> - - <style> - html, body { - display: flex; - /* height:auto; - width:260px; */ - } - body{ - background-color: inherit; - overflow: hidden; - } - p { - /* display: inline-block; */ - overflow-wrap: break-word; - word-wrap: break-word; - margin: 0; - padding: 5px; - } - h1 { - font-size: 2em; - } - #paybox { - background-color: #f7931a; - border-radius: 25px; - padding-left: 30px; - padding-right: 30px; - padding-top: 10px; - padding-bottom: 10px; - font-size: 16px - - /* height:auto; */ - height: 275px; - /* width:220px; */ - width:360px; - - - position: absolute; - left: 50%; - top: 50%; - -webkit-transform: translate(-50%, -50%); - transform: translate(-50%, -50%); - - } - #row { - display: flex; - } - #left { - width: 60%; - padding: 0 10px 0 0; - float: left; - } - #right { - width: 40%; - padding: 0 10px 0 0; - float: right; - } - #address { - overflow-wrap: break-word; - text-align: right; - } - #about { - color:#000; - } - .qr { - transition: transform .2s; - object-fit: cover; - } - .qr:hover { - -ms-transform: scale(2.5); /* IE 9 */ - -webkit-transform: scale(2.5); /* Safari 3-8 */ - transform: scale(3); - } - </style> - </head> @@ -112,20 +40,22 @@ <p id="timerContainer" style="padding:0;"><span id="timer"></span> seconds remaining.</p> </div> + </br> + <div id="row"> <div id="left" style="text-align: left; padding: 0;"> <!-- Alternate between offering lightning or on chain payment switch --> {% if params.lnd_enabled %} {% if params.method != "bitcoind"%} - <button onclick="replaceUrlParam(window.location, 'method', 'bitcoind');">Onchain Payment</button> + <button class="button button1" onclick="replaceUrlParam(window.location, 'method', 'bitcoind');">Onchain Payment</button> {% else %} - <button onclick="replaceUrlParam(window.location, 'method', 'lnd');">Lightning Payment</button> + <button class="button button1" onclick="replaceUrlParam(window.location, 'method', 'lnd');">Lightning Payment</button> {% endif %} {% endif %} </div> - <div id="right" style="text-align: right; padding: 0;"> - <small><a id="about" href="https://github.com/nickfarrow/BTCPyment" target="_blank">BTCPyment</a></small> + <div id="right" style="text-align: right; padding: 10px 10px;"> + <small style="vertical-align:middle"><a id="about" href="https://github.com/nickfarrow/BTCPyment" target="_blank">BTCPyment</a></small> </div> </div> </div>