diff --git a/public/schedules/calendar24.json b/public/schedules/calendar24.json index e9656e0..2e65069 100644 --- a/public/schedules/calendar24.json +++ b/public/schedules/calendar24.json @@ -129,7 +129,7 @@ "date": "2024-09-02", "week_day": "Mon", "week_idx": 2, - "dayoff": 0, + "dayoff": 1, "hw_topic": "Homework 3", "hw_link": "https://example.com/homework/3", "hw_due_topic": "", @@ -1629,7 +1629,7 @@ "date": "2024-11-25", "week_day": "Mon", "week_idx": 14, - "dayoff": 0, + "dayoff": 1, "hw_topic": "", "hw_link": "", "hw_due_topic": "", @@ -1654,7 +1654,7 @@ "date": "2024-11-26", "week_day": "Tue", "week_idx": 14, - "dayoff": 0, + "dayoff": 1, "hw_topic": "", "hw_link": "", "hw_due_topic": "", @@ -1679,7 +1679,7 @@ "date": "2024-11-27", "week_day": "Wed", "week_idx": 14, - "dayoff": 0, + "dayoff": 1, "hw_topic": "", "hw_link": "", "hw_due_topic": "", @@ -1704,7 +1704,7 @@ "date": "2024-11-28", "week_day": "Thu", "week_idx": 14, - "dayoff": 0, + "dayoff": 1, "hw_topic": "", "hw_link": "", "hw_due_topic": "", @@ -1729,7 +1729,7 @@ "date": "2024-11-29", "week_day": "Fri", "week_idx": 14, - "dayoff": 0, + "dayoff": 1, "hw_topic": "", "hw_link": "", "hw_due_topic": "", diff --git a/src/app/assignments/page.js b/src/app/assignments/page.js index 1b9d81a..9d8a467 100644 --- a/src/app/assignments/page.js +++ b/src/app/assignments/page.js @@ -1,18 +1,306 @@ -import React from "react"; +import Markdown from "markdown-to-jsx"; +import getPostContent from "@/lib/getPostContent"; + +const CourseBook = () => { + const slug = "syllabus"; + const post = getPostContent(slug); + console.log("Hello"); -const AssignmentsPage = () => { return (
-
+

- Assignments + MPs

-
+
+
+
+ +
+
+

+ Course Syllabus +

+ + {post.content} + +
+
+
); }; -export default AssignmentsPage; +export default CourseBook; diff --git a/src/app/lectures/page.js b/src/app/lectures/page.js index 7d500b0..435e1ef 100644 --- a/src/app/lectures/page.js +++ b/src/app/lectures/page.js @@ -141,25 +141,6 @@ const LecturesPage = () => {

Schedules:

- {/* - - - - - - - - */}
- Date - - Lecture Topic - - Homework & Lab - - MP & Quiz - - Deadline -
@@ -191,6 +172,13 @@ const LecturesPage = () => { ? "border border-x-gray/50 border-b-2" : "border border-x-gray/50 border-b-gray/50" }`} + style={ + day.dayoff + ? { + backgroundColor: "#a1a1a1", + } + : {} + } > Week {day.week_idx} @@ -207,6 +195,13 @@ const LecturesPage = () => { ? "border border-x-gray/50 border-b-2" : "border border-x-gray/50 border-b-gray/50" }`} + style={ + day.dayoff + ? { + backgroundColor: "#a1a1a1", + } + : {} + } >

{day.week_day}, {day.date} @@ -220,7 +215,11 @@ const LecturesPage = () => { : "border border-x-gray/50 border-b-gray/50" }`} style={ - day.lec_topic + day.dayoff + ? { + backgroundColor: "#a1a1a1", + } + : day.lec_topic ? { backgroundColor: "rgb(99, 102, 241)", } @@ -242,7 +241,11 @@ const LecturesPage = () => { : "border border-x-gray/50 border-b-gray/50" }`} style={ - day.hw_topic + day.dayoff + ? { + backgroundColor: "#a1a1a1", + } + : day.hw_topic ? { backgroundColor: "rgb(59 130 246)", } @@ -275,7 +278,11 @@ const LecturesPage = () => { : "border border-x-gray/50 border-b-gray/50" }`} style={ - day.mp_topic + day.dayoff + ? { + backgroundColor: "#a1a1a1", + } + : day.mp_topic ? { backgroundColor: "rgb(34 197 94)", } @@ -308,7 +315,11 @@ const LecturesPage = () => { : "border border-x-gray/50 border-b-gray/50" }`} style={ - day.hw_due_topic + day.dayoff + ? { + backgroundColor: "#a1a1a1", + } + : day.hw_due_topic ? { backgroundColor: "rgb(59 130 246)", }