194 lines
4.0 KiB
Plaintext
194 lines
4.0 KiB
Plaintext
{% include "header" %}
|
|
{% include "course_version_outdated_alert", courses: courses.featured %}
|
|
<main class="np-main np-homepage">
|
|
{% include "sub_navigation" %}
|
|
<div class="np-homepage-featured np-max-width custom-page-main-content">
|
|
<div class="custom-page-filter-bars">
|
|
<div>
|
|
<h1>{{ custom_page.headline }}</h1>
|
|
<div class="custom-page-label">
|
|
{{ custom_page.subheadline }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{% if courses.in_catalog.any? %}
|
|
<div class="catalog-courses">
|
|
{% for course in courses.in_catalog %}
|
|
{% for category in course.categories %}
|
|
{% if category.name == 'Case Studies' %}
|
|
<div class="col-xs-12 col-md-6 col-lg-4 np-stretch-content">
|
|
{% include "cards_course" with course %}
|
|
</div>
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endfor %}
|
|
</div>
|
|
{% else %}
|
|
<div class="np-homepage-featured-empty">
|
|
<div class="np-zero-state-text">
|
|
{% t .empty, key: current_school.course_vocabulary %}
|
|
</div>
|
|
<img
|
|
class="np-zero-state-courses"
|
|
alt="{% t .empty, key: current_school.course_vocabulary %}"
|
|
/>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</main>
|
|
{% include "footer" %}
|
|
|
|
<style>
|
|
.custom-page-top-info-bar{
|
|
align-items: center;
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
padding: 0 5%;
|
|
}
|
|
|
|
.custom-page-nametag h4{
|
|
color: #016aab;
|
|
}
|
|
|
|
.custom-page-profile-button{
|
|
border: 1px solid #016aab;
|
|
border-radius: 8px;
|
|
color: #016aab;
|
|
padding: 10px 25px;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.custom-page-main-content{
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
padding: 0 5%;
|
|
width: 100%;
|
|
}
|
|
|
|
.custom-page-label{
|
|
font-size: 18px;
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
.custom-page-filter-bars{
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin-bottom: 50px;
|
|
}
|
|
|
|
.custom-page-content-search{
|
|
max-width: unset;
|
|
}
|
|
|
|
.np-filter{
|
|
margin: 0;
|
|
}
|
|
|
|
.custom-page-content-filter .np-input{
|
|
margin-top: 20px;
|
|
padding: 10px 12px;
|
|
}
|
|
|
|
.custom-page-content-filter .dropdown{
|
|
width: 100%;
|
|
}
|
|
|
|
.custom-page-courses{
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 0 5%;
|
|
width: 100%;
|
|
}
|
|
|
|
.custom-page-courses .np-card{
|
|
padding: 0;
|
|
}
|
|
|
|
.custom-page-courses .np-card-container{
|
|
display: flex;
|
|
flex-direction: row;
|
|
}
|
|
|
|
.custom-page-courses .np-card-image{
|
|
border-radius: 0;
|
|
border-top-left-radius: 4px;
|
|
border-bottom-left-radius: 4px;
|
|
max-width: 20%;
|
|
}
|
|
|
|
.custom-page-courses .np-card-content{
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 5px;
|
|
}
|
|
|
|
.custom-page-courses .np-card-info{
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.custom-page-courses .np-card-content-progress-and-cta{
|
|
display: flex;
|
|
width: 100%;
|
|
height: 100%;
|
|
align-items: center;
|
|
flex-direction: row;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.custom-page-courses .np-card-content-progress{
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
@media screen and (min-width: 768px){
|
|
.custom-page-main-content{
|
|
margin-top: 0;
|
|
}
|
|
|
|
.custom-page-filter-bars{
|
|
align-items: center;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.custom-page-courses .np-card-content{
|
|
align-items: center;
|
|
flex-direction: row;
|
|
padding: 10px 35px;
|
|
}
|
|
|
|
.custom-page-courses .np-card-info{
|
|
max-width: 80%;
|
|
}
|
|
|
|
.custom-page-courses .np-card-content-title{
|
|
margin: 0;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.custom-page-courses .np-card-content-progress-and-cta{
|
|
align-items: center;
|
|
flex-direction: row;
|
|
height: 100%;
|
|
width: 100%;
|
|
}
|
|
|
|
.custom-page-courses .np-card-content-progress{
|
|
align-items: flex-start;
|
|
height: 100%;
|
|
justify-content: center;
|
|
padding-right: 25px;
|
|
width: 60%;
|
|
}
|
|
|
|
.custom-page-courses .np-card-content-progress-and-cta .np-button{
|
|
width: 40%;
|
|
}
|
|
}
|
|
</style>
|
|
|