{% include "fixed_header" %}
{% include "course_version_outdated_alert", courses: courses.featured %}
<main class="np-main np-homepage">
  <div class="np-homepage-hero">
    {%- comment -%} {% if homepage.artwork_url == '//cdn.northpass.com/assets/defaults/learning_experience/homepage-a66cc08ba532656b9ef3d215fd04aea68f324b48a70dc13a51c0c4eede0e562f.jpg' %}
      <video autoplay playinline loop muted style="width: 100%; max-height: 100%; object-fit: inherit;">
        <source src="https://futurimedia.com/wp-content/uploads/2022/09/V3-Neutral-2-Reveal-Loop.mp4" type="video/mp4">
      </video>
    {% else %}
      <img class="np-homepage-hero-image"
        src="{{ homepage.artwork_url }}"
        alt="{{ homepage.headline }}"
      />
    {% endif %} {%- endcomment -%}
    <img class="np-homepage-hero-image"
      src="https://s3.amazonaws.com/static.northpass.com/futuri/Custom+Hero.jpg"
      alt="{{ homepage.headline }}"
    />
    {%- comment -%} <div class="np-homepage-hero-content">
      <div class="hero-headline np-header-font-color">
        {{ homepage.headline }}
      </div>
      <div class="hero-subheadline np-header-font-color">
        {{ homepage.subheadline }}
      </div>
      <a class="np-homepage-hero-cta np-button" href="{% route catalog %}">
        Explore the Courses
      </a>
    </div> {%- endcomment -%}
  </div>
  <div class="np-homepage-featured np-max-width homepage-max-width">
    {% if current_school.filterable_categories.any? %}
      {% include "category_gallery" %}
    {% else %}
      <div class="np-homepage-featured-empty">
        <div class="np-zero-state-text">
          No Categories Found!
        </div>
        <img
          class="np-zero-state-courses"
          alt="{% t .empty, key: current_school.course_vocabulary %}"
        />
      </div>
    {% endif %}
    {%- comment -%} <div class="np-homepage-featured-text">
      <div class="homepage-headline">
        {{ homepage.featured_courses_headline }}
      </div>
      <div class="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>
</main>
{% include "footer" %}

<style>
  .np-homepage-hero{
    background: #041A29;
  }

  .np-homepage-hero-image{
    height: 100%;
    object-fit: contain;
  }

  @media screen and (min-width: 768px){
    .np-homepage-hero-image {
      height: auto;
      max-height: none;
      max-width: none;
      object-fit: initial;
    }
  }

  @media screen and (min-width: 1000px){
    .np-homepage-hero-image {
      object-fit: cover;
    }
  }
</style>
