Username
diff --git a/frontend/src/pages/student/HomeStudent.tsx b/frontend/src/pages/student/HomeStudent.tsx
index 47d6c2a0..e4ab35e5 100644
--- a/frontend/src/pages/student/HomeStudent.tsx
+++ b/frontend/src/pages/student/HomeStudent.tsx
@@ -1,6 +1,8 @@
import {JSX} from "react";
import {Header} from "../../components/Header.tsx";
import {Sidebar} from "../../components/Sidebar.tsx";
+import ProjectCardStudent from "./ProjectCardStudent.tsx";
+import '../../assets/styles/students_components.css'
export default function HomeStudent(): JSX.Element {
return (
@@ -12,8 +14,18 @@ export default function HomeStudent(): JSX.Element {
-
- <>Homescreen for a student>
+
>
diff --git a/frontend/src/pages/student/ProjectCardStudent.tsx b/frontend/src/pages/student/ProjectCardStudent.tsx
new file mode 100644
index 00000000..b38aad19
--- /dev/null
+++ b/frontend/src/pages/student/ProjectCardStudent.tsx
@@ -0,0 +1,35 @@
+import {JSX} from "react";
+
+
+export default function ProjectCardStudent(): JSX.Element {
+ // TODO: {{
+ // hasSubmission: check if there is a submission found in the database, if not it must return '-' on the screen
+ // isSuccess: when there is a submission, it must return either 'success' or 'failed'
+ // => if hasSubmission is false, isSuccess won't be checked (so ignoring all value changes)
+ // => when this isn't prefetched, useState will be needed for hasSubmission to rerender status correctly
+ // }}
+ const hasSubmission: boolean = false;
+ const isSuccess: boolean = true;
+
+ return (
+
+
Markov Decision Diagram
+
+
vak:
+
Computationele Biologie
+
+
+
status:
+ {!hasSubmission &&
—
}
+ {hasSubmission && isSuccess &&
+
}
+ {hasSubmission && !isSuccess &&
+
}
+
+
+ )
+}
+
+
+