small-stats-2.html 938 B

1234567891011121314151617181920212223242526
  1. {% assign icon = include.icon | default: "user" %}
  2. {% if include.growth > 0 %}
  3. {% assign color="green" %}
  4. {% assign arrow="arrow-up" %}
  5. {% elsif include.growth < 0 %}
  6. {% assign color="red" %}
  7. {% assign arrow="arrow-down" %}
  8. {% else %}
  9. {% assign color="grey" %}
  10. {% assign arrow="clock" %}
  11. {% endif %}
  12. <div class="card" data-color={{color}}>
  13. <div class="card-body">
  14. <div class="float-right avatar{% if include.color %} bg-{{ include.color }}{% if include.light %}-lt{% else %} text-white{% endif %}{% endif %}">
  15. {% include ui/icon.html icon=icon %}
  16. </div>
  17. <div class="text-secondary fw-normal mt-0">{{ include.title | default: 'Customers' }}</div>
  18. <h3 class="h2 mt-2 mb-3">{{ include.count | default: "1,850" }}</h3>
  19. <p class="mb-0 text-secondary">
  20. {% include ui/trending.html value=include.growth %}
  21. <span class="text-nowrap">{{ include.description | default: 'Since last month' }}</span>
  22. </p>
  23. </div>
  24. </div>