diff --git a/components/RequirementTable/RequirementTable.tsx b/components/RequirementTable/RequirementTable.tsx index d74beb0..3e8d000 100644 --- a/components/RequirementTable/RequirementTable.tsx +++ b/components/RequirementTable/RequirementTable.tsx @@ -1,37 +1,103 @@ -import { Anchor, Card, Group, Table, Text } from "@mantine/core"; +import { + Anchor, + Card, + Group, + NativeSelect, + ScrollArea, + SegmentedControl, + SimpleGrid, + Stack, + Table, + Text, +} from "@mantine/core"; import classes from "./RequirementTable.module.css"; -const elements = [ - { position: 3, name: "Language" }, - { position: 7, name: "General Education" }, - { position: 39, name: "PE" }, - { position: 56, name: "Foundation" }, - { position: 58, name: "Area" }, +const majorRequirements = [ + { course: "EDU113", credit: 3 }, + { course: "DPS101", credit: 7 }, + { course: "IRL102", credit: 39 }, + { course: "PCS101", credit: 56 }, + { course: "PCS102", credit: 58 }, + { course: "ECO101", credit: 58 }, + { course: "ECO102", credit: 58 }, +]; + +const gradRequirements = [ + { course: "Lang.", credit: 3 }, + { course: "GE", credit: 7 }, + { course: "PE", credit: 39 }, + { course: "Found.", credit: 56 }, + { course: "Area", credit: 58 }, ]; export default function RequirementTable() { - const rows = elements.map((element) => ( - - {element.name} - {element.position} + const majorRequirementsRows = majorRequirements.map((item) => ( + + {item.course} + {item.credit} + + )); + + const gradRequirementsRows = gradRequirements.map((item) => ( + + {item.course} + {item.credit} )); return ( - - - Requirement - - - - - - Subject - Unit - - - {rows} -
-
+ + + + Major Req. + + + + + + Subject + Unit + + + {majorRequirementsRows} +
+
+ + + + Grad. Req. + + + + + + Subject + Unit + + + {gradRequirementsRows} +
+
+ + + +
+
); }