File tree Expand file tree Collapse file tree 2 files changed +32
-11
lines changed
Expand file tree Collapse file tree 2 files changed +32
-11
lines changed Original file line number Diff line number Diff line change 11import { useParams } from "react-router-dom" ;
2+ import { useNavigate } from "react-router-dom" ;
23import { useEffect , useState } from "react" ;
34import Header from "../../components/Header" ;
45import 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
Original file line number Diff line number Diff line change 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 ;
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}
You can’t perform that action at this time.
0 commit comments