Skip to content

Commit

Permalink
Website refresh bugfixes (#1172)
Browse files Browse the repository at this point in the history
* Interchangable > Fungible.

* Remove market cap from homepage stats.

* Fix cirulating supply stats alignment.
  • Loading branch information
jholdstock authored May 22, 2024
1 parent f44bedb commit 54abc6e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 16 deletions.
5 changes: 0 additions & 5 deletions src/assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,6 @@ function drawStats(webinfo, priceinfo){
this.innerHTML = circulatingDcr.toLocaleString("en-US");
});

var circulatingUsd = Math.round(webinfo.circulatingsupply * priceinfo.decred_usd/1000000);
$('[data-stat-name="circulating-supply-usd"]').each(function(){
this.innerHTML = "USD " + circulatingUsd + "M";
});

// Total coins mined.

var mined = Math.round(100 * (webinfo.circulatingsupply / webinfo.ultimatesupply));
Expand Down
20 changes: 10 additions & 10 deletions src/layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,10 @@ <h1 class="stats-info-variable big-variable" data-stat-name="circulating-supply-
15,808,337
</h1>
</div>
<h1 class="stats-info-sub">
EQUIVALENT TO&nbsp;<span style="color: rgb(183, 183, 183);" data-stat-name="circulating-supply-usd">USD 240M</span>&nbsp;AT CURRENT PRICE<br>
COINS MINED <span style="color: rgb(183, 183, 183);" data-stat-name="coins-mined">88%</span>&nbsp;&nbsp;EMISSION <span style="color: rgb(183, 183, 183);" data-stat-name="coins-emission">+1%/YEAR</span>
</h1>
<div class="stats-info-sub">
<div class="d-block d-md-inline-block">COINS MINED <span style="color: rgb(183, 183, 183);" data-stat-name="coins-mined">88%</span></div>
<div class="d-block d-md-inline-block">EMISSION <span style="color: rgb(183, 183, 183);" data-stat-name="coins-emission">+1%/YEAR</span></div>
</div>
</div>
<div class="stats-node node-img-1"></div>
<div class="stats-info right">
Expand All @@ -176,7 +176,7 @@ <h1 class="stats-info-heading">TOTAL STAKED</h1>
<h1 class="stats-info-variable" data-stat-name="total-staked">62%</h1>
<h1 class="stats-info-heading ghost">TOTAL<br>STAKED</h1>
</div>
<h1 class="stats-info-sub">Staking is completely self-custodial</h1>
<div class="stats-info-sub">Staking is completely self-custodial</div>
</div>
<div class="stats-node node-img-2"></div>
<div class="stats-info">
Expand All @@ -191,9 +191,9 @@ <h1 class="stats-info-variable" data-stat-name="treasury-dcr">
786K
</h1>
</div>
<h1 class="stats-info-sub">
<div class="stats-info-sub">
EQUAL TO <span style="color: rgb(183, 183, 183);" data-stat-name="treasury-usd"></span> SELF-FUNDED FROM <span style="color: rgb(183, 183, 183);">10%</span> OF THE BLOCK REWARD
</h1>
</div>
</div>
<div class="stats-node node-img-3"></div>
<div class="stats-info right">
Expand All @@ -202,7 +202,7 @@ <h1 class="stats-info-heading">STAKE REWARD</h1>
<h1 class="stats-info-variable" data-stat-name="stake-reward">7%APY</h1>
<h1 class="stats-info-heading ghost">STAKE<br>REWARD</h1>
</div>
<h1 class="stats-info-sub">GET REWARDED FOR STAKING AND VOTING</h1>
<div class="stats-info-sub">GET REWARDED FOR STAKING AND VOTING</div>
</div>
<div class="stats-node node-img-4"></div>
<div class="stats-info">
Expand All @@ -211,9 +211,9 @@ <h1 class="stats-info-heading">BLOCK REWARD REDUCTION IN</h1>
<h1 class="stats-info-heading ghost">BLOCK REWARD<br>REDUCTION IN</h1>
<h1 class="stats-info-variable" data-stat-name="reward-reduction-days">20 DAYS</h1>
</div>
<h1 class="stats-info-sub">
<div class="stats-info-sub">
BLOCK REWARD REDUCES BY <span style="color: rgb(183, 183, 183);">1%</span> EVERY <span style="color: rgb(183, 183, 183);">21 DAYS</span>
</h1>
</div>
</div>
</div>

Expand Down
2 changes: 1 addition & 1 deletion transifex_catalogs/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"landing_feature3": "Treasury",
"landing_feature4": "Proposals",
"landing_feature5": "Security",
"landing_feature6": "Interchangable",
"landing_feature6": "Fungible",
"landing_feature7": "Lightning",
"landing_feature8": "DEX",
"landing_why_title": "Why Decred?",
Expand Down

0 comments on commit 54abc6e

Please sign in to comment.