Skip to content

Commit 62b9187

Browse files
authored
Merge pull request #142 from pirogramming/frontend_km
[add]: DetailManageStudent UI 추가
2 parents 4fee064 + ab6bce1 commit 62b9187

File tree

2 files changed

+52
-4
lines changed

2 files changed

+52
-4
lines changed

frontend/src/pages/admin/DetailManageStudent.jsx

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,25 @@ const DetailManageStudent = () => {
3232
<Header />
3333
<div className={style.under_header}>
3434
<div className={style.student_card}>
35-
<h2>{student.name}</h2>
36-
<p>잔여 보증금: {student.deposit}</p>
37-
<p>보증금 방어권: {student.defence}</p>
35+
<h2 className={style.student_name}>{student.name}</h2>
36+
<div className={style.deposit_container}>
37+
<p>
38+
잔여 보증금: <p>{student.deposit}</p>
39+
</p>
40+
</div>
41+
<div className={style.defence_container}>
42+
<p>
43+
보증금 방어권: <p>{student.defence}</p>
44+
</p>
45+
</div>
3846
</div>
39-
47+
<button
48+
key={student.id || index}
49+
className={style.attendance_btn}
50+
onClick={() => navigate(`/admin/attendance/${student.id}`)}
51+
>
52+
출석 관리 <span>&gt;</span>
53+
</button>
4054
<div className={style.assignment_list}>
4155
{student.assignmentTitles.map((title, idx) => (
4256
<button key={idx} className={style.assignment_button}>

frontend/src/pages/admin/DetailManageStudent.module.css

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,37 @@
99
flex-direction: column;
1010
align-items: center;
1111
}
12+
.student_card {
13+
display: flex;
14+
background: #49ff24;
15+
flex-direction: column;
16+
border-radius: 9px;
17+
padding: 15px 20px;
18+
width: 300px;
19+
height: 150px;
20+
justify-content: space-around;
21+
}
22+
.student_name {
23+
font-size: 25px;
24+
font-weight: 700;
25+
}
26+
.deposit_container,
27+
.defence_container {
28+
display: flex;
29+
justify-content: space-between;
30+
font-size: 20px;
31+
font-weight: 500;
32+
}
33+
.attendance_btn {
34+
border: 1px solid #49ff24;
35+
border-radius: 9px;
36+
width: 300px;
37+
height: 40px;
38+
display: flex;
39+
align-items: center;
40+
justify-content: space-between;
41+
background-color: #333;
42+
color: #49ff24;
43+
padding: 15px;
44+
text-align: left;
45+
}

0 commit comments

Comments
 (0)