started g2 changes. notes and todos from other companies.

This commit is contained in:
Norm Rasmussen
2023-05-03 17:10:33 -04:00
parent 26c55d54f6
commit ee797f3b7e
12 changed files with 115 additions and 116 deletions

View File

@ -11,8 +11,9 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick.min.js" type="text/javascript"></script>
<script>
if ( window.location !== window.parent.location ) {
console.log("The page is in an iframe - don't show header")
// console.log("The page is in an iframe - don't show header")
} else {
{% include "header" %}
console.log("The page is not in an iframe - show header")
}
</script>

View File

@ -180,4 +180,3 @@
</div>
{% include "messages" %}

View File

@ -1,4 +1,4 @@
{% include 'header' %}
{% comment %} {% include 'header' %} {% endcomment %}
<main class="np-main np-homepage">
<div class="np-homepage-hero">
<h1 class="community-headline">Explore</h1>
@ -29,4 +29,4 @@
font-family: "Raleway", "Helvetic", "Arial" sans-serif;
color: #ffffff;
}
</style>
</style>

View File

@ -1,4 +1,4 @@
{% include "header" %}
{% comment %} {% include "header" %} {% endcomment %}
<div class="np-homepage-hero">
<div class="np-homepage-hero-image">
</div>
@ -18,7 +18,7 @@
<iframe
style= "border: 3px solid #B2D7C7;"
width="100%" height="1000"
src="https://climbingacademy.northpass.com/"
src="https://climbingacademy.northpass.com/app/training_events"
title="Climbing Academy"
>
</iframe>

View File

@ -18,7 +18,7 @@
{{ course.name }}
</h1>
<div class="video-description">
{{ course.full_description | strip_html }}
{{ course.full_description }}
</div>
</div>
<div class="video-suggested col-12 col-md-4">
@ -176,7 +176,7 @@
suggestedWrapper.parentElement.remove();
}
}
addEventListener("DOMContentLoaded", () => {
document.querySelector('#side-menu-tutorials')?.classList.add('side-menu-link-active');
document.querySelector('.header-navigation-item[href="/app/video-tutorials"]')?.classList.add('header-navigation-item-active');

View File

@ -28,7 +28,3 @@
{% endif %}
{% endfor %}
{% endif %}

View File

@ -1,68 +0,0 @@
<div class="np-card np-no-horizontal-padding">
<div class="np-card-container">
<div class="np-learning-path">
<div class="image-wrapper">
<img
alt="{{ learning_path.name }}"
class="np-card-image np-learning-path-image"
src="{{ learning_path.image_url }}"
/>
<div class="np-card-ribbon np-hidden-mobile">
<i class="fa fa-book-open" aria-hidden="true"></i>
{{ learning_path.items.count }} Inhalte
</div>
</div>
<div class="np-card-text-wrapper">
<div class="np-card-content np-card-padding np-card-content-vertical">
<h3 class="np-card-content-title">
{{ learning_path.name }}
</h3>
{% include "learning_path_description" %}
{% if learning_path.has_instructors? %}
<div class="np-card-content-subtitle">
{{ learning_path.instructor_names }}
</div>
{% endif %}
<div class="np-card-ribbon np-hidden-desktop">
<i class="fa fa-book-open" aria-hidden="true"></i>
{{ learning_path.items.count }} Inhalte
</div>
<div class="np-card-content-footer">
<a class="np-button"
{% if learning_path.enrolled? %}
href="{% route learning_path, id: learning_path.id %}"
{% else %}
href="{% route learning_path_enrollment, code: learning_path.enrollment_code %}"
{% endif %}
>
<span class="np-hidden-desktop">Weiter</span>
<span class="np-hidden-mobile">Weiter</span>
</a>
{% if learning_path.enrolled? %}
<div class="np-card-content-progress
np-button-color">
{% if learning_path.completed? %}
Abgeschlossen
{% elsif learning_path.started? == false %}
0% abgeschlossen
{% else %}
{% t shared.progress, count: learning_path.progress %}
{% endif %}
</div>
{% endif %}
</div>
</div>
</div>
</div>
</div>
<div class="np-card-stack">
<div class="np-card-stack-level-1"></div>
<div class="np-card-stack-level-2"></div>
</div>
</div>

View File

@ -1,10 +1,11 @@
{% assign isAuthenticatedUser = false %}
{% for group in current_person.groups %}
{% if group.name == "All Users" or group.id == "6331d115-ea74-418a-99b2-af5c81208fe1" %}
{% if group.name == "All Users" or group.id == "6331d115-ea74-418a-99b2-af5c81208fe1" or group.name == "Internal
Zenjob Testing" or group.id == "940a5d24-32af-45f1-8ed4-8a6b4689d9c9" %}
{% assign isAuthenticatedUser = true %}
{% endif %}
{% endfor %}
{% endfor %}
{% if current_person.email contains "+preview" %}
{% assign isAuthenticatedUser = true %}
@ -16,7 +17,7 @@
<div class="np-homepage-hero-content">
<div class="np-homepage-headline" style="color: #fff">
{{ homepage.headline }}
</div>
</div>
<div class="np-homepage-subheadline">
Entschuldigung! Es scheint, dass deine E-Mail-Adresse {{current_person.email}} nicht den richtigen Zugang erhalten hat. Es kann nach der Registrierung bis zu 24h dauern, bis du freigeschalten wirst. Sollte das Problem danach weiterhin bestehen, wende dich an talents@zenjob.com, um den Zugang zu den vollständigen Lerninhalten anzufragen.
</div>
@ -34,7 +35,7 @@
<div class="np-homepage-hero-content">
<div class="np-homepage-headline" style="color: #fff">
{{ homepage.headline }}
</div>
</div>
<div class="np-homepage-subheadline">
<span>Hallo {{ current_person.first_name }}, hier bereiten wir dich auf alles vor, was du für deine erste Schicht als
<div class="dropdown homepage-content-dropdown">
@ -58,7 +59,7 @@
{% if cat.id == "087ea56d-888b-4e0f-af1f-68627318c841" or cat.id == "9be55234-19c5-4df4-bd1d-03e93f0faf83" or cat.id == "6580e10e-eacf-402d-a330-51d202721cce" or cat.id == "a63019c7-0a46-40bd-bc1b-935c887a4380" %}
<div class="col-xs-12 col-sm-6 col-md-3 homepage-card-column" style="display:none;" data-category="{{cat.id}}">
<a href="{% route course, id: course.id %}" class="homepage-card">
<div class="homepage-card-content">
<div class="homepage-card-content">
<div class="homepage-card-img">
<img src="https://s3.amazonaws.com/static.northpass.com/zenjob/FINAL+-+Zenjob+(Purple+Cashier).png" alt="">
</div>
@ -78,7 +79,7 @@
{% if learning_path_cat.id == "087ea56d-888b-4e0f-af1f-68627318c841" or learning_path_cat.id == "9be55234-19c5-4df4-bd1d-03e93f0faf83" or learning_path_cat.id == "6580e10e-eacf-402d-a330-51d202721cce" or learning_path_cat.id == "a63019c7-0a46-40bd-bc1b-935c887a4380" %}
<div class="col-xs-12 col-sm-6 col-md-3 homepage-card-column" style="display:none;" data-category="{{learning_path_cat.id}}">
<a href="{% route learning_path, id: learning_path.id %}" class="homepage-card">
<div class="homepage-card-content">
<div class="homepage-card-content">
<div class="homepage-card-img">
<img src="https://s3.amazonaws.com/static.northpass.com/zenjob/opened-book.png" alt="">
</div>
@ -343,7 +344,7 @@
}
function filterCoursesByHash(urlHash) {
$(".dropdown-content a").each(function() {
if ($(this).attr('href') == urlHash) {
$(".dropbtn").text($(this).text())