@daeryun/dr_components 0.9.87 → 0.9.89
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/page/LawInfoNew/LawInfoNew.jsx +4 -1
- package/dist/components/page/LawInfoNew/LawInfoNew.tsx +7 -0
- package/dist/components/page/SuccessNew/SuccessNewType.d.ts +1 -0
- package/dist/components/page/SuccessNew/SuccessNewType.ts +1 -0
- package/dist/components/page/SuccessNew/components/H2Contents.jsx +8 -10
- package/dist/components/page/SuccessNew/components/H2Contents.tsx +28 -35
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -129,7 +129,10 @@ const LawInfoNew = ({ data, tel }) => {
|
|
|
129
129
|
{/*h2*/}
|
|
130
130
|
{h2List &&
|
|
131
131
|
h2List.map((h2Template, index) => {
|
|
132
|
-
|
|
132
|
+
console.log('h2Template.faqCount : ', h2Template.faqCount);
|
|
133
|
+
return (<section className={'mt-[52px] sm:mt-[62px] lg:mt-[75px]'} key={'h2영역' + h2Template.idx} itemScope={h2Template.faqCount >= 2 ? true : undefined} itemType={h2Template.faqCount >= 2
|
|
134
|
+
? 'https://schema.org/FAQPage'
|
|
135
|
+
: undefined}>
|
|
133
136
|
<H2Contents h2Template={convertFaqItemType(h2Template)} index={index} faqCount={faqCount}/>
|
|
134
137
|
|
|
135
138
|
{/*h3*/}
|
|
@@ -198,10 +198,17 @@ const LawInfoNew = ({ data, tel }: ILawInfoNewPageTypes) => {
|
|
|
198
198
|
{/*h2*/}
|
|
199
199
|
{h2List &&
|
|
200
200
|
h2List.map((h2Template, index) => {
|
|
201
|
+
console.log('h2Template.faqCount : ', h2Template.faqCount);
|
|
201
202
|
return (
|
|
202
203
|
<section
|
|
203
204
|
className={'mt-[52px] sm:mt-[62px] lg:mt-[75px]'}
|
|
204
205
|
key={'h2영역' + h2Template.idx}
|
|
206
|
+
itemScope={(h2Template.faqCount as number) >= 2 ? true : undefined}
|
|
207
|
+
itemType={
|
|
208
|
+
(h2Template.faqCount as number) >= 2
|
|
209
|
+
? 'https://schema.org/FAQPage'
|
|
210
|
+
: undefined
|
|
211
|
+
}
|
|
205
212
|
>
|
|
206
213
|
<H2Contents
|
|
207
214
|
h2Template={convertFaqItemType(h2Template)}
|
|
@@ -38,18 +38,16 @@ const H2Contents = ({ h2Template, index, faqCount }) => {
|
|
|
38
38
|
}
|
|
39
39
|
return undefined;
|
|
40
40
|
};
|
|
41
|
-
return (<div itemScope={
|
|
42
|
-
<
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
{h2Template.is_editor ? (<div itemProp={getItemProp('text')} id={'ck-content'} dangerouslySetInnerHTML={{
|
|
41
|
+
return (<div itemScope={getItemScope()} itemProp={getItemProp('mainEntity')} itemType={getItemType('question')}>
|
|
42
|
+
<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={getItemProp('name')}>
|
|
43
|
+
{index + 1}. {h2Template.tag_title}
|
|
44
|
+
</h2>
|
|
45
|
+
<div className={'px-[10px] sm:px-[18px]'}>
|
|
46
|
+
{/*h2 설명글*/}
|
|
47
|
+
<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={getItemScope()} itemProp={getItemProp('acceptedAnswer')} itemType={getItemType('answer')}>
|
|
48
|
+
{h2Template.is_editor ? (<div itemProp={getItemProp('text')} id={'ck-content'} dangerouslySetInnerHTML={{
|
|
50
49
|
__html: htmlUrlDecode(h2Template.description.replace('../../UploadFile', '/SE2/upload'))
|
|
51
50
|
}}/>) : (<div itemProp={getItemProp('text')}>{h2Template.description}</div>)}
|
|
52
|
-
</div>
|
|
53
51
|
</div>
|
|
54
52
|
</div>
|
|
55
53
|
</div>);
|
|
@@ -58,44 +58,37 @@ const H2Contents = ({
|
|
|
58
58
|
};
|
|
59
59
|
|
|
60
60
|
return (
|
|
61
|
-
<div
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
61
|
+
<div itemScope={getItemScope()} itemProp={getItemProp('mainEntity')} itemType={getItemType('question')}>
|
|
62
|
+
<h2
|
|
63
|
+
className={
|
|
64
|
+
'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]'
|
|
65
|
+
}
|
|
66
|
+
id={h2Template.idx.toString()}
|
|
67
|
+
itemProp={getItemProp('name')}
|
|
68
|
+
>
|
|
69
|
+
{index + 1}. {h2Template.tag_title}
|
|
70
|
+
</h2>
|
|
71
|
+
<div className={'px-[10px] sm:px-[18px]'}>
|
|
72
|
+
{/*h2 설명글*/}
|
|
73
|
+
<div
|
|
67
74
|
className={
|
|
68
|
-
'
|
|
75
|
+
'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]'
|
|
69
76
|
}
|
|
70
|
-
|
|
71
|
-
itemProp={getItemProp('
|
|
77
|
+
itemScope={getItemScope()}
|
|
78
|
+
itemProp={getItemProp('acceptedAnswer')}
|
|
79
|
+
itemType={getItemType('answer')}
|
|
72
80
|
>
|
|
73
|
-
{
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
itemProp={getItemProp('
|
|
83
|
-
|
|
84
|
-
>
|
|
85
|
-
{h2Template.is_editor ? (
|
|
86
|
-
<div
|
|
87
|
-
itemProp={getItemProp('text')}
|
|
88
|
-
id={'ck-content'}
|
|
89
|
-
dangerouslySetInnerHTML={{
|
|
90
|
-
__html: htmlUrlDecode(
|
|
91
|
-
h2Template.description.replace('../../UploadFile', '/SE2/upload')
|
|
92
|
-
)
|
|
93
|
-
}}
|
|
94
|
-
/>
|
|
95
|
-
) : (
|
|
96
|
-
<div itemProp={getItemProp('text')}>{h2Template.description}</div>
|
|
97
|
-
)}
|
|
98
|
-
</div>
|
|
81
|
+
{h2Template.is_editor ? (
|
|
82
|
+
<div
|
|
83
|
+
itemProp={getItemProp('text')}
|
|
84
|
+
id={'ck-content'}
|
|
85
|
+
dangerouslySetInnerHTML={{
|
|
86
|
+
__html: htmlUrlDecode(h2Template.description.replace('../../UploadFile', '/SE2/upload'))
|
|
87
|
+
}}
|
|
88
|
+
/>
|
|
89
|
+
) : (
|
|
90
|
+
<div itemProp={getItemProp('text')}>{h2Template.description}</div>
|
|
91
|
+
)}
|
|
99
92
|
</div>
|
|
100
93
|
</div>
|
|
101
94
|
</div>
|