@daeryun/dr_components 1.1.73 → 1.1.75

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.
@@ -1,10 +1,11 @@
1
1
  'use client';
2
2
  import React, { useEffect, useRef, useState } from 'react';
3
3
  import { useRouter } from 'next/router';
4
+ import style from './detail.module.css';
5
+ import classNames from 'classnames';
4
6
  import { PageWrapper, PdfPrintCopyLink } from '../../../index';
5
7
  import PostNavigation from '../../../postNavigation/PostNavigation';
6
8
  import TuiViewer from '../../../TuiViewer/TuiViewer';
7
- import styles from './NoticeDetail.module.css';
8
9
  const NoticeDetail = ({ notice, fileList, onHitUpdate, queryStr: initialQueryStr }) => {
9
10
  const imagePath = process.env.NEXT_PUBLIC_S3_URL || '';
10
11
  const router = useRouter();
@@ -35,7 +36,6 @@ const NoticeDetail = ({ notice, fileList, onHitUpdate, queryStr: initialQueryStr
35
36
  <PageWrapper ref={printRef}>
36
37
  <PdfPrintCopyLink fileName={notice.board_title} printRef={printRef}/>
37
38
  <div className={'h-[2px] w-[100%] bg-[#ebebeb] max-sm:mt-[10px]'}></div>
38
-
39
39
  <div className={'my-8 flex flex-col gap-[14px]'}>
40
40
  <h1 className={'text-[20px] font-[800] sm:text-[30px]'}>{notice.board_title}</h1>
41
41
  <div className={'my-[5px] flex justify-start gap-[40px]'}>
@@ -46,11 +46,13 @@ const NoticeDetail = ({ notice, fileList, onHitUpdate, queryStr: initialQueryStr
46
46
 
47
47
  <div className={'h-[2px] w-[100%] bg-[#ebebeb]'}></div>
48
48
  </div>
49
-
50
- <div className={styles.boxBody}>
51
- <div className={'px-[20px] ' + 'max-sm:px-[10px] '}>
49
+ <div className={style.box_body}>
50
+ <div className={classNames({
51
+ [style.summary]: true,
52
+ [style.introduction]: true
53
+ })}>
52
54
  {fileList.map((file, index) => (<div key={index} style={{ marginBottom: '50px' }}>
53
- <img src={imagePath + file.file_path + '/' + file.save_file_name} className={styles.summaryImg} alt={file.file_alt}/>
55
+ <img src={imagePath + file.file_path + '/' + file.save_file_name} className={style.summary_img} alt={file.file_alt}/>
54
56
  </div>))}
55
57
  {notice.gubun === 'ck' ? (<div id={'ck-content'} className="py-[30px]" dangerouslySetInnerHTML={{
56
58
  __html: htmlUrlDecode(notice.contents.replace('../../UploadFile', '/SE2/upload'))
@@ -2,6 +2,7 @@
2
2
 
3
3
  import React, { useEffect, useRef, useState } from 'react';
4
4
  import { useRouter } from 'next/router';
5
+ import style from './detail.module.css';
5
6
  import classNames from 'classnames';
6
7
  import { PageTitleBox, PageWrapper, PdfPrintCopyLink, ImgTypes } from '../../../index';
7
8
  import PostNavigation from '../../../postNavigation/PostNavigation';
@@ -76,7 +77,6 @@ const NoticeDetail = ({ notice, fileList, onHitUpdate, queryStr: initialQueryStr
76
77
  <PageWrapper ref={printRef}>
77
78
  <PdfPrintCopyLink fileName={notice.board_title} printRef={printRef} />
78
79
  <div className={'h-[2px] w-[100%] bg-[#ebebeb] max-sm:mt-[10px]'}></div>
79
-
80
80
  <div className={'my-8 flex flex-col gap-[14px]'}>
81
81
  <h1 className={'text-[20px] font-[800] sm:text-[30px]'}>{notice.board_title}</h1>
82
82
  <div className={'my-[5px] flex justify-start gap-[40px]'}>
@@ -87,14 +87,18 @@ const NoticeDetail = ({ notice, fileList, onHitUpdate, queryStr: initialQueryStr
87
87
 
88
88
  <div className={'h-[2px] w-[100%] bg-[#ebebeb]'}></div>
89
89
  </div>
90
-
91
- <div className={styles.boxBody}>
92
- <div className={'px-[20px] ' + 'max-sm:px-[10px] '}>
90
+ <div className={style.box_body}>
91
+ <div
92
+ className={classNames({
93
+ [style.summary]: true,
94
+ [style.introduction]: true
95
+ })}
96
+ >
93
97
  {fileList.map((file: FileData, index: number) => (
94
98
  <div key={index} style={{ marginBottom: '50px' }}>
95
99
  <img
96
100
  src={imagePath + file.file_path + '/' + file.save_file_name}
97
- className={styles.summaryImg}
101
+ className={style.summary_img}
98
102
  alt={file.file_alt}
99
103
  />
100
104
  </div>
@@ -0,0 +1,470 @@
1
+ #success_cont {
2
+ margin: 0 auto;
3
+ padding-bottom: 100px;
4
+ line-height: 1.6;
5
+ }
6
+
7
+ .success .sub_title {
8
+ text-align: center;
9
+ }
10
+ .success .sub_title .tit {
11
+ font-size: 38px;
12
+ padding-bottom: 15px;
13
+ }
14
+ .success .sub_title .sub_tit {
15
+ font-size: 20px;
16
+ font-weight: 400;
17
+ color: #666;
18
+ }
19
+
20
+ .success_box {
21
+ width: 1200px;
22
+ height: 100%;
23
+ margin: 0 auto;
24
+ overflow: hidden;
25
+ }
26
+
27
+ .box_header {
28
+ border-bottom: 1px solid #bdbdbd;
29
+ margin-top: 120px;
30
+ }
31
+ .header_title {
32
+ font-size: 24px;
33
+ font-weight: 500;
34
+ padding: 30px 20px 0 20px;
35
+ }
36
+ .box_sub_header {
37
+ display: inline-block;
38
+ }
39
+ .box_file {
40
+ font-size: 14px;
41
+ font-weight: 500;
42
+ padding: 0px 20px 10px 20px;
43
+ }
44
+ .box_file span {
45
+ margin-right: 10px;
46
+ }
47
+ .box_file a {
48
+ color: blue;
49
+ text-decoration: underline;
50
+ margin-right: 10px;
51
+ }
52
+
53
+ .sub_header_title {
54
+ display: inline-block;
55
+ font-size: 16px;
56
+ font-weight: 500;
57
+ padding: 20px;
58
+ }
59
+
60
+ .sub_header_title > .classification,
61
+ .sub_header_title > .count {
62
+ font-weight: 400;
63
+ }
64
+
65
+ .box_body .summary_img {
66
+ padding: 20px 0;
67
+ width: 100%;
68
+ height: auto;
69
+ }
70
+
71
+ .box_body .summary_title {
72
+ margin-top: 20px;
73
+ padding: 20px;
74
+ font-size: 42px;
75
+ font-weight: 500;
76
+ }
77
+ .box_body .summary_title span {
78
+ padding: 0 15px;
79
+ background: #083551;
80
+ color: #fff;
81
+ }
82
+ .box_body .summary_title strong {
83
+ color: #083551;
84
+ }
85
+
86
+ .box_body .last {
87
+ margin: 60px 0;
88
+ padding: 30px;
89
+ background: #f1f1f1;
90
+ }
91
+ .box_body .last .last_title {
92
+ font-size: 24px;
93
+ font-weight: 500;
94
+ margin-bottom: 20px;
95
+ }
96
+ .box_body .last .last_summary {
97
+ font-size: 18px;
98
+ font-weight: 300;
99
+ }
100
+
101
+ .box_body .summary {
102
+ line-height: 1.6;
103
+ font-size: 18px;
104
+ font-weight: 300;
105
+ padding: 30px 20px;
106
+ }
107
+
108
+ .box_next {
109
+ width: 1200px;
110
+ border-top: 1px solid #000;
111
+ display: inline-block;
112
+ font-size: 16px;
113
+ font-weight: 500;
114
+ }
115
+
116
+ .box_next .next_write {
117
+ width: 10%;
118
+ display: inline-block;
119
+ text-align: center;
120
+ padding: 20px;
121
+ }
122
+
123
+ .box_next .next_title {
124
+ width: 70%;
125
+ display: inline-block;
126
+ overflow: hidden;
127
+ text-overflow: ellipsis;
128
+ white-space: nowrap;
129
+ line-height: 20px;
130
+ font-size: 16px;
131
+ font-weight: 500;
132
+ vertical-align: middle;
133
+ }
134
+
135
+ .box_next .next_date {
136
+ width: 15%;
137
+ display: inline-block;
138
+ text-align: center;
139
+ }
140
+
141
+ .box_prev {
142
+ width: 1200px;
143
+ border-top: 1px solid #bdbdbd;
144
+ border-bottom: 1px solid #bdbdbd;
145
+ display: inline-block;
146
+ font-size: 16px;
147
+ font-weight: 500;
148
+ }
149
+
150
+ .box_prev .prev_write {
151
+ width: 10%;
152
+ display: inline-block;
153
+ text-align: center;
154
+ padding: 20px;
155
+ }
156
+
157
+ .box_prev .prev_title {
158
+ width: 70%;
159
+ display: inline-block;
160
+ overflow: hidden;
161
+ text-overflow: ellipsis;
162
+ white-space: nowrap;
163
+ line-height: 20px;
164
+ font-size: 16px;
165
+ font-weight: 500;
166
+ vertical-align: middle;
167
+ }
168
+
169
+ .box_prev .prev_date {
170
+ width: 15%;
171
+ display: inline-block;
172
+ text-align: center;
173
+ }
174
+
175
+ .box_next > a:hover .next_title,
176
+ .box_prev > a:hover .prev_title {
177
+ color: #083551;
178
+ }
179
+
180
+ .box_next:hover,
181
+ .box_prev:hover {
182
+ background-color: #f6f6f6;
183
+ }
184
+
185
+ .box_btn {
186
+ width: 1200px;
187
+ margin-top: 40px;
188
+ }
189
+
190
+ .left_btn {
191
+ position: absolute;
192
+ }
193
+
194
+ .modify_btn,
195
+ .delete_btn {
196
+ font-size: 18px;
197
+ padding: 10px 20px;
198
+ background-color: #fff;
199
+ border: 1px solid #bdbdbd;
200
+ cursor: pointer;
201
+ }
202
+
203
+ .right_btn {
204
+ text-align: right;
205
+ }
206
+
207
+ .list_btn {
208
+ font-size: 18px;
209
+ padding: 10px 40px;
210
+ background-color: #083551;
211
+ color: #fff;
212
+ cursor: pointer;
213
+ }
214
+
215
+ .modify_btn:hover,
216
+ .delete_btn:hover {
217
+ border: 1px solid #212223;
218
+ transition: 0.1s;
219
+ }
220
+
221
+ .list_btn:hover {
222
+ opacity: 0.8;
223
+ transition: 0.1s;
224
+ }
225
+
226
+ @media only screen and (max-width: 1280px) {
227
+ .success_box {
228
+ width: 90%;
229
+ height: 100%;
230
+ overflow: hidden;
231
+ }
232
+
233
+ .header_title {
234
+ font-size: 22px;
235
+ font-weight: 500;
236
+ padding: 30px 20px 0 20px;
237
+ }
238
+
239
+ .box_next {
240
+ width: 100%;
241
+ border-top: 1px solid #000;
242
+ display: inline-block;
243
+ font-size: 16px;
244
+ font-weight: 500;
245
+ }
246
+
247
+ .box_next .next_write {
248
+ width: 15%;
249
+ display: inline-block;
250
+ text-align: center;
251
+ padding: 20px;
252
+ }
253
+
254
+ .box_next .next_title {
255
+ width: 60%;
256
+ display: inline-block;
257
+ }
258
+
259
+ .box_next .next_date {
260
+ width: 15%;
261
+ display: inline-block;
262
+ text-align: center;
263
+ }
264
+
265
+ .box_prev {
266
+ width: 100%;
267
+ border-top: 1px solid #bdbdbd;
268
+ border-bottom: 1px solid #bdbdbd;
269
+ display: inline-block;
270
+ font-size: 16px;
271
+ font-weight: 500;
272
+ }
273
+
274
+ .box_prev .prev_write {
275
+ width: 15%;
276
+ display: inline-block;
277
+ text-align: center;
278
+ padding: 20px;
279
+ }
280
+
281
+ .box_prev .prev_title {
282
+ width: 60%;
283
+ display: inline-block;
284
+ }
285
+
286
+ .box_prev .prev_date {
287
+ width: 15%;
288
+ display: inline-block;
289
+ text-align: center;
290
+ }
291
+
292
+ .box_btn {
293
+ width: 100%;
294
+ margin-top: 40px;
295
+ }
296
+ }
297
+
298
+ @media only screen and (max-width: 1200px) {
299
+ .box_header {
300
+ margin-top: 90px;
301
+ }
302
+ }
303
+
304
+ @media only screen and (max-width: 640px) {
305
+ .success .sub_title .tit {
306
+ font-size: 28px;
307
+ padding-bottom: 15px;
308
+ }
309
+ .success .sub_title .sub_tit {
310
+ font-size: 16px;
311
+ color: #666;
312
+ }
313
+ .success .con .box .right .tit {
314
+ font-size: 18px;
315
+ padding: 15px 0;
316
+ }
317
+ .success .con .box .right p {
318
+ font-size: 15px;
319
+ }
320
+
321
+ .header_title {
322
+ font-size: 16px;
323
+ font-weight: 500;
324
+ padding: 15px 15px 0 15px;
325
+ }
326
+ .box_sub_header {
327
+ width: 100%;
328
+ display: inline-block;
329
+ margin-left: 10px;
330
+ }
331
+ .box_file {
332
+ font-size: 10px;
333
+ font-weight: 500;
334
+ padding: 0px 10px 5px 10px;
335
+ }
336
+
337
+ .sub_header_title {
338
+ display: inline-block;
339
+ font-size: 12px;
340
+ font-weight: 500;
341
+ padding: 15px 5px;
342
+ }
343
+
344
+ .box_body .summary {
345
+ line-height: 1.6;
346
+ font-size: 14px;
347
+ font-weight: 300;
348
+ padding: 40px 10px;
349
+ }
350
+
351
+ .box_body .summary_img {
352
+ padding: 20px 0 0 0;
353
+ }
354
+ .box_body .summary_img > span > span > img {
355
+ width: 100%;
356
+ height: auto !important;
357
+ }
358
+
359
+ .box_body .summary_title {
360
+ margin-top: 20px;
361
+ padding: 20px 0;
362
+ font-size: 28px;
363
+ font-weight: 500;
364
+ }
365
+ .box_body .summary_title span {
366
+ padding: 0 15px;
367
+ background: #083551;
368
+ color: #fff;
369
+ }
370
+
371
+ .box_body .last {
372
+ margin: 40px 0;
373
+ padding: 25px;
374
+ background: #f1f1f1;
375
+ }
376
+ .box_body .last .last_title {
377
+ font-size: 18px;
378
+ font-weight: 500;
379
+ margin-bottom: 20px;
380
+ }
381
+ .box_body .last .last_summary {
382
+ font-size: 14px;
383
+ font-weight: 300;
384
+ }
385
+
386
+ .box_next {
387
+ width: 100%;
388
+ border-top: 1px solid #000;
389
+ display: inline-block;
390
+ font-size: 12px;
391
+ font-weight: 500;
392
+ }
393
+
394
+ .box_next .next_write {
395
+ width: 10%;
396
+ display: inline-block;
397
+ text-align: center;
398
+ padding: 20px 10px;
399
+ }
400
+
401
+ .box_next .next_title {
402
+ width: 60%;
403
+ display: inline-block;
404
+ font-size: 12px;
405
+ }
406
+
407
+ .box_next .next_date {
408
+ width: 20%;
409
+ display: inline-block;
410
+ text-align: center;
411
+ }
412
+
413
+ .box_prev {
414
+ width: 100%;
415
+ border-top: 1px solid #bdbdbd;
416
+ border-bottom: 1px solid #bdbdbd;
417
+ display: inline-block;
418
+ font-size: 12px;
419
+ font-weight: 500;
420
+ }
421
+
422
+ .box_prev .prev_write {
423
+ width: 20%;
424
+ display: inline-block;
425
+ text-align: center;
426
+ padding: 20px 10px;
427
+ }
428
+
429
+ .box_prev .prev_title {
430
+ width: 60%;
431
+ display: inline-block;
432
+ font-size: 12px;
433
+ }
434
+
435
+ .box_prev .prev_date {
436
+ width: 20%;
437
+ display: inline-block;
438
+ text-align: center;
439
+ }
440
+
441
+ .box_btn {
442
+ width: 100%;
443
+ margin-top: 40px;
444
+ }
445
+
446
+ .left_btn {
447
+ position: absolute;
448
+ }
449
+
450
+ .modify_btn,
451
+ .delete_btn {
452
+ font-size: 16px;
453
+ padding: 5px 10px;
454
+ background-color: #fff;
455
+ border: 1px solid #bdbdbd;
456
+ cursor: pointer;
457
+ }
458
+
459
+ .right_btn {
460
+ text-align: right;
461
+ }
462
+
463
+ .list_btn {
464
+ font-size: 16px;
465
+ padding: 5px 20px;
466
+ background-color: #083551;
467
+ color: #fff;
468
+ cursor: pointer;
469
+ }
470
+ }
@@ -17,7 +17,7 @@ const ListCard = ({ item, isBest }) => {
17
17
 
18
18
  <p className={'mb-[34px] flex h-10 w-fit min-w-[100px] items-center justify-center rounded-full border-[2px] border-solid border-[#A91C364D] bg-white px-3 text-[20px] font-bold tracking-[-2px] text-[#AB0634] ' +
19
19
  'max-xs:h-9 max-xs:min-w-20 max-xs:text-[18px]'}>
20
- {item.center_name}
20
+ {item.crime_name && item.crime_name != '' ? item.crime_name : item.center_name}
21
21
  </p>
22
22
 
23
23
  <p className={'mb-[10px] line-clamp-1 text-[18px] font-semibold leading-none tracking-[-1.5px] text-[#666] max-xs:text-[16px]'}>
@@ -38,7 +38,7 @@ const ListCard = ({ item, isBest }: { item: ISuccessListTypes; isBest: boolean }
38
38
  'max-xs:h-9 max-xs:min-w-20 max-xs:text-[18px]'
39
39
  }
40
40
  >
41
- {item.center_name}
41
+ {item.crime_name && item.crime_name != '' ? item.crime_name : item.center_name}
42
42
  </p>
43
43
 
44
44
  <p
@@ -11,5 +11,6 @@ export interface ISuccessListTypes {
11
11
  contents_type: string;
12
12
  pathname: string;
13
13
  center_code: string;
14
+ crime_name: string;
14
15
  center_name: string;
15
16
  }
@@ -11,5 +11,6 @@ export interface ISuccessListTypes {
11
11
  contents_type: string;
12
12
  pathname: string;
13
13
  center_code: string;
14
+ crime_name: string;
14
15
  center_name: string;
15
16
  }