@daeryun/dr_components 1.1.72 → 1.1.74
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/dist/components/PaginationForGroup/PaginationForGroup.d.ts +2 -1
- package/dist/components/PaginationForGroup/PaginationForGroup.jsx +6 -2
- package/dist/components/PaginationForGroup/PaginationForGroup.tsx +7 -1
- package/dist/components/page/Notice/Detail/NoticeDetail.jsx +8 -6
- package/dist/components/page/Notice/Detail/NoticeDetail.tsx +9 -5
- package/dist/components/page/Notice/Detail/detail.module.css +470 -0
- package/dist/components/page/Success/ListCard.jsx +1 -1
- package/dist/components/page/Success/ListCard.tsx +1 -1
- package/dist/components/page/Success/SuccessList.jsx +4 -1
- package/dist/components/page/Success/SuccessList.tsx +5 -0
- package/dist/components/page/Success/SuccessListTypes.d.ts +1 -1
- package/dist/components/page/Success/SuccessListTypes.tsx +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ interface PaginationProps {
|
|
|
5
5
|
currentPage: number;
|
|
6
6
|
className?: string;
|
|
7
7
|
query?: string;
|
|
8
|
+
onChange?: (pageNum: number) => void;
|
|
8
9
|
}
|
|
9
|
-
declare const PaginationForGroup: ({ total, size, currentPage, className }: PaginationProps) => React.JSX.Element;
|
|
10
|
+
declare const PaginationForGroup: ({ total, size, currentPage, className, onChange }: PaginationProps) => React.JSX.Element;
|
|
10
11
|
export default PaginationForGroup;
|
|
@@ -17,7 +17,7 @@ import { usePathname, useSearchParams } from 'next/navigation';
|
|
|
17
17
|
import arrowLeft from '../../asset/images/myCase/pagination/arrow_l_on.webp';
|
|
18
18
|
import arrowRight from '../../asset/images/myCase/pagination/arrow_r_on.webp';
|
|
19
19
|
import Image from 'next/image';
|
|
20
|
-
const PaginationForGroup = ({ total, size, currentPage, className }) => {
|
|
20
|
+
const PaginationForGroup = ({ total, size, currentPage, className, onChange }) => {
|
|
21
21
|
const totalPages = Math.ceil(total / size);
|
|
22
22
|
const pathname = usePathname();
|
|
23
23
|
const searchParams = useSearchParams();
|
|
@@ -41,7 +41,11 @@ const PaginationForGroup = ({ total, size, currentPage, className }) => {
|
|
|
41
41
|
}} alwaysBg/>
|
|
42
42
|
|
|
43
43
|
{/* 그룹 내 페이지 버튼 */}
|
|
44
|
-
{pages.map(page => (<PageBtn
|
|
44
|
+
{pages.map(page => (<PageBtn onClick={() => {
|
|
45
|
+
if (onChange) {
|
|
46
|
+
onChange(page);
|
|
47
|
+
}
|
|
48
|
+
}} index={<div className={'flex aspect-square h-[30px] items-center justify-center'}>{page}</div>} key={`${pathname}_${page}`} href={{
|
|
45
49
|
pathname,
|
|
46
50
|
query: Object.assign({ page }, query)
|
|
47
51
|
}} active={page === currentPage}>
|
|
@@ -17,9 +17,10 @@ interface PaginationProps {
|
|
|
17
17
|
currentPage: number;
|
|
18
18
|
className?: string;
|
|
19
19
|
query?: string;
|
|
20
|
+
onChange?: (pageNum: number) => void;
|
|
20
21
|
}
|
|
21
22
|
|
|
22
|
-
const PaginationForGroup = ({ total, size, currentPage, className }: PaginationProps) => {
|
|
23
|
+
const PaginationForGroup = ({ total, size, currentPage, className, onChange }: PaginationProps) => {
|
|
23
24
|
const totalPages = Math.ceil(total / size);
|
|
24
25
|
const pathname = usePathname();
|
|
25
26
|
const searchParams = useSearchParams();
|
|
@@ -69,6 +70,11 @@ const PaginationForGroup = ({ total, size, currentPage, className }: PaginationP
|
|
|
69
70
|
{/* 그룹 내 페이지 버튼 */}
|
|
70
71
|
{pages.map(page => (
|
|
71
72
|
<PageBtn
|
|
73
|
+
onClick={() => {
|
|
74
|
+
if (onChange) {
|
|
75
|
+
onChange(page);
|
|
76
|
+
}
|
|
77
|
+
}}
|
|
72
78
|
index={
|
|
73
79
|
<div className={'flex aspect-square h-[30px] items-center justify-center'}>{page}</div>
|
|
74
80
|
}
|
|
@@ -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
|
-
|
|
51
|
-
|
|
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={
|
|
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
|
-
|
|
92
|
-
|
|
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={
|
|
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.
|
|
20
|
+
{item.crime_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]'}>
|
|
@@ -32,6 +32,9 @@ const Index = (props) => {
|
|
|
32
32
|
setSearch(s);
|
|
33
33
|
setSearchInput(s);
|
|
34
34
|
}, [searchParams]);
|
|
35
|
+
const onPaginationChange = (pageNum) => __awaiter(void 0, void 0, void 0, function* () {
|
|
36
|
+
removeScrollPosCheck(`/success?page=${pageNum}${search ? `&search=${encodeURIComponent(search)}` : ''}`);
|
|
37
|
+
});
|
|
35
38
|
const handleClick = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
36
39
|
const query = new URLSearchParams();
|
|
37
40
|
query.set('page', '1');
|
|
@@ -53,7 +56,7 @@ const Index = (props) => {
|
|
|
53
56
|
<p className={'w-fit'}>검색 결과가 없습니다.</p>
|
|
54
57
|
</div>)}
|
|
55
58
|
|
|
56
|
-
<PaginationForGroup total={totalCount} currentPage={Number(currentPage)} size={12} className={'my-[100px]'}/>
|
|
59
|
+
<PaginationForGroup total={totalCount} currentPage={Number(currentPage)} size={12} className={'my-[100px]'} onChange={onPaginationChange}/>
|
|
57
60
|
</PageWrapper>
|
|
58
61
|
</>);
|
|
59
62
|
};
|
|
@@ -27,6 +27,10 @@ const Index = (props: { list: ISuccessListTypes[]; totalCount: number; currentPa
|
|
|
27
27
|
setSearchInput(s);
|
|
28
28
|
}, [searchParams]);
|
|
29
29
|
|
|
30
|
+
const onPaginationChange = async (pageNum: number) => {
|
|
31
|
+
removeScrollPosCheck(`/success?page=${pageNum}${search ? `&search=${encodeURIComponent(search)}` : ''}`);
|
|
32
|
+
};
|
|
33
|
+
|
|
30
34
|
const handleClick = async () => {
|
|
31
35
|
const query = new URLSearchParams();
|
|
32
36
|
query.set('page', '1');
|
|
@@ -74,6 +78,7 @@ const Index = (props: { list: ISuccessListTypes[]; totalCount: number; currentPa
|
|
|
74
78
|
currentPage={Number(currentPage)}
|
|
75
79
|
size={12}
|
|
76
80
|
className={'my-[100px]'}
|
|
81
|
+
onChange={onPaginationChange}
|
|
77
82
|
/>
|
|
78
83
|
</PageWrapper>
|
|
79
84
|
</>
|