Skip to content

Commit

Permalink
update griddd stats
Browse files Browse the repository at this point in the history
  • Loading branch information
ehab-hassan committed Dec 18, 2024
1 parent b0b8436 commit da3ac09
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion static/js/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ async function getStats() {
function formatStatsData(stats) {
let items = document.querySelector(".items");
items.classList.remove("animate-pulse");
document.getElementById("capacity").innerHTML = stats.capacity;
document.getElementById("ssd").innerHTML = stats.ssd;
document.getElementById("nodes").innerHTML = stats.nodes;
document.getElementById("countries").innerHTML = stats.countries;
document.getElementById("cores").innerHTML = stats.cores
Expand Down
8 changes: 4 additions & 4 deletions templates/partials/home/grid_stats.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ <h2 class="fade-in text-balance lg:text-5xl text-4xl font-normal tracking-tight
<p class="mx-auto mt-6 max-w-3xl text-pretty lg:text-xl text-lg font-light text-gray-200 fade-in">Version 3.15 is live on Mainnet.</p>
</div>
<dl class="items mt-16 grid grid-cols-1 gap-2 overflow-hidden rounded-2xl text-center sm:grid-cols-2 lg:grid-cols-4">
<!-- capacity -->
<!-- ssd -->
<div class="fade-in flex flex-col justify-center items-center bg-white/5 p-6">
<div class="tooltip">
<span class="tooltiptext">The total amount of storage (SSD, HDD, & RAM) on the grid. 1 petabyte equals roughly 1 million gigabytes.</span>
<dt class="text-sm/6 font-light text-gray-300">CAPACITY</dt>
<dd id="capacity" class="order-first text-3xl font-semibold tracking-tight text-white"></dd>
<dt class="text-sm/6 font-light text-gray-300">SSD CAPACITY</dt>
<dd id="ssd" class="order-first text-3xl font-semibold tracking-tight text-white"></dd>
</div>
</div>
<!-- cores -->
Expand Down Expand Up @@ -54,7 +54,7 @@ <h2 class="fade-in text-balance lg:text-5xl text-4xl font-normal tracking-tight
<script>
document.addEventListener('DOMContentLoaded', function () {
// Initialize the countUp for each of the numbers
new CountUp('capacity', 0, 1910, 0, 2.5).start();
new CountUp('ssd', 0, 1910, 0, 2.5).start();
new CountUp('cores', 0, 46934, 0, 2.5).start();
new CountUp('nodes', 0, 1596, 0, 2.5).start();
new CountUp('countries', 0, 40, 0, 2.5).start();
Expand Down

0 comments on commit da3ac09

Please sign in to comment.