From edf672ac13c20527ea5e1767f5b145bcee93f802 Mon Sep 17 00:00:00 2001 From: jenniw Date: Tue, 16 Jan 2024 15:15:57 -0500 Subject: [PATCH] Explain Course Formats (#2054) * updated components with links. need actual links. * add in new links and archive * program links * fix fmt --- .../scss/product-page/product-details.scss | 9 +++++ .../public/src/components/CourseInfoBox.js | 35 +++++++++++++++++-- .../public/src/components/ProgramInfoBox.js | 22 ++++++++++-- 3 files changed, 61 insertions(+), 5 deletions(-) diff --git a/frontend/public/scss/product-page/product-details.scss b/frontend/public/scss/product-page/product-details.scss index 0a91a68456..3f4bc41445 100644 --- a/frontend/public/scss/product-page/product-details.scss +++ b/frontend/public/scss/product-page/product-details.scss @@ -336,6 +336,14 @@ body.new-design { width: auto; flex-grow: 1; + .pacing-faq-link { + color: $home-page-dark-blue; + text-decoration-line: underline; + float: right; + padding: 0; + font-size: smaller; + } + .enrollment-effort { font-size: smaller; } @@ -346,6 +354,7 @@ body.new-design { margin-left: .5rem; padding: 3px; font-weight: normal; + } } .more-enrollment-info { diff --git a/frontend/public/src/components/CourseInfoBox.js b/frontend/public/src/components/CourseInfoBox.js index b882c42cea..e02b195984 100644 --- a/frontend/public/src/components/CourseInfoBox.js +++ b/frontend/public/src/components/CourseInfoBox.js @@ -131,9 +131,38 @@ export default class CourseInfoBox extends React.PureComponent
{course.page.length} - {run && run.is_self_paced ? ( - SELF-PACED - ) : null} + {isArchived ? ( + <> + ARCHIVED + + What's this? + + + ) : run && run.is_self_paced ? ( + <> + SELF-PACED + + What's this? + + + ) : ( + <> + INSTRUCTOR-PACED + + What's this? + + + )} + {course.page.effort ? ( <>
diff --git a/frontend/public/src/components/ProgramInfoBox.js b/frontend/public/src/components/ProgramInfoBox.js index c473e9ba3e..f964e015a5 100644 --- a/frontend/public/src/components/ProgramInfoBox.js +++ b/frontend/public/src/components/ProgramInfoBox.js @@ -133,8 +133,26 @@ export default class ProgramInfoBox extends React.PureComponent {program.page.length} {run && run.is_self_paced ? ( - SELF-PACED - ) : null} + <> + SELF-PACED + + What's this? + + + ) : ( + <> + INSTRUCTOR-PACED + + What's this? + + + )} {program.page.effort ? ( <>