edi dark
This commit is contained in:
72
templates/partials/simple_stats.html
Normal file
72
templates/partials/simple_stats.html
Normal file
@@ -0,0 +1,72 @@
|
||||
<div class="bg-transparent py-24 sm:py-32">
|
||||
<div class="mx-auto max-w-7xl px-6 lg:px-8">
|
||||
<div class="mx-auto max-w-2xl lg:max-w-none">
|
||||
<div class="text-center">
|
||||
<h2 class="fade-in text-balance text-4xl font-normal tracking-tight text-white sm:text-5xl">Proven by a Global Community</h2>
|
||||
<p class="fade-in mt-4 max-w-4xl mx-auto text-lg/8 font-light text-gray-300">With ThreeFold, individuals, organizations, communities, countries, and network states deploy their own sovereign infrastructure. The ThreeFold Grid has been live and operational since 2017.</p>
|
||||
<p class="fade-in mt-4 max-w-4xl mx-auto text-lg/8 font-medium text-gray-300">Version 3.14 is live on Mainnet.</p>
|
||||
</div>
|
||||
<dl class="mt-16 grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-6 lg:gap-8 overflow-hidden rounded-2xl text-center">
|
||||
<div class="fade-in flex flex-col bg-white/5 p-8 rounded-lg">
|
||||
<dt class="text-sm/6 mt-1 font-light text-gray-300">CAPACITY</dt>
|
||||
<dd class="order-first text-3xl font-semibold tracking-tight text-white" id="capacity">19,10 PB</dd>
|
||||
</div>
|
||||
<div class="fade-in flex flex-col bg-white/5 p-8 rounded-lg">
|
||||
<dt class="text-sm/6 font-light mt-1 text-gray-300">CORES</dt>
|
||||
<dd class="order-first text-3xl font-semibold tracking-tight text-white" id="cores">46,934</dd>
|
||||
</div>
|
||||
<div class="fade-in flex flex-col bg-white/5 p-8 rounded-lg">
|
||||
<dt class="text-sm/6 font-light mt-1 text-gray-300">NODES</dt>
|
||||
<dd class="order-first text-3xl font-semibold tracking-tight text-white" id="nodes">1596</dd>
|
||||
</div>
|
||||
<div class="fade-in flex flex-col bg-white/5 p-8 rounded-lg">
|
||||
<dt class="text-sm/6 font-light mt-1 text-gray-300">COUNTRIES</dt>
|
||||
<dd class="order-first text-3xl font-semibold tracking-tight text-white" id="countries">40+</dd>
|
||||
</div>
|
||||
<div class="fade-in flex flex-col bg-white/5 p-8 rounded-lg">
|
||||
<dt class="text-sm/6 font-light mt-1 text-gray-300">FARMS</dt>
|
||||
<dd class="order-first text-3xl font-semibold tracking-tight text-white" id="farms">900+</dd>
|
||||
</div>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
// Initialize the countUp for each of the numbers
|
||||
new CountUp('capacity', 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();
|
||||
new CountUp('farms', 0, 900, 0, 2.5).start();
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<style>
|
||||
/* Define the fade-in animation */
|
||||
@keyframes fadeIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
/* Apply the fade-in animation to elements with the 'fade-in' class */
|
||||
.fade-in {
|
||||
animation: fadeIn 20s ease-in-out forwards; /* Adjust the duration (2s) to make it slower or faster */
|
||||
}
|
||||
|
||||
/* Optional: Delay the animation for a more staggered effect */
|
||||
h2 {
|
||||
animation-delay: 0.5s; /* Delay for header */
|
||||
}
|
||||
|
||||
p {
|
||||
animation-delay: 1s; /* Delay for paragraphs */
|
||||
}
|
||||
</style>
|
||||
|
Reference in New Issue
Block a user