2
0
mirror of https://github.com/inventree/inventree-website.git synced 2025-06-12 01:55:37 +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

@ -8,6 +8,9 @@
<script src="{{ '/assets/splide/js/splide.min.js' | relative_url }}"></script>
<!-- Fontawesome integration -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css">
<title>{{ site.title }}{% if page.title %} - {{ page.title }}{% endif %}</title>
<meta itemprop="description" name="description"
content="{% if page.description %}{{ page.description | truncate: 160 }}{% else %}{{ site.description | truncate: 160 }}{% endif %}" />

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 %}