2
0
mirror of https://github.com/inventree/inventree-website.git synced 2025-04-28 13:36:47 +00:00

add stats

This commit is contained in:
Matthias Mair 2021-11-07 20:44:27 +01:00
parent ddd12b4970
commit 0ad6ca7415
3 changed files with 33 additions and 0 deletions

9
home/_data/stats.yml Normal file
View File

@ -0,0 +1,9 @@
stats:
- name: Docker pulls
number: 500K+
- name: GitHub Stars
number: 425
- name: Contributors
number: 29
- name: Lines of Code
number: 72K+

22
home/_includes/stats.html Normal file
View File

@ -0,0 +1,22 @@
<section class="cm-gray-2 body-font">
<div class="container px-5 py-24 mx-auto">
<div class="flex flex-wrap -m-4 text-center">
<div class="p-4 sm:w-1/4 w-1/2">
<h2 class="title-font font-medium sm:text-4xl text-3xl cm-gray-1">2.7K</h2>
<p class="leading-relaxed">Users</p>
</div>
<div class="p-4 sm:w-1/4 w-1/2">
<h2 class="title-font font-medium sm:text-4xl text-3xl cm-gray-1">1.8K</h2>
<p class="leading-relaxed">Subscribes</p>
</div>
<div class="p-4 sm:w-1/4 w-1/2">
<h2 class="title-font font-medium sm:text-4xl text-3xl cm-gray-1">35</h2>
<p class="leading-relaxed">Downloads</p>
</div>
<div class="p-4 sm:w-1/4 w-1/2">
<h2 class="title-font font-medium sm:text-4xl text-3xl cm-gray-1">4</h2>
<p class="leading-relaxed">Products</p>
</div>
</div>
</div>
</section>

View File

@ -16,6 +16,8 @@ backLink: false
{% assign for_e = site.data.for_edu %} {% assign for_e = site.data.for_edu %}
{% include features.html data=for_e %} {% include features.html data=for_e %}
{% assign stats = site.data.stats %}
{% include stats.html data=stats %}
{% assign end = site.data.end_cta %} {% assign end = site.data.end_cta %}
{% include cta.html cta=end %} {% include cta.html cta=end %}