From 9351edebe0404b52bdd438481472cb814d1181a8 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Thu, 17 Mar 2022 14:23:06 +0530 Subject: [PATCH] fix: jobs, quiz and community page cleanup --- school/lms/widgets/Reviews.html | 2 +- school/public/css/style.css | 50 ++++++----------------------- school/public/icons/symbol-defs.svg | 4 +++ school/templates/quiz.html | 2 +- school/www/batch/learn.html | 2 +- school/www/jobs/index.html | 29 +++++++++++------ school/www/jobs/job.html | 43 ++++++++++++++----------- 7 files changed, 61 insertions(+), 71 deletions(-) diff --git a/school/lms/widgets/Reviews.html b/school/lms/widgets/Reviews.html index 71e1b907..3b566e7f 100644 --- a/school/lms/widgets/Reviews.html +++ b/school/lms/widgets/Reviews.html @@ -52,7 +52,7 @@
-
+
{{ widgets.Avatar(member=review.owner_details, avatar_class="avatar-medium") }}
diff --git a/school/public/css/style.css b/school/public/css/style.css index 8907623a..8e4a5076 100644 --- a/school/public/css/style.css +++ b/school/public/css/style.css @@ -111,7 +111,9 @@ input[type=checkbox] { .icon { margin: 0; margin-right: 0.25rem; - fill: none; +} + +.lesson-links .icon { stroke: none; } @@ -499,17 +501,17 @@ input[type=checkbox] { .member-parent { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); - -moz-column-gap: 1.25rem; - column-gap: 1.25rem; - row-gap: 1.25rem; + -moz-column-gap: 2rem; + column-gap: 2rem; + row-gap: 2rem; } @media (max-width: 600px) { .member-parent { grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); - -moz-column-gap: 1.25rem; - column-gap: 1.25rem; - row-gap: 1.25rem; + -moz-column-gap: 2rem; + column-gap: 2rem; + row-gap: 2rem; } } @@ -1136,6 +1138,7 @@ pre { flex-direction: column; align-items: flex-end; justify-content: space-between; + margin-left: auto; } .job-detail-card { @@ -1143,11 +1146,6 @@ pre { flex-direction: column; } -.job-detail-card span::before { - content: "\00B7"; - margin: 0 8px; -} - .job-subtitle { font-size: var(--text-base); margin-bottom: 1.875rem; @@ -1163,34 +1161,6 @@ pre { color: var(--gray-900); } -.company-name { - font-size: var(--text-base); -} - -.job-meta { - display: flex; - align-items: center; - color: var(--gray-700); - font-size: var(--text-base); -} - -.job-type { - background-color: var(--dark-green-100); - color: var(--dark-green-500); - border-radius: var(--border-radius-md); - padding: 0.25rem 0.5rem; - font-weight: 600; - font-size: 11px; - text-transform: uppercase; - letter-spacing: 0.6px; - margin-bottom: 0.5rem; - width: fit-content; -} - -.job-description { - margin-top: 3.75rem; -} - .course-head-container { color: var(--gray-900); } diff --git a/school/public/icons/symbol-defs.svg b/school/public/icons/symbol-defs.svg index 076dc970..0090c5c8 100644 --- a/school/public/icons/symbol-defs.svg +++ b/school/public/icons/symbol-defs.svg @@ -24,4 +24,8 @@ + + + + diff --git a/school/templates/quiz.html b/school/templates/quiz.html index 5d5bf5bd..1e68d995 100644 --- a/school/templates/quiz.html +++ b/school/templates/quiz.html @@ -1,4 +1,4 @@ -
{{ quiz.title }}
+
{{ quiz.title }}
diff --git a/school/www/batch/learn.html b/school/www/batch/learn.html index 5687fd72..5e14b9da 100644 --- a/school/www/batch/learn.html +++ b/school/www/batch/learn.html @@ -77,7 +77,7 @@ {% endif %} -
{{ frappe.utils.format_date(lesson.creation, "medium") }}
+
{{ frappe.utils.format_date(lesson.creation, "medium") }}
diff --git a/school/www/jobs/index.html b/school/www/jobs/index.html index 767dbeb6..1c0b3e71 100644 --- a/school/www/jobs/index.html +++ b/school/www/jobs/index.html @@ -1,6 +1,10 @@ {% extends "templates/base.html" %} {% block title %}{{ _('Job Openings') }}{% endblock %} +{% block head_include %} +{% include "public/icons/symbol-defs.svg" %} +{% endblock %} + {% block content %}
@@ -16,20 +20,25 @@
{% for job in jobs %}
-
+
-
+
{{ _(job.job_title) }}
- {{ job.company_name }} +
+
{{ job.company_name }}
+
+ + + + {{ job.location }} +
+
-
- -
{{ job.location }}
-
-
-
{{ job.type }}
-
{{ frappe.utils.format_date(job.creation, "medium") }}
+ +
+
{{ job.type }}
+
{{ frappe.utils.format_date(job.creation, "medium") }}
diff --git a/school/www/jobs/job.html b/school/www/jobs/job.html index bdb277f5..24e9b621 100644 --- a/school/www/jobs/job.html +++ b/school/www/jobs/job.html @@ -1,6 +1,10 @@ {% extends "templates/base.html" %} {% block title %}{{ _(job.job_title) }}{% endblock %} +{% block head_include %} +{% include "public/icons/symbol-defs.svg" %} +{% endblock %} + {% block content %}
@@ -8,27 +12,30 @@ {{ BreadCrumb(job) }}
-
-
-
- +
+
+
-
{{ _(job.job_title) }}
-
- {{ job.company_name }} - -
- -
{{ job.location }}
+
+
+
{{ _(job.job_title) }}
+
{{ job.type }}
+
+
+ {{ job.company_name }} +
+ + + +
{{ job.location }}
+
+
{{ frappe.utils.format_date(job.creation, "medium") }}
- -
{{ frappe.utils.format_date(job.creation, "medium") }}
-
{{ job.type }}
-
{% set application_link = job.application_link if frappe.session.user != 'Guest' else '/login?redirect-to=/jobs/' + job.name %} -
+
{{ _("Apply") }}
{{ _("Report") }}
@@ -38,7 +45,7 @@
-
{{ _(job.description) }}
+
{{ _(job.description) }}
@@ -84,6 +91,6 @@ {% endmacro %}