diff --git a/lms/public/css/style.css b/lms/public/css/style.css index 63bfd1f5..25691d06 100644 --- a/lms/public/css/style.css +++ b/lms/public/css/style.css @@ -1105,14 +1105,19 @@ pre { } .job-card { - display: flex; - align-items: center; - position: relative; + position: relative; + padding: 1rem; } .company-logo { - background-position: center; - background-size: 42px; + background-position: center; + background-size: contain; + background-position: center; + background-repeat: no-repeat; + border-radius: var(--border-radius-sm); + width: 50px; + height: 50px; + margin-right: 1rem; } .job-card-parent { @@ -1121,15 +1126,13 @@ pre { } .job-card-logo-section { - display: flex; - flex-direction: column; - align-items: flex-end; - justify-content: space-between; - margin-left: auto; + display: flex; + align-items: center; + margin-top: 0.5rem; } .job-detail-card { - padding: 1.5rem; + padding: 1rem; flex-direction: column; } @@ -1138,15 +1141,10 @@ pre { margin-bottom: 1.875rem; } -.job-list-card { - padding: 1.25rem 1.56rem; - flex-direction: column; -} - .job-card-heading { font-weight: 600; color: var(--gray-900); - margin-bottom: 0.4rem; + margin-bottom: 0.5rem; } .course-head-container { @@ -1451,3 +1449,54 @@ li { .discussions-parent .empty-state { background-color: var(--gray-200); } + +.job-cards-parent { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(500px, 1fr)); + -moz-column-gap: 40px; + grid-gap: 1rem; + align-items: center; +} + +.job-company { + display: flex; + 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; + align-items: inherit; + } +} + +@media (max-width: 1200px) { + .job-cards-parent { + grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); + } +} + +@media (max-width: 500px) { + .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/index.html b/lms/www/jobs/index.html index 49b19138..fea346ff 100644 --- a/lms/www/jobs/index.html +++ b/lms/www/jobs/index.html @@ -8,63 +8,60 @@ {% block content %}
-
- {% if allow_posting and jobs | length %} - {{ _("Post a Job") }} - {% endif %} +
+ {% if allow_posting and jobs | length %} + {{ _("Post a Job") }} + {% endif %} -
{{ _("{0}").format(title) }}
-
{{ _("{0}").format(subtitle) }}
+
{{ _("{0}").format(title) }}
+
{{ _("{0}").format(subtitle) }}
- {% if jobs | length %} -
- {% for job in jobs %} -
-
- -
-
-
{{ _(job.job_title) }}
-
-
{{ job.company_name }}
-
- - - - {{ job.location }} + {% if jobs | length %} +
+ {% for job in jobs %} +
+ +
+
{{ _(job.job_title) }}
+ +
+
{{ job.company_name }}
+
+ + + + {{ job.location }} +
+
+ +
+
{{ job.type }}
+
{{ frappe.utils.format_date(job.creation, "medium") }}
+
+
+
-
+ {% endfor %}
- -
-
{{ job.type }}
-
{{ frappe.utils.format_date(job.creation, "medium") }}
-
- -
- {% if loop.index != jobs | length %} -
- {% endif %} - {% endfor %}
-
{% else %}
-
- -
-
-
{{ _("No open jobs") }}
-
{{ _("There are no job openings at present.") }}
-
-
- {% if allow_posting %} - {{ _("Post a Job") }} - {% endif %} -
+
+ +
+
+
{{ _("No open jobs") }}
+
{{ _("There are no job openings at present.") }}
+
+
+ {% if allow_posting %} + {{ _("Post a Job") }} + {% endif %} +
{% endif %} -
+
{% endblock %} 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) }}