diff --git a/school/lms/widgets/CourseOutline.html b/school/lms/widgets/CourseOutline.html index b5a8bb8e..1cb38938 100644 --- a/school/lms/widgets/CourseOutline.html +++ b/school/lms/widgets/CourseOutline.html @@ -29,7 +29,7 @@ {% if membership or lesson.include_in_preview %} - + {{ lesson.title }} diff --git a/school/public/css/style.css b/school/public/css/style.css index 1986242f..8907623a 100644 --- a/school/public/css/style.css +++ b/school/public/css/style.css @@ -76,6 +76,7 @@ input[type=checkbox] { padding-bottom: 5rem; min-height: 60vh; padding-top: 3rem; + background-color: var(--bg-color); } .common-card-style { @@ -107,9 +108,11 @@ input[type=checkbox] { margin-bottom: 0.5rem; } -.course-card-meta .icon { +.icon { margin: 0; margin-right: 0.25rem; + fill: none; + stroke: none; } .course-card-content { @@ -277,9 +280,17 @@ input[type=checkbox] { font-size: var(--text-base); } +@media (max-width: 1000px) { + .course-card-wide { + width: 75%; + margin: 0 auto; + } +} + @media (max-width: 768px) { .course-card-wide { width: 100%; + margin: 0; } } @@ -361,11 +372,15 @@ input[type=checkbox] { margin: 5rem 0 4rem; } +.course-home-page { + background-color: #FFFFFF; + padding-top: 3.75rem; +} + .chapter-title { - font-weight: 500; cursor: pointer; border-radius: var(--border-radius-lg); - padding: 0.55rem 0; + padding: 0.5rem 0; color: var(--gray-900); display: flex; align-items: center; @@ -388,10 +403,6 @@ input[type=checkbox] { color: var(--gray-900); } -.course-description-section { - margin-top: 3.75rem; -} - .lesson-info { font-size: 16px; color: var(--gray-900); @@ -412,12 +423,8 @@ input[type=checkbox] { border-radius: var(--border-radius-md); } -.course-content-parent .chapter-title { - font-size: var(--text-md); -} - .course-content-parent .lesson-links { - font-size: var(--text-md); + font-size: var(--text-base); } .course-outline { @@ -564,7 +571,7 @@ input[type=checkbox] { .breadcrumb { display: flex; align-items: center; - font-size: var(--text-md); + font-size: var(--text-base); line-height: 20px; color: var(--gray-900); padding: 1rem 0; @@ -940,15 +947,15 @@ pre { background-image: url(/assets/frappe/icons/timeless/search.svg); border: none; border-radius: var(--border-radius-md); - font-size: var(--text-sm); + font-size: var(--text-base); padding: 0.625rem 0.75rem; height: 36px; background-repeat: no-repeat; text-indent: 1.5rem; - background-position: 1rem 0.6rem; + background-position: 1rem 0.7rem; float: right; width: 25%; - background-color: var(--gray-100); + box-shadow: var(--shadow-sm); } .section-heading { @@ -1191,6 +1198,7 @@ pre { .course-intructor-rating-section { display: flex; align-items: center; + justify-content: space-between; margin-top: 2rem; } @@ -1215,10 +1223,10 @@ pre { z-index: 4; } -@media (max-width: 768px) { +@media (max-width: 1000px) { .course-overlay-card { position: inherit; - margin-top: 1rem; + margin: 1rem auto; } .seperator { @@ -1250,7 +1258,7 @@ pre { width: 60%; } -@media (max-width: 768px) { +@media (max-width: 1000px) { .course-body-container { width: 100%; } @@ -1276,14 +1284,9 @@ pre { box-shadow: none; } -.course-creator-name { - font-size: var(--text-xl); - font-weight: 500; - color: var(--gray-900); -} - .course-meta { font-size: var(--text-base); + color: var(--gray-900); } .avg-rating { @@ -1323,6 +1326,7 @@ pre { .star-click { --star-fill: var(--yellow-500); + margin-right: 0; } .rating { @@ -1414,9 +1418,6 @@ pre { margin-bottom: 0; } -.lesson-links .icon { - margin: 0; - margin-right: 0.75rem; - fill: none; - stroke: none; +.course-content-parent .course-details-outline .course-home-headings { + display: none; } diff --git a/school/public/icons/symbol-defs.svg b/school/public/icons/symbol-defs.svg index 1dd5bed3..076dc970 100644 --- a/school/public/icons/symbol-defs.svg +++ b/school/public/icons/symbol-defs.svg @@ -1,14 +1,14 @@ diff --git a/school/www/batch/learn.html b/school/www/batch/learn.html index 473964d6..5687fd72 100644 --- a/school/www/batch/learn.html +++ b/school/www/batch/learn.html @@ -15,7 +15,7 @@ {% block content %}
- {{ widgets.BreadCrumb(course=course, lesson=lesson) }} + {{ BreadCrumb(course, lesson) }}
{{ widgets.CourseOutline(course=course, membership=membership) }} @@ -32,6 +32,16 @@
{% endblock %} +{% macro BreadCrumb(course, lesson) %} +
+{% endmacro %} + {% macro LessonContent(lesson) %} {% set instructors = get_instructors(course.name) %} {% set is_instructor = is_instructor(course.name) %} @@ -57,8 +67,8 @@
{% endif %} {% endfor %} - - + + {% if ins_len == 1 %} {{ instructors[0].full_name }} {% else %} diff --git a/school/www/courses/course.html b/school/www/courses/course.html index bf013c51..f3b7a108 100644 --- a/school/www/courses/course.html +++ b/school/www/courses/course.html @@ -6,15 +6,17 @@ {% endblock %} {% block content %} -
+
{{ CourseHomeHeader(course) }} -
-
- {{ CourseHeaderOverlay(course) }} - {{ Description(course) }} - {{ widgets.CourseOutline(course=course, membership=membership) }} - {{ widgets.Reviews(course=course, membership=membership) }} +
+
+
+ {{ CourseHeaderOverlay(course) }} + {{ Description(course) }} + {{ widgets.CourseOutline(course=course, membership=membership) }} + {{ widgets.Reviews(course=course, membership=membership) }} +
@@ -65,25 +67,21 @@
- + {{ get_students(course.name) | length }} {{ _("Enrolled") }}
- - {% if get_lessons(course.name) | length %}
- + {{ get_lessons(course.name) | length }} {{ _("Lessons") }}
{% endif %} - - {% set avg_rating = get_average_rating(course.name) %} {% if avg_rating %}
@@ -92,8 +90,8 @@ {% endfor %} + {{ avg_rating }} {{ _(" Rating ") }}
- {{ avg_rating }} {{ _(" Rating ") }} {% endif %}