diff --git a/frontend/src/App.js b/frontend/src/App.js
index 3ecc99f..242083c 100644
--- a/frontend/src/App.js
+++ b/frontend/src/App.js
@@ -5,6 +5,7 @@ import LoginPage from "./pages/LoginPage";
import LogoutPage from "./pages/LogoutPage";
import RegisterPage from "./pages/RegisterPage";
import CoursePage from "./pages/CoursePage";
+import AssignmentPage from "./pages/AssignmentPage";
import ManagePage from "./pages/ManagePage";
import ManageStudentsPage from "./pages/ManageStudentsPage";
import AuthenticatedRoute from "./components/AuthenticatedRoute";
@@ -46,6 +47,16 @@ function App() {
}}
+
+ {(params) => {
+ return (
+
+
+
+ );
+ }}
+
+
diff --git a/frontend/src/pages/AssignmentPage.jsx b/frontend/src/pages/AssignmentPage.jsx
new file mode 100644
index 0000000..a477dbd
--- /dev/null
+++ b/frontend/src/pages/AssignmentPage.jsx
@@ -0,0 +1,50 @@
+import { useEffect, useState } from "react";
+import { Container } from "react-bootstrap";
+import MyNavbar from "../components/MyNavbar";
+import { makeRequest } from "../utils.ts";
+
+const AssignmentPage = ({ id }) => {
+ const [assignmentData, setAssignmentData] = useState({});
+
+ useEffect(() => {
+ makeRequest({ endpoint: `assignment/${id}` })
+ .then((resp) => resp.json())
+ .then((data) => {
+ setAssignmentData(data);
+ });
+ }, []);
+
+ const Title = ({ children, className, ...rest }) => {
+ return (
+
+ {children}
+
+ );
+ };
+
+ const Value = ({ children, className, ...rest }) => {
+ return (
+
+ {children}
+
+ );
+ };
+
+ return (
+
+
+
+ Name
+ {assignmentData.name}
+
+ Description
+ {assignmentData.description}
+
+ Due Date
+ {assignmentData.due_date}
+
+
+ );
+};
+
+export default AssignmentPage;