diff --git a/frontend/src/pages/Courses/Courses.module.css b/frontend/src/pages/Courses/Courses.module.css new file mode 100644 index 0000000..6f7d668 --- /dev/null +++ b/frontend/src/pages/Courses/Courses.module.css @@ -0,0 +1,37 @@ +@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap'); + +.Container { + margin: 2% 0% 3% 2%; +} +.Row { + display: flex; + flex-direction: row; + margin-bottom: 0.5%; +} + +.Column { + display: flex; + flex-direction: column; + margin-right: 2%; + width: 100%; +} + +.Grade { + font-weight: 600; + font-size:larger; + margin-right: 0.5%; +} + +.Year { + font-size:small; + font-weight: 600; + color: #727272; + vertical-align: bottom; +} + +.Course { + border-radius: 25px; + background-color: #E1E9F8; + margin-bottom: 0.5%; + padding: 1%; +} \ No newline at end of file diff --git a/frontend/src/pages/Courses/Courses.tsx b/frontend/src/pages/Courses/Courses.tsx index 8a53087..0fcc2aa 100644 --- a/frontend/src/pages/Courses/Courses.tsx +++ b/frontend/src/pages/Courses/Courses.tsx @@ -1,5 +1,13 @@ import React from "react"; +import YearBox from "./components/YearBox"; export default function Courses() { - return
Courses Page
; + return ( +
+ + + + +
+ ); } diff --git a/frontend/src/pages/Courses/components/CourseBox.tsx b/frontend/src/pages/Courses/components/CourseBox.tsx new file mode 100644 index 0000000..0a281f5 --- /dev/null +++ b/frontend/src/pages/Courses/components/CourseBox.tsx @@ -0,0 +1,15 @@ +import styles from "./../Courses.module.css" + + +type Props = { + readonly text: string; +}; + +export default function CourseBox({ text }: Props) { + return ( +
+
{text}
+
{"full course name"}
+
+ ); +} diff --git a/frontend/src/pages/Courses/components/YearBox.tsx b/frontend/src/pages/Courses/components/YearBox.tsx new file mode 100644 index 0000000..88a164c --- /dev/null +++ b/frontend/src/pages/Courses/components/YearBox.tsx @@ -0,0 +1,38 @@ +import styles from "./../Courses.module.css" +import CourseBox from "./CourseBox"; + +type Props = { + readonly text: string; +}; + +export default function YearBox({ text }: Props) { + return ( +
+
+
{text}
+
{"(year-year)"}
+
+
+
+
+
{"CREDITS"}
+
{"RATING"}
+
{"WORKLOAD"}
+
{"DISTRIBUTIONALS"}
+
+ + +
+
+
+
{"CREDITS"}
+
{"RATING"}
+
{"WORKLOAD"}
+
{"DISTRIBUTIONALS"}
+
+ +
+
+
+ ); +}