HackerRank sandbox almost done. Trying to fix some weirdness in the Walmart Supplier templates.

This commit is contained in:
Norm Rasmussen
2024-11-01 14:09:39 -04:00
parent 382822243a
commit 7ae06d16f6
37 changed files with 386 additions and 1056 deletions

View File

@ -1,47 +1,38 @@
<main class="np-main np-homepage"style="margin-bottom: 0; background-image: url('{{ homepage.artwork_url }}');">
{% 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" style="padding: 80px;">
<div class="np-homepage-hero-content">
<div class="np-homepage-headline np-header-font-color">
<div class="np-homepage-headline" style="padding-top: 100px; font-color: #39424e;">
{{ homepage.headline }}
</div>
<div class="np-homepage-subheadline np-header-font-color">
<div class="np-homepage-subheadline" style="font-color: #39424e; margin-top: 50px;">
{{ homepage.subheadline }}
</div>
<a class="np-homepage-hero-cta np-button" href="{% route catalog %}">
{% t .discover %}
</a>
</div>
</div>
{% include "sub_navigation" %}
<div class="np-homepage-featured np-max-width">
<div class="np-homepage-featured np-max-width" style="margin-top: 100px; margin-bottom: 50px;">
<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 learning_paths.available.any? %}
<div class="np-learning-paths-resources">
{% for learning_path in learning_paths.available %}
{% if learning_path.name == 'HackerRank Screen (Self-Guided Learning Path)' or learning_path.name == 'HackerRank Interview (Self-Guided Learning Path)' %}
<div class="np-homepage-featured-courses row">
{% for learning_path in learning_paths.available limit: 3%}
<div class="col-xs-12 col-md-6 col-lg-4 np-stretch-content">
{% include "cards_learning_path" with learning_path %}
{% endif %}
{% if learning_path.name == 'HackerRank Company Admin' %}
{% include "cards_learning_path" with learning_path %}
{% endif %}
</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 %}
</div>
{% include "footer" %}
</main>
{% include "footer" %}