Skip to content

Commit 5167ca8

Browse files
authored
[EC-92] feat: 출결 Indicator 추가 (#74)
1 parent 8fef299 commit 5167ca8

File tree

2 files changed

+69
-2
lines changed

2 files changed

+69
-2
lines changed

client/src/pages/studentAttendance/StudentAttendance.jsx

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,25 @@ export default function StudentAttendance() {
5959
</div>
6060
<div className={styles.attendanceCalendar}>
6161
<DashBoardItem width={'100%'}>
62-
<Calendar attendanceData={attendanceData}></Calendar>
62+
<div className={styles.legendContainer}>
63+
<div className={styles.legend}>
64+
<div className={styles.legendItem}>
65+
<span className={styles.lateIndicator}></span>
66+
<span>지각</span>
67+
</div>
68+
<div className={styles.legendItem}>
69+
<span className={styles.earlyLeaveIndicator}></span>
70+
<span>조퇴</span>
71+
</div>
72+
<div className={styles.legendItem}>
73+
<span className={styles.absentIndicator}></span>
74+
<span>결석</span>
75+
</div>
76+
</div>
77+
</div>
78+
<div className={styles.calendarWrapper}>
79+
<Calendar attendanceData={attendanceData}></Calendar>
80+
</div>
6381
</DashBoardItem>
6482
</div>
6583
</div>

client/src/pages/studentAttendance/StudentAttendance.module.css

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
bottom: 0;
3434
left: var(--padding-medium);
3535
right: var(--padding-medium);
36-
width: auto;
36+
width: auto;
3737
}
3838

3939
.attendanceCurrent {
@@ -47,9 +47,23 @@
4747

4848
.attendanceCalendar {
4949
width: 50%;
50+
height: 100%;
5051
}
52+
5153
.attendanceCalendar > div {
5254
height: 100%;
55+
display: flex;
56+
flex-direction: column;
57+
}
58+
59+
.legendContainer {
60+
margin-bottom: 15px;
61+
padding-top: 15px;
62+
}
63+
64+
.calendarWrapper {
65+
flex: 1;
66+
min-height: 0;
5367
}
5468

5569
.attendanceType {
@@ -59,3 +73,38 @@
5973
gap: 15px;
6074
flex: 1;
6175
}
76+
77+
.legend {
78+
display: flex;
79+
justify-content: flex-start;
80+
padding-left: 15px;
81+
}
82+
83+
.legendItem {
84+
display: flex;
85+
align-items: center;
86+
margin-right: 15px;
87+
font-size: 14px;
88+
}
89+
90+
.earlyLeaveIndicator,
91+
.absentIndicator,
92+
.lateIndicator {
93+
display: inline-block;
94+
width: 12px;
95+
height: 12px;
96+
margin-right: 5px;
97+
border-radius: 50%;
98+
}
99+
100+
.earlyLeaveIndicator {
101+
background-color: var(--primary-100);
102+
}
103+
104+
.absentIndicator {
105+
background-color: var(--border-100);
106+
}
107+
108+
.lateIndicator {
109+
background-color: var(--primary-200);
110+
}

0 commit comments

Comments
 (0)