@daeryun/dr_components 0.8.52 → 0.8.54
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/cjs/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/components/index.js +2 -0
- package/dist/components/index.ts +2 -0
- package/dist/components/page/FieldNew/FieldNewView.d.ts +3 -0
- package/dist/components/page/FieldNew/FieldNewView.jsx +170 -0
- package/dist/components/page/FieldNew/FieldNewView.tsx +304 -0
- package/dist/components/page/FieldNew/FieldWrapper.d.ts +8 -0
- package/dist/components/page/FieldNew/FieldWrapper.jsx +30 -0
- package/dist/components/page/FieldNew/FieldWrapper.tsx +36 -0
- package/dist/components/page/LawInfoNew/LawInfoNewView.d.ts +3 -0
- package/dist/components/page/LawInfoNew/LawInfoNewView.jsx +197 -0
- package/dist/components/page/LawInfoNew/LawInfoNewView.tsx +394 -0
- package/dist/components/page/LawInfoNew/LawInfoWrapper.d.ts +8 -0
- package/dist/components/page/LawInfoNew/LawInfoWrapper.jsx +30 -0
- package/dist/components/page/LawInfoNew/LawInfoWrapper.tsx +36 -0
- package/dist/components/page/SuccessNew/components/SuccessWrapper.jsx +3 -4
- package/dist/components/page/SuccessNew/components/SuccessWrapper.tsx +3 -4
- package/dist/styles/globals.css +25 -5
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,394 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import ContentList from '../SuccessNew/components/ContentList';
|
|
4
|
+
import { useEffect, useRef, useState } from 'react';
|
|
5
|
+
import useBrowser from '../../hook/useBrowser';
|
|
6
|
+
import { ILawyerTypes } from '../SuccessNew/SuccessNewType';
|
|
7
|
+
import { htmlUrlDecode } from '../../../lib';
|
|
8
|
+
import H2Contents from '../SuccessNew/components/H2Contents';
|
|
9
|
+
import H3Contents from '../SuccessNew/components/H3Contents';
|
|
10
|
+
import SeoAdditionalLink from '../SuccessNew/components/SeoAdditionalLink';
|
|
11
|
+
import PdfPrintCopyLink from '../../PdfPrintCopyLink/PdfPrintCopyLink';
|
|
12
|
+
import SeoYoutube from '../../Seo/SeoYoutube';
|
|
13
|
+
import SeoStrength from '../../Seo/SeoStrength';
|
|
14
|
+
import SeoConsulting from '../../Seo/SeoConsulting';
|
|
15
|
+
import { Lawyer } from '../../Seo/Lawyer';
|
|
16
|
+
import LawInfoContentList from '../SuccessNew/components/LawInfoContentList';
|
|
17
|
+
import { SuccessCase } from '../SuccessNew/components/SuccessCase';
|
|
18
|
+
import { FieldCase } from '../SuccessNew/components/FieldCase';
|
|
19
|
+
import { ILawInfoNewPageTypes } from './LawInfoNewTypes';
|
|
20
|
+
import Link from 'next/link';
|
|
21
|
+
import Image from 'next/image';
|
|
22
|
+
|
|
23
|
+
import Arrow from '../../../asset/images/success_new/left.webp';
|
|
24
|
+
import RightArrow from '../../../asset/images/success_new/right.webp';
|
|
25
|
+
import LawInfoWrapper from './LawInfoWrapper';
|
|
26
|
+
|
|
27
|
+
const LawInfoNewView = ({ data, tel }: ILawInfoNewPageTypes) => {
|
|
28
|
+
const {
|
|
29
|
+
template,
|
|
30
|
+
contentsList,
|
|
31
|
+
h2List,
|
|
32
|
+
lawyerData,
|
|
33
|
+
fieldData,
|
|
34
|
+
successData,
|
|
35
|
+
groupTopTenLawyerList,
|
|
36
|
+
referenceLinkList,
|
|
37
|
+
newsLinkList,
|
|
38
|
+
shortsLinkList,
|
|
39
|
+
youtubeLinkList,
|
|
40
|
+
initialData,
|
|
41
|
+
nextPost,
|
|
42
|
+
prevPost
|
|
43
|
+
} = data;
|
|
44
|
+
const { width } = useBrowser(true);
|
|
45
|
+
const [relatedCaseLawyerList, setRelatedCaseLawyerList] = useState<ILawyerTypes[]>(lawyerData);
|
|
46
|
+
const [isFaqActive, setIsFaqActive] = useState<boolean>(false);
|
|
47
|
+
const printRef = useRef<HTMLDivElement>(null);
|
|
48
|
+
|
|
49
|
+
const h1Title: string = template
|
|
50
|
+
.map(temp => temp.tag === 'h1' && temp.tag_title)
|
|
51
|
+
.filter(temp => temp !== false)
|
|
52
|
+
.toString();
|
|
53
|
+
const h1Description: string = template
|
|
54
|
+
.map(temp => temp.tag === 'h1' && temp.description)
|
|
55
|
+
.filter(temp => temp !== false)
|
|
56
|
+
.toString();
|
|
57
|
+
|
|
58
|
+
const handleScrollToElement = (idx: number) => {
|
|
59
|
+
if (typeof window != 'undefined') {
|
|
60
|
+
const element = document.getElementById(idx.toString());
|
|
61
|
+
if (element) {
|
|
62
|
+
const topOffset = element.getBoundingClientRect().top;
|
|
63
|
+
window.scrollTo({
|
|
64
|
+
top: window.scrollY + topOffset - 130,
|
|
65
|
+
behavior: 'smooth'
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
// 변호사 6명 맞추기
|
|
72
|
+
useEffect(() => {
|
|
73
|
+
const originLawyerLength = lawyerData.length;
|
|
74
|
+
const maxCount = 6; // 최대 변호사 수
|
|
75
|
+
const sliceCount = maxCount - originLawyerLength;
|
|
76
|
+
|
|
77
|
+
if (originLawyerLength < maxCount) {
|
|
78
|
+
// 중복되지 않은 변호사 리스트 생성
|
|
79
|
+
const additionalLawyers = groupTopTenLawyerList
|
|
80
|
+
.filter(topLawyer => !lawyerData.some(lawyer => lawyer.lawyer_name === topLawyer.lawyer_name))
|
|
81
|
+
.slice(0, sliceCount);
|
|
82
|
+
|
|
83
|
+
// 변호사 리스트 업데이트 (중복 방지)
|
|
84
|
+
setRelatedCaseLawyerList([...lawyerData, ...additionalLawyers]);
|
|
85
|
+
} else {
|
|
86
|
+
// 변호사 수가 충분하면 최대 6명만 설정
|
|
87
|
+
setRelatedCaseLawyerList(lawyerData.slice(0, maxCount));
|
|
88
|
+
}
|
|
89
|
+
}, [lawyerData, groupTopTenLawyerList]);
|
|
90
|
+
|
|
91
|
+
useEffect(() => {
|
|
92
|
+
if (template) {
|
|
93
|
+
// 초기화
|
|
94
|
+
setIsFaqActive(false);
|
|
95
|
+
|
|
96
|
+
for (const data of template) {
|
|
97
|
+
// console.log("faq 활성화: ", data['active_faq']);
|
|
98
|
+
if (data['active_faq']) {
|
|
99
|
+
setIsFaqActive(true);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}, [template]);
|
|
104
|
+
|
|
105
|
+
return (
|
|
106
|
+
<div
|
|
107
|
+
itemScope={isFaqActive ? undefined : true}
|
|
108
|
+
itemType={isFaqActive ? undefined : 'https://schema.org/FAQPage'}
|
|
109
|
+
ref={printRef}
|
|
110
|
+
>
|
|
111
|
+
<div id={'sub_contents'}>
|
|
112
|
+
<LawInfoWrapper>
|
|
113
|
+
<PdfPrintCopyLink
|
|
114
|
+
fileName={template.filter(t => t.tag === 'h1')[0].tag_title}
|
|
115
|
+
printRef={printRef}
|
|
116
|
+
/>
|
|
117
|
+
<div className=" relative m-auto mb-[60px] mt-[7em] font-[SUIT] max-sm:mt-[70px] max-xs:mb-[30px] lg:mt-[5em]">
|
|
118
|
+
<div className="m-auto mt-[3em] flex gap-[120px] max-5xl:gap-[80px] max-xl:flex-col max-xl:gap-0 lg:mt-[5em]">
|
|
119
|
+
<div>
|
|
120
|
+
<div>
|
|
121
|
+
<h1
|
|
122
|
+
className={
|
|
123
|
+
'break-keep text-[52.5px] font-[800] tracking-[-2.1px] text-[#285FA7] max-3xl:text-5xl max-md:text-4xl max-xs:text-[28px]'
|
|
124
|
+
}
|
|
125
|
+
>
|
|
126
|
+
{h1Title}
|
|
127
|
+
</h1>
|
|
128
|
+
<div
|
|
129
|
+
className={
|
|
130
|
+
'mb-[54px] mt-[16px] whitespace-break-spaces text-[16px] font-normal tracking-[-0.96px] xs:text-[18px] sm:mb-[62px] sm:mt-[26px] sm:text-[20px] lg:mb-[75px] lg:mt-[37.5px] lg:text-[24px]'
|
|
131
|
+
}
|
|
132
|
+
>
|
|
133
|
+
<div
|
|
134
|
+
id={'ck-content'}
|
|
135
|
+
dangerouslySetInnerHTML={{
|
|
136
|
+
__html: htmlUrlDecode(
|
|
137
|
+
h1Description.replace('../../UploadFile', '/SE2/upload') as string
|
|
138
|
+
)
|
|
139
|
+
}}
|
|
140
|
+
/>
|
|
141
|
+
</div>
|
|
142
|
+
</div>
|
|
143
|
+
|
|
144
|
+
<article>
|
|
145
|
+
<ContentList
|
|
146
|
+
template={template}
|
|
147
|
+
h2List={h2List ? h2List : []}
|
|
148
|
+
onScrollToElement={handleScrollToElement}
|
|
149
|
+
/>
|
|
150
|
+
{h2List &&
|
|
151
|
+
h2List.map((h2Template, index) => (
|
|
152
|
+
<section
|
|
153
|
+
className={'mt-[52px] sm:mt-[62px] lg:mt-[75px]'}
|
|
154
|
+
key={'h2영역' + h2Template.idx}
|
|
155
|
+
>
|
|
156
|
+
<H2Contents h2Template={h2Template} index={index} />
|
|
157
|
+
{template
|
|
158
|
+
.filter(t => t.parent === h2Template.idx)
|
|
159
|
+
.map((h3Template, h3Index) => {
|
|
160
|
+
return (
|
|
161
|
+
<>
|
|
162
|
+
<H3Contents
|
|
163
|
+
h3Template={h3Template}
|
|
164
|
+
key={'h3영역' + h3Template.idx}
|
|
165
|
+
/>
|
|
166
|
+
{(h3Template.reference_is_use &&
|
|
167
|
+
referenceLinkList.length > 0) ||
|
|
168
|
+
(h3Template.news_is_use && newsLinkList.length > 0) ? (
|
|
169
|
+
<span
|
|
170
|
+
className={
|
|
171
|
+
'mb-[44px] flex flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
|
|
172
|
+
//520px
|
|
173
|
+
'max-2sm:gap-[16px]'
|
|
174
|
+
}
|
|
175
|
+
>
|
|
176
|
+
{h3Template.reference_is_use &&
|
|
177
|
+
referenceLinkList.length > 0 && (
|
|
178
|
+
<SeoAdditionalLink
|
|
179
|
+
type={'더보기'}
|
|
180
|
+
linkList={referenceLinkList.filter(
|
|
181
|
+
i =>
|
|
182
|
+
i.tag_idx === h3Template.idx
|
|
183
|
+
)}
|
|
184
|
+
/>
|
|
185
|
+
)}
|
|
186
|
+
{h3Template.news_is_use &&
|
|
187
|
+
newsLinkList.length > 0 && (
|
|
188
|
+
<SeoAdditionalLink
|
|
189
|
+
type={'관련기사'}
|
|
190
|
+
linkList={newsLinkList.filter(
|
|
191
|
+
i =>
|
|
192
|
+
i.tag_idx === h3Template.idx
|
|
193
|
+
)}
|
|
194
|
+
/>
|
|
195
|
+
)}
|
|
196
|
+
</span>
|
|
197
|
+
) : (
|
|
198
|
+
<></>
|
|
199
|
+
)}
|
|
200
|
+
</>
|
|
201
|
+
);
|
|
202
|
+
})}
|
|
203
|
+
<span className={'flex flex-col gap-[26px] max-2sm:gap-[16px]'}>
|
|
204
|
+
{h2Template.reference_is_use && referenceLinkList.length > 0 && (
|
|
205
|
+
<SeoAdditionalLink
|
|
206
|
+
type={'더보기'}
|
|
207
|
+
linkList={referenceLinkList.filter(
|
|
208
|
+
i => i.tag_idx === h2Template.idx
|
|
209
|
+
)}
|
|
210
|
+
/>
|
|
211
|
+
)}
|
|
212
|
+
{h2Template.news_is_use && newsLinkList.length > 0 && (
|
|
213
|
+
<SeoAdditionalLink
|
|
214
|
+
type={'관련기사'}
|
|
215
|
+
linkList={newsLinkList.filter(
|
|
216
|
+
i => i.tag_idx === h2Template.idx
|
|
217
|
+
)}
|
|
218
|
+
/>
|
|
219
|
+
)}
|
|
220
|
+
{h2Template.youtube_is_use && (
|
|
221
|
+
<>
|
|
222
|
+
{shortsLinkList.length > 0 && (
|
|
223
|
+
<SeoYoutube
|
|
224
|
+
type={'shorts'}
|
|
225
|
+
linkList={shortsLinkList.filter(
|
|
226
|
+
i => i.tag_idx === h2Template.idx
|
|
227
|
+
)}
|
|
228
|
+
/>
|
|
229
|
+
)}
|
|
230
|
+
{youtubeLinkList.length > 0 && (
|
|
231
|
+
<SeoYoutube
|
|
232
|
+
type={'youtube'}
|
|
233
|
+
linkList={youtubeLinkList.filter(
|
|
234
|
+
i => i.tag_idx === h2Template.idx
|
|
235
|
+
)}
|
|
236
|
+
/>
|
|
237
|
+
)}
|
|
238
|
+
</>
|
|
239
|
+
)}
|
|
240
|
+
</span>
|
|
241
|
+
</section>
|
|
242
|
+
))}
|
|
243
|
+
</article>
|
|
244
|
+
{width >= 1280 ? (
|
|
245
|
+
<div className={'flex flex-col gap-[60px] lg:mt-[60px]'}>
|
|
246
|
+
<div className={'relative w-full '}>
|
|
247
|
+
<SeoStrength initialData={initialData} />
|
|
248
|
+
</div>
|
|
249
|
+
<SeoConsulting tel={tel} />
|
|
250
|
+
<LawInfoContentList
|
|
251
|
+
contentsList={contentsList}
|
|
252
|
+
template={template}
|
|
253
|
+
className={''}
|
|
254
|
+
/>
|
|
255
|
+
</div>
|
|
256
|
+
) : (
|
|
257
|
+
<></>
|
|
258
|
+
)}
|
|
259
|
+
</div>
|
|
260
|
+
|
|
261
|
+
{(fieldData.length > 0 || relatedCaseLawyerList.length > 0 || successData.length > 0) && (
|
|
262
|
+
<span
|
|
263
|
+
className={
|
|
264
|
+
'relative mb-[30px] mt-[170px] w-[340px] shrink-0 ' +
|
|
265
|
+
'max-3xl:mt-[150px] max-3xl:w-[300px] ' +
|
|
266
|
+
'max-xl:mt-[50px] max-xl:w-full max-xl:pt-0'
|
|
267
|
+
}
|
|
268
|
+
>
|
|
269
|
+
<span
|
|
270
|
+
id={'fixSideBar'}
|
|
271
|
+
className={
|
|
272
|
+
'top-[140px] flex w-[340px] flex-col gap-[50px] xl:sticky ' +
|
|
273
|
+
'max-3xl:w-[300px] max-xl:w-full'
|
|
274
|
+
}
|
|
275
|
+
>
|
|
276
|
+
{successData.length > 0 && <SuccessCase successData={successData} />}
|
|
277
|
+
{fieldData.length > 0 && <FieldCase fieldData={fieldData} />}
|
|
278
|
+
{relatedCaseLawyerList.length > 0 && (
|
|
279
|
+
<Lawyer lawyerData={relatedCaseLawyerList} />
|
|
280
|
+
)}
|
|
281
|
+
</span>
|
|
282
|
+
</span>
|
|
283
|
+
)}
|
|
284
|
+
</div>
|
|
285
|
+
</div>
|
|
286
|
+
</LawInfoWrapper>
|
|
287
|
+
<LawInfoWrapper className=" m-auto mt-[7em] max-md2:mt-[0] max-xs:mb-[30px] lg:mt-[5em] ">
|
|
288
|
+
<div className="max-4xl: m-auto">
|
|
289
|
+
{width < 1280 ? (
|
|
290
|
+
<div className="max-4xl: m-auto flex flex-col gap-[60px]">
|
|
291
|
+
<div className={'relative w-full lg:mb-20'}>
|
|
292
|
+
<SeoStrength initialData={initialData} />
|
|
293
|
+
</div>
|
|
294
|
+
<SeoConsulting tel={tel} />
|
|
295
|
+
<LawInfoContentList contentsList={contentsList} template={template} />
|
|
296
|
+
</div>
|
|
297
|
+
) : (
|
|
298
|
+
<></>
|
|
299
|
+
)}
|
|
300
|
+
<div className="m-auto mt-[60px] max-md:mb-[30px]">
|
|
301
|
+
<div
|
|
302
|
+
className={
|
|
303
|
+
'flex flex-col items-start justify-between md:mb-[60px] lg:flex-row lg:items-center'
|
|
304
|
+
}
|
|
305
|
+
>
|
|
306
|
+
<div
|
|
307
|
+
className={
|
|
308
|
+
'mb-6 flex w-full flex-col gap-[8px] lg:mb-0 lg:w-auto lg:flex-row lg:items-center lg:gap-[20px] lg2:gap-[28px]'
|
|
309
|
+
}
|
|
310
|
+
>
|
|
311
|
+
<Image
|
|
312
|
+
src={Arrow}
|
|
313
|
+
alt={'화살표'}
|
|
314
|
+
title={'화살표'}
|
|
315
|
+
width={15}
|
|
316
|
+
height={15}
|
|
317
|
+
className={'m-auto hidden lg:block'}
|
|
318
|
+
/>
|
|
319
|
+
<p className={'shrink-0 text-[18px] text-[#285FA7] '}>이전글</p>
|
|
320
|
+
{prevPost ? (
|
|
321
|
+
<Link href={prevPost.pathname + String(prevPost.idx)}>
|
|
322
|
+
<p
|
|
323
|
+
className={
|
|
324
|
+
'w-full truncate text-[16px] xs:text-[18px] lg:w-[13em] xl:w-[16em] xxl:text-[20px] 4xl:w-[20em] '
|
|
325
|
+
}
|
|
326
|
+
>
|
|
327
|
+
{prevPost.title}
|
|
328
|
+
</p>
|
|
329
|
+
</Link>
|
|
330
|
+
) : (
|
|
331
|
+
<p
|
|
332
|
+
className={
|
|
333
|
+
'truncate text-[16px] lg:w-[13em] xl:w-[16em] xxl:text-[20px] 4xl:w-[20em]'
|
|
334
|
+
}
|
|
335
|
+
>
|
|
336
|
+
이전글이 없습니다.
|
|
337
|
+
</p>
|
|
338
|
+
)}
|
|
339
|
+
</div>
|
|
340
|
+
|
|
341
|
+
<Link href={`/info`} className={'hidden w-[198px] shrink-0 max-xxl:w-[138px] lg:block'}>
|
|
342
|
+
<button
|
|
343
|
+
className={
|
|
344
|
+
'rounded-[30px] border-[1px] border-solid border-[#b0b0b0] bg-[#41464C] px-[40px] py-[10px] text-[#fff] xxl:px-[70px] xxl:py-[15px]'
|
|
345
|
+
}
|
|
346
|
+
>
|
|
347
|
+
목록보기
|
|
348
|
+
</button>
|
|
349
|
+
</Link>
|
|
350
|
+
|
|
351
|
+
<div
|
|
352
|
+
className={
|
|
353
|
+
'flex w-full flex-col justify-end gap-[8px] lg:w-auto lg:flex-row lg:items-center lg:gap-[20px] lg2:gap-[28px]'
|
|
354
|
+
}
|
|
355
|
+
>
|
|
356
|
+
<p className={'shrink-0 text-[18px] text-[#285FA7]'}>다음글</p>
|
|
357
|
+
{nextPost ? (
|
|
358
|
+
<Link href={nextPost.pathname + String(nextPost.idx)}>
|
|
359
|
+
<p
|
|
360
|
+
className={
|
|
361
|
+
'w-full truncate text-[16px] xs:text-[18px] lg:w-[13em] xl:w-[16em] xxl:text-[20px] 4xl:w-[20em] '
|
|
362
|
+
}
|
|
363
|
+
>
|
|
364
|
+
{nextPost.title}
|
|
365
|
+
</p>
|
|
366
|
+
</Link>
|
|
367
|
+
) : (
|
|
368
|
+
<p
|
|
369
|
+
className={
|
|
370
|
+
'truncate xs:text-[18px] lg:w-[13em] xl:w-[16em] xxl:text-[20px] 4xl:w-[20em] '
|
|
371
|
+
}
|
|
372
|
+
>
|
|
373
|
+
다음글이 없습니다.
|
|
374
|
+
</p>
|
|
375
|
+
)}
|
|
376
|
+
<Image
|
|
377
|
+
src={RightArrow}
|
|
378
|
+
alt={'화살표'}
|
|
379
|
+
title={'화살표'}
|
|
380
|
+
width={15}
|
|
381
|
+
height={15}
|
|
382
|
+
className={'m-auto hidden lg:block'}
|
|
383
|
+
/>
|
|
384
|
+
</div>
|
|
385
|
+
</div>
|
|
386
|
+
</div>
|
|
387
|
+
</div>
|
|
388
|
+
</LawInfoWrapper>
|
|
389
|
+
</div>
|
|
390
|
+
</div>
|
|
391
|
+
);
|
|
392
|
+
};
|
|
393
|
+
|
|
394
|
+
export default LawInfoNewView;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
interface WrapperProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
id?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const LawInfoWrapper: React.ForwardRefExoticComponent<WrapperProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export default LawInfoWrapper;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import React, { forwardRef } from 'react';
|
|
13
|
+
const LawInfoWrapper = forwardRef((_a, ref) => {
|
|
14
|
+
var { children, className = '', id } = _a, others = __rest(_a, ["children", "className", "id"]);
|
|
15
|
+
return (<div id={id} className={'relative mx-auto w-full max-w-[1920px] px-[190px] ' +
|
|
16
|
+
'max-5xl:px-[100px] ' +
|
|
17
|
+
// 1500px
|
|
18
|
+
'max-3xl:px-[80px] ' +
|
|
19
|
+
// 1024px - dev Tablets
|
|
20
|
+
'max-lg:px-[60px] ' +
|
|
21
|
+
// 900px - design Tablets
|
|
22
|
+
'max-md2:px-[40px] ' +
|
|
23
|
+
// 520px - dev Mobile ( 320px - design Mobile )
|
|
24
|
+
'max-2sm:px-[20px] ' +
|
|
25
|
+
className} ref={ref} {...others}>
|
|
26
|
+
{children}
|
|
27
|
+
</div>);
|
|
28
|
+
});
|
|
29
|
+
LawInfoWrapper.displayName = 'LawInfoWrapper';
|
|
30
|
+
export default LawInfoWrapper;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React, { ReactNode, forwardRef } from 'react';
|
|
2
|
+
|
|
3
|
+
interface WrapperProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
className?: string; // 스타일 추가
|
|
6
|
+
id?: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const LawInfoWrapper = forwardRef<HTMLDivElement, WrapperProps>(({ children, className = '', id, ...others }, ref) => {
|
|
10
|
+
return (
|
|
11
|
+
<div
|
|
12
|
+
id={id}
|
|
13
|
+
className={
|
|
14
|
+
'relative mx-auto w-full max-w-[1920px] px-[190px] ' +
|
|
15
|
+
'max-5xl:px-[100px] ' +
|
|
16
|
+
// 1500px
|
|
17
|
+
'max-3xl:px-[80px] ' +
|
|
18
|
+
// 1024px - dev Tablets
|
|
19
|
+
'max-lg:px-[60px] ' +
|
|
20
|
+
// 900px - design Tablets
|
|
21
|
+
'max-md2:px-[40px] ' +
|
|
22
|
+
// 520px - dev Mobile ( 320px - design Mobile )
|
|
23
|
+
'max-2sm:px-[20px] ' +
|
|
24
|
+
className
|
|
25
|
+
}
|
|
26
|
+
ref={ref}
|
|
27
|
+
{...others}
|
|
28
|
+
>
|
|
29
|
+
{children}
|
|
30
|
+
</div>
|
|
31
|
+
);
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
LawInfoWrapper.displayName = 'LawInfoWrapper';
|
|
35
|
+
|
|
36
|
+
export default LawInfoWrapper;
|
|
@@ -12,9 +12,8 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
12
12
|
import React, { forwardRef } from 'react';
|
|
13
13
|
const SuccessWrapper = forwardRef((_a, ref) => {
|
|
14
14
|
var { children, className = '', id } = _a, others = __rest(_a, ["children", "className", "id"]);
|
|
15
|
-
return (<div id={id} className={'relative mx-auto w-full max-w-[1920px] px-[
|
|
16
|
-
|
|
17
|
-
'max-full:px-[7.35%] ' +
|
|
15
|
+
return (<div id={id} className={'relative mx-auto w-full max-w-[1920px] px-[190px] ' +
|
|
16
|
+
'max-5xl:px-[100px] ' +
|
|
18
17
|
// 1500px
|
|
19
18
|
'max-3xl:px-[80px] ' +
|
|
20
19
|
// 1024px - dev Tablets
|
|
@@ -27,5 +26,5 @@ const SuccessWrapper = forwardRef((_a, ref) => {
|
|
|
27
26
|
{children}
|
|
28
27
|
</div>);
|
|
29
28
|
});
|
|
30
|
-
SuccessWrapper.displayName = '
|
|
29
|
+
SuccessWrapper.displayName = 'SuccessWrapper';
|
|
31
30
|
export default SuccessWrapper;
|
|
@@ -11,9 +11,8 @@ const SuccessWrapper = forwardRef<HTMLDivElement, WrapperProps>(({ children, cla
|
|
|
11
11
|
<div
|
|
12
12
|
id={id}
|
|
13
13
|
className={
|
|
14
|
-
'relative mx-auto w-full max-w-[1920px] px-[
|
|
15
|
-
|
|
16
|
-
'max-full:px-[7.35%] ' +
|
|
14
|
+
'relative mx-auto w-full max-w-[1920px] px-[190px] ' +
|
|
15
|
+
'max-5xl:px-[100px] ' +
|
|
17
16
|
// 1500px
|
|
18
17
|
'max-3xl:px-[80px] ' +
|
|
19
18
|
// 1024px - dev Tablets
|
|
@@ -32,6 +31,6 @@ const SuccessWrapper = forwardRef<HTMLDivElement, WrapperProps>(({ children, cla
|
|
|
32
31
|
);
|
|
33
32
|
});
|
|
34
33
|
|
|
35
|
-
SuccessWrapper.displayName = '
|
|
34
|
+
SuccessWrapper.displayName = 'SuccessWrapper';
|
|
36
35
|
|
|
37
36
|
export default SuccessWrapper;
|
package/dist/styles/globals.css
CHANGED
|
@@ -3066,6 +3066,10 @@ video {
|
|
|
3066
3066
|
width: 196px;
|
|
3067
3067
|
}
|
|
3068
3068
|
|
|
3069
|
+
.w-\[198px\] {
|
|
3070
|
+
width: 198px;
|
|
3071
|
+
}
|
|
3072
|
+
|
|
3069
3073
|
.w-\[19px\] {
|
|
3070
3074
|
width: 19px;
|
|
3071
3075
|
}
|
|
@@ -9274,11 +9278,6 @@ body {
|
|
|
9274
9278
|
.max-full\:grid-cols-4 {
|
|
9275
9279
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
9276
9280
|
}
|
|
9277
|
-
|
|
9278
|
-
.max-full\:px-\[7\.35\%\] {
|
|
9279
|
-
padding-left: 7.35%;
|
|
9280
|
-
padding-right: 7.35%;
|
|
9281
|
-
}
|
|
9282
9281
|
}
|
|
9283
9282
|
|
|
9284
9283
|
@media (max-width: 1835px) {
|
|
@@ -9408,6 +9407,11 @@ body {
|
|
|
9408
9407
|
row-gap: 13px;
|
|
9409
9408
|
}
|
|
9410
9409
|
|
|
9410
|
+
.max-5xl\:px-\[100px\] {
|
|
9411
|
+
padding-left: 100px;
|
|
9412
|
+
padding-right: 100px;
|
|
9413
|
+
}
|
|
9414
|
+
|
|
9411
9415
|
.max-5xl\:px-\[120px\] {
|
|
9412
9416
|
padding-left: 120px;
|
|
9413
9417
|
padding-right: 120px;
|
|
@@ -10012,6 +10016,10 @@ body {
|
|
|
10012
10016
|
height: 300px;
|
|
10013
10017
|
}
|
|
10014
10018
|
|
|
10019
|
+
.max-xxl\:w-\[138px\] {
|
|
10020
|
+
width: 138px;
|
|
10021
|
+
}
|
|
10022
|
+
|
|
10015
10023
|
.max-xxl\:w-\[17px\] {
|
|
10016
10024
|
width: 17px;
|
|
10017
10025
|
}
|
|
@@ -14950,6 +14958,10 @@ body {
|
|
|
14950
14958
|
margin-bottom: 5px;
|
|
14951
14959
|
}
|
|
14952
14960
|
|
|
14961
|
+
.max-xs\:mb-\[60px\] {
|
|
14962
|
+
margin-bottom: 60px;
|
|
14963
|
+
}
|
|
14964
|
+
|
|
14953
14965
|
.max-xs\:mr-\[17px\] {
|
|
14954
14966
|
margin-right: 17px;
|
|
14955
14967
|
}
|
|
@@ -17972,6 +17984,10 @@ body {
|
|
|
17972
17984
|
display: none;
|
|
17973
17985
|
}
|
|
17974
17986
|
|
|
17987
|
+
.xl\:w-\[16em\] {
|
|
17988
|
+
width: 16em;
|
|
17989
|
+
}
|
|
17990
|
+
|
|
17975
17991
|
.xl\:w-\[19\.43\%\] {
|
|
17976
17992
|
width: 19.43%;
|
|
17977
17993
|
}
|
|
@@ -18105,6 +18121,10 @@ body {
|
|
|
18105
18121
|
}
|
|
18106
18122
|
|
|
18107
18123
|
@media (min-width: 1600px) {
|
|
18124
|
+
.\34xl\:w-\[20em\] {
|
|
18125
|
+
width: 20em;
|
|
18126
|
+
}
|
|
18127
|
+
|
|
18108
18128
|
.\34xl\:w-\[85\%\] {
|
|
18109
18129
|
width: 85%;
|
|
18110
18130
|
}
|