60 lines
1.8 KiB
Plaintext
60 lines
1.8 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 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>
|
|
<a class="np-homepage-hero-cta np-button" href="{% route catalog %}">
|
|
{% t .discover %}
|
|
</a>
|
|
</div>
|
|
</div>
|
|
{% include "sub_navigation" %}
|
|
</main>
|
|
|
|
<main class="np-main np-dashboard np-subpage-container np-max-width">
|
|
<div class="np-homepage-featured np-max-width">
|
|
<div class="row np-flex-center">
|
|
<div class="col-xs-12 col-sm-8">
|
|
{% if features.learning_paths? %}
|
|
{% if learning_paths.enrolled.any? %}
|
|
<div class="np-dashboard-resources-title">
|
|
{% t shared.learning_paths %}
|
|
</div>
|
|
{% include "learning_paths_index", items: learning_paths.enrolled %}
|
|
{% endif %}
|
|
{% else %}
|
|
{% endif %}
|
|
<div class="np-dashboard-resources-title">
|
|
{% t shared.course_vocabulary.plural, key: current_school.course_vocabulary %}
|
|
</div>
|
|
{% include "courses_index", class: "col-xs-12 col-sm-6 np-stretch-content" %}
|
|
</div>
|
|
{% if features.training_events? %}
|
|
<div class="np-grid-spacing col-xs-12 col-sm-4">
|
|
<div class="np-dashboard-resources-title">
|
|
UPCOMING EVENTS
|
|
</div>
|
|
{% include "training_events_dashboard" %}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</main>
|
|
{% include "footer" %}
|
|
|
|
<style>
|
|
.np-homepage {
|
|
margin-bottom: 0;
|
|
}
|
|
</style>
|