Files
Gainsight/Custom_Templates/customer_templates/Pipedrive - UserLearn/_homepage_recommended.html.liquid
2024-09-12 18:25:34 -04:00

64 lines
1.7 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="courses container width-limit">
<section class="courses-section">
<h3 class="courses-title strong">
<span class="lang-en">Dont know where to start? We recommend these</span>
<span class="lang-de">Sie wissen nicht, wo Sie anfangen sollen? Wir empfehlen</span>
<span class="lang-es">¿No sabe por dónde empezar? Le recomendamos</span>
<span class="lang-fr">Vous ne savez pas par où commencer ? Voici nos recommandations.</span>
<span class="lang-br">Não sabe por onde começar? Recomendamos estes</span>
</h3>
{% assign any_course = false %}
<div class="courses-list row">
{% for course in courses.in_catalog %}
{% if course.properties.recommended_for_new_learner %}
{% assign any_course = true %}
{% if course.ribbon == 'VIDEO' %}
{% include 'cards_video' %}
{% else %}
{% include 'cards_course' %}
{% endif %}
{% endif %}
{% endfor %}
</div>
</section>
</div>
{% unless any_course %}
<style>
.courses {
display: none;
}
</style>
{% endunless %}
<style>
.courses-title {
padding-bottom: 40px;
padding-top: 40px;
}
@media only screen and (min-width: 768px) {
.courses {
padding-top: 40px;
}
.courses-list > div {
padding-left: 15px;
padding-right: 15px;
}
.courses-list .video-card .course-card-content {
margin-top: 31.6px;
}
.courses .course-card {
padding-bottom: 0;
}
}
</style>
<script>
window.addEventListener('DOMContentLoaded', () => {
document.querySelectorAll('.course-card-description').forEach((x) => {
$clamp(x, {clamp: 5});
})
})
</script>