2
0
mirror of https://github.com/inventree/inventree-website.git synced 2025-06-13 02:25:31 +00:00

Add icons to landing page

This commit is contained in:
Oliver Walters
2023-01-02 23:34:04 +11:00
parent feeaa88c7d
commit 6f69c0d978
4 changed files with 22 additions and 10 deletions

View File

@ -5,7 +5,12 @@
{% assign stats = stats|default:site.data.general.stats.stats %}
{% for item in stats %}
<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">{{ item.number | intword }}</h2>
<h2 class="title-font font-medium sm:text-4xl text-3xl cm-gray-1">
{% if item.icon %}
<span class='{{ item.icon }}'></span>&nbsp;
{% endif %}
{{ item.number | intword }}
</h2>
<p class="leading-relaxed">{{ item.name }}</p>
</div>
{% endfor %}