parent
2196450faa
commit
dd4b334aff
@ -1,2 +1,2 @@ |
|||||||
@import url('https://fonts.googleapis.com/css?family=Nunito'); |
@import url('https://fonts.googleapis.com/css?family=Nunito:200,300,400,600,700'); |
||||||
@import url('https://fonts.googleapis.com/css?family=Roboto'); |
@import url('https://fonts.googleapis.com/css?family=Roboto'); |
||||||
|
@ -1,108 +1,57 @@ |
|||||||
<div class="dashboard-banner"> |
<div class="dashboard-container"> |
||||||
<div class="dashboard-banner-chart"> |
<div class="container"> |
||||||
<canvas data-chart="marketHistoryChart" data-current_exchange_rate ='<%= @exchange_rate.usd_value %>' data-available_supply='<%= @exchange_rate.available_supply %>' data-market_history_data='<%=raw encode_market_history_data(@market_history_data) %>' width="400" height="80"></canvas> |
<div class="dashboard-banner"> |
||||||
</div> |
<div class="dashboard-banner-chart"> |
||||||
<div class="dashboard-banner-chart-legend"> |
<canvas data-chart="marketHistoryChart" data-current_exchange_rate ='<%= @exchange_rate.usd_value %>' data-available_supply='<%= @exchange_rate.available_supply %>' data-market_history_data='<%=raw encode_market_history_data(@market_history_data) %>' width="350" height="152"></canvas> |
||||||
<div class="dashboard-banner-chart-legend-item"> |
</div> |
||||||
<span class="dashboard-banner-chart-legend-label"> |
<div class="dashboard-banner-chart-legend"> |
||||||
Price |
<div class="dashboard-banner-chart-legend-item"> |
||||||
</span> |
<span class="dashboard-banner-chart-legend-label"> |
||||||
<span class="dashboard-banner-chart-legend-value"> |
Price |
||||||
$0.0498 USD |
</span> |
||||||
</span> |
<span class="dashboard-banner-chart-legend-value"> |
||||||
</div> |
$0.0498 USD |
||||||
<div class="dashboard-banner-chart-legend-item"> |
</span> |
||||||
<span class="dashboard-banner-chart-legend-label"> |
|
||||||
Market cap |
|
||||||
</span> |
|
||||||
<span class="dashboard-banner-chart-legend-value"> |
|
||||||
$100,350,800 USD |
|
||||||
</span> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
<div class="dashboard-banner-network-stats"> |
|
||||||
<div class="dashboard-banner-network-stats-item"> |
|
||||||
<span class="dashboard-banner-network-stats-label"> |
|
||||||
Block time |
|
||||||
</span> |
|
||||||
<span class="dashboard-banner-network-stats-value"> |
|
||||||
69.2105s |
|
||||||
</span> |
|
||||||
</div> |
|
||||||
<div class="dashboard-banner-network-stats-item"> |
|
||||||
<span class="dashboard-banner-network-stats-label"> |
|
||||||
Total transactions |
|
||||||
</span> |
|
||||||
<span class="dashboard-banner-network-stats-value"> |
|
||||||
12,106,123 |
|
||||||
</span> |
|
||||||
</div> |
|
||||||
<div class="dashboard-banner-network-stats-item"> |
|
||||||
<span class="dashboard-banner-network-stats-label"> |
|
||||||
Wallet addresses |
|
||||||
</span> |
|
||||||
<span class="dashboard-banner-network-stats-value"> |
|
||||||
1,400,500 |
|
||||||
</span> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
|
|
||||||
<section class="container-fluid"> |
|
||||||
<%= render ExplorerWeb.ChainView, "_blocks.html", assigns %> |
|
||||||
<%= render ExplorerWeb.ChainView, "_transactions.html", assigns %> |
|
||||||
|
|
||||||
<div class="d-flex flex-md-row flex-column"> |
|
||||||
<div class="container__stats card mr-sm-4 mb-4 mb-sm-0"> |
|
||||||
<div class="card-body d-flex flex-md-column justify-content-around"> |
|
||||||
<div class="d-flex flex-column justify-content-center align-items-center"> |
|
||||||
<%= render ExplorerWeb.IconsView, "_block_icon.html", assigns %> |
|
||||||
<div><%= gettext("Block") %></div> |
|
||||||
<div> #<%= @chain.number %></div> |
|
||||||
</div> |
</div> |
||||||
<div class="d-flex flex-column justify-content-center align-items-center"> |
<div class="dashboard-banner-chart-legend-item"> |
||||||
<%= render ExplorerWeb.IconsView, "_hourglass_icon.html", assigns %> |
<span class="dashboard-banner-chart-legend-label"> |
||||||
<div> <%= gettext("Last Block") %></div> |
Market cap |
||||||
<div data-from-now="<%= @chain.timestamp %>"></div> |
</span> |
||||||
|
<span class="dashboard-banner-chart-legend-value"> |
||||||
|
$100,350,800 USD |
||||||
|
</span> |
||||||
</div> |
</div> |
||||||
<div class="d-flex flex-column justify-content-center align-items-center"> |
</div> |
||||||
<div class="stroke"> <%= render ExplorerWeb.IconsView, "_guage_icon.html", assigns %> </div> |
<div class="dashboard-banner-network-stats"> |
||||||
<div><%= gettext("Avg Block Time") %></div> |
<div class="dashboard-banner-network-stats-item"> |
||||||
<%= @chain.average_time |> Timex.format_duration(:humanized) %> |
<span class="dashboard-banner-network-stats-label"> |
||||||
|
Block time |
||||||
|
</span> |
||||||
|
<span class="dashboard-banner-network-stats-value"> |
||||||
|
69.2105s |
||||||
|
</span> |
||||||
</div> |
</div> |
||||||
<div class="d-flex flex-column justify-content-center align-items-center"> |
<div class="dashboard-banner-network-stats-item"> |
||||||
<%= render ExplorerWeb.IconsView, "_transaction_icon.html", assigns %> |
<span class="dashboard-banner-network-stats-label"> |
||||||
<div> <%= gettext("TPM") %></div> |
Total transactions |
||||||
<div> <%= @chain.transaction_velocity |> Cldr.Number.to_string! %></div> |
</span> |
||||||
|
<span class="dashboard-banner-network-stats-value"> |
||||||
|
12,106,123 |
||||||
|
</span> |
||||||
</div> |
</div> |
||||||
</div> |
<div class="dashboard-banner-network-stats-item"> |
||||||
</div> |
<span class="dashboard-banner-network-stats-label"> |
||||||
|
Wallet addresses |
||||||
<div class="container__graph card"> |
</span> |
||||||
<div class="card-body"> |
<span class="dashboard-banner-network-stats-value"> |
||||||
|
1,400,500 |
||||||
<div class="d-flex justify-content-sm-around mt-2 text-muted"> |
</span> |
||||||
<div> |
|
||||||
<div class="graph__squares graph__squares--price"></div> |
|
||||||
<%= gettext "Price" %> </br> |
|
||||||
<%= format_exchange_rate(@exchange_rate) %> |
|
||||||
</div> |
|
||||||
<div class="mx-2"> |
|
||||||
<div class="graph__squares graph__squares--mcap"></div> |
|
||||||
<%= gettext "Market Cap" %> </br> |
|
||||||
<%= format_market_cap(@exchange_rate) %> |
|
||||||
</div> |
|
||||||
<div> |
|
||||||
<%= gettext "24h Volume" %> </br> |
|
||||||
<%= format_volume_24h(@exchange_rate) %> |
|
||||||
</div> |
|
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
|
</div> |
||||||
<div class="row my-4"> |
<section class="container"> |
||||||
|
<%= render ExplorerWeb.ChainView, "_blocks.html", assigns %> |
||||||
|
<%= render ExplorerWeb.ChainView, "_transactions.html", assigns %> |
||||||
</div> |
|
||||||
</section> |
</section> |
||||||
|
Loading…
Reference in new issue