diff --git a/xmrnodes/app.py b/xmrnodes/app.py index 3f0523b..1523cd1 100644 --- a/xmrnodes/app.py +++ b/xmrnodes/app.py @@ -30,11 +30,11 @@ HEALTHY_BLOCK_DIFF = 500 # idc to config this. hardcode is fine. @app.route("/", methods=["GET", "POST"]) def index(): form = SubmitNode() - nettype = request.args.get("nettype", "mainnet") - crypto = request.args.get("crypto", "monero") + nettype = request.args.get("network", "mainnet") + crypto = request.args.get("chain", "monero") onion = request.args.get("onion", False) show_all = "true" == request.args.get("all", "false") - web_compatible = request.args.get("web_compatible", False) + web_compatible = request.args.get("cors", False) highest_block = get_highest_block(nettype, crypto) healthy_block = highest_block - HEALTHY_BLOCK_DIFF diff --git a/xmrnodes/static/css/style.css b/xmrnodes/static/css/style.css index 605969f..84bd72c 100644 --- a/xmrnodes/static/css/style.css +++ b/xmrnodes/static/css/style.css @@ -4,7 +4,7 @@ } .section { - margin-bottom: 1em; + margin-bottom: 0em; } .btn { @@ -87,3 +87,55 @@ input[type="text"] { .filter-red { filter: invert(16%) sepia(59%) saturate(5380%) hue-rotate(333deg) brightness(79%) contrast(101%); } + +#filters { + margin-top: 1em; +} + +#filters span { + margin: 1em; +} + +.pure-button { + /* filter: drop-shadow(6px 6px 0 #00e7e3); */ + /* filter: drop-shadow(6px 6px 0 #e70078); */ + box-shadow: 5px 5px 0 #00e7e3; + margin: 1em 0 1em 0; + cursor: pointer; + transition: .1s ease all; +} + +.pure-button:hover { + transform: translate(4px, 10%); + box-shadow: 1px 1px 0px #00e7e3; + transition: .1s ease all; + cursor: pointer; +} + +.pure-pink { + background-color: #e70078; + box-shadow: 5px 5px 0 #f599c9; + color: #f9f9f9; +} + +.pure-pink:hover { + background-color: #e70078; + box-shadow: 1px 1px 0 #f599c9; + color: #f9f9f9; +} + +.pure-grey { + box-shadow: 5px 5px 0 #b2d6f7; +} + +.pure-grey:hover { + box-shadow: 1px 1px 0 #b2d6f7; +} + +.nodeURL { + user-select: all; +} + +td img { + padding-right: .75em; +} \ No newline at end of file diff --git a/xmrnodes/templates/index.html b/xmrnodes/templates/index.html index 2b538f3..d241ef7 100644 --- a/xmrnodes/templates/index.html +++ b/xmrnodes/templates/index.html @@ -16,6 +16,7 @@
Showing {{ nodes | length }} nodes. {% if 'all' not in request.args %} @@ -79,7 +117,7 @@
{% for node in nodes %}