From 56c51b73b0720aee6d51f9105a42fd329dcdb3d9 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Fri, 1 Jul 2022 17:57:52 +0530 Subject: [PATCH] fix: job details redesign --- lms/public/css/style.css | 27 ++++++++++++++--- lms/www/jobs/job.html | 63 ++++++++++++++++++++-------------------- 2 files changed, 55 insertions(+), 35 deletions(-) diff --git a/lms/public/css/style.css b/lms/public/css/style.css index 62f1fa4b..25691d06 100644 --- a/lms/public/css/style.css +++ b/lms/public/css/style.css @@ -1117,7 +1117,7 @@ pre { border-radius: var(--border-radius-sm); width: 50px; height: 50px; - margin-right: 0.5rem; + margin-right: 1rem; } .job-card-parent { @@ -1128,11 +1128,11 @@ pre { .job-card-logo-section { display: flex; align-items: center; - margin-top: 1rem; + margin-top: 0.5rem; } .job-detail-card { - padding: 1.5rem; + padding: 1rem; flex-direction: column; } @@ -1144,7 +1144,7 @@ pre { .job-card-heading { font-weight: 600; color: var(--gray-900); - margin-bottom: 0.4rem; + margin-bottom: 0.5rem; } .course-head-container { @@ -1463,6 +1463,17 @@ li { align-items: center; } +.job-actions { + display: flex; + align-items: flex-start; + margin-left: auto; + margin-bottom: 1rem; +} + +.job-detail-header { + display: flex; +} + @media (max-width: 600px) { .job-company { flex-direction: column; @@ -1480,4 +1491,12 @@ li { .job-cards-parent { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } + + .job-detail-header { + flex-wrap: wrap; + } + + .job-actions { + margin-top: 1rem; + } } diff --git a/lms/www/jobs/job.html b/lms/www/jobs/job.html index 5efe6acb..8669c9ef 100644 --- a/lms/www/jobs/job.html +++ b/lms/www/jobs/job.html @@ -10,41 +10,42 @@
{{ BreadCrumb(job) }} +
-
-
- -
-
-
-
{{ _(job.job_title) }}
-
{{ job.type }}
-
-
- {{ job.company_name }} -
- - - -
{{ job.location }}
-
-
{{ frappe.utils.format_date(job.creation, "medium") }}
-
-
+
+ - {% set application_link = job.application_link if frappe.session.user != 'Guest' else '/login?redirect-to=/jobs/' + job.name %} -
- {{ _("Apply") }} -
{{ _("Report") }}
- {% if job.owner == frappe.session.user %} - Edit - {% endif %} -
-
+
+
{{ _(job.job_title) }}
+
+
{{ job.company_name }}
+
+ + + + {{ job.location }} +
+
+ +
+
{{ job.type }}
+
{{ frappe.utils.format_date(job.creation, "medium") }}
+
+
+ + {% set application_link = job.application_link if frappe.session.user != 'Guest' else '/login?redirect-to=/jobs/' + job.name %} +
+ {{ _("Apply") }} +
{{ _("Report") }}
+ {% if job.owner == frappe.session.user %} + {{ _("Edit") }} + {% endif %} +
+ +
{{ _(job.description) }}