{% include "header" %}
<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>
  {% include "sub_navigation" %}
  <div class="np-homepage-featured np-max-width">
	<div class="np-homepage-featured-text">
	  <div class="np-homepage-headline">
	     Core Courses
	  </div>
	  <div class="np-homepage-subheadline">
	    Building your HRIS Foundation
	  </div>
  </div>
  {% if courses.enrolled.any? %}
  <div class="np-homepage-feature-courses row">
    {% for learning_paths in learning_paths.enrolled %} 
      {% if learning_paths.title == "featured" %} 
    <div class="col-xs-12 col-sm-6 np-stretch-content">
      {% include "learning_paths" 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>

  <div class="np-homepage-featured np-max-width">
    <div class="np-homepage-featured-text">
      <div class="np-homepage-headline">
         Spotlight
      </div>
      <div class="np-homepage-subheadline">
        Spotlight links and resources
      </div>
    </div>
    {% if courses.enrolled.any? %}
    <div class="np-homepage-feature-courses row">
      {% for course in courses.enrolled %} 
        {% if course.ribbon != "Core Setup" %}
      <div class="col-xs-12 col-sm-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-hero-image {
    width: 100% !important;
  }
  .no-main.np-homepage {
    justify-content: center !important;
  }
  </style>