{% 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>
    </div>
  </div>
  {% if current_person.signed_in? %}
  {% include "sub_navigation" %} 
  {%endif%}
  {% comment %} <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 %}
          <div class="col-xs-12 col-md-6 col-lg-4 np-stretch-content">
            {% include "cards_course" with course %}
          </div>
        {% 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 %} {% endcomment %}
    <div class="np-main np-dashboard np-subpage-container np-max-width">
      <div class="row np-flex-center">
        <div class="col-xs-12 col-sm-8">
          {% if features.learning_paths? %}
            <div class="np-dashboard-resources-title">
              {% t shared.learning_paths %}
            </div>
            {% if current_person.signed_in? %}
              {% include "learning_paths_index", items: learning_paths.enrolled %} 
            {% endif %}
          {% endif %}
          <div class="np-dashboard-resources-title">
            {% t shared.course_vocabulary.plural, key: current_school.course_vocabulary %}
          </div>
        </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>
            {% if current_person.signed_in? %}
               {% include "training_events_dashboard" %} 
            {% endif %}
          </div>
        {% endif %}
        {% if current_person.signed_in? %}
          {% include "courses_index", class: "col-xs-12 col-md-6 col-lg-4 np-stretch-content" %} 
        {% endif %}
      </div>
    </div>
  </div>
</main>
{% include "footer" %}
