diff --git a/src/pages/catalog/oer/index.tsx b/src/pages/catalog/oer/index.tsx index c19d90c0..d38f0139 100644 --- a/src/pages/catalog/oer/index.tsx +++ b/src/pages/catalog/oer/index.tsx @@ -22,43 +22,13 @@ import cs233Image from "../../../lib/images/cs-233.png"; import yorkjonatanImage from "../../../lib/images/york-jonatan.png"; import ece6353fraida from "../../../lib/images/ece6353fraida.png"; -interface CourseCardProps { - image: ImageProps["src"]; - title: string; - href: string; -} - -const CourseCard: React.FC = ({ image, title, href }) => { - return ( -
- - {title} - -
- -

{title}

- -
-
- ); -}; - interface SharedQuestionCardProps { image: ImageProps["src"]; title: string; href: string; institution?: string; - ownerName: string; - ownerEmail: string; + ownerName?: string; + ownerEmail?: string; } const SharedQuestionCard: React.FC = ({ @@ -87,10 +57,12 @@ const SharedQuestionCard: React.FC = ({

{title}

-

- Shared by: {ownerName} ( - {ownerEmail}) -

+ {ownerName && ( +

+ Shared by: {ownerName}{" "} + {ownerEmail && {ownerEmail}} +

+ )} {institution && (

Institution: {institution} @@ -138,12 +110,14 @@ export default function Courses() {

- Question Templates + Publicly Shared Questions

- Browse through our template questions in a variety of subjects. If - you find a question that you like, you can copy it to your own - course, and make changes if you want! See each question for their - license details. + This question catalog has been publicly shared by instructors from + various universities. If you like any of these questions, you can + use them directly in your course, without any need to copy + questions. Read these instructions to see how you can + use publicly shared questions in your course. Some of the questions + can be copied to your course, so you can make changes if you want!

@@ -151,73 +125,78 @@ export default function Courses() {
- + institution="" + ownerName="PrairieLearn, Inc." + ownerEmail="" + > - + institution="" + ownerName="PrairieLearn, Inc." + ownerEmail="" + > - + institution="" + ownerName="PrairieLearn, Inc." + ownerEmail="" + > - + institution="" + ownerName="PrairieLearn, Inc." + ownerEmail="" + > - + institution="" + ownerName="PrairieLearn, Inc." + ownerEmail="" + > - + institution="" + ownerName="PrairieLearn, Inc." + ownerEmail="" + > - + institution="University of Illinois, Urbana-Champaign" + ownerName="Shelby Hutchens" + ownerEmail="hutchs@illinois.edu" + > - -
-
-
- -
-
- Publicly Shared Questions -

- This question catalog has been publicly shared by instructors from - various universities. If you like any of these questions, you can - use them directly in your course, without any need to copy - questions. Read these instructions to see how you can - use publicly shared questions in your course. -

-
-
+ institution="" + ownerName="PrairieLearn, Inc." + ownerEmail="" + > -
-
-
+ +## Sharing Questions via Tokens + +export default ({ children }) => ( + {children} +); diff --git a/src/pages/catalog/oer/settingsQuestionPage.png b/src/pages/catalog/oer/settingsQuestionPage.png new file mode 100644 index 00000000..6efff928 Binary files /dev/null and b/src/pages/catalog/oer/settingsQuestionPage.png differ diff --git a/src/pages/catalog/oer/sharingQuestions/settingsQuestionPage.png b/src/pages/catalog/oer/sharingQuestions/settingsQuestionPage.png new file mode 100644 index 00000000..6efff928 Binary files /dev/null and b/src/pages/catalog/oer/sharingQuestions/settingsQuestionPage.png differ