From 3ee215a5b5d1038859fef1f3955da093345ad51c Mon Sep 17 00:00:00 2001 From: Norm Rasmussen Date: Fri, 6 Oct 2023 16:39:05 -0400 Subject: [PATCH] Added some scripts and customer notes. Change Papa Pal templates. --- .../_cards_course.html.liquid | 36 ++++ .../_course_desktop_view.html.liquid | 40 ++++ .../_course_mobile_view.html.liquid | 40 ++++ ..._course_version_outdated_popup.html.liquid | 37 ++++ .../Papa Pal University/_footer.html.liquid | 159 ++++++++++++++ .../Papa Pal University/_header.html.liquid | 201 ++++++++++++++++++ .../_homepage_hero.html.liquid | 135 ++++++++++++ .../Papa Pal University/course.html.liquid | 46 ++++ .../Papa Pal University/dashboard.html.liquid | 40 ++++ .../Papa Pal University/styles.css.liquid | 138 ++++++++++++ CustomerNotes/Anthology/Anthology.md | 12 ++ .../BigIdeasLearning/BigIdeasLearning.md | 7 + .../API_Tests/get_courses_w_descriptions.py | 2 +- 13 files changed, 892 insertions(+), 1 deletion(-) create mode 100644 Custom_Templates/customer_templates/Papa Pal University/_cards_course.html.liquid create mode 100644 Custom_Templates/customer_templates/Papa Pal University/_course_desktop_view.html.liquid create mode 100644 Custom_Templates/customer_templates/Papa Pal University/_course_mobile_view.html.liquid create mode 100644 Custom_Templates/customer_templates/Papa Pal University/_course_version_outdated_popup.html.liquid create mode 100644 Custom_Templates/customer_templates/Papa Pal University/_footer.html.liquid create mode 100644 Custom_Templates/customer_templates/Papa Pal University/_header.html.liquid create mode 100644 Custom_Templates/customer_templates/Papa Pal University/_homepage_hero.html.liquid create mode 100644 Custom_Templates/customer_templates/Papa Pal University/course.html.liquid create mode 100644 Custom_Templates/customer_templates/Papa Pal University/dashboard.html.liquid create mode 100644 Custom_Templates/customer_templates/Papa Pal University/styles.css.liquid diff --git a/Custom_Templates/customer_templates/Papa Pal University/_cards_course.html.liquid b/Custom_Templates/customer_templates/Papa Pal University/_cards_course.html.liquid new file mode 100644 index 00000000..6226affd --- /dev/null +++ b/Custom_Templates/customer_templates/Papa Pal University/_cards_course.html.liquid @@ -0,0 +1,36 @@ +{% capture course_path %} + {% route course, id: course.id %}{% endcapture %} + + +
+
+ {% if course.ribbon %} +
+ {{ course.ribbon }} +
+ {% endif %} + {{ course.name }} +
+
+

+ {{ course.name }} +

+
+ {{ course.instructor_names }} +
+ +
+
+
+
\ No newline at end of file diff --git a/Custom_Templates/customer_templates/Papa Pal University/_course_desktop_view.html.liquid b/Custom_Templates/customer_templates/Papa Pal University/_course_desktop_view.html.liquid new file mode 100644 index 00000000..e16fee16 --- /dev/null +++ b/Custom_Templates/customer_templates/Papa Pal University/_course_desktop_view.html.liquid @@ -0,0 +1,40 @@ +
+
+ {% include "course_header" %} +
+
+
+
+ {{ course.name }} + {% include "course_description" %} + + {% if course.categories.any? %} +
+ {% include "course_categories" %} +
+ {% endif %} + + {% if course.instructors.any? %} +
+ {% include "course_instructors" %} +
+ {% endif %} + + {% if course.events.any? %} +
+ {% include "course_events" %} +
+ {% endif %} +
+
+
+ {% include "course_progress_and_cta" %} +
+ {% include "course_outline" %} +
+
+
diff --git a/Custom_Templates/customer_templates/Papa Pal University/_course_mobile_view.html.liquid b/Custom_Templates/customer_templates/Papa Pal University/_course_mobile_view.html.liquid new file mode 100644 index 00000000..e12ed316 --- /dev/null +++ b/Custom_Templates/customer_templates/Papa Pal University/_course_mobile_view.html.liquid @@ -0,0 +1,40 @@ +
+ {% include "course_header" %} +
+ {% include "course_progress_and_cta" %} +
+
+ +{% if course.progress == 0 %} +
+ {% include "course_description" %} +
+
+ {% include "course_outline" %} +
+{% else %} +
+ {% include "course_description" %} +
+
+ {% include "course_outline" %} +
+{% endif %} + +{% if course.categories.any? %} +
+ {% include "course_categories" %} +
+{% endif %} + +{% if course.instructors.any? %} +
+ {% include "course_instructors" %} +
+{% endif %} + +{% if course.events.any? %} +
+ {% include "course_events" %} +
+{% endif %} diff --git a/Custom_Templates/customer_templates/Papa Pal University/_course_version_outdated_popup.html.liquid b/Custom_Templates/customer_templates/Papa Pal University/_course_version_outdated_popup.html.liquid new file mode 100644 index 00000000..dd53df9c --- /dev/null +++ b/Custom_Templates/customer_templates/Papa Pal University/_course_version_outdated_popup.html.liquid @@ -0,0 +1,37 @@ +
+
+ + +
+
+ + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Papa Pal University/_footer.html.liquid b/Custom_Templates/customer_templates/Papa Pal University/_footer.html.liquid new file mode 100644 index 00000000..5cdff718 --- /dev/null +++ b/Custom_Templates/customer_templates/Papa Pal University/_footer.html.liquid @@ -0,0 +1,159 @@ +
+ +
+ + + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Papa Pal University/_header.html.liquid b/Custom_Templates/customer_templates/Papa Pal University/_header.html.liquid new file mode 100644 index 00000000..384283d0 --- /dev/null +++ b/Custom_Templates/customer_templates/Papa Pal University/_header.html.liquid @@ -0,0 +1,201 @@ +
+
+
+ {% if current_person.signed_in? %} + + + {% endif %} +
+ {% if current_school.logo_url %} +

+ + {{ current_school.name }} + +

+ {% else %} + + {{ current_school.name }} + + {% endif %} + +
+ +
+ + {% if current_person.signed_in? %} +
+ {% comment %} {% endcomment %} + +
+ {% else %} +
+ +
+
+ +{% include "messages" %} + + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Papa Pal University/_homepage_hero.html.liquid b/Custom_Templates/customer_templates/Papa Pal University/_homepage_hero.html.liquid new file mode 100644 index 00000000..fba938b5 --- /dev/null +++ b/Custom_Templates/customer_templates/Papa Pal University/_homepage_hero.html.liquid @@ -0,0 +1,135 @@ +
+
+
+
+

Papa Pal University

+
+
+
+
+
+
+
+
+
+
+
+ + + diff --git a/Custom_Templates/customer_templates/Papa Pal University/course.html.liquid b/Custom_Templates/customer_templates/Papa Pal University/course.html.liquid new file mode 100644 index 00000000..5328ba03 --- /dev/null +++ b/Custom_Templates/customer_templates/Papa Pal University/course.html.liquid @@ -0,0 +1,46 @@ +{% include "header" %} +
+
+ {% include "course_desktop_view" %} +
+
+ {% include "course_mobile_view" %} +
+
+{% include "footer" %} + + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Papa Pal University/dashboard.html.liquid b/Custom_Templates/customer_templates/Papa Pal University/dashboard.html.liquid new file mode 100644 index 00000000..0e78ac60 --- /dev/null +++ b/Custom_Templates/customer_templates/Papa Pal University/dashboard.html.liquid @@ -0,0 +1,40 @@ +{% include "header" %} +{% include "homepage_hero" %} +{% comment %} {% include "sub_navigation" %} {% endcomment %} +
+
+
+
+
Required Training
+
All Pals need to complete the below training. The information in it will help you better understand Papa, our members and how we all work together to ensure a safe and positive Papa community.
+
+
+
+ +
+ {% comment %} {% if features.training_events? %} + {% assign courses_index_col = "col-sm-8" %} + {% assign cards_classes = "col-xs-12 col-sm-6 np-stretch-content " %} + {% else %} + {% assign courses_index_col = "col-sm-11" %} + {% assign cards_classes = "col-xs-12 col-sm-6 col-md-4 np-stretch-content" %} + {% endif %} {% endcomment %} +
+ {% if features.learning_paths? %} +
+ {% t shared.learning_paths %} +
+ {% include "learning_paths_index", items: learning_paths.enrolled %} + {% endif %} + {% include "courses_index", class: "col-xs-12 col-sm-6 col-md-4 np-stretch-content" %} +
+ {% comment %} {% if features.training_events? %} +
+
+ {% t.upcoming_events %} +
+ {% include "training_events_dashboard" %} +
+ {% endif %} {% endcomment %}
+
+{% include "footer" %} \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Papa Pal University/styles.css.liquid b/Custom_Templates/customer_templates/Papa Pal University/styles.css.liquid new file mode 100644 index 00000000..4a224467 --- /dev/null +++ b/Custom_Templates/customer_templates/Papa Pal University/styles.css.liquid @@ -0,0 +1,138 @@ +/* + Put your custom overlay styles in here + You can use your northpass color palette in this file + +{{ color_palette.button_font_color }} +{{ color_palette.button_color }} +{{ color_palette.button_hover_color }} +{{ color_palette.header_font_color }} +{{ color_palette.header_font_hover_color }} +{{ color_palette.header_color }} +*/ + +@font-face { + font-family: "Moderne"; + src: url('https://s3.amazonaws.com/static.northpass.com/fonts/ModerneLL-Bold.woff2'); + font-weight: 700; +} + +@font-face { + font-family: "Moderne"; + src: url('https://s3.amazonaws.com/static.northpass.com/fonts/ModerneLL-Fat.woff2'); + font-weight: 900; +} + +@font-face { + font-family: "Bradford"; + src: url('https://s3.amazonaws.com/static.northpass.com/fonts/BradfordLL-Regular.woff2'); + font-weight: 400; +} + + +/* GLOBAL STYLES */ + +body, +.np-dashboard { + background: #f5fbff; + color: #06083c; + font-family: 'Bradford', "Times New Roman", serif; +} + +h1, +h2, +h3, +h4, +h5, +h6, +a { + font-family: 'Moderne', Verdana, sans-serif; +} + +.np-subpage-container { + padding: 64px 24px; +} + +.np-header { + position: absolute; + top: 0; + background-color: transparent; +} + +.back-to-home { + text-decoration: none; + font-size: 22px; + font-weight: 700; + color: #06083c; + font-family: 'Bradford', "Times New Roman", serif; +} + +.back-to-home i { + background-color: #1140c0; + border-radius: 50%; + padding: 12px; + color: #69f1ff; + margin-right: 16px; + font-size: 22px; +} + +@media(min-width:768px) { + .np-subpage-container { + padding: 80px 24px; + } + + .np-header-logo-image { + height: 80px; + } +} + +.np-card { + transition: all 0.1s; + text-decoration: none; + display: block; +} + +.np-card:hover { + transform: rotate(-3deg) +} + +.np-card .np-card-container { + border-radius: 16px; + overflow: hidden; + box-shadow: none; +} + +.np-img-container { + position: relative; +} + +.np-card .np-button { + border-radius: 30px; +} + +.np-card .np-card-content .np-card-content-progress { + font-family: 'Bradford', "Times New Roman", serif; + font-size: 14px; +} + +.np-card-ribbon { + border-radius: 30px; + left: 8px; + right: auto; + top: auto; + bottom: 10px; + padding: 5px 12px; + font-family: 'Bradford', "Times New Roman", serif; + text-transform: none; + font-size: 16px; + line-height: 16px; + color: #1140c0; + background-color: #69f1ff +} + +@media(min-width:768px) { + @media screen and (min-width: 768px) { + .row .np-card { + margin: 0; + padding: 0 16px 32px; + } + } \ No newline at end of file diff --git a/CustomerNotes/Anthology/Anthology.md b/CustomerNotes/Anthology/Anthology.md index a8b5321b..1604db20 100644 --- a/CustomerNotes/Anthology/Anthology.md +++ b/CustomerNotes/Anthology/Anthology.md @@ -267,3 +267,15 @@ designs and these new ones. * Product (Custom Property) * Course/Activities * Talk with Austin about what's possible - can the filtering work with the existing search results? Not separate searches? + +## 10/06/2023 + +### Weekly Sync, Aaron invited + +Questions and Topics are mostly around Aaron's workflow. + +* End of Course screen: + * Update it programmatically - data fix? + * Wanted to discuss how other clients leverage the end of course screen + * I offered to help if they have the same custom screen for each course. + * I need to test on my end what the database entry looks like for a custom end of course screen diff --git a/CustomerNotes/BigIdeasLearning/BigIdeasLearning.md b/CustomerNotes/BigIdeasLearning/BigIdeasLearning.md index 39e95b4a..97da8fc8 100644 --- a/CustomerNotes/BigIdeasLearning/BigIdeasLearning.md +++ b/CustomerNotes/BigIdeasLearning/BigIdeasLearning.md @@ -369,3 +369,10 @@ To better understand how we can make learners/teachers better and easier access * Meet with Marta re: analytics. * Send Sophia LP analytics before end of next week. * Frustrated with unannounced changes in the platform. + +## 10/06/2023 + +### Access & Design Project + +DONE: Get Sophia a marketing number on usage increase between embedded and non-embedded academies. + diff --git a/Scripts/API_Tests/get_courses_w_descriptions.py b/Scripts/API_Tests/get_courses_w_descriptions.py index 613394ea..828a9f21 100644 --- a/Scripts/API_Tests/get_courses_w_descriptions.py +++ b/Scripts/API_Tests/get_courses_w_descriptions.py @@ -59,7 +59,7 @@ def write_to_csv(courses): Takes on parameter, the list of courses. """ df = pd.DataFrame.from_dict(courses) - df.to_csv("/Users/normrasmussen/Downloads/walmart_courses_descriptions.csv") + df.to_csv("/Users/normrasmussen/Downloads/courses_descriptions.csv") if __name__ == "__main__":