Skip to content

Commit 81521f9

Browse files
committed
merge
2 parents 8933931 + d7606ec commit 81521f9

File tree

3 files changed

+29
-9
lines changed

3 files changed

+29
-9
lines changed

data/course-revision/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Putting Course Revision Resources onto the Learning Platform
2+
3+
The Learning Platform has a standard format for publishing course revision materials. It assumes that a course revision campaign consists of a set of exercises that can be written in markdown.
4+
5+
6+
In this *course-revision* folder observe that there are folders likes *1511-22T3* with mdx files inside. There is also a corresponding *1511-22T3.mdx* file next to the folder of the same name.
7+
8+
When you create a new course revision campaign, you **must** provide the following:
9+
10+
- An mdx file *course-revision/<course-offering>.mdx* which contains some info about this course revision campaign and how to get set up for the exercises (e.g. downloading some starter code). The <course-offering> should be replaced with the name of the course offering that this revision session is made for e.g. *1511-22T3* The fields you must provide in the yaml are:
11+
- title: Title of the course revision campaign (e.g. CSESoc COMP1511 Revision Practice Problems)
12+
- desc: Brief descriptoin of this course revision campaign (e.g. Practical coding exercises to help you prepare for your COMP1511 22T3 final exam)
13+
- course: (e.g. COMP1511) (Currently not used in the code)
14+
- offering: (e.g. 22T3) (Currently not used in the code)
15+
- A folder *course-revision/<course-offering>* which contains mdx files for each exercise. The fields you must provide in the yaml are:
16+
- title: Title of the exercise (e.g. BST Difference)
17+
- desc: Brief description of exercise (e.g. Find the mininum distance between any two numbers in a binary search tree)
18+
- class: Which course this exercise is for (eg. COMP2521)
19+
- difficulty: Difficult rating (1=easy, 2=medium, 3=hard) (e.g. 2)
20+
21+
Note: Both the <course-offering>.mdx and <course-offering> folder **MUST** share the exact same name in order to work (e.g. file `1511-22T3.mdx` and folder `1511-22T3`)
22+
23+
Once you have uploaded these files you can navigate to them at the url */course-revision* (e.g. *learn.csesoc.org.au/course-revision* or *localhost:3000/course-revision*)

pages/course-revision/[course_offering]/[exercise]/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import { useRouter } from 'next/router'
1919
import CourseRevisionSidebar from 'components/course-revision/CourseRevisionSidebar'
2020
import { styled } from '@stitches/react'
2121
import ContentContainer from 'components/course-revision/ContentContainer'
22-
import { useEffect } from 'react'
2322

2423
const defaultComponents = {
2524
Image,
@@ -67,8 +66,7 @@ export async function getStaticProps({ params }) {
6766
}
6867
}
6968

70-
const ExercisePage = ({ courseOfferingContent, exercisesContent, exerciseIdx }: PropTypes) => {
71-
console.log(exercisesContent[exerciseIdx].body.code.slice(0, 35));
69+
const ExercisePage = ({ courseOfferingContent, exercisesContent, exerciseIdx }) => {
7270
const MDXContent = useMDXComponent(exercisesContent[exerciseIdx].body.code)
7371

7472
return (

pages/opendev/index.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ const OpenDevTwo: NextPage = () => {
169169
<td>19 Oct 2022</td>
170170
<td>2-4pm, CLB 6</td>
171171
</tr>
172-
<tr style={{ backgroundColor: 'rgb(233, 240, 251)' }}>
172+
<tr style={{ backgroundColor: 'rgb(233, 240, 251)', color: '#b8bcc0' }}>
173173
<td>Week 7</td>
174174
<td><span style={{ fontWeight: "800" }} >MongoDB &amp; ExpressJS Workshop</span>
175175
<p style={{ margin: "0.2rem 0 0", fontSize: "0.7rem", lineHeight: "0.9rem" }}>
@@ -179,12 +179,12 @@ const OpenDevTwo: NextPage = () => {
179179
<td>26 Oct 2022</td>
180180
<td>2-4pm, Ainsworth 202</td>
181181
</tr>
182-
<tr style={{ backgroundColor: 'rgb(224, 235, 253)' }}>
182+
<tr style={{ backgroundColor: 'rgb(224, 235, 253)', color: '#b8bcc0' }}>
183183
<td>Week 8</td>
184184
<td>
185185
<span style={{ fontWeight: "800" }} >MongoDB &amp; ExpressJS Dev Session</span>
186186
<p style={{ margin: "0.2rem 0 0", fontSize: "0.7rem", lineHeight: "0.9rem" }}>
187-
Work on ReactJS Part 2 exercises and get help 🥰<br />
187+
Work on MongoDB &amp; ExpressJS exercises and get help 🥰<br />
188188
Chill, chat, study. Snacks provided 🧁
189189
</p>
190190
</td>
@@ -193,10 +193,9 @@ const OpenDevTwo: NextPage = () => {
193193
</tr>
194194
<tr style={{ backgroundColor: 'rgb(233, 240, 251)' }}>
195195
<td>Week 9</td>
196-
<td><span style={{ fontWeight: "800" }} >Project Dev Session</span>
196+
<td><span style={{ fontWeight: "800" }} >Deploying Web Apps (as a broke uni student)</span>
197197
<p style={{ margin: "0.2rem 0 0", fontSize: "0.7rem", lineHeight: "0.9rem" }}>
198-
Put your new skills to the test and build a project!<br />
199-
Chill, chat, study. Snacks provided 🧁
198+
Learn how to configure, build and deploy our web apps so everyone can see it online ⚡️
200199
</p></td>
201200
<td>9 Nov 2022</td>
202201
<td>2-4pm, Ainsworth 202</td>

0 commit comments

Comments
 (0)