diff --git a/school/community/web_template/multiple_testimonials/__init__.py b/school/community/web_template/multiple_testimonials/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/school/community/web_template/multiple_testimonials/multiple_testimonials.html b/school/community/web_template/multiple_testimonials/multiple_testimonials.html new file mode 100644 index 00000000..9d9ed1bf --- /dev/null +++ b/school/community/web_template/multiple_testimonials/multiple_testimonials.html @@ -0,0 +1,61 @@ +
{{ _(title) }}
+ + diff --git a/school/community/web_template/multiple_testimonials/multiple_testimonials.json b/school/community/web_template/multiple_testimonials/multiple_testimonials.json new file mode 100644 index 00000000..5d4db8f0 --- /dev/null +++ b/school/community/web_template/multiple_testimonials/multiple_testimonials.json @@ -0,0 +1,42 @@ +{ + "__unsaved": 1, + "creation": "2021-11-16 15:22:21.788234", + "docstatus": 0, + "doctype": "Web Template", + "fields": [ + { + "__islocal": 1, + "__unsaved": 1, + "fieldname": "title", + "fieldtype": "Data", + "label": "Title", + "reqd": 0 + }, + { + "__islocal": 1, + "__unsaved": 1, + "fieldname": "testimonials_table", + "fieldtype": "Table Break", + "label": "Testimonials", + "reqd": 0 + }, + { + "__islocal": 1, + "__unsaved": 1, + "fieldname": "testimonials", + "fieldtype": "Link", + "label": "Testimonials", + "options": "LMS Course Review", + "reqd": 0 + } + ], + "idx": 0, + "modified": "2021-11-16 17:17:49.089989", + "modified_by": "Administrator", + "module": "Community", + "name": "Multiple Testimonials", + "owner": "Administrator", + "standard": 1, + "template": "", + "type": "Section" +} \ No newline at end of file diff --git a/school/lms/doctype/lms_course_review/lms_course_review.json b/school/lms/doctype/lms_course_review/lms_course_review.json index 09c168ac..c65b9a65 100644 --- a/school/lms/doctype/lms_course_review/lms_course_review.json +++ b/school/lms/doctype/lms_course_review/lms_course_review.json @@ -33,7 +33,7 @@ ], "index_web_pages_for_search": 1, "links": [], - "modified": "2021-08-31 12:37:23.832131", + "modified": "2021-11-16 17:23:50.697891", "modified_by": "Administrator", "module": "LMS", "name": "LMS Course Review", @@ -52,7 +52,9 @@ "write": 1 } ], + "search_fields": "course", "sort_field": "modified", "sort_order": "DESC", + "title_field": "course", "track_changes": 1 } \ No newline at end of file diff --git a/school/lms/web_template/course_cards/course_cards.html b/school/lms/web_template/course_cards/course_cards.html index 16ef3012..e65a8efb 100644 --- a/school/lms/web_template/course_cards/course_cards.html +++ b/school/lms/web_template/course_cards/course_cards.html @@ -6,7 +6,7 @@ {{ widgets.CourseCard(course=course, read_only=False) }} {% endfor %} - +
Explore More
diff --git a/school/public/css/style.css b/school/public/css/style.css index 0f9fa6af..4828614a 100644 --- a/school/public/css/style.css +++ b/school/public/css/style.css @@ -8,6 +8,7 @@ --text-xl: 18px; --text-2xl: 20px; --text-3xl: 22px; + --text-4xl: 44px; --navbar-shadow: 0px 1px 8px rgba(0, 0, 0, 0.08) } @@ -751,6 +752,11 @@ input[type=checkbox] { } } +.avatar-testimonial { + width: 48px; + height: 48px; +} + .description-card { padding: 1.5rem; flex-direction: column; @@ -1381,3 +1387,70 @@ pre { text-indent: 1.5rem; background-position: 1rem 0.65rem; } + +.section-heading { + font-size: var(--text-4xl); +} + +.testimonial-card { + flex-direction: column; + padding: 1rem 1rem 2rem; + height: 100%; +} + +.testimonial-author { + font-weight: 500; + font-size: 18px; + line-height: 150%; + color: var(--text-color-dark); +} + +.testimonial-review { + color: var(--text-color-dark); +} + +.testimonial-profession { + font-size: 0.625rem; +} + +.carousel-indicators li { + background-color: var(--gray-600); + width: 10px; + height: 10px; + border-radius: 50%; +} + +.carousel-control-prev-icon { + background-image: url("/assets/school/icons/slider-arrow-left.svg"); + width: 40px; + height: 40px; +} + +.carousel-control-next-icon { + background-image: url("/assets/school/icons/slider-arrow-right.svg"); + width: 40px; + height: 40px; +} + +.carousel-control-prev, .carousel-control-next { + position: inherit; + width: auto; +} + +.carousel-indicators { + position: inherit; + margin: 0; +} + +.slider-controls { + display: flex; + align-items: center; + justify-content: center; + width: 100%; + margin: 40px auto 0; +} + +.carousel-indicators li { + border: none; + margin: 0 6px; +} diff --git a/school/public/dist/js/website.bundle.HL5DXFIV.js b/school/public/dist/js/website.bundle.HL5DXFIV.js deleted file mode 100644 index 1473663d..00000000 --- a/school/public/dist/js/website.bundle.HL5DXFIV.js +++ /dev/null @@ -1,10 +0,0 @@ -(() => { - // ../community/community/public/js/profile.js - frappe.ready(() => { - if (frappe.session.user == "Guest") { - var link_array = $(".nav-link").filter((i, elem) => $(elem).text().trim() === "My Profile"); - link_array.length && $(link_array[0]).addClass("hide"); - } - }); -})(); -//# sourceMappingURL=website.bundle.HL5DXFIV.js.map diff --git a/school/public/dist/js/website.bundle.HL5DXFIV.js.map b/school/public/dist/js/website.bundle.HL5DXFIV.js.map deleted file mode 100644 index 8d3ffdcc..00000000 --- a/school/public/dist/js/website.bundle.HL5DXFIV.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../../../../../apps/community/community/public/js/profile.js"], - "sourcesContent": ["frappe.ready(() => {\n if (frappe.session.user == \"Guest\") {\n var link_array = $('.nav-link').filter((i, elem) => $(elem).text().trim() === \"My Profile\");\n link_array.length && $(link_array[0]).addClass(\"hide\");\n }\n})\n"], - "mappings": ";;AAAA,SAAO,MAAM,MAAM;AACjB,QAAI,OAAO,QAAQ,QAAQ,SAAS;AAClC,UAAI,aAAa,EAAE,aAAa,OAAO,CAAC,GAAG,SAAS,EAAE,MAAM,OAAO,WAAW;AAC9E,iBAAW,UAAU,EAAE,WAAW,IAAI,SAAS;AAAA;AAAA;", - "names": [] -} diff --git a/school/public/icons/slider-arrow-left.svg b/school/public/icons/slider-arrow-left.svg new file mode 100644 index 00000000..45fc33c9 --- /dev/null +++ b/school/public/icons/slider-arrow-left.svg @@ -0,0 +1,3 @@ + + + diff --git a/school/public/icons/slider-arrow-right.svg b/school/public/icons/slider-arrow-right.svg new file mode 100644 index 00000000..58cf6311 --- /dev/null +++ b/school/public/icons/slider-arrow-right.svg @@ -0,0 +1,3 @@ + + +