Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Website refresh bugfixes #1172

Merged
merged 3 commits into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading