Deleted some files. Anthology's hero image adjusted. Notes and todos.
This commit is contained in:
@ -37,15 +37,15 @@
|
||||
|
||||
<div class="np-homepage-hero">
|
||||
<img class="np-homepage-hero-image"
|
||||
src="https://s3.amazonaws.com/static.northpass.com/anthology/hero.svg"
|
||||
src="https://s3.amazonaws.com/static.northpass.com/anthology/Anthology_header_New.jpg"
|
||||
alt="{{ homepage.headline }}"
|
||||
/>
|
||||
<div class="np-homepage-hero-content">
|
||||
<div class="np-homepage-headline np-header-font-color">
|
||||
Welcome to Anthology Academy
|
||||
{% comment %} Welcome to Anthology Academy {% endcomment %}
|
||||
</div>
|
||||
<div class="np-homepage-subheadline np-header-font-color" style="line-height: 28px; margin: 8px auto 0; text-align: center; width: 60%;">
|
||||
Benefit from expert training and on-demand learning content to improve skills and ensure your team is getting the best Anthology experience possible.
|
||||
{% comment %} Benefit from expert training and on-demand learning content to improve skills and ensure your team is getting the best Anthology experience possible. {% endcomment %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -315,9 +315,21 @@
|
||||
margin-bottom: 12px
|
||||
}
|
||||
|
||||
@media screen and (min-width: 1651px){
|
||||
.np-main{
|
||||
margin-top: 400px;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 1440px){
|
||||
.np-main{
|
||||
margin-top: 350px;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 768px){
|
||||
.np-main{
|
||||
margin-top: 300px;
|
||||
margin-top: none;
|
||||
}
|
||||
|
||||
.mobile-subnav{
|
||||
@ -334,9 +346,11 @@
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.np-subpage-container{
|
||||
{% comment %}
|
||||
/*.np-subpage-container{
|
||||
padding: 50px 50px 184px;
|
||||
}
|
||||
}*/
|
||||
{% endcomment %}
|
||||
|
||||
.dropdown-menu{
|
||||
left: 0;
|
||||
|
||||
@ -19,13 +19,13 @@ body{
|
||||
|
||||
body,
|
||||
main{
|
||||
background-color: #FEFEFE !important;
|
||||
background-color: #FEFEFE !important;
|
||||
}
|
||||
|
||||
/* HEADER STYLES */
|
||||
|
||||
.np-header{
|
||||
border-top: 15px solid #e1ebf3;
|
||||
border-top: 5px solid #fffff;
|
||||
border-bottom: 2px solid #e1ebf3;
|
||||
height: 95px;
|
||||
padding: 0 22px;
|
||||
@ -104,7 +104,7 @@ main{
|
||||
|
||||
/* CAROUSEL BUTTON STYLES */
|
||||
/*.carousel-buttons-container{
|
||||
align-items: center;
|
||||
align-items: center;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
@ -117,7 +117,7 @@ main{
|
||||
height: 28px;
|
||||
justify-content: center;
|
||||
margin-bottom: 12px;
|
||||
width: 28px;
|
||||
width: 28px;
|
||||
}
|
||||
|
||||
.next-carousel-button{
|
||||
@ -170,7 +170,7 @@ main{
|
||||
line-height: 1;
|
||||
padding: 5px 12px;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
.product-filter-dropdown:focus,
|
||||
.category-filter-dropdown:focus{
|
||||
|
||||
@ -1,11 +0,0 @@
|
||||
# Date
|
||||
|
||||
## Goal -
|
||||
|
||||
## Attendees -
|
||||
|
||||
### Notes
|
||||
|
||||
*
|
||||
*
|
||||
*
|
||||
@ -1,6 +0,0 @@
|
||||
https://app.northpass.com/groups/
|
||||
|
||||
28cb22cf-6ac0-4f6c-852d-7ad77ab046cb
|
||||
|
||||
/memberships
|
||||
Onboarding Training Group:q
|
||||
@ -1 +0,0 @@
|
||||
wdkal;jwd;lkawd
|
||||
@ -1,99 +0,0 @@
|
||||
import requests
|
||||
import pandas as pd
|
||||
import Apikeys
|
||||
import pprint
|
||||
|
||||
pp = pprint.PrettyPrinter(indent=4)
|
||||
apiKey = Apikeys.SKUID
|
||||
course_dict = {}
|
||||
|
||||
COURSES= [
|
||||
"Shopping an order",
|
||||
"Delivery FAQs",
|
||||
"Checking out Shopping & Delivery orders",
|
||||
"Shopping & Delivery FAQs",
|
||||
"Communicating with customers",
|
||||
"Delivering an order",
|
||||
]
|
||||
|
||||
def get_course():
|
||||
count = 0
|
||||
courses = []
|
||||
|
||||
while True:
|
||||
count += 1
|
||||
url = f"https://api.northpass.com/v2/courses?page={count}"
|
||||
headers = {"accept": "application/json", "X-Api-Key": apiKey}
|
||||
response = requests.get(url, headers=headers)
|
||||
data = response.json()
|
||||
nextlink = data["links"]
|
||||
|
||||
for response in data["data"]:
|
||||
status = response["attributes"]["status"]
|
||||
uuid = response["id"]
|
||||
name = response["attributes"]["name"]
|
||||
# build_url = response["links"]["builder"]["href"]
|
||||
# if name in COURSES:
|
||||
print(uuid)
|
||||
course_dict = {
|
||||
"id": uuid,
|
||||
"name": name,
|
||||
"status": status,
|
||||
# "build_url": build_url
|
||||
# "url": f"https://walmart.northpass.com/app/courses/{uuid}",
|
||||
}
|
||||
courses.append(course_dict)
|
||||
# print(courses)
|
||||
|
||||
# FIX: Up until here, each course gets read to the terminal.
|
||||
# FIX: After this, something is being overwritten.
|
||||
|
||||
# cat_id = response["relationships"]["categories"]["data"]
|
||||
# get_cat_name(cat_id, course_dict, courses)
|
||||
|
||||
if "next" not in nextlink:
|
||||
break
|
||||
|
||||
# write_to_csv(courses)
|
||||
# pp.pprint(courses)
|
||||
# print(len(courses))
|
||||
|
||||
def get_cat_name(course_dict):
|
||||
headers = {"accept": "application/json", "X-Api-Key": apiKey}
|
||||
cats = []
|
||||
if len(cat_id) == 0:
|
||||
pass
|
||||
elif len(cat_id) == 1:
|
||||
categoryid = cat_id[0]["id"]
|
||||
url = f"https://api.northpass.com/v2/categories/{categoryid}"
|
||||
cat_resp = requests.get(url, headers=headers)
|
||||
cat_data = cat_resp.json()
|
||||
cat_name = cat_data["data"]["attributes"]["name"]
|
||||
print(cat_name)
|
||||
cats.append(cat_name)
|
||||
course_dict.update({"categories": cats})
|
||||
else:
|
||||
for item in cat_id:
|
||||
categoryid = item["id"]
|
||||
url = f"https://api.northpass.com/v2/categories/{categoryid}"
|
||||
cat_resp = requests.get(url, headers=headers)
|
||||
cat_data = cat_resp.json()
|
||||
cat_name = cat_data["data"]["attributes"]["name"]
|
||||
cats.append(cat_name)
|
||||
course_dict.update({"categories": cats})
|
||||
|
||||
try:
|
||||
courses.append(course_dict)
|
||||
except TypeError as e:
|
||||
print(f"Error: {e}")
|
||||
finally:
|
||||
write_to_csv(courses)
|
||||
|
||||
|
||||
def write_to_csv(courses):
|
||||
df = pd.DataFrame.from_dict(courses)
|
||||
df.to_csv("/Users/normrasmussen/Downloads/sps_courses.csv")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
get_course()
|
||||
2
Todos.md
2
Todos.md
@ -355,4 +355,4 @@ message](https://northpasshq.slack.com/archives/C04RER4PH09/p1709147957374999?th
|
||||
## 06-26-2024
|
||||
|
||||
- [ ] Walmart - Add visuals to instructions for single activity
|
||||
- [ ] Walmart - Change accordion in video activities to new accordion.
|
||||
- [X] Walmart - Change accordion in video activities to new accordion.
|
||||
|
||||
@ -1,111 +0,0 @@
|
||||
version: "3.8"
|
||||
|
||||
# In this Docker Compose example, it assumes that you maintain a reverse proxy externally (or chose not to).
|
||||
# The only two exposed ports here are from minio (:9000) and the app itself (:3000).
|
||||
# If these ports are changed, ensure that the env vars passed to the app are also changed accordingly.
|
||||
|
||||
services:
|
||||
# Database (Postgres)
|
||||
postgres:
|
||||
image: postgres:16-alpine
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
environment:
|
||||
POSTGRES_DB: pg-reactive
|
||||
POSTGRES_USER: pg-reactive
|
||||
POSTGRES_PASSWORD: reactiveresume
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U postgres -d postgres"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
# Storage (for image uploads)
|
||||
minio:
|
||||
image: minio/minio
|
||||
restart: unless-stopped
|
||||
command: server /data
|
||||
ports:
|
||||
- "9000:9000"
|
||||
volumes:
|
||||
- minio_data:/data
|
||||
environment:
|
||||
MINIO_ROOT_USER: rr-minioadmin
|
||||
MINIO_ROOT_PASSWORD: minioreactive
|
||||
|
||||
# Chrome Browser (for printing and previews)
|
||||
chrome:
|
||||
image: ghcr.io/browserless/chromium:latest
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
TIMEOUT: 10000
|
||||
CONCURRENT: 10
|
||||
TOKEN: chrome_token
|
||||
EXIT_ON_HEALTH_FAILURE: true
|
||||
PRE_REQUEST_HEALTH_CHECK: true
|
||||
|
||||
app:
|
||||
image: amruthpillai/reactive-resume:latest
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "3000:3000"
|
||||
depends_on:
|
||||
- postgres
|
||||
- minio
|
||||
- chrome
|
||||
environment:
|
||||
# -- Environment Variables --
|
||||
PORT: 3000
|
||||
NODE_ENV: production
|
||||
|
||||
# -- URLs --
|
||||
PUBLIC_URL: http://192.168.200.73:3000
|
||||
STORAGE_URL: http://192.168.200.73:9000/default
|
||||
|
||||
# -- Printer (Chrome) --
|
||||
CHROME_TOKEN: chrome_token
|
||||
CHROME_URL: ws://chrome:3000
|
||||
|
||||
# -- Database (Postgres) --
|
||||
DATABASE_URL: postgresql://pg-reactive:reactiveresume@pg-postgres:5432/postgres
|
||||
|
||||
# -- Auth --
|
||||
ACCESS_TOKEN_SECRET: c13fdfdacfdeb2b5185dffe89ba4d152a2e71d5d36c691fbc0a594e9695d992c87
|
||||
REFRESH_TOKEN_SECRET: d8665ce1f01b1dd2db85a53517c362a7668f025058e5218ee4e0d6fe233a81
|
||||
|
||||
# -- Emails --
|
||||
MAIL_FROM: no-reply-web@rsmsn.co
|
||||
# SMTP_URL: smtp://user:pass@smtp:587 # Optional
|
||||
|
||||
# -- Storage (Minio) --
|
||||
STORAGE_ENDPOINT: minio
|
||||
STORAGE_PORT: 9000
|
||||
STORAGE_REGION: us-east-1 # Optional
|
||||
STORAGE_BUCKET: default
|
||||
STORAGE_ACCESS_KEY: minioadmin
|
||||
STORAGE_SECRET_KEY: minioadmin
|
||||
STORAGE_USE_SSL: false
|
||||
STORAGE_SKIP_BUCKET_CHECK: false
|
||||
|
||||
# -- Crowdin (Optional) --
|
||||
# CROWDIN_PROJECT_ID:
|
||||
# CROWDIN_PERSONAL_TOKEN:
|
||||
|
||||
# -- Email (Optional) --
|
||||
# DISABLE_SIGNUPS: false
|
||||
# DISABLE_EMAIL_AUTH: false
|
||||
|
||||
# -- GitHub (Optional) --
|
||||
# GITHUB_CLIENT_ID: github_client_id
|
||||
# GITHUB_CLIENT_SECRET: github_client_secret
|
||||
# GITHUB_CALLBACK_URL: http://192.168.200.73:3000/api/auth/github/callback
|
||||
|
||||
# -- Google (Optional) --
|
||||
# GOOGLE_CLIENT_ID: google_client_id
|
||||
# GOOGLE_CLIENT_SECRET: google_client_secret
|
||||
# GOOGLE_CALLBACK_URL: http://192.168.200.73:3000/api/auth/google/callback
|
||||
|
||||
volumes:
|
||||
minio_data:
|
||||
postgres_data:
|
||||
Reference in New Issue
Block a user