Skip to content

Commit

Permalink
Added total supply to home page
Browse files Browse the repository at this point in the history
  • Loading branch information
mxaddict committed Aug 19, 2022
1 parent 5d469a7 commit 6e0257c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions assets/css/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ p {
color: #0a87f5;
}

.font-roboto {
font-family: 'Roboto', sans-serif;
}

.nav-animated-bg {
background: linear-gradient(75deg,#dc1eb9,#0a87f5);
background-size: 400% 400%;
Expand Down
1 change: 1 addition & 0 deletions assets/js/page/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ class PageHome {
$('#public-supply').html(NumberFormat.format(response.data.publicSupply, false) + ' Nav');
$('#private-supply').html(NumberFormat.format(response.data.privateSupply, false) + ' xNav');
$('#wrapped-supply').html(NumberFormat.format(response.data.wrappedSupply, false) + ' wNav');
$('#total-supply').html(NumberFormat.format(response.data.circulatingSupply, false) + ' Nav');
});
}

Expand Down
2 changes: 1 addition & 1 deletion templates/home/components/hud.html.twig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="row">
<div class="col-12 col-xs-12 col-sm-12 col-md-4 col-lg-4 margin-top">
<h2>Nav in Circulation</h2>
<h2>Nav in Circulation <span class="pr-2 float-right font-roboto" id="total-supply">{{ loaderDots('sm') }}</span></h2>
<table class="table table-striped table-nav">
<tr>
<th>Public</th>
Expand Down

0 comments on commit 6e0257c

Please sign in to comment.