{% assign enrolled_courses = 0 %}
{% for course in courses.enrolled %}
  {% if course.progress > 0 %}
    {% assign enrolled_courses = enrolled_courses | plus: 1 %}
  {% endif %}
{% endfor %}
{% include "header" %}
<div class="page-hero-container">
  <div class="hero-text-wrapper">
    <div class="hero-heading lang-en">Courses</div>
    <div class="hero-heading lang-de">Kurse</div>
    <div class="hero-heading lang-fr">Formations</div>
    <div class="hero-heading lang-jp">コース</div>
    <div class="hero-desc lang-en">The full collection of our courses, organized by theme and popularity.<br>Pick a topic and become a true DeepL expert.</div>
    <div class="hero-desc lang-de">Die komplette Sammlung unserer Kurse, geordnet nach Themen und Beliebtheit.<br>Wählen Sie ein Thema und werden Sie ein echter DeepL-Experte.</div>
    <div class="hero-desc lang-fr">Découvrez toutes nos formations, classées en fonction de leur thème et de leur popularité. <br>Choisissez un sujet et maîtrisez peu à peu DeepL à la perfection.</div>
    <div class="hero-desc lang-jp">全コースをここで確認できます。人気のコースやテーマ別にまとめられています。<br>テーマを選んでDeepLの活用方法をマスターしましょう。</div>
</div>
</div>
<div class="np-homepage-featured np-max-width page-spacing">
  {% if enrolled_courses > 0 %}
  <section>
    {% include "your_courses" %}
  </section>
  {% endif %}
  <section>
    {% include "all_courses" %}
  </section>
</div>
{% include "footer" %}
