diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index c26efb4e..00000000 Binary files a/.DS_Store and /dev/null differ diff --git a/NP_Custom_Templates/.DS_Store b/NP_Custom_Templates/.DS_Store deleted file mode 100644 index da5a3276..00000000 Binary files a/NP_Custom_Templates/.DS_Store and /dev/null differ diff --git a/NP_Custom_Templates/customer_templates/.DS_Store b/NP_Custom_Templates/customer_templates/.DS_Store deleted file mode 100644 index 1a865f9a..00000000 Binary files a/NP_Custom_Templates/customer_templates/.DS_Store and /dev/null differ diff --git a/NP_Custom_Templates/customer_templates/CameraIQ/.DS_Store b/NP_Custom_Templates/customer_templates/CameraIQ/.DS_Store deleted file mode 100644 index 5008ddfc..00000000 Binary files a/NP_Custom_Templates/customer_templates/CameraIQ/.DS_Store and /dev/null differ diff --git a/NP_Custom_Templates/customer_templates/Employment_Hero/Guided Implementation/.DS_Store b/NP_Custom_Templates/customer_templates/Employment_Hero/Guided Implementation/.DS_Store deleted file mode 100644 index 5008ddfc..00000000 Binary files a/NP_Custom_Templates/customer_templates/Employment_Hero/Guided Implementation/.DS_Store and /dev/null differ diff --git a/NP_Custom_Templates/customer_templates/JnJVision/.DS_Store b/NP_Custom_Templates/customer_templates/JnJVision/.DS_Store deleted file mode 100644 index 5008ddfc..00000000 Binary files a/NP_Custom_Templates/customer_templates/JnJVision/.DS_Store and /dev/null differ diff --git a/NP_Custom_Templates/customer_templates/One Network/.DS_Store b/NP_Custom_Templates/customer_templates/One Network/.DS_Store deleted file mode 100644 index 87fc7654..00000000 Binary files a/NP_Custom_Templates/customer_templates/One Network/.DS_Store and /dev/null differ diff --git a/NP_Custom_Templates/customer_templates/Postman/.DS_Store b/NP_Custom_Templates/customer_templates/Postman/.DS_Store deleted file mode 100644 index 5008ddfc..00000000 Binary files a/NP_Custom_Templates/customer_templates/Postman/.DS_Store and /dev/null differ diff --git a/NP_Custom_Templates/customer_templates/Stripe/_courses_partnertraining_index.html.liquid b/NP_Custom_Templates/customer_templates/Stripe/_courses_partnertraining_index.html.liquid index e61b614b..0514eee8 100644 --- a/NP_Custom_Templates/customer_templates/Stripe/_courses_partnertraining_index.html.liquid +++ b/NP_Custom_Templates/customer_templates/Stripe/_courses_partnertraining_index.html.liquid @@ -42,7 +42,6 @@ {% if show_learning_paths_section or show_events_section %}
- {% if show_learning_paths_section %}

@@ -51,17 +50,24 @@ {% include "learning_paths_index", items: learning_paths.enrolled, card_classes: learning_path_card_classes %}

{% endif %} - {% if show_events_section %}

Upcoming Events

{% include "training_events_dashboard", card_classes: event_card_classes %} -
+
+ {% endif %} - - + {% comment %} +
+
Recent Achievements
+
+ {% include "widget_achievements" %} +
+
+ {% endcomment %} + {% endif %} diff --git a/NP_Custom_Templates/customer_templates/Stripe/_widget_achievements.html.liquid b/NP_Custom_Templates/customer_templates/Stripe/_widget_achievements.html.liquid new file mode 100644 index 00000000..0112b0ca --- /dev/null +++ b/NP_Custom_Templates/customer_templates/Stripe/_widget_achievements.html.liquid @@ -0,0 +1,134 @@ +{% comment %} + For this widget to work you must import Slick CSS and JS +{% endcomment %} + +
+
+
+ {% if courses.enrolled.any? %} +
+ + View All + {% else %} + {% capture message %} + {% t shared.zero_state.courses.index, + key: current_school.course_vocabulary + %} + {% endcapture %} + {% include "courses_zero_state", message: message %} + {% endif %} +
+
+
+
+ + + + diff --git a/NP_Custom_Templates/customer_templates/Stripe/homepage.html.liquid b/NP_Custom_Templates/customer_templates/Stripe/homepage.html.liquid index 7ff1097e..93095f0d 100644 --- a/NP_Custom_Templates/customer_templates/Stripe/homepage.html.liquid +++ b/NP_Custom_Templates/customer_templates/Stripe/homepage.html.liquid @@ -5,10 +5,27 @@
{{ homepage.headline }}
+ {% assign role = current_person.properties.role %} + {% case role %} + {% when 'developer', 'architect' %}
Hi {{ current_person.display_name }}, how is the weather in {{ current_person.properties.location }}? Here is the training you are eligible for in your role as {{ current_person.properties.role }}.
+ {% else %} +
+ Hi {{ current_person.display_name }}, how is the weather in {{ current_person.properties.location }}? + Here is the training you are eligible for in your role as + +
+ {% endcase %} {% comment %} @@ -120,4 +137,43 @@ main { background-position: 0% 79%; } } + +.dropbtn { + background-color: transparent; + color: #1B2759; + border: black; +} + +/* The container
- needed to position the dropdown content */ +.dropdown { + position: relative; + display: inline-block; +} + +/* Dropdown Content (Hidden by Default) */ +.dropdown-content { + display: none; + position: absolute; + background-color: #635bff60; + min-width: 100%; + box-shadow: 0px 8px 8px 0px rgba(0,0,0,0.2); + z-index: 1; +} + +/* Links inside the dropdown */ +.dropdown-content a { + color: black; + padding: 12px 16px; + text-decoration: none; + display: block; +} + +/* Change color of dropdown links on hover */ +.dropdown-content a:hover {background-color: #635bffc6;} + +/* Show the dropdown menu on hover */ +.dropdown:hover .dropdown-content {display: block;} + +/* Change the background color of the dropdown button when the dropdown content is shown */ +.dropdown:hover .dropbtn {background-color: #635bff;} \ No newline at end of file diff --git a/NP_Custom_Templates/templates/.DS_Store b/NP_Custom_Templates/templates/.DS_Store deleted file mode 100644 index 5008ddfc..00000000 Binary files a/NP_Custom_Templates/templates/.DS_Store and /dev/null differ