setup improved static and templates

master
lalanza808 5 years ago
parent 917ba7baa2
commit 8736a9a1d0

File diff suppressed because it is too large Load Diff

@ -263,3 +263,11 @@ textarea {
} }
} }
.search {
width: 60%;
margin: 0 auto;
}
div.search input {
margin-top: 1em;
}

@ -5,11 +5,10 @@
<title>Monero Block Explorer</title> <title>Monero Block Explorer</title>
<link rel="stylesheet" href="/static/css/main.css"/> <link rel="stylesheet" href="/static/css/main.css"/>
<link rel="stylesheet" href="/static/css/normalize.css"/> <link rel="stylesheet" href="/static/css/normalize.css"/>
<link rel="stylesheet" href="/static/css/dopetrope.css"/>
</head> </head>
<body> <body>
<div class="container"> {% block content %}
{% block content %} {% endblock content %}
{% endblock content %}
</div>
</body> </body>
</html> </html>

@ -1,71 +1,113 @@
{% extends "base" %} {% extends "base" %}
{% block content %} {% block content %}
<div class="title"> <div id="page-wrapper">
<h1>Monero Block Explorer</h1> <section id="header">
</div> <h1><a href="/">Monero Block Explorer</a></h1>
<div class="search"> <nav id="nav">
<h2>Search</h2> <div class="search">
<form action="/search" method="get"> <form action="/search" method="get">
<input type="text" name="value" placeholder="Enter a transaction hash, block hash, or block height."> <input type="text" name="value" placeholder="Enter a transaction hash, block hash, or block height.">
<input type="submit" value="Search"> <input type="submit" value="Search">
</form> </form>
</div> </div>
<div class="server-info"> </nav>
<h2>Server Info</h2> </section>
</div> <section id="main">
<div class="network-stats"> <div class="container">
<h2>Network Stats</h2> <div class="row">
</div> <div class="col-12">
<div class="tx-pool"> <section>
<h2>Transaction Pool</h2> <header class="major">
</div> <h2>Network Stats</h2>
<div class=""> </header>
<h2>Top Block</h2> <div class="row">
</div> <div class="col-3 col-6-medium col-12-small">
<div class=""> <section class="box">
<h2>Previous Block</h2> <header>
</div> <h3>Version</h3>
</header>
<p>{{ version }}</p>
</section>
</div>
<div class="col-3 col-6-medium col-12-small">
<section class="box">
<header>
<h3>Difficulty</h3>
</header>
<p>{{ difficulty }}</p>
</section>
</div>
<div class="col-3 col-6-medium col-12-small">
<section class="box">
<header>
<h3>Height</h3>
</header>
<p>{{ height }}</p>
</section>
</div>
<div class="col-3 col-6-medium col-12-small">
<section class="box">
<header>
<h3>Network</h3>
</header>
<p>{{ nettype }}</p>
</section>
</div>
</div>
<div class="row">
<div class="col-3 col-6-medium col-12-small">
<section class="box">
<header>
<h3>Transactions</h3>
</header>
<p>{{ tx_count }}</p>
</section>
</div>
<div class="col-3 col-6-medium col-12-small">
<section class="box">
<header>
<h3>Mempool Size</h3>
</header>
<p>{{ tx_pool_size }}</p>
</section>
</div>
<div class="col-3 col-6-medium col-12-small">
<section class="box">
<header>
<h3>Connections</h3>
</header>
<p>{{ incoming_connections_count }} in / {{ outgoing_connections_count }} out</p>
</section>
</div>
<div class="col-3 col-6-medium col-12-small">
<section class="box">
<header>
<h3>Status</h3>
</header>
<p>{{ status }}</p>
</section>
</div>
</div>
</section>
</div>
</div>
</div>
</section>
<section id="footer">
<div class="container">
<div class="row">
<div class="col-12">
<div id="copyright">
<ul class="links">
<li>Design: <a href="https://html5up.net" target=_blank>HTML5 UP</a></li>
<li>Source: <a href="https://github.com/lalanza808/monero-block-explorer" target=_blank>Github</a></li>
</ul>
</div>
</div>
</div>
</div>
</section>
</div>
<h1>get_info</h1>
<p>alt_blocks_count: {{ alt_blocks_count }}</p>
<p>block_size_limit: {{ block_size_limit }}</p>
<p>block_size_median: {{ block_size_median }}</p>
<p>block_weight_limit: {{ block_weight_limit }}</p>
<p>block_weight_median: {{ block_weight_median }}</p>
<p>bootstrap_daemon_address: {{ bootstrap_daemon_address }}</p>
<p>credits: {{ credits }}</p>
<p>cumulative_difficulty: {{ cumulative_difficulty }}</p>
<p>cumulative_difficulty_top64: {{ cumulative_difficulty_top64 }}</p>
<p>database_size: {{ database_size }}</p>
<p>difficulty: {{ difficulty }}</p>
<p>difficulty_top64: {{ difficulty_top64 }}</p>
<p>free_space: {{ free_space }}</p>
<p>grey_peerlist_size: {{ grey_peerlist_size }}</p>
<p>height: {{ height }}</p>
<p>height_without_bootstrap: {{ height_without_bootstrap }}</p>
<p>incoming_connections_count: {{ incoming_connections_count }}</p>
<p>mainnet: {{ mainnet }}</p>
<p>nettype: {{ nettype }}</p>
<p>offline: {{ offline }}</p>
<p>outgoing_connections_count: {{ outgoing_connections_count }}</p>
<p>rpc_connections_count: {{ rpc_connections_count }}</p>
<p>stagenet: {{ stagenet }}</p>
<p>start_time: {{ start_time }}</p>
<p>status: {{ status }}</p>
<p>target: {{ target }}</p>
<p>target_height: {{ target_height }}</p>
<p>testnet: {{ testnet }}</p>
<p>top_block_hash: {{ top_block_hash }}</p>
<p>top_hash: {{ top_hash }}</p>
<p>tx_count: {{ tx_count }}</p>
<p>tx_pool_size: {{ tx_pool_size }}</p>
<p>untrusted: {{ untrusted }}</p>
<p>update_available: {{ update_available }}</p>
<p>version: {{ version }}</p>
<p>was_bootstrap_ever_used: {{ was_bootstrap_ever_used }}</p>
<p>white_peerlist_size: {{ white_peerlist_size }}</p>
<p>wide_cumulative_difficulty: {{ wide_cumulative_difficulty }}</p>
<p>wide_difficulty: {{ wide_difficulty }}</p>
{% endblock content %} {% endblock content %}

Loading…
Cancel
Save