fix: empty states redesign and misc changes

This commit is contained in:
Jannat Patel
2022-02-24 12:40:13 +05:30
parent b5d870d885
commit bcd80b616d
8 changed files with 57 additions and 38 deletions

View File

@@ -9,11 +9,15 @@
<div class="course-home-headings">{{ _("Community") }} </div>
<div class="alert alert-dismissible empty-state text-center hide" id="search-empty-state">
<div class="empty-state-new alert alert-dismissible hide" id="search-empty-state">
<a href="#" class="close-search-empty-state" aria-label="close">&times;</a>
<img class="icon icon-xl" src="/assets/frappe/images/ui-states/search-empty-state.svg">
<div class="course-home-headings mt-4 mb-0" style="color: inherit;"> {{ _("No results found") }} </div>
<div class="small mb-6"> {{ _("Try some other keyword or explore our community") }} </div>
<div>
<img class="icon icon-xl" src="/assets/frappe/images/ui-states/search-empty-state.svg">
</div>
<div class="empty-state-text">
<div class="empty-state-heading">{{ _("No results found") }}</div>
<div class="course-meta">{{ _("Try some other keyword or explore our community") }}</div>
</div>
</div>
<div class="member-parent">

View File

@@ -40,13 +40,20 @@
</div>
</div>
{% else %}
<div class="empty-state text-center">
<img class="icon icon-xl" src="/assets/frappe/icons/timeless/message.svg">
<div class="course-home-headings mt-4 mb-0" style="color: inherit;"> {{ _("No open jobs") }} </div>
<div class="small mb-6"> {{ _("There are no job openings at present.") }} </div>
{% if allow_posting %}
<a class="button is-secondary dark-links m-auto" href="/job-opportunity?new=1">{{ _("Post a Job") }}</a>
{% endif %}
<div class="empty-state-new">
<div>
<img class="icon icon-xl" src="/assets/school/icons/comment.svg">
</div>
<div class="empty-state-text">
<div class="empty-state-heading">{{ _("No open jobs") }}</div>
<div class="course-meta">{{ _("There are no job openings at present.") }}</div>
</div>
<div>
{% if allow_posting %}
<a class="button is-secondary dark-links m-auto" href="/job-opportunity?new=1">{{ _("Post a Job") }}</a>
{% endif %}
</div>
</div>
{% endif %}
</div>