Files
Gainsight/Custom_Templates/customer_templates/DeepL/homepage.html.liquid
2025-12-17 16:55:47 -05:00

174 lines
5.2 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.

{% assign courses_in_progress = 0 %}
{% assign courses_completed = 0 %}
{% assign certificates = 0 %}
{% assign webinars = 0 %}
{% for course in courses.enrolled %}
{% if course.progress > 0 and course.progress < 100 %}
{% assign courses_in_progress = courses_in_progress | plus: 1 %}
{% endif %}
{% if course.progress == 100 %}
{% assign courses_completed = courses_completed | plus: 1 %}
{% endif %}
{% endfor %}
{% for learning_path in learning_paths.enrolled %}
{% if learning_path.completed? and learning_path.has_certificate? %}
{% assign certificates = certificates | plus: 1 %}
{% endif %}
{% endfor %}
{% for training_event in training_events.available %}
{% assign webinars = webinars | plus: 1 %}
{% endfor %}
{% include "header" %}
{% include "course_version_outdated_alert", courses: courses.featured %}
<main class="np-main np-homepage">
<div class="homepage-hero-container np-max-width ">
<div class="hero-text-container">
<div class="hero-heading lang-en">
Hi {% if current_person.first_name %}
{{ current_person.first_name }}!
{% else %}
there!
{% endif %}
</div>
<div class="hero-heading lang-de">
Hallo {% if current_person.first_name %}
{{ current_person.first_name }}!
{% endif %}
</div>
<div class="hero-heading lang-jp">
こんにちは!
</div>
<div class="hero-heading lang-fr">
Bonjour {% if current_person.first_name %}
{{ current_person.first_name }}!
{% endif %}
</div>
<div class="hero-subheading lang-en">
Welcome to the DeepL Academy, your one-stop hub to master<br>all products and features on our Language AI platform.</br>
</div>
<div class="hero-subheading lang-de">
Willkommen bei der DeepL Academy. Dies ist Ihre zentrale Anlaufstelle<br> für alle Produkte und Funktionen unserer KISprachtechnologie.</br>
</div>
<div class="hero-subheading lang-jp">
DeepLアカデミーへようこそ。DeepLの基本からアカウント管理まで、<br>あらゆる機能や活用方法をすべてここから学べます。</br>
</div>
<div class="hero-subheading lang-fr">
Bienvenue dans la DeepL Academy, votre espace de référence pour maîtriser<br> tous les produits et fonctionnalités de notre plateforme dIA linguistique.</br>
</div>
<div class="hero-buttons-wrapper">
<a href="#recommended-section" class="dark-btn lang-en">Start learning</a>
<a href="#recommended-section" class="dark-btn lang-de">Mit dem Lernen beginnen</a>
<a href="#recommended-section" class="dark-btn lang-jp">今すぐ開始</a>
<a href="#recommended-section" class="dark-btn lang-fr">Commencer</a>
</div>
<div class="progress-wrapper">
<div class="progress border-right">
<i class="fas fa-circle progress-circle"></i>
<span>{{courses_in_progress}}</span>
<span class="lang-en">in progress</span>
<span class="lang-de">In Arbeit</span>
<span class="lang-jp">学習中</span>
<span class="lang-fr">En cours</span>
</div>
<div class="progress border-right">
<i class="fas fa-circle completed-circle"></i>
<span>{{courses_completed}}</span>
<span class="lang-en">completed</span>
<span class="lang-de">Abgeschlossen</span>
<span class="lang-jp">修了済み</span>
<span class="lang-fr">Terminé</span>
</div>
<div class="progress">
<i class="fas fa-circle cert-circle"></i>
<span>{{certificates}}</span>
<span class="lang-en">certificates</span>
<span class="lang-de">Zertifikate</span>
<span class="lang-jp">修了証</span>
<span class="lang-fr">Certificats</span>
</div>
</div>
</div>
<div class="hero-image-container">
<img class="hero-img" src="https://s3.amazonaws.com/static.northpass.com/DeepL/images/hero-image.png" alt="">
</div>
</div>
<div class="np-homepage-featured np-max-width page-spacing">
<section>
{% include "recommended" %}
</section>
<section>
{% include "popular" %}
</section>
{% if webinars > 0 %}
<section>
{% include "webinars" %}
</section>
{% endif %}
<section>
{% include "banner" %}
</section>
</div>
</main>
{% include "footer" %}
<style>
.homepage-hero-container {
display: flex;
padding: 50px 40px;
align-items: center;
}
.hero-image-container {
flex-basis: 50%;
}
.hero-text-container {
flex-basis: 50%;
}
.hero-buttons-wrapper {
display: flex;
gap: 20px;
}
.progress-wrapper {
display: flex;
background: #f8f8f8;
margin-top: 30px;
width: fit-content;
border-radius: 8px;
}
.progress {
padding: 10px;
display: flex;
gap: 5px;
}
.progress-circle {
color: #ffe76a;
}
.completed-circle {
color: #6cf1c9;
}
.cert-circle {
color: #a89cff;
}
.hero-img {
width: 100%;
max-width: 600px;
}
@media only screen and (max-width: 900px) {
.homepage-hero-container {
flex-direction: column-reverse;
}
.hero-image-container, .hero-text-container {
width: 100%;
}
.hero-image-container {
display: flex;
justify-content: center;
}
}
</style>