From 4acfdb6c63ab92073e21512ba8e9dd8a907bb702 Mon Sep 17 00:00:00 2001 From: Norm Rasmussen Date: Tue, 3 May 2022 06:40:00 -0400 Subject: [PATCH] stripe --- .DS_Store | Bin 6148 -> 0 bytes NP_Custom_Templates/.DS_Store | Bin 8196 -> 0 bytes .../customer_templates/.DS_Store | Bin 12292 -> 0 bytes .../customer_templates/CameraIQ/.DS_Store | Bin 6148 -> 0 bytes .../Guided Implementation/.DS_Store | Bin 6148 -> 0 bytes .../customer_templates/JnJVision/.DS_Store | Bin 6148 -> 0 bytes .../customer_templates/One Network/.DS_Store | Bin 6148 -> 0 bytes .../customer_templates/Postman/.DS_Store | Bin 6148 -> 0 bytes ..._courses_partnertraining_index.html.liquid | 16 ++- .../Stripe/_widget_achievements.html.liquid | 134 ++++++++++++++++++ .../Stripe/homepage.html.liquid | 56 ++++++++ NP_Custom_Templates/templates/.DS_Store | Bin 6148 -> 0 bytes 12 files changed, 201 insertions(+), 5 deletions(-) delete mode 100644 .DS_Store delete mode 100644 NP_Custom_Templates/.DS_Store delete mode 100644 NP_Custom_Templates/customer_templates/.DS_Store delete mode 100644 NP_Custom_Templates/customer_templates/CameraIQ/.DS_Store delete mode 100644 NP_Custom_Templates/customer_templates/Employment_Hero/Guided Implementation/.DS_Store delete mode 100644 NP_Custom_Templates/customer_templates/JnJVision/.DS_Store delete mode 100644 NP_Custom_Templates/customer_templates/One Network/.DS_Store delete mode 100644 NP_Custom_Templates/customer_templates/Postman/.DS_Store create mode 100644 NP_Custom_Templates/customer_templates/Stripe/_widget_achievements.html.liquid delete mode 100644 NP_Custom_Templates/templates/.DS_Store diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index c26efb4e3093ece6de671b0338556c5a066e710f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKu};G<5PgOSDnJN{g)w4b0>l7wfFd@8RQA%+svtE=MO)?!Ole zv^U%g7>Y$4BIB=xHkzoSf-_t)j}Ch12DxB8`EGoeU%ol(@*6uxnhobXSxmqK$HHS7 zM{HEFk3PE0JwwW;6LLz)rHvYW%>twAyNAgmLvA11PdIPL@~6=O-`j!kUGRJ>!^PX87Fcr0e0z9+DO7jl2Rs~c6Rp3Jb z*&kvS!Ng9>=l3*(QS=w`AZ=&vB$(??vOn+<3fop)c7lgapCmGeq7=)cj&@l z{N=;=nT@}p7&|-PAKT$Di9@Yb0aYMWVA?${$@zcq_5D8#(kE3w75G;Qn5bMS?~#%} zTSv&rSsSyQvWUsJ+@TF&<&R_AkfV5o#Txr!X%G{SxkGwr`bWUZpp`1{s|vgUzznP+ diff --git a/NP_Custom_Templates/.DS_Store b/NP_Custom_Templates/.DS_Store deleted file mode 100644 index da5a327618a5f77a80a0a05c6ac7a64069e0941e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 8196 zcmeHML2DC16n>MYH9%ES)ATO9hcS12f-b-g~q2zI{8pZvp_U)@zjj<^dpw zm2mDXHWLcTsg9M58o7YT&>nz82Rw+N0m+!Q888eO1`Gp+0mFb{;9p<>-`P}hN4)o? z)U<{H!@z&Z0PPPJR>G>nkwmd|U?Wlh#4HYrf_=;bgpH-Js&FJxnBtr=dtl0xsT6}r zbCg@8j#yPVk|@oANpoQ8%1mV_Ok5r9ETImpD$%rt0mHyJ1C+a;gC_JK#+?0N{_bHe z--Q4i9QPo0`*GI|xQqH9-EQE=NwN5aWu~&zGiP%7d@f(eKepSvZzoRDi)&8wkbd2B zlD4b*>zoJseaGGKy?$fv{0a{f#}B`RUSR?!xrz?crR?lVjf!x#DyAjmj;7U zdAYJ^EiF}si`JlWy|`$Vm&?OpK6i1UbYpe1v$H#RHhlh4I?U9j0kek)c$L=sV5?*| zd8aGvXWp%+wd?SDU9m@gjKJ3)$7>&o zj61LQL}VN@e}`-FkitTXg3Kl^2reV*O=zPRbT_xr2M?d}tK;6_SV!DL@-xzW+ui$c z@|kqMN1*&Z;ktBA{&Y5tufYrAD?iT6YQUT7nWm2o+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T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0 - {% 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 5008ddfcf53c02e82d7eee2e57c38e5672ef89f6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0