81 lines
2.1 KiB
Plaintext
81 lines
2.1 KiB
Plaintext
{% include "header" %}
|
|
{% include "course_version_outdated_alert", courses: courses.featured %}
|
|
|
|
<main class="np-main np-homepage">
|
|
<div class="np-homepage-hero">
|
|
<img class="np-homepage-hero-image"
|
|
src="{{ homepage.artwork_url }}"
|
|
alt="{{ homepage.headline }}"
|
|
/>
|
|
</div>
|
|
{%- comment -%} {% include "sub_navigation" %} {%- endcomment -%}
|
|
<div class="np-homepage-featured np-max-width">
|
|
<div class="np-homepage-featured-text">
|
|
<div class="np-homepage-headline">
|
|
{{ homepage.featured_courses_headline }}
|
|
</div>
|
|
<div class="np-homepage-subheadline">
|
|
{{ homepage.featured_courses_subheadline }}
|
|
</div>
|
|
</div>
|
|
{% if courses.featured.any? %}
|
|
<div class="np-homepage-featured-courses row">
|
|
{% for course in courses.featured %}
|
|
{% if course.id == '9b02fce5-9044-450e-a4d9-4160754e4599' %}
|
|
<div class="col-xs-12 col-md-6 col-lg-4 np-stretch-content">
|
|
{% include "cards_course" with course %}
|
|
</div>
|
|
{% else %}
|
|
<div class="col-xs-12 col-md-6 col-lg-4 np-stretch-content">
|
|
{% include "cards_course" with course %}
|
|
</div>
|
|
{% endif %}
|
|
{% 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>
|
|
.np-homepage{
|
|
margin-top: -18px;
|
|
}
|
|
|
|
.np-homepage-hero-image{
|
|
height: auto;
|
|
margin-bottom: -4px;
|
|
max-height: none;
|
|
max-width: 100%;
|
|
min-height: 0;
|
|
min-width: 0;
|
|
}
|
|
|
|
@media screen and (min-widthL 768px){
|
|
.np-homepage{
|
|
margin-top: 0;
|
|
}
|
|
|
|
.np-homepage-hero-image{
|
|
max-height: 500px;
|
|
}
|
|
}
|
|
|
|
@media only screen and (min-width: 75em){
|
|
#mizuno_special_course {
|
|
flex-basis: 40.333333%;
|
|
max-width: 40.333333%;
|
|
}
|
|
}
|
|
</style>
|