@daeryun/dr_components 0.7.96 → 0.7.98
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/success_new/arrow.svg +13 -0
- package/dist/asset/images/success_new/arrow_full.webp +0 -0
- package/dist/asset/images/success_new/arrow_line.webp +0 -0
- package/dist/asset/images/success_new/dia_dot.svg +3 -0
- package/dist/asset/images/success_new/field_icon.webp +0 -0
- package/dist/asset/images/success_new/label.svg +10 -0
- package/dist/asset/images/success_new/left.webp +0 -0
- package/dist/asset/images/success_new/right.webp +0 -0
- package/dist/asset/images/success_new/right_arrow.svg +4 -0
- package/dist/asset/images/success_new/up_right.svg +3 -0
- package/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/components/index.js +1 -0
- package/dist/components/index.ts +1 -0
- package/dist/components/page/SuccessNew/SuccessNew.d.ts +3 -0
- package/dist/components/page/SuccessNew/SuccessNew.jsx +234 -0
- package/dist/components/page/SuccessNew/SuccessNew.tsx +430 -0
- package/dist/components/page/SuccessNew/SuccessNewType.d.ts +143 -0
- package/dist/components/page/SuccessNew/SuccessNewType.js +1 -0
- package/dist/components/page/SuccessNew/SuccessNewType.ts +155 -0
- package/dist/components/page/SuccessNew/components/ContentList.d.ts +9 -0
- package/dist/components/page/SuccessNew/components/ContentList.jsx +45 -0
- package/dist/components/page/SuccessNew/components/ContentList.tsx +124 -0
- package/dist/components/page/SuccessNew/components/FieldCase.d.ts +5 -0
- package/dist/components/page/SuccessNew/components/FieldCase.jsx +59 -0
- package/dist/components/page/SuccessNew/components/FieldCase.tsx +101 -0
- package/dist/components/page/SuccessNew/components/H2Contents.d.ts +7 -0
- package/dist/components/page/SuccessNew/components/H2Contents.jsx +19 -0
- package/dist/components/page/SuccessNew/components/H2Contents.tsx +49 -0
- package/dist/components/page/SuccessNew/components/H3Contents.d.ts +6 -0
- package/dist/components/page/SuccessNew/components/H3Contents.jsx +24 -0
- package/dist/components/page/SuccessNew/components/H3Contents.tsx +58 -0
- package/dist/components/page/SuccessNew/components/LawInfoContentList.d.ts +8 -0
- package/dist/components/page/SuccessNew/components/LawInfoContentList.jsx +77 -0
- package/dist/components/page/SuccessNew/components/LawInfoContentList.tsx +122 -0
- package/dist/components/page/SuccessNew/components/SeoAdditionalLink.d.ts +7 -0
- package/dist/components/page/SuccessNew/components/SeoAdditionalLink.jsx +80 -0
- package/dist/components/page/SuccessNew/components/SeoAdditionalLink.tsx +125 -0
- package/dist/components/page/SuccessNew/components/SuccessCase.d.ts +5 -0
- package/dist/components/page/SuccessNew/components/SuccessCase.jsx +64 -0
- package/dist/components/page/SuccessNew/components/SuccessCase.tsx +105 -0
- package/dist/styles/globals.css +524 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { IInitialDataTypes } from '../../common';
|
|
2
|
+
export interface ISuccessNewPageTypes {
|
|
3
|
+
data: ISuccessNewTypes;
|
|
4
|
+
tel: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ISuccessNewTypes {
|
|
7
|
+
template: ISeoTemplateTypes[];
|
|
8
|
+
contentsList: IContentsListTypes[] | null;
|
|
9
|
+
h2List: ISeoTemplateTypes[] | null;
|
|
10
|
+
imgData: IImgsTypes[] | null;
|
|
11
|
+
lawyerData: ILawyerTypes[];
|
|
12
|
+
fieldData: IFieldTypes[];
|
|
13
|
+
successData: ISuccessTypes[];
|
|
14
|
+
groupTopTenLawyerList: ILawyerTypes[];
|
|
15
|
+
referenceLinkList: IAddLinkTypes[];
|
|
16
|
+
newsLinkList: IAddLinkTypes[];
|
|
17
|
+
shortsLinkList: IAddLinkTypes[];
|
|
18
|
+
youtubeLinkList: IAddLinkTypes[];
|
|
19
|
+
pn: PnType;
|
|
20
|
+
initialData: IInitialDataTypes;
|
|
21
|
+
}
|
|
22
|
+
export interface ISeoTemplateTypes {
|
|
23
|
+
type: string;
|
|
24
|
+
idx: number;
|
|
25
|
+
tag: string;
|
|
26
|
+
parent: number;
|
|
27
|
+
description: string;
|
|
28
|
+
tag_title: string;
|
|
29
|
+
type_idx: number;
|
|
30
|
+
is_index: boolean | null;
|
|
31
|
+
hit: number;
|
|
32
|
+
center_code: string;
|
|
33
|
+
is_editor: boolean;
|
|
34
|
+
sub_title?: string | null;
|
|
35
|
+
crime_result?: string | null;
|
|
36
|
+
case_number?: string | null;
|
|
37
|
+
deleted_at?: string | null;
|
|
38
|
+
template_type?: string | null;
|
|
39
|
+
img?: string | null;
|
|
40
|
+
alt?: string | null;
|
|
41
|
+
created_at?: Date | null;
|
|
42
|
+
creator?: string | null;
|
|
43
|
+
modified_at?: Date | null;
|
|
44
|
+
modifier?: string | null;
|
|
45
|
+
is_consult: boolean | null;
|
|
46
|
+
reference_is_use: boolean | null;
|
|
47
|
+
news_is_use: boolean | null;
|
|
48
|
+
youtube_is_use: boolean | null;
|
|
49
|
+
active_faq: boolean;
|
|
50
|
+
}
|
|
51
|
+
export interface IContentsListTypes {
|
|
52
|
+
center_code: string;
|
|
53
|
+
domain: string;
|
|
54
|
+
tag_title: string;
|
|
55
|
+
type_idx: number;
|
|
56
|
+
}
|
|
57
|
+
export interface ILawyerTypes {
|
|
58
|
+
lawyer_name: string | null;
|
|
59
|
+
l_ability: string;
|
|
60
|
+
l_tel: string;
|
|
61
|
+
l_id: string;
|
|
62
|
+
l_del: string;
|
|
63
|
+
mark: string;
|
|
64
|
+
lawyer_code: string;
|
|
65
|
+
lawyer_position: string;
|
|
66
|
+
img_url: string;
|
|
67
|
+
career_txt?: string;
|
|
68
|
+
}
|
|
69
|
+
export interface IFieldTypes {
|
|
70
|
+
idx: number;
|
|
71
|
+
title_text: string;
|
|
72
|
+
field_title?: string;
|
|
73
|
+
pathname: string;
|
|
74
|
+
domain?: string;
|
|
75
|
+
center_code?: string;
|
|
76
|
+
}
|
|
77
|
+
export interface ISuccessTypes {
|
|
78
|
+
idx: number;
|
|
79
|
+
contents_id: number;
|
|
80
|
+
contents_type: string;
|
|
81
|
+
sub_title: string;
|
|
82
|
+
tag_title: string;
|
|
83
|
+
type_idx: string;
|
|
84
|
+
code_desc: string;
|
|
85
|
+
domain?: string;
|
|
86
|
+
}
|
|
87
|
+
export interface IImgsTypes {
|
|
88
|
+
img_type: string;
|
|
89
|
+
lawyer_name: string | null;
|
|
90
|
+
alt: string;
|
|
91
|
+
img_url: string;
|
|
92
|
+
l_del: string;
|
|
93
|
+
code_name: string;
|
|
94
|
+
careers_summary: string;
|
|
95
|
+
l_id: string;
|
|
96
|
+
}
|
|
97
|
+
export interface IAddLinkTypes {
|
|
98
|
+
type_idx: number;
|
|
99
|
+
tag_idx: number;
|
|
100
|
+
type: string;
|
|
101
|
+
seo_type: string;
|
|
102
|
+
title: string;
|
|
103
|
+
link: string;
|
|
104
|
+
idx: number;
|
|
105
|
+
}
|
|
106
|
+
export interface ICanonicalTypes {
|
|
107
|
+
title: string;
|
|
108
|
+
type_idx: number;
|
|
109
|
+
center_code: string;
|
|
110
|
+
crime_code: string;
|
|
111
|
+
url: string;
|
|
112
|
+
}
|
|
113
|
+
export interface ICanonicalTypes {
|
|
114
|
+
title: string;
|
|
115
|
+
type_idx: number;
|
|
116
|
+
center_code: string;
|
|
117
|
+
crime_code: string;
|
|
118
|
+
url: string;
|
|
119
|
+
}
|
|
120
|
+
export interface ILegalDocumentImageObjectTypes {
|
|
121
|
+
alt: string;
|
|
122
|
+
img_type: string;
|
|
123
|
+
img_url: string;
|
|
124
|
+
l_del: string;
|
|
125
|
+
l_id: string;
|
|
126
|
+
lawyer_name: string;
|
|
127
|
+
}
|
|
128
|
+
export interface PnType {
|
|
129
|
+
prev: {
|
|
130
|
+
id: number;
|
|
131
|
+
title: string;
|
|
132
|
+
created_at: string;
|
|
133
|
+
is_top: boolean;
|
|
134
|
+
pathname: string;
|
|
135
|
+
} | null;
|
|
136
|
+
next: {
|
|
137
|
+
id: number;
|
|
138
|
+
title: string;
|
|
139
|
+
created_at: string;
|
|
140
|
+
is_top: boolean;
|
|
141
|
+
pathname: string;
|
|
142
|
+
} | null;
|
|
143
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { IInitialDataTypes } from '../../common';
|
|
2
|
+
|
|
3
|
+
export interface ISuccessNewPageTypes {
|
|
4
|
+
data: ISuccessNewTypes;
|
|
5
|
+
tel: string;
|
|
6
|
+
}
|
|
7
|
+
export interface ISuccessNewTypes {
|
|
8
|
+
template: ISeoTemplateTypes[];
|
|
9
|
+
contentsList: IContentsListTypes[] | null;
|
|
10
|
+
h2List: ISeoTemplateTypes[] | null;
|
|
11
|
+
imgData: IImgsTypes[] | null;
|
|
12
|
+
lawyerData: ILawyerTypes[];
|
|
13
|
+
fieldData: IFieldTypes[];
|
|
14
|
+
successData: ISuccessTypes[];
|
|
15
|
+
groupTopTenLawyerList: ILawyerTypes[];
|
|
16
|
+
referenceLinkList: IAddLinkTypes[];
|
|
17
|
+
newsLinkList: IAddLinkTypes[];
|
|
18
|
+
shortsLinkList: IAddLinkTypes[];
|
|
19
|
+
youtubeLinkList: IAddLinkTypes[];
|
|
20
|
+
pn: PnType;
|
|
21
|
+
initialData: IInitialDataTypes;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface ISeoTemplateTypes {
|
|
25
|
+
type: string;
|
|
26
|
+
idx: number;
|
|
27
|
+
tag: string;
|
|
28
|
+
parent: number;
|
|
29
|
+
description: string;
|
|
30
|
+
tag_title: string;
|
|
31
|
+
type_idx: number;
|
|
32
|
+
is_index: boolean | null;
|
|
33
|
+
hit: number;
|
|
34
|
+
center_code: string;
|
|
35
|
+
is_editor: boolean;
|
|
36
|
+
sub_title?: string | null;
|
|
37
|
+
crime_result?: string | null;
|
|
38
|
+
case_number?: string | null;
|
|
39
|
+
deleted_at?: string | null;
|
|
40
|
+
template_type?: string | null;
|
|
41
|
+
img?: string | null;
|
|
42
|
+
alt?: string | null;
|
|
43
|
+
created_at?: Date | null;
|
|
44
|
+
creator?: string | null;
|
|
45
|
+
modified_at?: Date | null;
|
|
46
|
+
modifier?: string | null;
|
|
47
|
+
is_consult: boolean | null;
|
|
48
|
+
reference_is_use: boolean | null;
|
|
49
|
+
news_is_use: boolean | null;
|
|
50
|
+
youtube_is_use: boolean | null;
|
|
51
|
+
active_faq: boolean;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface IContentsListTypes {
|
|
55
|
+
center_code: string;
|
|
56
|
+
domain: string;
|
|
57
|
+
tag_title: string;
|
|
58
|
+
type_idx: number;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface ILawyerTypes {
|
|
62
|
+
lawyer_name: string | null;
|
|
63
|
+
l_ability: string;
|
|
64
|
+
l_tel: string;
|
|
65
|
+
l_id: string;
|
|
66
|
+
l_del: string;
|
|
67
|
+
mark: string;
|
|
68
|
+
lawyer_code: string;
|
|
69
|
+
lawyer_position: string;
|
|
70
|
+
img_url: string;
|
|
71
|
+
career_txt?: string;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export interface IFieldTypes {
|
|
75
|
+
idx: number;
|
|
76
|
+
title_text: string;
|
|
77
|
+
field_title?: string;
|
|
78
|
+
pathname: string;
|
|
79
|
+
domain?: string;
|
|
80
|
+
center_code?: string;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export interface ISuccessTypes {
|
|
84
|
+
idx: number;
|
|
85
|
+
contents_id: number;
|
|
86
|
+
contents_type: string;
|
|
87
|
+
sub_title: string;
|
|
88
|
+
tag_title: string;
|
|
89
|
+
type_idx: string;
|
|
90
|
+
code_desc: string;
|
|
91
|
+
domain?: string;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export interface IImgsTypes {
|
|
95
|
+
img_type: string;
|
|
96
|
+
lawyer_name: string | null;
|
|
97
|
+
alt: string;
|
|
98
|
+
img_url: string;
|
|
99
|
+
l_del: string;
|
|
100
|
+
code_name: string;
|
|
101
|
+
careers_summary: string;
|
|
102
|
+
l_id: string;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export interface IAddLinkTypes {
|
|
106
|
+
type_idx: number;
|
|
107
|
+
tag_idx: number;
|
|
108
|
+
type: string;
|
|
109
|
+
seo_type: string;
|
|
110
|
+
title: string;
|
|
111
|
+
link: string;
|
|
112
|
+
idx: number;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export interface ICanonicalTypes {
|
|
116
|
+
title: string;
|
|
117
|
+
type_idx: number;
|
|
118
|
+
center_code: string;
|
|
119
|
+
crime_code: string;
|
|
120
|
+
url: string;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export interface ICanonicalTypes {
|
|
124
|
+
title: string;
|
|
125
|
+
type_idx: number;
|
|
126
|
+
center_code: string;
|
|
127
|
+
crime_code: string;
|
|
128
|
+
url: string;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export interface ILegalDocumentImageObjectTypes {
|
|
132
|
+
alt: string;
|
|
133
|
+
img_type: string;
|
|
134
|
+
img_url: string;
|
|
135
|
+
l_del: string;
|
|
136
|
+
l_id: string;
|
|
137
|
+
lawyer_name: string;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export interface PnType {
|
|
141
|
+
prev: {
|
|
142
|
+
id: number;
|
|
143
|
+
title: string;
|
|
144
|
+
created_at: string;
|
|
145
|
+
is_top: boolean;
|
|
146
|
+
pathname: string;
|
|
147
|
+
} | null;
|
|
148
|
+
next: {
|
|
149
|
+
id: number;
|
|
150
|
+
title: string;
|
|
151
|
+
created_at: string;
|
|
152
|
+
is_top: boolean;
|
|
153
|
+
pathname: string;
|
|
154
|
+
} | null;
|
|
155
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ISeoTemplateTypes } from '../SuccessNewType';
|
|
3
|
+
declare const ContentList: ({ onScrollToElement, onImageMove, h2List, template }: {
|
|
4
|
+
onScrollToElement: (idx: number) => void;
|
|
5
|
+
onImageMove?: () => void;
|
|
6
|
+
h2List: ISeoTemplateTypes[];
|
|
7
|
+
template: ISeoTemplateTypes[];
|
|
8
|
+
}) => React.JSX.Element;
|
|
9
|
+
export default ContentList;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import Image from 'next/image';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import ArrowLine from '../../../../asset/images/success_new/arrow_line.webp';
|
|
4
|
+
import ArrowFull from '../../../../asset/images/success_new/arrow_full.webp';
|
|
5
|
+
const ContentList = ({ onScrollToElement, onImageMove, h2List, template }) => {
|
|
6
|
+
return (<details open className={'relative w-full border border-solid border-[#285FA7] px-[16px] pb-[36px] pt-[40px] xs:px-[26px] sm:px-[32px] sm:py-[54px] lg:px-[47.25px]'}>
|
|
7
|
+
<summary className={'absolute right-[10px] top-[8px] text-right text-[16px] font-[200] tracking-[6.75px] text-[#285FA7] xs:top-[10px] sm:right-[18px] sm:top-[16px] sm:text-[20px] lg:right-[24.75px] lg:top-[23.25px] lg:text-[22.5px]'}>
|
|
8
|
+
CONTENTS
|
|
9
|
+
</summary>
|
|
10
|
+
<ul className={'flex flex-col gap-[20px] text-[18px] font-bold tracking-[-1px] text-[#285FA7] xs:text-[20px] sm:text-[24px] lg:text-[26.25px]'}>
|
|
11
|
+
{h2List &&
|
|
12
|
+
h2List
|
|
13
|
+
.filter(i => i.is_index)
|
|
14
|
+
.map((h2Template, index) => {
|
|
15
|
+
return (<li className={' w-fit cursor-pointer'} key={'목차' + h2Template.idx} onClick={() => {
|
|
16
|
+
onScrollToElement(h2Template.idx);
|
|
17
|
+
}}>
|
|
18
|
+
<div className={'group ml-[15px] w-fit break-keep px-[4px] py-[4px] -indent-[15px] hover:bg-[#FAFAFA] sm:px-[8px] sm:py-[7.5px]'}>
|
|
19
|
+
{index + 1}. {h2Template.tag_title}
|
|
20
|
+
<Image src={ArrowLine} alt={'arrow_line'} width={25} height={25} priority className={'mb-1 ml-[8px] inline h-auto w-[20px] group-hover:hidden sm:ml-[12px] sm:w-[25px]'}/>
|
|
21
|
+
<Image src={ArrowFull} alt={'arrow_full'} width={25} height={25} priority className={'mb-1 ml-[8px] hidden h-auto w-[20px] group-hover:visible group-hover:inline sm:ml-[12px] sm:w-[25px]'}/>
|
|
22
|
+
</div>
|
|
23
|
+
|
|
24
|
+
{template.filter(t => t.parent === h2Template.idx && t.is_index).length > 0 ? (<ul className={'mb-[7.5px] ml-[27.75px] mt-[8px] text-[16px] font-normal tracking-[-0.9px] sm:text-[20px] lg:text-[22.5px]'}>
|
|
25
|
+
{template
|
|
26
|
+
.filter(t => t.parent === h2Template.idx && t.is_index)
|
|
27
|
+
.map(h3Template => {
|
|
28
|
+
return (<li className={'mr-[10px] break-keep -indent-[10px] hover:font-bold'} key={'h3목차' + h3Template.idx} onClick={event => {
|
|
29
|
+
event.stopPropagation();
|
|
30
|
+
onScrollToElement(h3Template.idx);
|
|
31
|
+
}}>
|
|
32
|
+
- {h3Template.tag_title}
|
|
33
|
+
</li>);
|
|
34
|
+
})}
|
|
35
|
+
</ul>) : null}
|
|
36
|
+
</li>);
|
|
37
|
+
})}
|
|
38
|
+
</ul>
|
|
39
|
+
|
|
40
|
+
{onImageMove ? (<button onClick={onImageMove} className={'mt-[40px] px-[2px] text-[16px] font-bold tracking-[-0.9px] text-[#285FA7] hover:bg-[#FAFAFA] focus:bg-[#FAFAFA] sm:px-[8px] sm:text-[18px] lg:text-[20px] '}>
|
|
41
|
+
▶︎ 결과 이미지 바로 보러가기
|
|
42
|
+
</button>) : (<></>)}
|
|
43
|
+
</details>);
|
|
44
|
+
};
|
|
45
|
+
export default ContentList;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import Image from 'next/image';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ISeoTemplateTypes } from '../SuccessNewType';
|
|
4
|
+
import ArrowLine from '../../../../asset/images/success_new/arrow_line.webp';
|
|
5
|
+
import ArrowFull from '../../../../asset/images/success_new/arrow_full.webp';
|
|
6
|
+
|
|
7
|
+
const ContentList = ({
|
|
8
|
+
onScrollToElement,
|
|
9
|
+
onImageMove,
|
|
10
|
+
h2List,
|
|
11
|
+
template
|
|
12
|
+
}: {
|
|
13
|
+
onScrollToElement: (idx: number) => void;
|
|
14
|
+
onImageMove?: () => void;
|
|
15
|
+
h2List: ISeoTemplateTypes[];
|
|
16
|
+
template: ISeoTemplateTypes[];
|
|
17
|
+
}) => {
|
|
18
|
+
return (
|
|
19
|
+
<details
|
|
20
|
+
open
|
|
21
|
+
className={
|
|
22
|
+
'relative w-full border border-solid border-[#285FA7] px-[16px] pb-[36px] pt-[40px] xs:px-[26px] sm:px-[32px] sm:py-[54px] lg:px-[47.25px]'
|
|
23
|
+
}
|
|
24
|
+
>
|
|
25
|
+
<summary
|
|
26
|
+
className={
|
|
27
|
+
'absolute right-[10px] top-[8px] text-right text-[16px] font-[200] tracking-[6.75px] text-[#285FA7] xs:top-[10px] sm:right-[18px] sm:top-[16px] sm:text-[20px] lg:right-[24.75px] lg:top-[23.25px] lg:text-[22.5px]'
|
|
28
|
+
}
|
|
29
|
+
>
|
|
30
|
+
CONTENTS
|
|
31
|
+
</summary>
|
|
32
|
+
<ul
|
|
33
|
+
className={
|
|
34
|
+
'flex flex-col gap-[20px] text-[18px] font-bold tracking-[-1px] text-[#285FA7] xs:text-[20px] sm:text-[24px] lg:text-[26.25px]'
|
|
35
|
+
}
|
|
36
|
+
>
|
|
37
|
+
{h2List &&
|
|
38
|
+
h2List
|
|
39
|
+
.filter(i => i.is_index)
|
|
40
|
+
.map((h2Template, index) => {
|
|
41
|
+
return (
|
|
42
|
+
<li
|
|
43
|
+
className={' w-fit cursor-pointer'}
|
|
44
|
+
key={'목차' + h2Template.idx}
|
|
45
|
+
onClick={() => {
|
|
46
|
+
onScrollToElement(h2Template.idx);
|
|
47
|
+
}}
|
|
48
|
+
>
|
|
49
|
+
<div
|
|
50
|
+
className={
|
|
51
|
+
'group ml-[15px] w-fit break-keep px-[4px] py-[4px] -indent-[15px] hover:bg-[#FAFAFA] sm:px-[8px] sm:py-[7.5px]'
|
|
52
|
+
}
|
|
53
|
+
>
|
|
54
|
+
{index + 1}. {h2Template.tag_title}
|
|
55
|
+
<Image
|
|
56
|
+
src={ArrowLine}
|
|
57
|
+
alt={'arrow_line'}
|
|
58
|
+
width={25}
|
|
59
|
+
height={25}
|
|
60
|
+
priority
|
|
61
|
+
className={
|
|
62
|
+
'mb-1 ml-[8px] inline h-auto w-[20px] group-hover:hidden sm:ml-[12px] sm:w-[25px]'
|
|
63
|
+
}
|
|
64
|
+
/>
|
|
65
|
+
<Image
|
|
66
|
+
src={ArrowFull}
|
|
67
|
+
alt={'arrow_full'}
|
|
68
|
+
width={25}
|
|
69
|
+
height={25}
|
|
70
|
+
priority
|
|
71
|
+
className={
|
|
72
|
+
'mb-1 ml-[8px] hidden h-auto w-[20px] group-hover:visible group-hover:inline sm:ml-[12px] sm:w-[25px]'
|
|
73
|
+
}
|
|
74
|
+
/>
|
|
75
|
+
</div>
|
|
76
|
+
|
|
77
|
+
{template.filter(t => t.parent === h2Template.idx && t.is_index).length > 0 ? (
|
|
78
|
+
<ul
|
|
79
|
+
className={
|
|
80
|
+
'mb-[7.5px] ml-[27.75px] mt-[8px] text-[16px] font-normal tracking-[-0.9px] sm:text-[20px] lg:text-[22.5px]'
|
|
81
|
+
}
|
|
82
|
+
>
|
|
83
|
+
{template
|
|
84
|
+
.filter(t => t.parent === h2Template.idx && t.is_index)
|
|
85
|
+
.map(h3Template => {
|
|
86
|
+
return (
|
|
87
|
+
<li
|
|
88
|
+
className={
|
|
89
|
+
'mr-[10px] break-keep -indent-[10px] hover:font-bold'
|
|
90
|
+
}
|
|
91
|
+
key={'h3목차' + h3Template.idx}
|
|
92
|
+
onClick={event => {
|
|
93
|
+
event.stopPropagation();
|
|
94
|
+
onScrollToElement(h3Template.idx);
|
|
95
|
+
}}
|
|
96
|
+
>
|
|
97
|
+
- {h3Template.tag_title}
|
|
98
|
+
</li>
|
|
99
|
+
);
|
|
100
|
+
})}
|
|
101
|
+
</ul>
|
|
102
|
+
) : null}
|
|
103
|
+
</li>
|
|
104
|
+
);
|
|
105
|
+
})}
|
|
106
|
+
</ul>
|
|
107
|
+
|
|
108
|
+
{onImageMove ? (
|
|
109
|
+
<button
|
|
110
|
+
onClick={onImageMove}
|
|
111
|
+
className={
|
|
112
|
+
'mt-[40px] px-[2px] text-[16px] font-bold tracking-[-0.9px] text-[#285FA7] hover:bg-[#FAFAFA] focus:bg-[#FAFAFA] sm:px-[8px] sm:text-[18px] lg:text-[20px] '
|
|
113
|
+
}
|
|
114
|
+
>
|
|
115
|
+
▶︎ 결과 이미지 바로 보러가기
|
|
116
|
+
</button>
|
|
117
|
+
) : (
|
|
118
|
+
<></>
|
|
119
|
+
)}
|
|
120
|
+
</details>
|
|
121
|
+
);
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
export default ContentList;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import Link from 'next/link';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import IconArrow from '../../../../asset/images/success_new/up_right.svg';
|
|
4
|
+
import IconDot from '../../../../asset/images/success_new/dia_dot.svg';
|
|
5
|
+
import IconRightArrow from '../../../../asset/images/success_new/right_arrow.svg';
|
|
6
|
+
export const FieldCase = ({ fieldData }) => {
|
|
7
|
+
const SERVICE_DOMAIN = process.env.NEXT_PUBLIC_SERVICE_DOMAIN;
|
|
8
|
+
return (<div className={'relative h-auto w-full border-l-[1px] border-t-[1px] border-solid border-[#B9B9B9] pb-[45px] pl-[26px] pt-[30px] ' +
|
|
9
|
+
'before:absolute before:left-0 before:top-0 before:block before:aspect-square before:w-[15px] before:bg-[#B9B9B9] before:content-[""] '}>
|
|
10
|
+
<span className={'flex h-fit w-full items-center justify-between'}>
|
|
11
|
+
<p className={'text-[26px] font-[800] tracking-[-0.5px] text-[#80377A] ' +
|
|
12
|
+
//1500px
|
|
13
|
+
'max-3xl:text-[24px] ' +
|
|
14
|
+
//1280px
|
|
15
|
+
'max-xl:text-[26px]'}>
|
|
16
|
+
관련 업무분야
|
|
17
|
+
</p>
|
|
18
|
+
<Link href={'/field/area'} className={'flex h-[35px] w-[100px] items-center justify-center gap-[4px] bg-[#5D5D5D] ' +
|
|
19
|
+
'hover:bg-[#722D6D] ' +
|
|
20
|
+
//1500px
|
|
21
|
+
'max-3xl:h-[30px] max-3xl:w-[90px] '} title={'업무분야 더보기'}>
|
|
22
|
+
<p className={'w-fit text-[18px] font-[600] leading-none text-white ' +
|
|
23
|
+
//1500px
|
|
24
|
+
'max-3xl:text-[16px] '}>
|
|
25
|
+
더보기
|
|
26
|
+
</p>
|
|
27
|
+
<IconRightArrow className={'h-auto w-[14px] ' +
|
|
28
|
+
//1500px
|
|
29
|
+
'max-3xl:w-[12px] '}/>
|
|
30
|
+
</Link>
|
|
31
|
+
</span>
|
|
32
|
+
<span className={'mt-[30px] flex flex-col gap-3 '}>
|
|
33
|
+
{fieldData === null || fieldData === void 0 ? void 0 : fieldData.map(i => {
|
|
34
|
+
var _a;
|
|
35
|
+
return (<Link href={((_a = i.domain) !== null && _a !== void 0 ? _a : '') + i.pathname + i.idx} key={i.pathname + i.idx} target={i.domain ? '_blank' : i.pathname.includes(SERVICE_DOMAIN !== null && SERVICE_DOMAIN !== void 0 ? SERVICE_DOMAIN : '') ? '' : '_blank'} className={'flex w-fit items-start gap-[10px] text-[20px] font-medium tracking-[-0.4px] hover:text-[#285FA7] ' +
|
|
36
|
+
//1500px
|
|
37
|
+
'max-3xl:text-[18px] ' +
|
|
38
|
+
//1280px
|
|
39
|
+
'max-xl:text-[20px] ' +
|
|
40
|
+
//768px
|
|
41
|
+
'max-md:text-[18px]'}>
|
|
42
|
+
<IconDot className={'mt-3 inline shrink-0 ' +
|
|
43
|
+
//1500px
|
|
44
|
+
'max-3xl:mt-[9px]'}/>
|
|
45
|
+
<div>
|
|
46
|
+
{i.title_text}
|
|
47
|
+
<IconArrow aria-label={'새창열림'} className={'mb-[5px] ml-2 inline h-[10px] w-[10px] ' +
|
|
48
|
+
//1500px
|
|
49
|
+
'max-3xl:h-[9px] max-3xl:w-[9px] ' +
|
|
50
|
+
//1280px
|
|
51
|
+
'max-xl:mb-[3px] max-xl:h-[10px] max-xl:w-[10px] ' +
|
|
52
|
+
//1500px
|
|
53
|
+
'max-md:mb-[7px] max-md:h-[9px] max-md:w-[9px] '}/>
|
|
54
|
+
</div>
|
|
55
|
+
</Link>);
|
|
56
|
+
})}
|
|
57
|
+
</span>
|
|
58
|
+
</div>);
|
|
59
|
+
};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import Link from 'next/link';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import IconArrow from '../../../../asset/images/success_new/up_right.svg';
|
|
4
|
+
import IconDot from '../../../../asset/images/success_new/dia_dot.svg';
|
|
5
|
+
import IconRightArrow from '../../../../asset/images/success_new/right_arrow.svg';
|
|
6
|
+
import { IFieldTypes } from '../SuccessNewType';
|
|
7
|
+
|
|
8
|
+
export const FieldCase = ({ fieldData }: { fieldData: IFieldTypes[] }) => {
|
|
9
|
+
const SERVICE_DOMAIN = process.env.NEXT_PUBLIC_SERVICE_DOMAIN;
|
|
10
|
+
|
|
11
|
+
return (
|
|
12
|
+
<div
|
|
13
|
+
className={
|
|
14
|
+
'relative h-auto w-full border-l-[1px] border-t-[1px] border-solid border-[#B9B9B9] pb-[45px] pl-[26px] pt-[30px] ' +
|
|
15
|
+
'before:absolute before:left-0 before:top-0 before:block before:aspect-square before:w-[15px] before:bg-[#B9B9B9] before:content-[""] '
|
|
16
|
+
}
|
|
17
|
+
>
|
|
18
|
+
<span className={'flex h-fit w-full items-center justify-between'}>
|
|
19
|
+
<p
|
|
20
|
+
className={
|
|
21
|
+
'text-[26px] font-[800] tracking-[-0.5px] text-[#80377A] ' +
|
|
22
|
+
//1500px
|
|
23
|
+
'max-3xl:text-[24px] ' +
|
|
24
|
+
//1280px
|
|
25
|
+
'max-xl:text-[26px]'
|
|
26
|
+
}
|
|
27
|
+
>
|
|
28
|
+
관련 업무분야
|
|
29
|
+
</p>
|
|
30
|
+
<Link
|
|
31
|
+
href={'/field/area'}
|
|
32
|
+
className={
|
|
33
|
+
'flex h-[35px] w-[100px] items-center justify-center gap-[4px] bg-[#5D5D5D] ' +
|
|
34
|
+
'hover:bg-[#722D6D] ' +
|
|
35
|
+
//1500px
|
|
36
|
+
'max-3xl:h-[30px] max-3xl:w-[90px] '
|
|
37
|
+
}
|
|
38
|
+
title={'업무분야 더보기'}
|
|
39
|
+
>
|
|
40
|
+
<p
|
|
41
|
+
className={
|
|
42
|
+
'w-fit text-[18px] font-[600] leading-none text-white ' +
|
|
43
|
+
//1500px
|
|
44
|
+
'max-3xl:text-[16px] '
|
|
45
|
+
}
|
|
46
|
+
>
|
|
47
|
+
더보기
|
|
48
|
+
</p>
|
|
49
|
+
<IconRightArrow
|
|
50
|
+
className={
|
|
51
|
+
'h-auto w-[14px] ' +
|
|
52
|
+
//1500px
|
|
53
|
+
'max-3xl:w-[12px] '
|
|
54
|
+
}
|
|
55
|
+
/>
|
|
56
|
+
</Link>
|
|
57
|
+
</span>
|
|
58
|
+
<span className={'mt-[30px] flex flex-col gap-3 '}>
|
|
59
|
+
{fieldData?.map(i => (
|
|
60
|
+
<Link
|
|
61
|
+
href={(i.domain ?? '') + i.pathname + i.idx}
|
|
62
|
+
key={i.pathname + i.idx}
|
|
63
|
+
target={i.domain ? '_blank' : i.pathname.includes(SERVICE_DOMAIN ?? '') ? '' : '_blank'}
|
|
64
|
+
className={
|
|
65
|
+
'flex w-fit items-start gap-[10px] text-[20px] font-medium tracking-[-0.4px] hover:text-[#285FA7] ' +
|
|
66
|
+
//1500px
|
|
67
|
+
'max-3xl:text-[18px] ' +
|
|
68
|
+
//1280px
|
|
69
|
+
'max-xl:text-[20px] ' +
|
|
70
|
+
//768px
|
|
71
|
+
'max-md:text-[18px]'
|
|
72
|
+
}
|
|
73
|
+
>
|
|
74
|
+
<IconDot
|
|
75
|
+
className={
|
|
76
|
+
'mt-3 inline shrink-0 ' +
|
|
77
|
+
//1500px
|
|
78
|
+
'max-3xl:mt-[9px]'
|
|
79
|
+
}
|
|
80
|
+
/>
|
|
81
|
+
<div>
|
|
82
|
+
{i.title_text}
|
|
83
|
+
<IconArrow
|
|
84
|
+
aria-label={'새창열림'}
|
|
85
|
+
className={
|
|
86
|
+
'mb-[5px] ml-2 inline h-[10px] w-[10px] ' +
|
|
87
|
+
//1500px
|
|
88
|
+
'max-3xl:h-[9px] max-3xl:w-[9px] ' +
|
|
89
|
+
//1280px
|
|
90
|
+
'max-xl:mb-[3px] max-xl:h-[10px] max-xl:w-[10px] ' +
|
|
91
|
+
//1500px
|
|
92
|
+
'max-md:mb-[7px] max-md:h-[9px] max-md:w-[9px] '
|
|
93
|
+
}
|
|
94
|
+
/>
|
|
95
|
+
</div>
|
|
96
|
+
</Link>
|
|
97
|
+
))}
|
|
98
|
+
</span>
|
|
99
|
+
</div>
|
|
100
|
+
);
|
|
101
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { htmlUrlDecode } from '../../../../lib';
|
|
3
|
+
const H2Contents = ({ h2Template, index }) => {
|
|
4
|
+
const { active_faq } = h2Template;
|
|
5
|
+
return (<div itemScope={active_faq ? undefined : true} itemProp={active_faq ? '' : 'mainEntity'} itemType={active_faq ? '' : 'https://schema.org/Question'}>
|
|
6
|
+
<h2 className={'flex h-fit w-full items-center break-keep rounded-[40px] bg-[#285FA7] py-[6.75px] pl-[40px] pr-[20px] -indent-[20px] text-[20px] font-bold leading-[28px] tracking-tight text-white sm:pl-[46px] sm:pr-[26px] sm:text-[26px] sm:leading-[34px] lg:pl-[53px] lg:pr-[33px] lg:text-[31.5px] lg:leading-[38px]'} id={h2Template.idx.toString()} itemProp={active_faq ? '' : 'name'}>
|
|
7
|
+
{index + 1}. {h2Template.tag_title}
|
|
8
|
+
</h2>
|
|
9
|
+
<div className={'px-[10px] sm:px-[18px]'}>
|
|
10
|
+
{/*h2 설명글*/}
|
|
11
|
+
<div className={'lg::mt-[37.5px] mb-[44px] mt-[26px] whitespace-break-spaces text-[16px] tracking-[-0.69px] sm:mx-[20px] sm:mx-[33px] sm:mb-[50px] sm:mt-[32px] sm:text-[17.25px] lg:mb-[78px]'} itemScope={active_faq ? undefined : true} itemProp={active_faq ? '' : 'acceptedAnswer'} itemType={active_faq ? '' : 'https://schema.org/Answer'}>
|
|
12
|
+
{h2Template.is_editor ? (<div itemProp={active_faq ? '' : 'text'} id={'ck-content'} dangerouslySetInnerHTML={{
|
|
13
|
+
__html: htmlUrlDecode(h2Template.description.replace('../../UploadFile', '/SE2/upload'))
|
|
14
|
+
}}/>) : (<div itemProp={active_faq ? '' : 'text'}>{h2Template.description}</div>)}
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
</div>);
|
|
18
|
+
};
|
|
19
|
+
export default H2Contents;
|