174 lines
4.1 KiB
Plaintext
174 lines
4.1 KiB
Plaintext
{% include "header" %}
|
|
|
|
{% include "messages" %}
|
|
{% include "course_version_outdated_alert", courses: courses.enrolled %}
|
|
|
|
<div class="np-homepage-hero">
|
|
<img class="np-homepage-hero-image"
|
|
src="{{ homepage.artwork_url }}"
|
|
alt="{{ homepage.headline }}"
|
|
/>
|
|
<div class="np-homepage-hero-content">
|
|
<div class="np-homepage-headline np-header-font-color">
|
|
{{ homepage.headline }}
|
|
</div>
|
|
<div class="np-homepage-subheadline np-header-font-color">
|
|
{{ homepage.subheadline }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<main class="np-main np-homepage">
|
|
{% include "sub_navigation" %}
|
|
<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" style='opacity: 50%'>
|
|
{{ homepage.featured_courses_subheadline }}
|
|
</div>
|
|
</div>
|
|
{% if courses.in_catalog.any? %}
|
|
<div class="np-homepage-featured-courses row">
|
|
{% for course in courses.in_catalog %}
|
|
{% if course.name == 'Scenario Basics' or course.name == 'Core Concepts' %}
|
|
<div class="col-xs-12 coul-sm-8 col-md-12" style="margin:auto;">
|
|
{% include "cards_featured_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>
|
|
|
|
{% include "section_popular_topics" %}
|
|
|
|
{% comment %}{% include "section_tips_tricks" %}{% endcomment %}
|
|
|
|
{% comment %}{% include "section_faqs" %}{% endcomment %}
|
|
|
|
</main>
|
|
{% include "footer" %}
|
|
<style>
|
|
.np-homepage-hero{
|
|
background: #34abe2;
|
|
margin-bottom: -2rem;
|
|
margin-top: -3rem;
|
|
padding-top: 1rem;
|
|
z-index: -1;
|
|
}
|
|
|
|
@media screen and (min-width: 420px) {
|
|
.np-homepage-hero-content {
|
|
padding-bottom: 5rem;
|
|
}
|
|
}
|
|
</style>
|
|
{% comment %}<style>
|
|
@media screen and (min-width: 350px) {
|
|
.np-homepage-hero {
|
|
height: 14rem;
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: 450px) {
|
|
.np-homepage-hero {
|
|
height: 11rem;
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: 768px) {
|
|
.np-homepage-hero {
|
|
height: 9rem;
|
|
}
|
|
|
|
.np-homepage-featured-text {
|
|
padding: 0 4rem 2rem;
|
|
}
|
|
.np-homepage-hero-image {
|
|
height: auto;
|
|
/* min-height: 350px; */
|
|
}
|
|
.np-homepage-hero-content {
|
|
padding: 5rem 4rem 2.25rem;
|
|
bottom: 0;
|
|
}
|
|
|
|
.np-homepage-hero-cta,
|
|
.np-button.np-homepage-hero-cta {
|
|
margin-top: 2.25rem;
|
|
height: 50px;
|
|
}
|
|
|
|
.np-homepage-hero .np-homepage-headline {
|
|
font-size: 36px;
|
|
line-height: 45px;
|
|
}
|
|
.np-homepage-hero .np-homepage-subheadline {
|
|
font-size: 18px;
|
|
line-height: 24px;
|
|
}
|
|
.np-button {
|
|
font-size: 0.875rem;
|
|
height: 40px;
|
|
}
|
|
|
|
.np-topics-list {
|
|
margin: 0 4.5%;
|
|
}
|
|
.np-topics-list .np-button-secondary {
|
|
margin: 6px;
|
|
flex: 0 1 calc(33.33% - 12px);
|
|
height: 52px;
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: 992px) {
|
|
.np-homepage-hero-content {
|
|
bottom: auto;
|
|
}
|
|
|
|
.np-homepage-hero .np-homepage-headline {
|
|
font-size: 40px;
|
|
line-height: 15px;
|
|
}
|
|
.np-homepage-hero .np-homepage-subheadline {
|
|
font-size: 20px;
|
|
line-height: 30px;
|
|
}
|
|
.np-topics-list .np-button-secondary {
|
|
flex: 0 1 calc(25% - 12px);
|
|
}
|
|
.np-homepage-featured {
|
|
margin-top: 6.25rem;
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: 1200px) {
|
|
.np-topics-list .np-button-secondary {
|
|
flex: 0 1 calc(20% - 12px);
|
|
}
|
|
|
|
.np-homepage-hero {
|
|
height: 7rem;
|
|
}
|
|
}
|
|
</style>{% endcomment %}
|
|
<script>
|
|
$(".np-sub-navigation-content-item-link:contains('Home')").parent().addClass("np-sub-navigation-content-item-active")
|
|
</script>
|
|
<script>
|
|
console.log(window.location.href);
|
|
</script>
|