This repository has been archived by the owner on Sep 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: projectcards for student first look done
- Loading branch information
1 parent
e6a2987
commit b50717c
Showing
4 changed files
with
63 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
.student-main { | ||
width: 60vw; | ||
flex-wrap: wrap; | ||
overflow-y: scroll; | ||
} | ||
|
||
.project-card { | ||
background-color: #9c9afd !important; | ||
width: 25vw; | ||
height: 25vh; | ||
} | ||
|
||
.p-negative { | ||
color: red !important; | ||
} | ||
|
||
.p-positive { | ||
color: green !important; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import {JSX} from "react"; | ||
|
||
|
||
export default function ProjectCardStudent(): JSX.Element { | ||
// as for now I'm not sure how the info will come in, so using | ||
// static values for now (change to true and true/false to see how they'll look like): | ||
let has_submission: boolean = false; | ||
let isSuccess: boolean = false; | ||
|
||
return ( | ||
<div | ||
className={"card project-card px-5 py-5 my-5 is-flex is-flex-direction-column is-justify-content-space-between"}> | ||
<p className={"title is-5"}>Markov Decision Diagram</p> | ||
<div className={"is-flex is-flex-direction-row"}> | ||
<p className={"pr-2"}>vak: </p> | ||
<p>Computationele Biologie</p> | ||
</div> | ||
<div className={"is-flex is-flex-direction-row is-align-items-center py-5"}> | ||
<p className={"pr-2"}>status: </p> | ||
{!has_submission && <p className={"px-2 py-1"}>—</p>} | ||
{has_submission && isSuccess && <p className={"card p-positive px-2 py-1"}>Success</p>} | ||
{has_submission && !isSuccess && <p className={"card p-negative px-2 py-1"}>Failed</p>} | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
|
||
|