@daeryun/dr_components 0.5.85 → 0.5.87
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/asset/images/SearchBar/search.webp +0 -0
- package/dist/asset/images/faq/Ellipse.webp +0 -0
- package/dist/asset/images/faq/cal.webp +0 -0
- package/dist/asset/images/faq/check.webp +0 -0
- package/dist/asset/images/faq/down.webp +0 -0
- package/dist/asset/images/faq/eye.webp +0 -0
- package/dist/asset/images/faq/plus.webp +0 -0
- package/dist/asset/images/faq/right.webp +0 -0
- package/dist/asset/images/faq/vector_blu.svg +3 -0
- package/dist/asset/images/faq/vector_stroke.svg +3 -0
- package/dist/asset/images/seo/left.webp +0 -0
- package/dist/asset/images/seo/right.webp +0 -0
- package/dist/asset/images/seo/secConsulting/choice_call.webp +0 -0
- package/dist/asset/images/seo/secConsulting/choice_kakao.webp +0 -0
- package/dist/asset/images/seo/secConsulting/online.svg +36 -0
- package/dist/asset/images/seo/successCase/dia_dot.svg +3 -0
- package/dist/asset/images/seo/successCase/right_arrow.svg +4 -0
- package/dist/asset/images/seo/successCase/up_right.svg +3 -0
- package/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/components/SearchBar/SearchBar.d.ts +16 -0
- package/dist/components/SearchBar/SearchBar.jsx +90 -0
- package/dist/components/SearchBar/SearchBar.stories.d.ts +6 -0
- package/dist/components/SearchBar/SearchBar.stories.jsx +21 -0
- package/dist/components/SearchBar/SearchBar.stories.tsx +28 -0
- package/dist/components/SearchBar/SearchBar.tsx +173 -0
- package/dist/components/Seo/FieldCase.d.ts +5 -0
- package/dist/components/Seo/FieldCase.jsx +48 -0
- package/dist/components/Seo/FieldCase.tsx +85 -0
- package/dist/components/Seo/Lawyer.d.ts +5 -0
- package/dist/components/Seo/Lawyer.jsx +66 -0
- package/dist/components/Seo/Lawyer.tsx +148 -0
- package/dist/components/Seo/SeoConsulting.d.ts +6 -0
- package/dist/components/Seo/SeoConsulting.jsx +173 -0
- package/dist/components/Seo/SeoConsulting.tsx +272 -0
- package/dist/components/Seo/SuccessCase.d.ts +6 -0
- package/dist/components/Seo/SuccessCase.jsx +57 -0
- package/dist/components/Seo/SuccessCase.tsx +95 -0
- package/dist/components/Seo/right_arrow.svg +4 -0
- package/dist/components/TuiViewer/TuiViewer.d.ts +3 -0
- package/dist/components/TuiViewer/TuiViewer.jsx +7 -0
- package/dist/components/TuiViewer/TuiViewer.tsx +14 -0
- package/dist/components/common/types/faq/index.d.ts +11 -0
- package/dist/components/common/types/faq/index.js +1 -0
- package/dist/components/common/types/faq/index.ts +11 -0
- package/dist/components/common/types/seo/index.d.ts +27 -0
- package/dist/components/common/types/seo/index.js +1 -0
- package/dist/components/common/types/seo/index.ts +29 -0
- package/dist/components/index.js +1 -0
- package/dist/components/index.ts +1 -3
- package/dist/components/page/Faq/Detail/FaqDetail.d.ts +22 -0
- package/dist/components/page/Faq/Detail/FaqDetail.jsx +136 -0
- package/dist/components/page/Faq/Detail/FaqDetail.tsx +277 -0
- package/dist/components/page/Faq/Detail/FaqList.stories.d.ts +6 -0
- package/dist/components/page/Faq/Detail/FaqList.stories.jsx +187 -0
- package/dist/components/page/Faq/Detail/FaqList.stories.tsx +208 -0
- package/dist/components/page/Faq/FaqList.d.ts +23 -0
- package/dist/components/page/Faq/FaqList.jsx +99 -0
- package/dist/components/page/Faq/FaqList.stories.d.ts +6 -0
- package/dist/components/page/Faq/FaqList.stories.jsx +76 -0
- package/dist/components/page/Faq/FaqList.stories.tsx +93 -0
- package/dist/components/page/Faq/FaqList.tsx +197 -0
- package/dist/components/page/Faq/GroupList.d.ts +9 -0
- package/dist/components/page/Faq/GroupList.jsx +30 -0
- package/dist/components/page/Faq/GroupList.tsx +57 -0
- package/dist/components/page/Faq/GroupSelectBox.d.ts +9 -0
- package/dist/components/page/Faq/GroupSelectBox.jsx +67 -0
- package/dist/components/page/Faq/GroupSelectBox.tsx +117 -0
- package/dist/components/page/index.d.ts +2 -0
- package/dist/components/page/index.js +2 -0
- package/dist/components/page/index.ts +2 -0
- package/dist/lib/categoryMenuName.js +7 -1
- package/dist/lib/categoryMenuName.ts +5 -1
- package/dist/styles/globals.css +1080 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface ISuccessTypes {
|
|
2
|
+
idx: number;
|
|
3
|
+
contents_id: number;
|
|
4
|
+
contents_type: string;
|
|
5
|
+
sub_title: string;
|
|
6
|
+
tag_title: string;
|
|
7
|
+
type_idx: number;
|
|
8
|
+
code_desc: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ILawyerTypes {
|
|
11
|
+
lawyer_name: string | null;
|
|
12
|
+
l_ability: string;
|
|
13
|
+
l_tel: string;
|
|
14
|
+
l_id: string;
|
|
15
|
+
l_del: string;
|
|
16
|
+
mark: string;
|
|
17
|
+
lawyer_position: string;
|
|
18
|
+
lawyer_code: string;
|
|
19
|
+
img_url: string;
|
|
20
|
+
center_ability?: string | null;
|
|
21
|
+
}
|
|
22
|
+
export interface IFieldTypes {
|
|
23
|
+
idx: number;
|
|
24
|
+
title_text: string;
|
|
25
|
+
field_title: string;
|
|
26
|
+
pathname: string;
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface ISuccessTypes {
|
|
2
|
+
idx: number;
|
|
3
|
+
contents_id: number;
|
|
4
|
+
contents_type: string;
|
|
5
|
+
sub_title: string;
|
|
6
|
+
tag_title: string;
|
|
7
|
+
type_idx: number;
|
|
8
|
+
code_desc: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface ILawyerTypes {
|
|
12
|
+
lawyer_name: string | null;
|
|
13
|
+
l_ability: string;
|
|
14
|
+
l_tel: string;
|
|
15
|
+
l_id: string;
|
|
16
|
+
l_del: string;
|
|
17
|
+
mark: string;
|
|
18
|
+
lawyer_position: string;
|
|
19
|
+
lawyer_code: string;
|
|
20
|
+
img_url: string;
|
|
21
|
+
center_ability?: string | null;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface IFieldTypes {
|
|
25
|
+
idx: number;
|
|
26
|
+
title_text: string;
|
|
27
|
+
field_title: string;
|
|
28
|
+
pathname: string;
|
|
29
|
+
}
|
package/dist/components/index.js
CHANGED
|
@@ -30,4 +30,5 @@ export { default as System } from './page/System/SystemPage';
|
|
|
30
30
|
export { default as PageTitleBox } from './PageTitleBox/PageTitleBox';
|
|
31
31
|
export { ImgTypes } from './PageTitleBox/ImgTypes';
|
|
32
32
|
export { default as PageWrapper } from './Layout/PageWrapper';
|
|
33
|
+
export { default as SearchBar } from './SearchBar/SearchBar';
|
|
33
34
|
export { default as RelatedGroup } from './FieldNew/RelatedGroup';
|
package/dist/components/index.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import checkThirdPartyCookie from './page/Login/_api/checkThirdPartyCookie';
|
|
2
|
-
import AppHeaderContainer from './page/Login/AppHeaderContainer';
|
|
3
|
-
|
|
4
1
|
export * from './page';
|
|
5
2
|
export { default as Footer } from './Footer';
|
|
6
3
|
export { default as Fix } from './Fix';
|
|
@@ -33,4 +30,5 @@ export { default as System } from './page/System/SystemPage';
|
|
|
33
30
|
export { default as PageTitleBox } from './PageTitleBox/PageTitleBox';
|
|
34
31
|
export { ImgTypes } from './PageTitleBox/ImgTypes';
|
|
35
32
|
export { default as PageWrapper } from './Layout/PageWrapper';
|
|
33
|
+
export { default as SearchBar } from './SearchBar/SearchBar';
|
|
36
34
|
export { default as RelatedGroup } from './FieldNew/RelatedGroup';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IFaqTypes } from '../../../common/types/faq';
|
|
2
|
+
import { IInitialDataTypes } from '../../../common';
|
|
3
|
+
import { IFieldTypes, ILawyerTypes, ISuccessTypes } from '../../../common/types/seo';
|
|
4
|
+
export interface IPnData {
|
|
5
|
+
pre_idx: number;
|
|
6
|
+
pre_title: string;
|
|
7
|
+
next_idx: number;
|
|
8
|
+
next_title: string;
|
|
9
|
+
}
|
|
10
|
+
interface DetailProps {
|
|
11
|
+
faq: IFaqTypes;
|
|
12
|
+
lawyerData: ILawyerTypes[];
|
|
13
|
+
fieldData: IFieldTypes[];
|
|
14
|
+
successData: ISuccessTypes[];
|
|
15
|
+
pnData: IPnData;
|
|
16
|
+
code_desc: string;
|
|
17
|
+
code_name: string;
|
|
18
|
+
initialData: IInitialDataTypes;
|
|
19
|
+
tel: string;
|
|
20
|
+
}
|
|
21
|
+
declare const FaqDetail: ({ faq, lawyerData, fieldData, successData, pnData, code_desc, code_name, initialData, tel }: DetailProps) => import("react").JSX.Element;
|
|
22
|
+
export default FaqDetail;
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import PageTitleBox from '../../../PageTitleBox/PageTitleBox';
|
|
3
|
+
import { ImgTypes } from '../../../PageTitleBox/ImgTypes';
|
|
4
|
+
import PdfPrintCopyLink from '../../../PdfPrintCopyLink/PdfPrintCopyLink';
|
|
5
|
+
import { useRef } from 'react';
|
|
6
|
+
import Image from 'next/image';
|
|
7
|
+
import { htmlUrlDecode } from '../../../../lib';
|
|
8
|
+
import SeoStrength from '../../../Seo/SeoStrength';
|
|
9
|
+
import Link from 'next/link';
|
|
10
|
+
import TuiViewer from '../../../TuiViewer/TuiViewer';
|
|
11
|
+
import SeoConsulting from '../../../Seo/SeoConsulting';
|
|
12
|
+
import SuccessCase from '../../../Seo/SuccessCase';
|
|
13
|
+
import { Lawyer } from '../../../Seo/Lawyer';
|
|
14
|
+
import { FieldCase } from '../../../Seo/FieldCase';
|
|
15
|
+
import EyeImg from '../../../../asset/images/faq/eye.webp';
|
|
16
|
+
import IconLeft from '../../../../asset/images/seo/left.webp';
|
|
17
|
+
import IconRight from '../../../../asset/images/seo/right.webp';
|
|
18
|
+
const FaqDetail = ({ faq, lawyerData, fieldData, successData, pnData, code_desc, code_name, initialData, tel }) => {
|
|
19
|
+
var _a, _b, _c, _d, _e;
|
|
20
|
+
const printRef = useRef(null);
|
|
21
|
+
return (<>
|
|
22
|
+
<PageTitleBox titleTxt={'법률지식인'} subTxt={<span>
|
|
23
|
+
법률 궁금증 비전문가, 광고성 답변에 지쳤다면?
|
|
24
|
+
<br />
|
|
25
|
+
대륜의 전문변호사가 답변 드리겠습니다.
|
|
26
|
+
</span>} imgType={ImgTypes.FAQ} isSeo/>
|
|
27
|
+
<div className={'relative m-auto mb-[100px] w-[90%] max-w-screen-2xl tracking-[-0.5px] max-xs:mb-[30px]'}>
|
|
28
|
+
<section className={'mb-20 mt-[10px] flex w-full gap-[96px] max-xl:flex-col max-xl:gap-[50px] xl:mt-[80px]'} id={'sub_contents'}>
|
|
29
|
+
{/*faq*/}
|
|
30
|
+
<div className={'w-full'}>
|
|
31
|
+
<PdfPrintCopyLink fileName={(_a = faq.question) !== null && _a !== void 0 ? _a : ''} printRef={printRef}/>
|
|
32
|
+
<div className={'mt-6 h-full w-full border-t-[4px] border-solid border-t-black'}>
|
|
33
|
+
{/*제목*/}
|
|
34
|
+
<span className={'flex w-full gap-[16px] border-b border-solid border-[#E8E8E8] px-[12px] py-[28px] leading-[1.3] sm:gap-8 sm:px-5 sm:py-9'}>
|
|
35
|
+
<p className={'text-[32px] font-[900] max-sm:text-[28px] '}>Q</p>
|
|
36
|
+
<span className={'flex h-full w-full flex-col'}>
|
|
37
|
+
<p className={'mb-8 text-[32px] font-[800] leading-[1.3] max-lg:text-[28px] max-sm:mb-5 max-sm:text-[24px]'}>
|
|
38
|
+
{faq.question}
|
|
39
|
+
</p>
|
|
40
|
+
|
|
41
|
+
<span className={'mt-auto flex w-full items-center gap-[12px] text-[14px] text-[#A5A5A5] sm:gap-[18px] sm:text-[16px] '}>
|
|
42
|
+
<p className={'flex items-center leading-none'}>
|
|
43
|
+
<Image src={EyeImg} alt={'법률지식인'} width={24} height={24} className={'h-auto w-6'}/>
|
|
44
|
+
<span className={'ml-1 mr-3 font-[700] '}>조회수</span>
|
|
45
|
+
{(_b = faq.hit) === null || _b === void 0 ? void 0 : _b.toLocaleString()}
|
|
46
|
+
</p>
|
|
47
|
+
{/* <div className={'h-[4px] w-[4px] rounded-[50%] bg-[#D9D9D9]'}></div>
|
|
48
|
+
<p className={'flex items-center leading-none'}>
|
|
49
|
+
<Image
|
|
50
|
+
src={'/images/faq/cal.webp'}
|
|
51
|
+
alt={'법률지식인'}
|
|
52
|
+
width={24}
|
|
53
|
+
height={24}
|
|
54
|
+
className={'mr-1 h-auto w-6 sm:mr-3 '}
|
|
55
|
+
/>
|
|
56
|
+
{dayjs(faq.created_at).format('YYYY.MM.DD')}
|
|
57
|
+
</p> */}
|
|
58
|
+
</span>
|
|
59
|
+
</span>
|
|
60
|
+
</span>
|
|
61
|
+
|
|
62
|
+
{/*내용*/}
|
|
63
|
+
<p className={'block w-full pt-[25px] text-[20px] text-[#383838] max-lg:text-[18px] sm:pt-10 sm:leading-[1.5]'}>
|
|
64
|
+
{faq.question_contents}
|
|
65
|
+
</p>
|
|
66
|
+
|
|
67
|
+
{/*키워드*/}
|
|
68
|
+
<span className={'mt-10 flex w-full flex-wrap gap-2 leading-[1.4] '}>
|
|
69
|
+
{(_c = faq.keyword) === null || _c === void 0 ? void 0 : _c.split(',').map(item => {
|
|
70
|
+
return (<p key={item} className={'flex items-center justify-center rounded-[50px] bg-[#EFEFEF] px-6 py-1 text-[14px] font-[400] sm:h-[30px] sm:min-w-[116px] sm:text-[16px] lg:h-[33px] lg:min-w-[125px]'}>
|
|
71
|
+
{item}
|
|
72
|
+
</p>);
|
|
73
|
+
})}
|
|
74
|
+
</span>
|
|
75
|
+
|
|
76
|
+
{/*답변*/}
|
|
77
|
+
<div className={'mb-[70px] mt-[70px] w-full overflow-hidden rounded-t-[20px] border border-solid border-[#B9B9B9] max-xl:mb-[50px]'}>
|
|
78
|
+
<div className={'flex w-full items-center gap-[16px] border-b border-solid border-[#B9B9B9] bg-[#FAFAFF] px-[20px] py-[28px] text-[28px] font-[900] leading-[1.3] text-[#30539D] sm:gap-8 sm:p-[40px] sm:text-[32px] lg:p-10'}>
|
|
79
|
+
A <p className={'text-[24px] font-[800] sm:text-[28px]'}>관련 문의 답변</p>
|
|
80
|
+
</div>
|
|
81
|
+
<div className={'w-full px-[20px] py-[28px] text-[16px] text-[#212121] sm:p-10 sm:text-[18px] sm:leading-[150%] lg:text-[20px] lg:leading-[1.5]'}>
|
|
82
|
+
{faq.gubun === 'ck' ? (<div id={'ck-content'} dangerouslySetInnerHTML={{
|
|
83
|
+
__html: htmlUrlDecode(faq.answer
|
|
84
|
+
? (_d = faq.answer) === null || _d === void 0 ? void 0 : _d.replace('../../UploadFile', '/SE2/upload')
|
|
85
|
+
: '')
|
|
86
|
+
}}/>) : (<TuiViewer initialValue={(_e = faq.answer) === null || _e === void 0 ? void 0 : _e.replace('../../UploadFile', '/SE2/upload')}/>)}
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
<SeoStrength initialData={initialData}/>
|
|
90
|
+
<div className={'h-[70px] max-xl:h-[50px] '}/>
|
|
91
|
+
<SeoConsulting customTitle={code_name} tel={tel}/>
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
94
|
+
|
|
95
|
+
{/*관련내용*/}
|
|
96
|
+
{((successData === null || successData === void 0 ? void 0 : successData.length) || (fieldData === null || fieldData === void 0 ? void 0 : fieldData.length) || (lawyerData === null || lawyerData === void 0 ? void 0 : lawyerData.length)) > 0 && (<div className={'relative flex w-[340px] shrink-0 flex-col gap-10 max-xl:w-full '}>
|
|
97
|
+
<div className={'top-[140px] flex w-[340px] shrink-0 flex-col gap-10 max-xl:w-full xl:sticky'}>
|
|
98
|
+
{(successData === null || successData === void 0 ? void 0 : successData.length) > 0 && <SuccessCase successData={successData}/>}
|
|
99
|
+
{(fieldData === null || fieldData === void 0 ? void 0 : fieldData.length) > 0 && <FieldCase fieldData={fieldData}/>}
|
|
100
|
+
{(lawyerData === null || lawyerData === void 0 ? void 0 : lawyerData.length) > 0 && <Lawyer lawyerData={lawyerData}/>}
|
|
101
|
+
</div>
|
|
102
|
+
</div>)}
|
|
103
|
+
</section>
|
|
104
|
+
|
|
105
|
+
{/*이전글 다음글*/}
|
|
106
|
+
<div className={'flex w-full items-center justify-between max-md:flex-col'}>
|
|
107
|
+
{pnData.pre_idx ? (<Link href={`/faq/detail/` + pnData.pre_idx} className={'mb-6 flex w-full flex-col gap-[8px] md:mb-0 md:w-auto md:flex-row md:gap-[20px] lg:w-auto lg2:gap-[28px]'} aria-label={'이전글 ' + pnData.pre_title}>
|
|
108
|
+
<Image src={IconLeft} alt={''} width={15} height={15} className={'m-auto hidden md:block'}/>
|
|
109
|
+
<p className={'text-[#285FA7]'}>이전글</p>
|
|
110
|
+
<div>
|
|
111
|
+
<p className={'truncate md:w-[11em] lg:w-[14em] lg2:w-[18em] '}>{pnData.pre_title}</p>
|
|
112
|
+
</div>
|
|
113
|
+
</Link>) : (<div className={'flex w-[30%] gap-[28px]'}></div>)}
|
|
114
|
+
|
|
115
|
+
{pnData.next_idx ? (<>
|
|
116
|
+
<Link href={`/faq/detail/` + pnData.next_idx} className={'flex w-full flex-col justify-end gap-[8px] md:order-last md:w-auto md:flex-row md:gap-[20px] lg:w-auto lg2:gap-[28px]'} aria-label={'다음글 ' + pnData.next_title}>
|
|
117
|
+
<p className={'text-[#285FA7]'}>다음글</p>
|
|
118
|
+
<div aria-label={'다음글 ' + pnData.next_title}>
|
|
119
|
+
<p className={'truncate md:w-[11em] lg:w-[14em] lg2:w-[18em] '}>
|
|
120
|
+
{pnData.next_title}
|
|
121
|
+
</p>
|
|
122
|
+
</div>
|
|
123
|
+
<Image src={IconRight} alt={''} width={15} height={15} className={'m-auto hidden md:block'}/>
|
|
124
|
+
</Link>
|
|
125
|
+
</>) : (<div className={'order-last flex w-[30%] gap-[28px]'}></div>)}
|
|
126
|
+
|
|
127
|
+
<Link href={`/faq/${code_desc}`} className={'max-md:mt-[40px]'}>
|
|
128
|
+
<div className={'rounded-[30px] border-[1px] border-solid border-[#b0b0b0] bg-[#41464C] px-[32px] py-[10px] text-[#fff] lg2:px-[70px] lg2:py-[15px] '}>
|
|
129
|
+
목록보기
|
|
130
|
+
</div>
|
|
131
|
+
</Link>
|
|
132
|
+
</div>
|
|
133
|
+
</div>
|
|
134
|
+
</>);
|
|
135
|
+
};
|
|
136
|
+
export default FaqDetail;
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import PageTitleBox from '../../../PageTitleBox/PageTitleBox';
|
|
4
|
+
import { ImgTypes } from '../../../PageTitleBox/ImgTypes';
|
|
5
|
+
import PdfPrintCopyLink from '../../../PdfPrintCopyLink/PdfPrintCopyLink';
|
|
6
|
+
import { IFaqTypes } from '../../../common/types/faq';
|
|
7
|
+
import { IInitialDataTypes } from '../../../common';
|
|
8
|
+
import { useRef } from 'react';
|
|
9
|
+
|
|
10
|
+
import Image from 'next/image';
|
|
11
|
+
import { htmlUrlDecode } from '../../../../lib';
|
|
12
|
+
import SeoStrength from '../../../Seo/SeoStrength';
|
|
13
|
+
import Link from 'next/link';
|
|
14
|
+
import TuiViewer from '../../../TuiViewer/TuiViewer';
|
|
15
|
+
import SeoConsulting from '../../../Seo/SeoConsulting';
|
|
16
|
+
import SuccessCase from '../../../Seo/SuccessCase';
|
|
17
|
+
import { IFieldTypes, ILawyerTypes, ISuccessTypes } from '../../../common/types/seo';
|
|
18
|
+
import { Lawyer } from '../../../Seo/Lawyer';
|
|
19
|
+
import { FieldCase } from '../../../Seo/FieldCase';
|
|
20
|
+
|
|
21
|
+
import EyeImg from '../../../../asset/images/faq/eye.webp';
|
|
22
|
+
import IconLeft from '../../../../asset/images/seo/left.webp';
|
|
23
|
+
import IconRight from '../../../../asset/images/seo/right.webp';
|
|
24
|
+
|
|
25
|
+
export interface IPnData {
|
|
26
|
+
pre_idx: number;
|
|
27
|
+
pre_title: string;
|
|
28
|
+
next_idx: number;
|
|
29
|
+
next_title: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
interface DetailProps {
|
|
33
|
+
faq: IFaqTypes;
|
|
34
|
+
lawyerData: ILawyerTypes[];
|
|
35
|
+
fieldData: IFieldTypes[];
|
|
36
|
+
successData: ISuccessTypes[];
|
|
37
|
+
pnData: IPnData;
|
|
38
|
+
code_desc: string;
|
|
39
|
+
code_name: string;
|
|
40
|
+
initialData: IInitialDataTypes;
|
|
41
|
+
tel: string;
|
|
42
|
+
}
|
|
43
|
+
const FaqDetail = ({
|
|
44
|
+
faq,
|
|
45
|
+
lawyerData,
|
|
46
|
+
fieldData,
|
|
47
|
+
successData,
|
|
48
|
+
pnData,
|
|
49
|
+
code_desc,
|
|
50
|
+
code_name,
|
|
51
|
+
initialData,
|
|
52
|
+
tel
|
|
53
|
+
}: DetailProps) => {
|
|
54
|
+
const printRef = useRef<HTMLDivElement>(null);
|
|
55
|
+
return (
|
|
56
|
+
<>
|
|
57
|
+
<PageTitleBox
|
|
58
|
+
titleTxt={'법률지식인'}
|
|
59
|
+
subTxt={
|
|
60
|
+
<span>
|
|
61
|
+
법률 궁금증 비전문가, 광고성 답변에 지쳤다면?
|
|
62
|
+
<br />
|
|
63
|
+
대륜의 전문변호사가 답변 드리겠습니다.
|
|
64
|
+
</span>
|
|
65
|
+
}
|
|
66
|
+
imgType={ImgTypes.FAQ}
|
|
67
|
+
isSeo
|
|
68
|
+
/>
|
|
69
|
+
<div className={'relative m-auto mb-[100px] w-[90%] max-w-screen-2xl tracking-[-0.5px] max-xs:mb-[30px]'}>
|
|
70
|
+
<section
|
|
71
|
+
className={'mb-20 mt-[10px] flex w-full gap-[96px] max-xl:flex-col max-xl:gap-[50px] xl:mt-[80px]'}
|
|
72
|
+
id={'sub_contents'}
|
|
73
|
+
>
|
|
74
|
+
{/*faq*/}
|
|
75
|
+
<div className={'w-full'}>
|
|
76
|
+
<PdfPrintCopyLink fileName={faq.question ?? ''} printRef={printRef} />
|
|
77
|
+
<div className={'mt-6 h-full w-full border-t-[4px] border-solid border-t-black'}>
|
|
78
|
+
{/*제목*/}
|
|
79
|
+
<span
|
|
80
|
+
className={
|
|
81
|
+
'flex w-full gap-[16px] border-b border-solid border-[#E8E8E8] px-[12px] py-[28px] leading-[1.3] sm:gap-8 sm:px-5 sm:py-9'
|
|
82
|
+
}
|
|
83
|
+
>
|
|
84
|
+
<p className={'text-[32px] font-[900] max-sm:text-[28px] '}>Q</p>
|
|
85
|
+
<span className={'flex h-full w-full flex-col'}>
|
|
86
|
+
<p
|
|
87
|
+
className={
|
|
88
|
+
'mb-8 text-[32px] font-[800] leading-[1.3] max-lg:text-[28px] max-sm:mb-5 max-sm:text-[24px]'
|
|
89
|
+
}
|
|
90
|
+
>
|
|
91
|
+
{faq.question}
|
|
92
|
+
</p>
|
|
93
|
+
|
|
94
|
+
<span
|
|
95
|
+
className={
|
|
96
|
+
'mt-auto flex w-full items-center gap-[12px] text-[14px] text-[#A5A5A5] sm:gap-[18px] sm:text-[16px] '
|
|
97
|
+
}
|
|
98
|
+
>
|
|
99
|
+
<p className={'flex items-center leading-none'}>
|
|
100
|
+
<Image
|
|
101
|
+
src={EyeImg}
|
|
102
|
+
alt={'법률지식인'}
|
|
103
|
+
width={24}
|
|
104
|
+
height={24}
|
|
105
|
+
className={'h-auto w-6'}
|
|
106
|
+
/>
|
|
107
|
+
<span className={'ml-1 mr-3 font-[700] '}>조회수</span>
|
|
108
|
+
{faq.hit?.toLocaleString()}
|
|
109
|
+
</p>
|
|
110
|
+
{/* <div className={'h-[4px] w-[4px] rounded-[50%] bg-[#D9D9D9]'}></div>
|
|
111
|
+
<p className={'flex items-center leading-none'}>
|
|
112
|
+
<Image
|
|
113
|
+
src={'/images/faq/cal.webp'}
|
|
114
|
+
alt={'법률지식인'}
|
|
115
|
+
width={24}
|
|
116
|
+
height={24}
|
|
117
|
+
className={'mr-1 h-auto w-6 sm:mr-3 '}
|
|
118
|
+
/>
|
|
119
|
+
{dayjs(faq.created_at).format('YYYY.MM.DD')}
|
|
120
|
+
</p> */}
|
|
121
|
+
</span>
|
|
122
|
+
</span>
|
|
123
|
+
</span>
|
|
124
|
+
|
|
125
|
+
{/*내용*/}
|
|
126
|
+
<p
|
|
127
|
+
className={
|
|
128
|
+
'block w-full pt-[25px] text-[20px] text-[#383838] max-lg:text-[18px] sm:pt-10 sm:leading-[1.5]'
|
|
129
|
+
}
|
|
130
|
+
>
|
|
131
|
+
{faq.question_contents}
|
|
132
|
+
</p>
|
|
133
|
+
|
|
134
|
+
{/*키워드*/}
|
|
135
|
+
<span className={'mt-10 flex w-full flex-wrap gap-2 leading-[1.4] '}>
|
|
136
|
+
{faq.keyword?.split(',').map(item => {
|
|
137
|
+
return (
|
|
138
|
+
<p
|
|
139
|
+
key={item}
|
|
140
|
+
className={
|
|
141
|
+
'flex items-center justify-center rounded-[50px] bg-[#EFEFEF] px-6 py-1 text-[14px] font-[400] sm:h-[30px] sm:min-w-[116px] sm:text-[16px] lg:h-[33px] lg:min-w-[125px]'
|
|
142
|
+
}
|
|
143
|
+
>
|
|
144
|
+
{item}
|
|
145
|
+
</p>
|
|
146
|
+
);
|
|
147
|
+
})}
|
|
148
|
+
</span>
|
|
149
|
+
|
|
150
|
+
{/*답변*/}
|
|
151
|
+
<div
|
|
152
|
+
className={
|
|
153
|
+
'mb-[70px] mt-[70px] w-full overflow-hidden rounded-t-[20px] border border-solid border-[#B9B9B9] max-xl:mb-[50px]'
|
|
154
|
+
}
|
|
155
|
+
>
|
|
156
|
+
<div
|
|
157
|
+
className={
|
|
158
|
+
'flex w-full items-center gap-[16px] border-b border-solid border-[#B9B9B9] bg-[#FAFAFF] px-[20px] py-[28px] text-[28px] font-[900] leading-[1.3] text-[#30539D] sm:gap-8 sm:p-[40px] sm:text-[32px] lg:p-10'
|
|
159
|
+
}
|
|
160
|
+
>
|
|
161
|
+
A <p className={'text-[24px] font-[800] sm:text-[28px]'}>관련 문의 답변</p>
|
|
162
|
+
</div>
|
|
163
|
+
<div
|
|
164
|
+
className={
|
|
165
|
+
'w-full px-[20px] py-[28px] text-[16px] text-[#212121] sm:p-10 sm:text-[18px] sm:leading-[150%] lg:text-[20px] lg:leading-[1.5]'
|
|
166
|
+
}
|
|
167
|
+
>
|
|
168
|
+
{faq.gubun === 'ck' ? (
|
|
169
|
+
<div
|
|
170
|
+
id={'ck-content'}
|
|
171
|
+
dangerouslySetInnerHTML={{
|
|
172
|
+
__html: htmlUrlDecode(
|
|
173
|
+
faq.answer
|
|
174
|
+
? faq.answer?.replace('../../UploadFile', '/SE2/upload')
|
|
175
|
+
: ''
|
|
176
|
+
)
|
|
177
|
+
}}
|
|
178
|
+
/>
|
|
179
|
+
) : (
|
|
180
|
+
<TuiViewer
|
|
181
|
+
initialValue={faq.answer?.replace('../../UploadFile', '/SE2/upload')}
|
|
182
|
+
/>
|
|
183
|
+
)}
|
|
184
|
+
</div>
|
|
185
|
+
</div>
|
|
186
|
+
<SeoStrength initialData={initialData} />
|
|
187
|
+
<div className={'h-[70px] max-xl:h-[50px] '} />
|
|
188
|
+
<SeoConsulting customTitle={code_name} tel={tel} />
|
|
189
|
+
</div>
|
|
190
|
+
</div>
|
|
191
|
+
|
|
192
|
+
{/*관련내용*/}
|
|
193
|
+
{(successData?.length || fieldData?.length || lawyerData?.length) > 0 && (
|
|
194
|
+
<div className={'relative flex w-[340px] shrink-0 flex-col gap-10 max-xl:w-full '}>
|
|
195
|
+
<div
|
|
196
|
+
className={
|
|
197
|
+
'top-[140px] flex w-[340px] shrink-0 flex-col gap-10 max-xl:w-full xl:sticky'
|
|
198
|
+
}
|
|
199
|
+
>
|
|
200
|
+
{successData?.length > 0 && <SuccessCase successData={successData} />}
|
|
201
|
+
{fieldData?.length > 0 && <FieldCase fieldData={fieldData} />}
|
|
202
|
+
{lawyerData?.length > 0 && <Lawyer lawyerData={lawyerData} />}
|
|
203
|
+
</div>
|
|
204
|
+
</div>
|
|
205
|
+
)}
|
|
206
|
+
</section>
|
|
207
|
+
|
|
208
|
+
{/*이전글 다음글*/}
|
|
209
|
+
<div className={'flex w-full items-center justify-between max-md:flex-col'}>
|
|
210
|
+
{pnData.pre_idx ? (
|
|
211
|
+
<Link
|
|
212
|
+
href={`/faq/detail/` + pnData.pre_idx}
|
|
213
|
+
className={
|
|
214
|
+
'mb-6 flex w-full flex-col gap-[8px] md:mb-0 md:w-auto md:flex-row md:gap-[20px] lg:w-auto lg2:gap-[28px]'
|
|
215
|
+
}
|
|
216
|
+
aria-label={'이전글 ' + pnData.pre_title}
|
|
217
|
+
>
|
|
218
|
+
<Image
|
|
219
|
+
src={IconLeft}
|
|
220
|
+
alt={''}
|
|
221
|
+
width={15}
|
|
222
|
+
height={15}
|
|
223
|
+
className={'m-auto hidden md:block'}
|
|
224
|
+
/>
|
|
225
|
+
<p className={'text-[#285FA7]'}>이전글</p>
|
|
226
|
+
<div>
|
|
227
|
+
<p className={'truncate md:w-[11em] lg:w-[14em] lg2:w-[18em] '}>{pnData.pre_title}</p>
|
|
228
|
+
</div>
|
|
229
|
+
</Link>
|
|
230
|
+
) : (
|
|
231
|
+
<div className={'flex w-[30%] gap-[28px]'}></div>
|
|
232
|
+
)}
|
|
233
|
+
|
|
234
|
+
{pnData.next_idx ? (
|
|
235
|
+
<>
|
|
236
|
+
<Link
|
|
237
|
+
href={`/faq/detail/` + pnData.next_idx}
|
|
238
|
+
className={
|
|
239
|
+
'flex w-full flex-col justify-end gap-[8px] md:order-last md:w-auto md:flex-row md:gap-[20px] lg:w-auto lg2:gap-[28px]'
|
|
240
|
+
}
|
|
241
|
+
aria-label={'다음글 ' + pnData.next_title}
|
|
242
|
+
>
|
|
243
|
+
<p className={'text-[#285FA7]'}>다음글</p>
|
|
244
|
+
<div aria-label={'다음글 ' + pnData.next_title}>
|
|
245
|
+
<p className={'truncate md:w-[11em] lg:w-[14em] lg2:w-[18em] '}>
|
|
246
|
+
{pnData.next_title}
|
|
247
|
+
</p>
|
|
248
|
+
</div>
|
|
249
|
+
<Image
|
|
250
|
+
src={IconRight}
|
|
251
|
+
alt={''}
|
|
252
|
+
width={15}
|
|
253
|
+
height={15}
|
|
254
|
+
className={'m-auto hidden md:block'}
|
|
255
|
+
/>
|
|
256
|
+
</Link>
|
|
257
|
+
</>
|
|
258
|
+
) : (
|
|
259
|
+
<div className={'order-last flex w-[30%] gap-[28px]'}></div>
|
|
260
|
+
)}
|
|
261
|
+
|
|
262
|
+
<Link href={`/faq/${code_desc}`} className={'max-md:mt-[40px]'}>
|
|
263
|
+
<div
|
|
264
|
+
className={
|
|
265
|
+
'rounded-[30px] border-[1px] border-solid border-[#b0b0b0] bg-[#41464C] px-[32px] py-[10px] text-[#fff] lg2:px-[70px] lg2:py-[15px] '
|
|
266
|
+
}
|
|
267
|
+
>
|
|
268
|
+
목록보기
|
|
269
|
+
</div>
|
|
270
|
+
</Link>
|
|
271
|
+
</div>
|
|
272
|
+
</div>
|
|
273
|
+
</>
|
|
274
|
+
);
|
|
275
|
+
};
|
|
276
|
+
|
|
277
|
+
export default FaqDetail;
|