Skip to content

Commit b830d32

Browse files
Merge pull request #223 from makeopensource/63-student-submission
#63 student submission
2 parents a9fbd28 + 394e75d commit b830d32

File tree

10 files changed

+247
-161
lines changed

10 files changed

+247
-161
lines changed

devU-client/src/assets/global.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
}
1515

1616
h1 {
17-
margin: 10px auto;
17+
margin: 20px auto;
1818
text-align: center;
1919
}
2020

2121
h2 {
22-
margin: 20px 0;
22+
margin: 10px 0;
2323
text-align: center;
2424
}
2525

devU-client/src/components/pages/assignments/assignmentDetailPage.scss

Lines changed: 89 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,94 @@
99
justify-content:center;
1010
}
1111

12+
.details{
13+
display: grid;
14+
grid-template-columns: 1fr 1fr;
15+
width: 100%;
16+
gap: 10px;
17+
margin-top: 10px;
18+
}
19+
20+
.assignmentDetails{
21+
width: 100%;
22+
text-align: left;
23+
flex-direction: column;
24+
display: flex;
25+
align-items: flex-start;
26+
}
27+
28+
.submissionDetails{
29+
display: flex;
30+
flex-direction: column;
31+
gap: 10px;
32+
width: 95%;
33+
padding: 20px;
34+
font-size: 16px;
35+
background-color: $secondary-lighter;
36+
border-radius: 20px
37+
}
38+
39+
.metaText{
40+
display: inline-block;
41+
height: fit-content;
42+
word-wrap: break-word;
43+
}
1244

1345
.header {
46+
color: $text-color;
47+
display: grid;
48+
grid-template-columns: 1fr 2.5fr 1fr;
49+
justify-items: center;
50+
align-items: center;
51+
}
52+
53+
.problems_section{
54+
width: 100%;
1455
display: flex;
56+
justify-content: center;
57+
}
58+
59+
.options_section{
60+
display: flex;
61+
flex-direction: row;
62+
gap:10px;
63+
justify-content: flex-end;
64+
}
65+
66+
.problems_list{
67+
width: 50%;
68+
}
69+
70+
.problem_header{
71+
font-size:16px;
72+
margin: 0 0 10px 0;
73+
}
74+
.no_problems{
75+
font-style: italic;
76+
text-align: center;
77+
margin-top: 10px;
78+
}
79+
.textField{
80+
align-items: center;
81+
margin-bottom: 0;
82+
background: none;
83+
border: 2px solid #ccc;
84+
}
85+
86+
.submit_container{
87+
display: flex;
1588
flex-direction: column;
16-
align-items: flex-start;
17-
color: $text-color;
89+
align-items: center;
90+
width: 100%;
91+
}
92+
.affirmation{
93+
display: flex;
94+
align-items: center;
95+
align-self: flex-start;
96+
gap: 10px;
97+
}
98+
.affirmText{
99+
color: $text-color;
18100
}
19101

20102

@@ -54,15 +136,6 @@
54136

55137
}
56138

57-
.submit_container{
58-
display: flex;
59-
justify-content: flex-end;
60-
align-items: flex-end;
61-
width: 100%;
62-
margin-top: auto;
63-
64-
}
65-
66139

67140
.buttons {
68141
color: $primary;
@@ -141,7 +214,6 @@
141214
.submissionsContainer {
142215
display: flex;
143216
flex-direction: column;
144-
padding: 30px;
145217
width: 100%;
146218
margin-top: 20px;
147219
}
@@ -151,15 +223,16 @@
151223
display: flex;
152224
justify-content: space-between;
153225
align-items: flex-start;
154-
background-color: $list-item-background;
155226
border-radius: 8px;
156-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
157-
transition: transform 0.2s ease;
227+
background-color: $background;
228+
border: 2px solid $primary;
229+
transition: all 0.2s ease;
158230
padding: 10px;
231+
cursor: pointer;
159232
}
160233

161234
.submissionCard:hover {
162-
transform: scale(1.02);
235+
background-color: var(--purple-lightest);
163236
}
164237

165238
.submissionHeading {

0 commit comments

Comments
 (0)