empty.html 1.1 KB

1234567891011121314151617181920212223
  1. {% assign icon = include.icon | default: "mood-sad" %}
  2. <div class="empty{% if include.bordered %} empty-bordered{% endif %}{% if include.class %} {{ include.class }}{% endif %}">
  3. {% if include.illustration %}
  4. {% assign illustration = include.illustration | default: 'boy-girl.svg' %}
  5. <div class="empty-img">{% include "ui/illustration.html" image=illustration height="256" %}</div>
  6. {% elsif include.icon-text %}
  7. <div class="empty-header">{{ include.icon-text }}</div>
  8. {% else %}
  9. <div class="empty-icon">{% include "ui/icon.html" icon=icon %}</div>
  10. {% endif %}
  11. <p class="empty-title">{{ include.title | default: "No results found" }}</p>
  12. <p class="empty-subtitle text-secondary">
  13. {{ include.subtitle | default: "Try adjusting your search or filter to find what you're looking for." }}
  14. </p>
  15. <div class="empty-action">
  16. {% assign button-text = include.button-text | default: "Search again" %}
  17. {% assign button-icon = include.button-icon | default: "search" %}
  18. {% include "ui/button.html" text=button-text color="primary" icon=button-icon href="." %}
  19. </div>
  20. </div>