{% if current_person.properties.first_login == true %}
  <script>
    window.location.replace('/app');
  </script>
{% endif %}

{% assign in_progress_courses = 0 %}
{% for course in courses.enrolled %}
  {% if course.progress > 0 and course.progress < 100 %}
    {% assign in_progress_courses = in_progress_courses |  plus: 1 %}
  {% endif %}
{% endfor %}


{% 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>
  {% include "sub_navigation" %}
  <div class="np-max-width">
    <section>
      {% include 'welcome_section_walmart' %}
    </section>
    <section>
        {% include 'welcome_to_walmart_categories' %}
    </section>
    <section>
      {% include 'welcome_to_walmart_courses' %}
  </section>
  </div>
</main>
{% include "footer" %}
