@edu-tosel/design 1.0.161 → 1.0.163
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +42 -42
- package/asset/SVG.tsx +29 -29
- package/asset/html/gomito-promotion.html +116 -116
- package/asset/html/speaking-series-promotion.html +58 -58
- package/asset/sizes.ts +202 -202
- package/asset/svg/Close.tsx +32 -32
- package/asset/svg/Direction.tsx +76 -76
- package/asset/svg/Email.tsx +20 -20
- package/asset/svg/Eye.tsx +48 -48
- package/asset/svg/Icon.tsx +195 -195
- package/asset/svg/Image.tsx +24 -24
- package/asset/svg/Notification.tsx +34 -34
- package/asset/svg/Operation.tsx +130 -130
- package/asset/svg/Phone.tsx +20 -20
- package/asset/svg/Profile.tsx +27 -27
- package/asset/svg/Symbol.tsx +60 -60
- package/asset/svg/TOSEL.tsx +63 -63
- package/card/template/InfoCard/Grade.js +1 -9
- package/globals.css +269 -269
- package/layout/template/MonthlyProgressReport/Report.js +32 -4
- package/package.json +1 -1
- package/tailwind.config.ts +675 -675
- package/version.txt +1 -1
package/globals.css
CHANGED
|
@@ -1,269 +1,269 @@
|
|
|
1
|
-
@tailwind base;
|
|
2
|
-
@tailwind components;
|
|
3
|
-
@tailwind utilities;
|
|
4
|
-
|
|
5
|
-
.image-container {
|
|
6
|
-
display: -webkit-box;
|
|
7
|
-
display: -ms-flexbox;
|
|
8
|
-
display: flex;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@font-face {
|
|
12
|
-
font-family: "Pretendard-Medium";
|
|
13
|
-
src: url("./asset/fonts/Pretendard-Medium.otf") format("opentype");
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
@font-face {
|
|
17
|
-
font-family: "Pretendard-Bold";
|
|
18
|
-
src: url("./asset/fonts/Pretendard-Bold.otf") format("opentype");
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@font-face {
|
|
22
|
-
font-family: "Pretendard-Light";
|
|
23
|
-
src: url("./asset/fonts/Pretendard-Light.otf") format("opentype");
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
@font-face {
|
|
27
|
-
font-family: "Kostar";
|
|
28
|
-
src: url("./asset/fonts/Kostar.ttf") format("truetype");
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@font-face {
|
|
32
|
-
font-family: "NicoMoji";
|
|
33
|
-
src: url("./asset/fonts/NicoMoji.ttf") format("truetype");
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
@font-face {
|
|
37
|
-
font-family: "Megrim";
|
|
38
|
-
src: url("./asset/fonts/Megrim.ttf") format("truetype");
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
@font-face {
|
|
42
|
-
font-family: "Times-Newer-Roman-Bold";
|
|
43
|
-
src: url("./asset/fonts/TimesNewerRoman-Bold.otf") format("opentype");
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
@font-face {
|
|
47
|
-
font-family: "Times-Newer-Roman-BoldItalic";
|
|
48
|
-
src: url("./asset/fonts/TimesNewerRoman-BoldItalic.otf") format("opentype");
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
@font-face {
|
|
52
|
-
font-family: "PretendardVariable";
|
|
53
|
-
src: url("./asset/fonts/PretendardVariable.ttf") format("truetype");
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
input[type="date"]::-webkit-inner-spin-button,
|
|
57
|
-
input[type="date"]::-webkit-calendar-picker-indicator {
|
|
58
|
-
display: none;
|
|
59
|
-
-webkit-appearance: none;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
::-webkit-scrollbar {
|
|
63
|
-
width: 3px;
|
|
64
|
-
padding-right: 10px;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
::-webkit-scrollbar-track {
|
|
68
|
-
background-color: transparent;
|
|
69
|
-
}
|
|
70
|
-
::-webkit-scrollbar-thumb {
|
|
71
|
-
background-color: #808080;
|
|
72
|
-
opacity: 0.5;
|
|
73
|
-
border-radius: 10px;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.box-shadow {
|
|
77
|
-
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.15);
|
|
78
|
-
}
|
|
79
|
-
.box-shadow-md {
|
|
80
|
-
box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
|
|
81
|
-
}
|
|
82
|
-
.box-shadow-sm {
|
|
83
|
-
box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.1);
|
|
84
|
-
}
|
|
85
|
-
.border-gradient-green-to-red {
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.x-shape {
|
|
89
|
-
position: relative;
|
|
90
|
-
width: 0.83625rem;
|
|
91
|
-
height: 0.83625rem;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.x-shape::before,
|
|
95
|
-
.x-shape::after {
|
|
96
|
-
content: "";
|
|
97
|
-
position: absolute;
|
|
98
|
-
top: 50%;
|
|
99
|
-
left: 50%;
|
|
100
|
-
width: 2.5px;
|
|
101
|
-
border-radius: 2px;
|
|
102
|
-
height: 100%;
|
|
103
|
-
background-color: white;
|
|
104
|
-
transform-origin: center;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.x-shape::before {
|
|
108
|
-
transform: translate(-50%, -50%) rotate(45deg);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.x-shape::after {
|
|
112
|
-
transform: translate(-50%, -50%) rotate(-45deg);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.border-inner {
|
|
116
|
-
box-shadow: 0 0 0 1px #e5e7eb inset, 0 4px 6px -1px rgba(0, 0, 0, 0.1),
|
|
117
|
-
0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
118
|
-
}
|
|
119
|
-
.box-shadow-focus:focus {
|
|
120
|
-
box-shadow: 0 0 0 1px #e5e7eb inset, 0 4px 6px -1px rgba(0, 0, 0, 0.1),
|
|
121
|
-
0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
122
|
-
}
|
|
123
|
-
.box-shadow-focus-red:focus {
|
|
124
|
-
box-shadow: 0px 0px 10px 0px #ff8383;
|
|
125
|
-
}
|
|
126
|
-
.box-green {
|
|
127
|
-
background: rgba(16, 86, 82, 0.1);
|
|
128
|
-
color: #105652;
|
|
129
|
-
}
|
|
130
|
-
.box-shadow-green-sm {
|
|
131
|
-
box-shadow: 0px 0px 10px 0px rgba(16, 86, 82, 0.38);
|
|
132
|
-
}
|
|
133
|
-
.box-green-focus:focus {
|
|
134
|
-
background: white;
|
|
135
|
-
color: black;
|
|
136
|
-
box-shadow: 0px 0px 10px 0px rgba(16, 86, 82, 0.38);
|
|
137
|
-
}
|
|
138
|
-
/* box-shadow: 0px 0px 10px 0px rgba(16, 86, 82, 0.38); */
|
|
139
|
-
.box-inner-shadow:hover {
|
|
140
|
-
box-shadow: 0 0 0 1px #e5e7eb inset, 0 4px 6px -1px rgba(0, 0, 0, 0.1),
|
|
141
|
-
0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
142
|
-
}
|
|
143
|
-
/* Date Picker Css */
|
|
144
|
-
.react-datepicker__day--selected {
|
|
145
|
-
background-color: #105652 !important;
|
|
146
|
-
}
|
|
147
|
-
.react-datepicker__header {
|
|
148
|
-
background: white !important;
|
|
149
|
-
border: none !important;
|
|
150
|
-
}
|
|
151
|
-
.react-datepicker {
|
|
152
|
-
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.15) !important;
|
|
153
|
-
border-radius: 0.375rem !important;
|
|
154
|
-
border: none !important;
|
|
155
|
-
}
|
|
156
|
-
.react-datepicker__day--keyboard-selected {
|
|
157
|
-
background-color: white !important;
|
|
158
|
-
color: black !important;
|
|
159
|
-
}
|
|
160
|
-
.react-datepicker__day--outside-month {
|
|
161
|
-
color: rgb(161 161 170) !important;
|
|
162
|
-
}
|
|
163
|
-
.react-datepicker__month-container {
|
|
164
|
-
padding-top: 1rem;
|
|
165
|
-
padding-left: 1rem;
|
|
166
|
-
padding-right: 1rem;
|
|
167
|
-
padding-bottom: 0.5rem;
|
|
168
|
-
}
|
|
169
|
-
.react-datepicker-popper {
|
|
170
|
-
transform: translate(0px 295px) !important;
|
|
171
|
-
}
|
|
172
|
-
.react-datepicker__input-container {
|
|
173
|
-
text-align: center !important;
|
|
174
|
-
border-radius: 0.375rem !important;
|
|
175
|
-
transition: all 0.3s;
|
|
176
|
-
}
|
|
177
|
-
.react-datepicker__input-container > input {
|
|
178
|
-
cursor: pointer !important;
|
|
179
|
-
}
|
|
180
|
-
.react-datepicker__input-container:hover {
|
|
181
|
-
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.15) !important;
|
|
182
|
-
}
|
|
183
|
-
.react-datepicker__navigation {
|
|
184
|
-
top: 18px !important;
|
|
185
|
-
}
|
|
186
|
-
.react-datepicker__navigation--next {
|
|
187
|
-
right: 20px !important;
|
|
188
|
-
}
|
|
189
|
-
.react-datepicker__navigation--previous {
|
|
190
|
-
left: 182px !important;
|
|
191
|
-
}
|
|
192
|
-
.react-datepicker__current-month {
|
|
193
|
-
text-align: left !important;
|
|
194
|
-
margin-left: 16px !important;
|
|
195
|
-
}
|
|
196
|
-
.react-datepicker__triangle {
|
|
197
|
-
display: none !important;
|
|
198
|
-
}
|
|
199
|
-
.react-datepicker__children-container {
|
|
200
|
-
width: 16rem !important;
|
|
201
|
-
}
|
|
202
|
-
/* toggle button */
|
|
203
|
-
.toggle[type="checkbox"]::before {
|
|
204
|
-
content: "";
|
|
205
|
-
position: absolute;
|
|
206
|
-
left: 1px;
|
|
207
|
-
top: 1px;
|
|
208
|
-
width: 1.1rem;
|
|
209
|
-
height: 1.1rem;
|
|
210
|
-
border-radius: 50%;
|
|
211
|
-
transform: scale(0.9);
|
|
212
|
-
background-color: white;
|
|
213
|
-
transition: left 100ms linear;
|
|
214
|
-
}
|
|
215
|
-
.toggle[type="checkbox"]:checked::before {
|
|
216
|
-
background-color: white;
|
|
217
|
-
left: 1.32rem;
|
|
218
|
-
}
|
|
219
|
-
.toggle[type="checkbox"]:checked {
|
|
220
|
-
background-color: #105652;
|
|
221
|
-
}
|
|
222
|
-
.toggle[type="checkbox"]:disabled {
|
|
223
|
-
opacity: 0.3;
|
|
224
|
-
cursor: not-allowed;
|
|
225
|
-
}
|
|
226
|
-
.toggle[type="checkbox"]:disabled + span {
|
|
227
|
-
opacity: 0.3;
|
|
228
|
-
cursor: not-allowed;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
/* checkbox */
|
|
232
|
-
.check-box[type="checkbox"]:checked {
|
|
233
|
-
border-color: transparent;
|
|
234
|
-
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5.707 7.293a1 1 0 0 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l4-4a1 1 0 0 0-1.414-1.414L7 8.586 5.707 7.293z'/%3e%3c/svg%3e");
|
|
235
|
-
background-size: 150%;
|
|
236
|
-
background-position: 50%;
|
|
237
|
-
background-repeat: no-repeat;
|
|
238
|
-
}
|
|
239
|
-
.check-box[type="checkbox"]:disabled {
|
|
240
|
-
background-color: #7f7f7f;
|
|
241
|
-
}
|
|
242
|
-
.box-shadow-green:hover {
|
|
243
|
-
box-shadow: 0px 0px 20px 0px rgba(16, 86, 82, 0.5);
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
.fade-enter {
|
|
247
|
-
opacity: 0;
|
|
248
|
-
}
|
|
249
|
-
.fade-enter-active {
|
|
250
|
-
opacity: 1;
|
|
251
|
-
transition: opacity 0.5s ease-in-out;
|
|
252
|
-
}
|
|
253
|
-
.fade-exit {
|
|
254
|
-
opacity: 1;
|
|
255
|
-
}
|
|
256
|
-
.fade-exit-active {
|
|
257
|
-
opacity: 0;
|
|
258
|
-
transition: opacity 0.5s ease-in-out;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
.text-gradient-green-to-red {
|
|
262
|
-
background: var(
|
|
263
|
-
--gradient-main,
|
|
264
|
-
linear-gradient(269deg, #760023 0%, #105652 100%)
|
|
265
|
-
);
|
|
266
|
-
background-clip: text;
|
|
267
|
-
-webkit-background-clip: text;
|
|
268
|
-
-webkit-text-fill-color: transparent;
|
|
269
|
-
}
|
|
1
|
+
@tailwind base;
|
|
2
|
+
@tailwind components;
|
|
3
|
+
@tailwind utilities;
|
|
4
|
+
|
|
5
|
+
.image-container {
|
|
6
|
+
display: -webkit-box;
|
|
7
|
+
display: -ms-flexbox;
|
|
8
|
+
display: flex;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@font-face {
|
|
12
|
+
font-family: "Pretendard-Medium";
|
|
13
|
+
src: url("./asset/fonts/Pretendard-Medium.otf") format("opentype");
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@font-face {
|
|
17
|
+
font-family: "Pretendard-Bold";
|
|
18
|
+
src: url("./asset/fonts/Pretendard-Bold.otf") format("opentype");
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@font-face {
|
|
22
|
+
font-family: "Pretendard-Light";
|
|
23
|
+
src: url("./asset/fonts/Pretendard-Light.otf") format("opentype");
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@font-face {
|
|
27
|
+
font-family: "Kostar";
|
|
28
|
+
src: url("./asset/fonts/Kostar.ttf") format("truetype");
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@font-face {
|
|
32
|
+
font-family: "NicoMoji";
|
|
33
|
+
src: url("./asset/fonts/NicoMoji.ttf") format("truetype");
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@font-face {
|
|
37
|
+
font-family: "Megrim";
|
|
38
|
+
src: url("./asset/fonts/Megrim.ttf") format("truetype");
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@font-face {
|
|
42
|
+
font-family: "Times-Newer-Roman-Bold";
|
|
43
|
+
src: url("./asset/fonts/TimesNewerRoman-Bold.otf") format("opentype");
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@font-face {
|
|
47
|
+
font-family: "Times-Newer-Roman-BoldItalic";
|
|
48
|
+
src: url("./asset/fonts/TimesNewerRoman-BoldItalic.otf") format("opentype");
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@font-face {
|
|
52
|
+
font-family: "PretendardVariable";
|
|
53
|
+
src: url("./asset/fonts/PretendardVariable.ttf") format("truetype");
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
input[type="date"]::-webkit-inner-spin-button,
|
|
57
|
+
input[type="date"]::-webkit-calendar-picker-indicator {
|
|
58
|
+
display: none;
|
|
59
|
+
-webkit-appearance: none;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
::-webkit-scrollbar {
|
|
63
|
+
width: 3px;
|
|
64
|
+
padding-right: 10px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
::-webkit-scrollbar-track {
|
|
68
|
+
background-color: transparent;
|
|
69
|
+
}
|
|
70
|
+
::-webkit-scrollbar-thumb {
|
|
71
|
+
background-color: #808080;
|
|
72
|
+
opacity: 0.5;
|
|
73
|
+
border-radius: 10px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.box-shadow {
|
|
77
|
+
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.15);
|
|
78
|
+
}
|
|
79
|
+
.box-shadow-md {
|
|
80
|
+
box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
|
|
81
|
+
}
|
|
82
|
+
.box-shadow-sm {
|
|
83
|
+
box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.1);
|
|
84
|
+
}
|
|
85
|
+
.border-gradient-green-to-red {
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.x-shape {
|
|
89
|
+
position: relative;
|
|
90
|
+
width: 0.83625rem;
|
|
91
|
+
height: 0.83625rem;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.x-shape::before,
|
|
95
|
+
.x-shape::after {
|
|
96
|
+
content: "";
|
|
97
|
+
position: absolute;
|
|
98
|
+
top: 50%;
|
|
99
|
+
left: 50%;
|
|
100
|
+
width: 2.5px;
|
|
101
|
+
border-radius: 2px;
|
|
102
|
+
height: 100%;
|
|
103
|
+
background-color: white;
|
|
104
|
+
transform-origin: center;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.x-shape::before {
|
|
108
|
+
transform: translate(-50%, -50%) rotate(45deg);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.x-shape::after {
|
|
112
|
+
transform: translate(-50%, -50%) rotate(-45deg);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.border-inner {
|
|
116
|
+
box-shadow: 0 0 0 1px #e5e7eb inset, 0 4px 6px -1px rgba(0, 0, 0, 0.1),
|
|
117
|
+
0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
118
|
+
}
|
|
119
|
+
.box-shadow-focus:focus {
|
|
120
|
+
box-shadow: 0 0 0 1px #e5e7eb inset, 0 4px 6px -1px rgba(0, 0, 0, 0.1),
|
|
121
|
+
0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
122
|
+
}
|
|
123
|
+
.box-shadow-focus-red:focus {
|
|
124
|
+
box-shadow: 0px 0px 10px 0px #ff8383;
|
|
125
|
+
}
|
|
126
|
+
.box-green {
|
|
127
|
+
background: rgba(16, 86, 82, 0.1);
|
|
128
|
+
color: #105652;
|
|
129
|
+
}
|
|
130
|
+
.box-shadow-green-sm {
|
|
131
|
+
box-shadow: 0px 0px 10px 0px rgba(16, 86, 82, 0.38);
|
|
132
|
+
}
|
|
133
|
+
.box-green-focus:focus {
|
|
134
|
+
background: white;
|
|
135
|
+
color: black;
|
|
136
|
+
box-shadow: 0px 0px 10px 0px rgba(16, 86, 82, 0.38);
|
|
137
|
+
}
|
|
138
|
+
/* box-shadow: 0px 0px 10px 0px rgba(16, 86, 82, 0.38); */
|
|
139
|
+
.box-inner-shadow:hover {
|
|
140
|
+
box-shadow: 0 0 0 1px #e5e7eb inset, 0 4px 6px -1px rgba(0, 0, 0, 0.1),
|
|
141
|
+
0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
142
|
+
}
|
|
143
|
+
/* Date Picker Css */
|
|
144
|
+
.react-datepicker__day--selected {
|
|
145
|
+
background-color: #105652 !important;
|
|
146
|
+
}
|
|
147
|
+
.react-datepicker__header {
|
|
148
|
+
background: white !important;
|
|
149
|
+
border: none !important;
|
|
150
|
+
}
|
|
151
|
+
.react-datepicker {
|
|
152
|
+
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.15) !important;
|
|
153
|
+
border-radius: 0.375rem !important;
|
|
154
|
+
border: none !important;
|
|
155
|
+
}
|
|
156
|
+
.react-datepicker__day--keyboard-selected {
|
|
157
|
+
background-color: white !important;
|
|
158
|
+
color: black !important;
|
|
159
|
+
}
|
|
160
|
+
.react-datepicker__day--outside-month {
|
|
161
|
+
color: rgb(161 161 170) !important;
|
|
162
|
+
}
|
|
163
|
+
.react-datepicker__month-container {
|
|
164
|
+
padding-top: 1rem;
|
|
165
|
+
padding-left: 1rem;
|
|
166
|
+
padding-right: 1rem;
|
|
167
|
+
padding-bottom: 0.5rem;
|
|
168
|
+
}
|
|
169
|
+
.react-datepicker-popper {
|
|
170
|
+
transform: translate(0px 295px) !important;
|
|
171
|
+
}
|
|
172
|
+
.react-datepicker__input-container {
|
|
173
|
+
text-align: center !important;
|
|
174
|
+
border-radius: 0.375rem !important;
|
|
175
|
+
transition: all 0.3s;
|
|
176
|
+
}
|
|
177
|
+
.react-datepicker__input-container > input {
|
|
178
|
+
cursor: pointer !important;
|
|
179
|
+
}
|
|
180
|
+
.react-datepicker__input-container:hover {
|
|
181
|
+
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.15) !important;
|
|
182
|
+
}
|
|
183
|
+
.react-datepicker__navigation {
|
|
184
|
+
top: 18px !important;
|
|
185
|
+
}
|
|
186
|
+
.react-datepicker__navigation--next {
|
|
187
|
+
right: 20px !important;
|
|
188
|
+
}
|
|
189
|
+
.react-datepicker__navigation--previous {
|
|
190
|
+
left: 182px !important;
|
|
191
|
+
}
|
|
192
|
+
.react-datepicker__current-month {
|
|
193
|
+
text-align: left !important;
|
|
194
|
+
margin-left: 16px !important;
|
|
195
|
+
}
|
|
196
|
+
.react-datepicker__triangle {
|
|
197
|
+
display: none !important;
|
|
198
|
+
}
|
|
199
|
+
.react-datepicker__children-container {
|
|
200
|
+
width: 16rem !important;
|
|
201
|
+
}
|
|
202
|
+
/* toggle button */
|
|
203
|
+
.toggle[type="checkbox"]::before {
|
|
204
|
+
content: "";
|
|
205
|
+
position: absolute;
|
|
206
|
+
left: 1px;
|
|
207
|
+
top: 1px;
|
|
208
|
+
width: 1.1rem;
|
|
209
|
+
height: 1.1rem;
|
|
210
|
+
border-radius: 50%;
|
|
211
|
+
transform: scale(0.9);
|
|
212
|
+
background-color: white;
|
|
213
|
+
transition: left 100ms linear;
|
|
214
|
+
}
|
|
215
|
+
.toggle[type="checkbox"]:checked::before {
|
|
216
|
+
background-color: white;
|
|
217
|
+
left: 1.32rem;
|
|
218
|
+
}
|
|
219
|
+
.toggle[type="checkbox"]:checked {
|
|
220
|
+
background-color: #105652;
|
|
221
|
+
}
|
|
222
|
+
.toggle[type="checkbox"]:disabled {
|
|
223
|
+
opacity: 0.3;
|
|
224
|
+
cursor: not-allowed;
|
|
225
|
+
}
|
|
226
|
+
.toggle[type="checkbox"]:disabled + span {
|
|
227
|
+
opacity: 0.3;
|
|
228
|
+
cursor: not-allowed;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/* checkbox */
|
|
232
|
+
.check-box[type="checkbox"]:checked {
|
|
233
|
+
border-color: transparent;
|
|
234
|
+
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5.707 7.293a1 1 0 0 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l4-4a1 1 0 0 0-1.414-1.414L7 8.586 5.707 7.293z'/%3e%3c/svg%3e");
|
|
235
|
+
background-size: 150%;
|
|
236
|
+
background-position: 50%;
|
|
237
|
+
background-repeat: no-repeat;
|
|
238
|
+
}
|
|
239
|
+
.check-box[type="checkbox"]:disabled {
|
|
240
|
+
background-color: #7f7f7f;
|
|
241
|
+
}
|
|
242
|
+
.box-shadow-green:hover {
|
|
243
|
+
box-shadow: 0px 0px 20px 0px rgba(16, 86, 82, 0.5);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.fade-enter {
|
|
247
|
+
opacity: 0;
|
|
248
|
+
}
|
|
249
|
+
.fade-enter-active {
|
|
250
|
+
opacity: 1;
|
|
251
|
+
transition: opacity 0.5s ease-in-out;
|
|
252
|
+
}
|
|
253
|
+
.fade-exit {
|
|
254
|
+
opacity: 1;
|
|
255
|
+
}
|
|
256
|
+
.fade-exit-active {
|
|
257
|
+
opacity: 0;
|
|
258
|
+
transition: opacity 0.5s ease-in-out;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.text-gradient-green-to-red {
|
|
262
|
+
background: var(
|
|
263
|
+
--gradient-main,
|
|
264
|
+
linear-gradient(269deg, #760023 0%, #105652 100%)
|
|
265
|
+
);
|
|
266
|
+
background-clip: text;
|
|
267
|
+
-webkit-background-clip: text;
|
|
268
|
+
-webkit-text-fill-color: transparent;
|
|
269
|
+
}
|
|
@@ -85,13 +85,41 @@ function ProgressReport({ props, }, ref) {
|
|
|
85
85
|
height: "full",
|
|
86
86
|
boundary: "border-2 border-slate-300 pt-8 pr-8",
|
|
87
87
|
background: "bg-slate-200",
|
|
88
|
-
}, children: _jsx(ResponsiveContainer, { width: "100%", height: "100%", className: "absolute left-0 bottom-0", children: _jsxs(LineChart, { data:
|
|
89
|
-
...result
|
|
90
|
-
|
|
91
|
-
|
|
88
|
+
}, children: _jsx(ResponsiveContainer, { width: "100%", height: "100%", className: "absolute left-0 bottom-0", children: _jsxs(LineChart, { data: [
|
|
89
|
+
...results.map((result) => ({
|
|
90
|
+
...result,
|
|
91
|
+
date: moment.unix(result.date).format("YY-MM-DD"),
|
|
92
|
+
})),
|
|
93
|
+
{
|
|
94
|
+
score: predict(results.slice(-1)[0].score, studentInfo.birthday),
|
|
95
|
+
date: "예상치",
|
|
96
|
+
},
|
|
97
|
+
], children: [_jsx(XAxis, { dataKey: "date" }), _jsx(YAxis, { dataKey: "score", scale: "log", domain: ["auto", "auto"] }), _jsx(Line, { type: "monotone", name: "Monthly Test", dataKey: "score", stroke: "#173A8B", fill: "#173A8B" }), _jsx(Legend, {})] }) }) }) }), _jsx("div", { className: "h-72", children: _jsxs(CardDesign, { option: {
|
|
92
98
|
width: "xl",
|
|
93
99
|
height: "full",
|
|
94
100
|
boundary: "border-2 border-slate-300 p-5",
|
|
95
101
|
}, children: [_jsxs("div", { className: "flex text-blue-navy font-bold text-lg", children: [_jsx("div", { children: commentType === "director" ? "원장님" : "TOSEL Lab" }), _jsx("div", { children: "\uC758 \uCF54\uBA58\uD2B8" })] }), _jsx("div", { className: "h-52 overflow-y-scroll scrollbar-hidden text-sm mt-2.5", children: _jsx(LineBreaks, { texts: comment }) })] }) })] })] })] }));
|
|
96
102
|
}
|
|
97
103
|
export default forwardRef(ProgressReport);
|
|
104
|
+
function predict(score, birthday) {
|
|
105
|
+
const ln = Number(birthday.slice(-1));
|
|
106
|
+
const weight = score + ln;
|
|
107
|
+
const result = () => {
|
|
108
|
+
if (weight > 90)
|
|
109
|
+
return weight + 1;
|
|
110
|
+
if (weight > 80)
|
|
111
|
+
return weight + 2;
|
|
112
|
+
if (weight > 70)
|
|
113
|
+
return weight + 3;
|
|
114
|
+
if (weight > 60)
|
|
115
|
+
return weight + 4;
|
|
116
|
+
if (weight > 50)
|
|
117
|
+
return weight + 5;
|
|
118
|
+
if (weight > 40)
|
|
119
|
+
return weight + 6;
|
|
120
|
+
return weight + 7;
|
|
121
|
+
};
|
|
122
|
+
if (result() > 100)
|
|
123
|
+
return 100;
|
|
124
|
+
return result();
|
|
125
|
+
}
|