Skip to content

Commit 73d5b14

Browse files
committed
[add]: detailstudentmanage - 출석관리 btn + 과제 btn
1 parent 0357077 commit 73d5b14

File tree

2 files changed

+32
-11
lines changed

2 files changed

+32
-11
lines changed

frontend/src/pages/admin/DetailManageStudent.jsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { useParams } from "react-router-dom";
2+
import { useNavigate } from "react-router-dom";
23
import { useEffect, useState } from "react";
34
import Header from "../../components/Header";
45
import style from "./DetailManageStudent.module.css";
@@ -8,6 +9,7 @@ const DetailManageStudent = () => {
89
const { studentId } = useParams();
910
const numericId = Number(studentId);
1011
const [student, setStudent] = useState(null);
12+
const navigate = useNavigate();
1113

1214
useEffect(() => {
1315
const fetchStudent = async () => {
@@ -34,14 +36,10 @@ const DetailManageStudent = () => {
3436
<div className={style.student_card}>
3537
<h2 className={style.student_name}>{student.name}</h2>
3638
<div className={style.deposit_container}>
37-
<p>
38-
잔여 보증금: <p>{student.deposit}</p>
39-
</p>
39+
잔여 보증금: <span>{student.deposit}</span>
4040
</div>
4141
<div className={style.defence_container}>
42-
<p>
43-
보증금 방어권: <p>{student.defence}</p>
44-
</p>
42+
보증금 방어권: <span>{student.defence}</span>
4543
</div>
4644
</div>
4745
<button

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

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
align-items: center;
1111
}
1212
.student_card {
13+
/* height: 150px; */
1314
display: flex;
1415
background: #49ff24;
1516
flex-direction: column;
1617
border-radius: 9px;
1718
padding: 15px 20px;
1819
width: 300px;
19-
height: 150px;
20-
justify-content: space-around;
20+
gap: 15px;
2121
}
2222
.student_name {
2323
font-size: 25px;
@@ -38,8 +38,31 @@
3838
display: flex;
3939
align-items: center;
4040
justify-content: space-between;
41-
background-color: #333;
4241
color: #49ff24;
43-
padding: 15px;
44-
text-align: left;
42+
padding: 24px 15px;
43+
margin-block: 30px;
44+
font-size: 18px;
45+
}
46+
.assignment_list {
47+
display: flex;
48+
flex-direction: column;
49+
justify-content: center;
50+
align-items: center;
51+
}
52+
53+
.assignment_button {
54+
width: 309px;
55+
height: 47px;
56+
border-radius: 14px;
57+
background-color: var(--border-gray);
58+
color: var(--text-white);
59+
font-weight: 400;
60+
font-size: 16px;
61+
font-family: "Noto Sans KR", sans-serif;
62+
border: 1px var(--background-black) solid;
63+
padding: 10px;
64+
margin-top: 11px;
65+
}
66+
.assignment_button:focus {
67+
border: 1px var(--main-green) solid;
4568
}

0 commit comments

Comments
 (0)