diff --git a/devU-client/src/components/listItems/simpleAssignmentListItem.scss b/devU-client/src/components/listItems/simpleAssignmentListItem.scss
index 7863109..d4cf36a 100644
--- a/devU-client/src/components/listItems/simpleAssignmentListItem.scss
+++ b/devU-client/src/components/listItems/simpleAssignmentListItem.scss
@@ -4,14 +4,10 @@
padding: 10px;
display: flex;
flex-direction: row;
-
border-radius: 0.6rem;
-
justify-content: space-between;
-
transition: background-color 0.2s linear;
-
-
+ color:$primary;
}
.meta {
@@ -46,9 +42,6 @@
border-radius: 0.6rem;
-
-
-
transition: background-color 0.2s linear;
color: #52468A;
diff --git a/devU-client/src/components/listItems/userCourseListItem.scss b/devU-client/src/components/listItems/userCourseListItem.scss
index 12f854e..2ebb8de 100644
--- a/devU-client/src/components/listItems/userCourseListItem.scss
+++ b/devU-client/src/components/listItems/userCourseListItem.scss
@@ -4,13 +4,15 @@
font-size: 1.2rem;
font-weight: 600;
margin: 0;
- padding: 15px; /* Add padding to the text inside the name block */
- background: #b5acdd; /* Background color for the name area */
- width: 100%; /* Make sure it spans the entire width of the card */
+ padding: 30px; /* Add padding to the text inside the name block */
+ background: $primary;
+ width: 100%;
text-align: center;
- color: #52468a;
+ color: $text-color;
border-radius: 5px 5px 0 0;
box-sizing: border-box;
+ text-overflow: ellipsis;
+ overflow-wrap: break-word;
}
.No_assignments
@@ -23,23 +25,24 @@
font-size: 12px;
font-weight: 600;
border-radius:5px;
- padding: 10px;
+ padding: 30px;
flex-wrap: wrap;
- color:#52468A;
+ color:$primary;
+ text-overflow: ellipsis;
+ overflow-wrap: break-word;
}
.Buttons{
display: flex;
- justify-content: space-between;
- padding: 15px;
+ justify-content: space-around;
margin-top: auto;
+ padding:10px;
}
.gradebook_button ,.coursepage_button {
border: 0;
- color: #52468A;
+ color: $primary;
background: none;
font-weight: 600;
margin-left: 15px;
- padding: 10px;
cursor: pointer;
}
@@ -51,7 +54,7 @@
.subText {
font-size: 1rem;
- display: grid;
+ display: inline-block;
justify-content: space-between;
gap: 1.5rem;
width: 100%;
@@ -81,12 +84,7 @@
text-decoration: none;
border-radius: 0.6rem;
-
- padding: 5px;
-
margin-bottom: 1rem;
-
-
color: $text-color;
}
diff --git a/devU-client/src/components/pages/assignments/assignmentDetailPage.scss b/devU-client/src/components/pages/assignments/assignmentDetailPage.scss
index e5e580c..30e754b 100644
--- a/devU-client/src/components/pages/assignments/assignmentDetailPage.scss
+++ b/devU-client/src/components/pages/assignments/assignmentDetailPage.scss
@@ -20,13 +20,13 @@
.line {
border: none;
height: 2px;
- background-color: #ccc;
+ background-color: $list-item-background;
width: 100%;
margin-top: 10px;
}
.card {
- background-color: #f9f9f9;
+ background-color: $list-item-background;
border-radius: 8px;
padding: 20px;
width: 300px;
@@ -39,7 +39,7 @@
font-size: 20px;
font-weight: 550;
margin-bottom: 15px;
- color: #52468a;
+ color: $text-color;
text-align: center;
}
@@ -64,8 +64,8 @@
.buttons {
- color: #52468a;
- background-color: #f9f9f9;
+ color: $primary;
+ background-color: $list-item-background;
padding: 10px 20px;
border-radius:15px;
cursor: pointer;
@@ -78,12 +78,12 @@
.buttons:hover {
- background-color: #888;
+ background-color: $list-item-background-hover;
}
.assignment_card {
- background-color: #f9f9f9;
+ background-color: $list-item-background;
border-radius: 8px;
padding: 20px;
width: 100%;
@@ -92,14 +92,14 @@
}
.accordion {
- background-color: #f9f9f9;
+ background-color: $list-item-background;
box-shadow: none;
border: 1px solid #ddd;
margin-bottom: 10px;
}
.accordionDetails {
- background-color: #f9f9f9;
+ background-color:$list-item-background;
padding: 10px;
border-top: 1px solid #ddd;
}
@@ -112,7 +112,9 @@
justify-content: center;
align-items: center;
margin-top: 20px;
+ background-color: $list-item-background;
}
+
.textField {
margin-top: 10px;
margin-bottom: 20px;
@@ -120,6 +122,7 @@
.submissionCard {
margin-bottom : 15px;
+ background-color: $list-item-background;
}
.fileInput {
@@ -128,7 +131,7 @@
.due_date {
font-size: 14px;
- color: #888;
+ color: $text-color;
margin-top: 5px;
margin-bottom: 15px;
}
@@ -137,6 +140,7 @@
.submissionsContainer {
display: flex;
flex-direction: column;
+ padding: 30px;
width: 100%;
margin-top: 20px;
}
@@ -146,10 +150,11 @@
display: flex;
justify-content: space-between;
align-items: flex-start;
- background-color: #f9f9f9;
+ background-color: $list-item-background;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.2s ease;
+ padding: 10px;
}
.submissionCard:hover {
@@ -157,16 +162,16 @@
}
.submissionHeading {
- font-size: 16px;
- font-weight: bold;
- color: #52468a;
+ color: $primary;
+ padding: 10px;
}
.submissionTime {
font-size: 14px;
- color: #888;
+ color: $text-color;
margin-top: 5px;
+ padding: 10px;
}
@media (max-width: 768px) {
diff --git a/devU-client/src/components/pages/assignments/assignmentDetailPage.tsx b/devU-client/src/components/pages/assignments/assignmentDetailPage.tsx
index fa94baf..95f0614 100644
--- a/devU-client/src/components/pages/assignments/assignmentDetailPage.tsx
+++ b/devU-client/src/components/pages/assignments/assignmentDetailPage.tsx
@@ -8,9 +8,9 @@ import LoadingOverlay from 'components/shared/loaders/loadingOverlay'
import {useActionless, useAppSelector} from 'redux/hooks'
import {SET_ALERT} from 'redux/types/active.types'
-import Card from '@mui/material/Card'
-import CardContent from '@mui/material/CardContent'
-import {Accordion, AccordionDetails, AccordionSummary, CardActionArea, TextField, Typography} from '@mui/material'
+//import Card from '@mui/material/Card'
+//import CardContent from '@mui/material/CardContent'
+import {/*Accordion AccordionDetails, AccordionSummary*/ TextField, Typography} from '@mui/material'
import Grid from '@mui/material/Unstable_Grid2'
@@ -187,8 +187,9 @@ const AssignmentDetailPage = () => {
-
+
{assignment?.description}
+
Attachments : {assignment?.attachmentsFilenames}
{assignment?.dueDate && (
@@ -196,21 +197,21 @@ const AssignmentDetailPage = () => {
)}
{assignmentProblems && assignmentProblems.length > 0 ? (
assignmentProblems.map((assignment, index) => (
-
-
- {`Assignment Problem ${index + 1}`}
-
-
+
+
+
{`Assignment Problem ${index + 1}`}
+
+
{assignment.problemName}
-
-
+
+
))
) : (
-
+
No Problems Exist
-
+
)}
{!(assignment?.disableHandins) && ()}
@@ -220,7 +221,7 @@ const AssignmentDetailPage = () => {
) : null}
-
+
@@ -233,16 +234,16 @@ const AssignmentDetailPage = () => {
{submissions.map((submission, index) => (
-
- {
+
+
{
history.push(`/course/${courseId}/assignment/${assignmentId}/submission/${submission.id}`)
}}>
-
- {`Submission ${submissions.length - index}`}
- {`Submitted at: ${submission.createdAt && prettyPrintDateTime(submission.createdAt)}`}
-
-
-
+
+
{`Submission ${submissions.length - index}`}
+
{`Submitted at: ${submission.createdAt && prettyPrintDateTime(submission.createdAt)}`}
+
+
+
))}
diff --git a/devU-client/src/components/pages/forms/assignments/assignmentFormPage.scss b/devU-client/src/components/pages/forms/assignments/assignmentFormPage.scss
index 6f41b55..4ee90fa 100644
--- a/devU-client/src/components/pages/forms/assignments/assignmentFormPage.scss
+++ b/devU-client/src/components/pages/forms/assignments/assignmentFormPage.scss
@@ -9,12 +9,21 @@ p {
text-align: center;
}
+.pageWrapper {
+ padding:0px;
+}
+
+.flex {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+
.form {
background-color: $list-item-background;
grid-area: 1 / 1 / 2 / 2;
border-radius: 10px;
padding: 20px;
- margin-left: auto;
margin-right: 0;
}
@@ -25,6 +34,9 @@ p {
grid-column-gap: 10px;
grid-row-gap: 0px;
width: 100%;
+ justify-content: center;
+ align-items: center;
+ text-align: center;
}
.header {
@@ -50,6 +62,8 @@ p {
grid-column-gap: 10px;
grid-row-gap: 10px;
width: 100%;
+ padding-left: 10px;
+ padding-right: 10px;
}
.dragDropFile {
@@ -58,7 +72,6 @@ p {
background-color: $list-item-background;
border-radius: 10px;
margin-left: 0;
- margin-right: auto;
}
.dragDropFileComponent {
@@ -118,3 +131,57 @@ p {
color: red;
}
}
+
+@media (max-width: 1000px) {
+ .grid {
+ display: grid;
+ grid-template-columns: 1fr;
+ grid-template-rows: repeat(2, 1fr);
+ grid-column-gap: 0px;
+ grid-row-gap: 10px;
+ margin-left: 20px;
+ margin-right: 20px;
+ width: 100%;
+ }
+
+ .form {
+ grid-area: 1 / 1 / 2 / 2;
+ margin-left: 10px;
+ margin-right: 10px;
+ }
+ .dragDropFile {
+ grid-area: 2 / 1 / 3 / 2;
+ align-content: center;
+ text-align: center;
+ margin-left: 10px;
+ margin-right: 10px;
+ }
+ .dragDropFileInput {
+ display: flex;
+ justify-content: center;
+ }
+}
+
+@media (max-width: 550px) {
+ .datepickerContainer{
+ display: grid;
+ grid-template-columns: 1fr;
+ grid-template-rows: repeat(3, 1fr);
+ grid-column-gap: 0px;
+ grid-row-gap: 10px;
+ width: 100%;
+ justify-content: center;
+ align-items: center;
+ text-align: center;
+ }
+
+ .datepicker_start {
+ grid-area: 1 / 1 / 2 / 2;
+ }
+ .datepicker_due {
+ grid-area: 2 / 1 / 3 / 2;
+ }
+ .datepicker_end {
+ grid-area: 3 / 1 / 4 / 2;
+ }
+}
\ No newline at end of file
diff --git a/devU-client/src/components/pages/forms/assignments/assignmentFormPage.tsx b/devU-client/src/components/pages/forms/assignments/assignmentFormPage.tsx
index a83cc2e..9881fb5 100644
--- a/devU-client/src/components/pages/forms/assignments/assignmentFormPage.tsx
+++ b/devU-client/src/components/pages/forms/assignments/assignmentFormPage.tsx
@@ -1,16 +1,13 @@
-import React, {useState, useEffect} from 'react'
+import React, {useState} from 'react'
import {ExpressValidationError} from 'devu-shared-modules'
import 'react-datepicker/dist/react-datepicker.css'
import PageWrapper from 'components/shared/layouts/pageWrapper'
-import { getCssVariables } from 'utils/theme.utils'
import RequestService from 'services/request.service'
import {useActionless} from 'redux/hooks'
import TextField from 'components/shared/inputs/textField'
-import Button from '@mui/material/Button'
-import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs';
-import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider';
-import { DatePicker } from '@mui/x-date-pickers/DatePicker';
+// import Button from '@mui/material/Button'
+import Button from '../../../shared/inputs/button'
import DragDropFile from 'components/utils/dragDropFile'
import {SET_ALERT} from 'redux/types/active.types'
@@ -19,11 +16,8 @@ import {applyMessageToErrorFields, removeClassFromField} from "../../../../utils
import {useHistory, useParams} from 'react-router-dom'
import formStyles from './assignmentFormPage.scss'
-import { Dayjs } from 'dayjs'
const AssignmentCreatePage = () => {
- const [theme, setTheme] = useState(getCssVariables())
- const { textColor } = theme
const [setAlert] = useActionless(SET_ALERT)
const {courseId} = useParams<{ courseId: string }>()
const history = useHistory()
@@ -37,21 +31,12 @@ const AssignmentCreatePage = () => {
maxSubmissions: 0,
disableHandins: false,
})
- const [endDate, setEndDate] = useState(new Date())
- const [dueDate, setDueDate] = useState(new Date())
- const [startDate, setStartDate] = useState(new Date())
+ const [endDate, setEndDate] = useState('')
+ const [dueDate, setDueDate] = useState('')
+ const [startDate, setStartDate] = useState('')
const [invalidFields, setInvalidFields] = useState(new Map())
const [files, setFiles] = useState