From c9a6c2948e417aa159eaf4298692e26865255140 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Wed, 29 Jun 2022 16:05:18 +0530 Subject: [PATCH] fix: new design for testimonial cards --- .../course_cards/course_cards.html | 2 +- .../multiple_testimonials.html | 49 ++++++++++++------- lms/public/css/style.css | 13 +++-- lms/public/icons/symbol-defs.svg | 4 ++ 4 files changed, 47 insertions(+), 21 deletions(-) diff --git a/lms/lms/web_template/course_cards/course_cards.html b/lms/lms/web_template/course_cards/course_cards.html index 73749156..776da9ea 100644 --- a/lms/lms/web_template/course_cards/course_cards.html +++ b/lms/lms/web_template/course_cards/course_cards.html @@ -1,6 +1,6 @@
{% include "public/icons/symbol-defs.svg" %} -

{{ _(title) }}

+

{{ _(title) }}

{% if subtitle %}

{{ _(subtitle) }}

{% endif %} diff --git a/lms/lms/web_template/multiple_testimonials/multiple_testimonials.html b/lms/lms/web_template/multiple_testimonials/multiple_testimonials.html index db408d92..da6d6faa 100644 --- a/lms/lms/web_template/multiple_testimonials/multiple_testimonials.html +++ b/lms/lms/web_template/multiple_testimonials/multiple_testimonials.html @@ -11,25 +11,40 @@ {% for testimonial_row in testimonials_table %} {% set review = frappe.db.get_value("LMS Course Review", testimonial_row.testimonials, ["owner", "review"], as_dict=True) %} {% set member = frappe.db.get_value("User", review.owner, ["name", "username", "full_name", "user_image", "headline"], as_dict=True) %} - - - - Previous - - - - Next - +
diff --git a/lms/public/css/style.css b/lms/public/css/style.css index d376a2ad..63bfd1f5 100644 --- a/lms/public/css/style.css +++ b/lms/public/css/style.css @@ -945,8 +945,7 @@ pre { .testimonial-card { flex-direction: column; - justify-content: space-between; - padding: 1rem; + padding: 2rem; height: 100%; } @@ -961,6 +960,14 @@ pre { margin-bottom: 2rem; } +.testimonial-footer { + display: flex; + align-items: center; + border-top: 1px solid var(--gray-200); + padding-top: 2rem; + margin-top: auto; +} + .testimonial-profession { font-size: 0.625rem; } @@ -986,7 +993,7 @@ pre { .carousel-control-prev, .carousel-control-next { width: auto; - top: 30%; + top: 40%; height: fit-content; background: white; border-radius: 50%; diff --git a/lms/public/icons/symbol-defs.svg b/lms/public/icons/symbol-defs.svg index 25b54d1e..17af9ab2 100644 --- a/lms/public/icons/symbol-defs.svg +++ b/lms/public/icons/symbol-defs.svg @@ -60,4 +60,8 @@ + + + +