From 3dc9fc52a7c515fb4755e9883806e5c80e291e6a Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Thu, 17 Feb 2022 17:17:26 +0530 Subject: [PATCH] style: reviews empty state --- school/lms/widgets/Reviews.html | 28 +++++++++++++++++----------- school/public/css/style.css | 20 ++++++++++++++++++++ school/public/icons/comment.svg | 6 ++++++ 3 files changed, 43 insertions(+), 11 deletions(-) create mode 100644 school/public/icons/comment.svg diff --git a/school/lms/widgets/Reviews.html b/school/lms/widgets/Reviews.html index cad9f736..bc785845 100644 --- a/school/lms/widgets/Reviews.html +++ b/school/lms/widgets/Reviews.html @@ -83,19 +83,25 @@ {% else %} -
- -
{{ _("Review the course") }}
-
{{ _("Help us improve our course material.") }}
- {% if is_eligible_to_review(course.name, membership) %} - +
+
+ +
+
+
{{ _("Review the course") }}
+
{{ _("Help us improve our course material.") }}
+
+
+ {% if is_eligible_to_review(course.name, membership) %} + {{ _("Write a review") }} - {% elif frappe.session.user == "Guest" %} - {{ _("Login") }} - {% elif not membership %} -
{{ _("Start Learning") }}
- {% endif %} + {% elif frappe.session.user == "Guest" %} + {{ _("Login") }} + {% elif not membership %} +
{{ _("Start Learning") }}
+ {% endif %} +
{% endif %}
diff --git a/school/public/css/style.css b/school/public/css/style.css index eb327077..6496c0c2 100644 --- a/school/public/css/style.css +++ b/school/public/css/style.css @@ -1263,6 +1263,26 @@ pre { padding: 2.5rem; } +.empty-state-new { + background: var(--gray-50); + border-radius: var(--border-radius-lg); + padding: 2rem; + display: flex; + justify-content: space-between; + align-items: center; +} + +.empty-state-text { + flex: 1; + margin-left: 1.25rem; +} + +.empty-state-heading { + font-size: var(--text-xl); + color: var(--gray-900); + font-weight: 600; +} + .vertically-center { display: flex; align-items: center; diff --git a/school/public/icons/comment.svg b/school/public/icons/comment.svg new file mode 100644 index 00000000..15db8abf --- /dev/null +++ b/school/public/icons/comment.svg @@ -0,0 +1,6 @@ + + + + + +