diff --git a/Custom_Templates/customer_templates/DeepL/.DS_Store b/Custom_Templates/customer_templates/DeepL/.DS_Store new file mode 100644 index 00000000..5008ddfc Binary files /dev/null and b/Custom_Templates/customer_templates/DeepL/.DS_Store differ diff --git a/Custom_Templates/customer_templates/DeepL/_banner.html.liquid b/Custom_Templates/customer_templates/DeepL/_banner.html.liquid index 708aa599..a8a9886b 100644 --- a/Custom_Templates/customer_templates/DeepL/_banner.html.liquid +++ b/Custom_Templates/customer_templates/DeepL/_banner.html.liquid @@ -2,18 +2,18 @@ @@ -21,7 +21,7 @@ .banner-container { display: flex; gap: 20px; - background: #F8F8F8; + background: #1FCF9A; padding: 32px; border-radius: 8px; @@ -35,7 +35,7 @@ justify-content: space-between; } .banner-heading { - font-size: 80px; + font-size: 56px; font-weight: 300; line-height: 80px; letter-spacing: -0.015em; @@ -59,6 +59,6 @@ } .banner-btn-container { display: flex; - margin-top: 15%; + margin-top: 10%; } \ No newline at end of file diff --git a/Custom_Templates/customer_templates/DeepL/_cards_course.html.liquid b/Custom_Templates/customer_templates/DeepL/_cards_course.html.liquid index f89c8f41..94ae5df2 100644 --- a/Custom_Templates/customer_templates/DeepL/_cards_course.html.liquid +++ b/Custom_Templates/customer_templates/DeepL/_cards_course.html.liquid @@ -1,23 +1,45 @@
- {{ course.name }} + > {% endcomment %} +
+ {{ course.name }} + {% if course.ribbon %} +
+ {{course.ribbon}} +
+ {% endif %} +
- {{course.activities_count}} lessons | {{course.properties.course_time}} minutes + {{course.activities_count}} lessons
{{course.activities_count}} Lektionen
+
+ {{course.activities_count}} レッスン +
+
+ {{course.activities_count}} leçons +
+
+ {{course.properties.course_time}} minutes +
+
+ {{course.properties.course_time}} minuten +
- {{course.properties.course_time}} leçons + {{course.properties.course_time}} minutes
- {{course.properties.course_time}} レッスン + {{course.properties.course_time}} 分
@@ -37,28 +59,28 @@ {% if course.progress == 0 %} Get started - {% else %} + {% else %} Continue {% endif %} {% if course.progress == 0 %} Starten - {% else %} + {% else %} Weiter {% endif %} {% if course.progress == 0 %} Commencer - {% else %} + {% else %} Continue {% endif %} {% if course.progress == 0 %} 開始する - {% else %} + {% else %} 続ける {% endif %} diff --git a/Custom_Templates/customer_templates/DeepL/_cards_resources.html.liquid b/Custom_Templates/customer_templates/DeepL/_cards_resources.html.liquid index 6334c463..59ee86f3 100644 --- a/Custom_Templates/customer_templates/DeepL/_cards_resources.html.liquid +++ b/Custom_Templates/customer_templates/DeepL/_cards_resources.html.liquid @@ -1,10 +1,16 @@
- {{ course.name }} +
+ {{ course.name }} + {% if course.ribbon %} +
+ {{course.ribbon}} +
+ {% endif %} +
+ diff --git a/Custom_Templates/customer_templates/DeepL/_course_progress_and_cta.html.liquid b/Custom_Templates/customer_templates/DeepL/_course_progress_and_cta.html.liquid index ffeb4557..5323e26a 100644 --- a/Custom_Templates/customer_templates/DeepL/_course_progress_and_cta.html.liquid +++ b/Custom_Templates/customer_templates/DeepL/_course_progress_and_cta.html.liquid @@ -43,15 +43,20 @@ {% endif %} > {% if course.enrolled? == false %} - {% t shared.enroll %} - Start Course + Get started Commencer - Kurs starten + Loslegen + 今すぐ開始 {% elsif course.started? == false %} Start Course Commencer - Kurs starten + Kurs starten + 今すぐ開始 {% elsif course.completed? %} + Start + Commencer + Starten + 今すぐ開始 {% t shared.course.view, key: current_school.course_vocabulary %} {% else %} {% t shared.continue %} diff --git a/Custom_Templates/customer_templates/DeepL/_header.html.liquid b/Custom_Templates/customer_templates/DeepL/_header.html.liquid index 1811336f..c3870c2b 100644 --- a/Custom_Templates/customer_templates/DeepL/_header.html.liquid +++ b/Custom_Templates/customer_templates/DeepL/_header.html.liquid @@ -1,4 +1,4 @@ -{% assign userLanguage = current_person.properties.learner_language | upcase %} +{% assign userLanguage = current_person.properties.learner_language | upcase%}
@@ -60,7 +60,7 @@ Formations - + Webinars @@ -112,7 +112,7 @@ data-toggle-outside data-toggle-escape> Language - + - + + + + +
  • +
  • + +
  • +
  • + +
{% endif %} @@ -450,13 +494,13 @@ lp.classList.add('active-nav'); break; case '/app/catalog': - courses.classList.add('active-nav'); + courses.classList.add('active-nav'); break; case '/app/training_events': - webinars.classList.add('active-nav'); + webinars.classList.add('active-nav'); break; case '/app/resources': - resources.classList.add('active-nav'); + resources.classList.add('active-nav'); break; default: break; @@ -478,7 +522,7 @@ document.addEventListener("DOMContentLoaded", function() { let userLanguage = localStorage.getItem("userLanguage"); let userLanguageCustomPropValue = '{{current_person.properties.learner_language}}' - + if (userLanguage === null) { userLanguage = "en"; localStorage.setItem("userLanguage", userLanguage); @@ -538,4 +582,4 @@ }); }); }); - + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/DeepL/_resources-filters.html.liquid b/Custom_Templates/customer_templates/DeepL/_resources-filters.html.liquid index 832a186a..8538a4cc 100644 --- a/Custom_Templates/customer_templates/DeepL/_resources-filters.html.liquid +++ b/Custom_Templates/customer_templates/DeepL/_resources-filters.html.liquid @@ -12,10 +12,10 @@
Glossare
Glossaires
用語集
-
Document translation
-
Dokumentübersetzung
-
Traduction de documents
-
文書ファイルの翻訳
+
File translation
+
Dateiübersetzung
+
Traduction de fichiers
+
ファイル翻訳
Apps
Extensions and integrations
Erweiterungen und Integrationen
@@ -24,6 +24,7 @@
Write
Voice
API
+
Spotlights
diff --git a/Custom_Templates/customer_templates/DeepL/_resources_content.html.liquid b/Custom_Templates/customer_templates/DeepL/_resources_content.html.liquid index 111de83a..bb6f89aa 100644 --- a/Custom_Templates/customer_templates/DeepL/_resources_content.html.liquid +++ b/Custom_Templates/customer_templates/DeepL/_resources_content.html.liquid @@ -4,8 +4,8 @@
{% for course in courses.in_catalog %} - {% if course.properties.resource == true %} - {% if course.properties.language == userLanguage %} + {% if course.properties.resource == true %} + {% if course.properties.language == userLanguage %}
{% include "cards_resources" %}
{% endif %} {% endif %} @@ -60,12 +60,12 @@ background: #6CF1C9; } - @media only screen and (max-width: 1170px) { + @media only screen and (max-width: 1170px) { .catalog-courses-wrapper { grid-template-columns: repeat(2,1fr); } } - @media only screen and (max-width: 768px) { + @media only screen and (max-width: 768px) { .catalog-courses-wrapper { grid-template-columns: repeat(1,1fr); } @@ -77,7 +77,7 @@ document.addEventListener("DOMContentLoaded", function() { const filters = document.querySelectorAll('.filter'); const cards = document.querySelectorAll('.catalog-course-container .card'); - let activeFilter = null; + let activeFilter = null; filters.forEach(filter => { filter.addEventListener('click', function() { @@ -88,7 +88,7 @@ document.addEventListener("DOMContentLoaded", function() { filter.classList.remove('filter-active'); } else { activeFilter = value; - + filters.forEach(f => f.classList.remove('filter-active')); filter.classList.add('filter-active'); } @@ -114,4 +114,4 @@ document.addEventListener("DOMContentLoaded", function() { } } }); - + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/DeepL/homepage.html.liquid b/Custom_Templates/customer_templates/DeepL/homepage.html.liquid index a1ef7e78..4e99458b 100644 --- a/Custom_Templates/customer_templates/DeepL/homepage.html.liquid +++ b/Custom_Templates/customer_templates/DeepL/homepage.html.liquid @@ -109,9 +109,9 @@ {% include "webinars" %} {% endif %} - {% comment %}
+
{% include "banner" %} -
{% endcomment %} +
{% include "footer" %} diff --git a/Custom_Templates/customer_templates/DeepL/styles.css.liquid b/Custom_Templates/customer_templates/DeepL/styles.css.liquid index 7a3ceef6..f4fdaeb3 100644 --- a/Custom_Templates/customer_templates/DeepL/styles.css.liquid +++ b/Custom_Templates/customer_templates/DeepL/styles.css.liquid @@ -181,6 +181,7 @@ section { font-size: 14px; font-weight: 400; margin-bottom: 20px; + align-items: center; } .course-lessons { padding-right: 5px; @@ -189,6 +190,20 @@ section { .course-time { padding-left: 5px; } + +.sl-card-ribbon { + background: #FFE769; + color: #0F2B46; + font-size: 16px; + font-weight: 400; + line-height: 14px; + padding: 7px 12px; + position: absolute; + right: 8px; + border-radius: 4px; + top: 8px; +} + .slick-track { display: flex !important; } diff --git a/Scripts/API_Tests/get_category_ids.py b/Scripts/API_Tests/get_category_ids.py index a2e6cc39..85398816 100644 --- a/Scripts/API_Tests/get_category_ids.py +++ b/Scripts/API_Tests/get_category_ids.py @@ -3,11 +3,11 @@ import os import Apikeys import requests -apikey = Apikeys.SUPPLIERPROD +apikey = Apikeys.DEEPL cmd = "touch ~/Downloads/Supplier_Categories.csv" os.system(cmd) -url = "https://api2.northpass.com/v2/categories?limit=100" +url = "https://api.northpass.com/v2/categories?limit=100" headers = { "accept": "application/json", "X-Api-Key" : apikey, @@ -28,3 +28,8 @@ with open('/Users/normrasmussen/Downloads/Supplier_Categories.csv', 'r') as read for row in reader: print(row) + +""" +For use in URLS, the filter syntax is ?filter[category_uuid][in][]=6bfcb970-d82f-4ed9-ad7b-d17f1b82a6a9 +Category Names don't work +""" diff --git a/Tasks.md b/Tasks.md index 7d4ec5be..96397576 100644 --- a/Tasks.md +++ b/Tasks.md @@ -39,8 +39,8 @@ ## Chubb ### Tasks -- [ ] Ask in SJ Migrations channel how we deal with old CE Links. Can we do a catch all error page? -- [ ] Explore Google Form for CISA upload and management +- [X] Ask in SJ Migrations channel how we deal with old CE Links. Can we do a catch all error page? +- [X] Explore Google Form for CISA upload and management ### Completed - [X] Book EMC time for Alisha, Jared, me, Kim, and Jenelle @@ -60,6 +60,9 @@ ## DeepL +- [-] Provide clients ability to easily access Spotlights feature. + - [ ] Sort order of the resources (only) based on 1. date published or 2. Ribbon == new. + - [X] Investigate what the url category filtering is and see if it works with DeepL's custom templates. ### Completed - [X] Ask if product will add an export button to the new access tab or have a dashboard around enrollment source. - 04-22-2025