@daeryun/dr_components 1.0.9 → 1.0.10
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/common/types/strength_new/index.d.ts +65 -0
- package/dist/components/common/types/strength_new/index.js +1 -0
- package/dist/components/common/types/strength_new/index.ts +68 -0
- package/dist/components/page/LawInfoNew/LawInfoNew.jsx +21 -20
- package/dist/components/page/LawInfoNew/LawInfoNew.tsx +37 -24
- package/dist/components/page/LawInfoNew/LawInfoNewTypes.d.ts +1 -1
- package/dist/components/page/LawInfoNew/LawInfoNewTypes.ts +1 -1
- package/dist/components/page/StrengthNew/StrengthNew.d.ts +8 -0
- package/dist/components/page/StrengthNew/StrengthNew.jsx +11 -0
- package/dist/components/page/StrengthNew/StrengthNew.tsx +28 -0
- package/dist/components/page/StrengthNew/StrengthPeople.d.ts +8 -0
- package/dist/components/page/StrengthNew/StrengthPeople.jsx +13 -0
- package/dist/components/page/StrengthNew/StrengthPeople.tsx +34 -0
- package/dist/components/page/StrengthNew/StrengthSystem.d.ts +8 -0
- package/dist/components/page/StrengthNew/StrengthSystem.jsx +13 -0
- package/dist/components/page/StrengthNew/StrengthSystem.tsx +35 -0
- package/dist/components/page/StrengthNew/components/common/BannerSection.d.ts +13 -0
- package/dist/components/page/StrengthNew/components/common/BannerSection.jsx +111 -0
- package/dist/components/page/StrengthNew/components/common/BannerSection.tsx +231 -0
- package/dist/components/page/StrengthNew/components/common/LawyerSection.d.ts +12 -0
- package/dist/components/page/StrengthNew/components/common/LawyerSection.jsx +82 -0
- package/dist/components/page/StrengthNew/components/common/LawyerSection.tsx +193 -0
- package/dist/components/page/StrengthNew/components/common/ViewMoreSection.d.ts +9 -0
- package/dist/components/page/StrengthNew/components/common/ViewMoreSection.jsx +141 -0
- package/dist/components/page/StrengthNew/components/common/ViewMoreSection.tsx +297 -0
- package/dist/components/page/StrengthNew/components/main/IntroSection.d.ts +6 -0
- package/dist/components/page/StrengthNew/components/main/IntroSection.jsx +66 -0
- package/dist/components/page/StrengthNew/components/main/IntroSection.tsx +115 -0
- package/dist/components/page/StrengthNew/components/people/PeopleSection.d.ts +10 -0
- package/dist/components/page/StrengthNew/components/people/PeopleSection.jsx +166 -0
- package/dist/components/page/StrengthNew/components/people/PeopleSection.tsx +324 -0
- package/dist/components/page/StrengthNew/components/system/SystemSection.d.ts +6 -0
- package/dist/components/page/StrengthNew/components/system/SystemSection.jsx +270 -0
- package/dist/components/page/StrengthNew/components/system/SystemSection.tsx +495 -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.d.ts +2 -1
- package/dist/components/page/SuccessNew/components/H2Contents.jsx +44 -6
- package/dist/components/page/SuccessNew/components/H2Contents.tsx +64 -12
- package/dist/components/page/SuccessNew/components/H3Contents.d.ts +2 -1
- package/dist/components/page/SuccessNew/components/H3Contents.jsx +43 -5
- package/dist/components/page/SuccessNew/components/H3Contents.tsx +57 -9
- package/dist/styles/globals.css +1091 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import Image from 'next/image';
|
|
2
|
+
import React, { useEffect, useState } from 'react';
|
|
3
|
+
import useBrowser from '../../../../hook/useBrowser';
|
|
4
|
+
import { replaceInitialData } from '../../../../../lib';
|
|
5
|
+
const PeopleSection = ({ people_list, initialData }) => {
|
|
6
|
+
return (<section className={'w-full pt-[100px] tracking-[-0.04em] max-lg:pt-10 '}>
|
|
7
|
+
{people_list.map((item, index) => {
|
|
8
|
+
const Component = index % 2 === 0 ? RightTextItem : LeftTextItem;
|
|
9
|
+
return <Component item={item} key={index} index={index} initialData={initialData}/>;
|
|
10
|
+
})}
|
|
11
|
+
</section>);
|
|
12
|
+
};
|
|
13
|
+
export default PeopleSection;
|
|
14
|
+
const RightTextItem = ({ item, index, initialData }) => {
|
|
15
|
+
const imagePath = process.env.NEXT_PUBLIC_S3_URL + '';
|
|
16
|
+
const { width } = useBrowser(true);
|
|
17
|
+
const [padding, setPadding] = useState(0);
|
|
18
|
+
useEffect(() => {
|
|
19
|
+
if (width != 0) {
|
|
20
|
+
if (width > 2119) {
|
|
21
|
+
setPadding((width - 1920 + 80) / 2);
|
|
22
|
+
}
|
|
23
|
+
else if (width < 2120 && width > 1920) {
|
|
24
|
+
setPadding((width - 1920 + 280) / 2);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}, [width]);
|
|
28
|
+
return (<div className={'w-full pl-[calc((100%-1920px+80px)/2)] ' +
|
|
29
|
+
'max-[2120px]:pl-[calc((100%-1920px+280px)/2)] ' +
|
|
30
|
+
'max-full:pl-[140px] ' +
|
|
31
|
+
'max-3xl:pl-20 ' +
|
|
32
|
+
'max-lg:pl-[60px] ' +
|
|
33
|
+
'max-sm:pl-5 ' +
|
|
34
|
+
(index != 0 ? 'mt-[-100px] max-xl:mt-[-50px] max-sm:mt-[-20px]' : '')}>
|
|
35
|
+
<div className={'relative h-full w-full '}>
|
|
36
|
+
{/*원*/}
|
|
37
|
+
<div className={'absolute left-0 top-0 h-[400px] w-[400px] overflow-hidden rounded-full border border-solid border-[#4E00B3] ' +
|
|
38
|
+
'max-xl:h-[200px] max-xl:w-[200px] ' +
|
|
39
|
+
'max-sm:h-[180px] max-sm:w-[180px]'}>
|
|
40
|
+
{/*이미지*/}
|
|
41
|
+
<span className={'absolute bottom-0 right-0 block h-[299px] w-[279px] overflow-hidden ' +
|
|
42
|
+
'max-xl:h-[149px] max-xl:w-[139px] max-xl:rounded-tl-[100px] ' +
|
|
43
|
+
'max-sm:h-[160px] max-sm:w-[160px]'}>
|
|
44
|
+
<Image src={imagePath + `/strength_new/people_${index + 1}.webp`} alt={'강점'} fill sizes="(max-width: 640px) 160px, (max-width: 1280px) 139px, 279px" className={'object-contain object-right max-sm:hidden'} quality={100}/>
|
|
45
|
+
<Image src={imagePath + `/strength_new/people_mo_${index + 1}.webp`} alt={'강점'} fill sizes="(max-width: 640px) 160px, (max-width: 1280px) 139px, 279px" className={'object-contain object-right sm:hidden'} quality={100}/>
|
|
46
|
+
</span>
|
|
47
|
+
</div>
|
|
48
|
+
|
|
49
|
+
{/*내용 박스 > 원 위에*/}
|
|
50
|
+
<div className={'relative w-full pl-[120px] pt-[100px] max-xl:pl-[60px] max-xl:pt-[50px] max-sm:pl-5 max-sm:pt-5'}>
|
|
51
|
+
{/*보더*/}
|
|
52
|
+
<div className={'relative w-full rounded-tl-[100px] border-l border-t border-solid border-l-[#4E00B3] border-t-[#4E00B3] pb-[100px] pl-[280px] ' +
|
|
53
|
+
'max-xl:pb-[50px] max-xl:pl-[140px] ' +
|
|
54
|
+
'max-md:pl-10 max-md:pt-[140px] ' +
|
|
55
|
+
'max-sm:pb-5 max-sm:pl-5 max-sm:pt-[160px] '}>
|
|
56
|
+
{/*글자 내용*/}
|
|
57
|
+
<div style={{ paddingRight: padding + 120 }} className={'relative flex min-h-[360px] w-full flex-col gap-10 pb-[65px] pl-[120px] pt-[60px] ' +
|
|
58
|
+
'max-3xl:gap-7 max-3xl:!pr-[200px] max-3xl:pl-20 ' +
|
|
59
|
+
'max-xl:min-h-[228px] max-xl:gap-5 max-xl:p-10 max-xl:!pr-[140px] ' +
|
|
60
|
+
'max-lg:!pr-[120px] ' +
|
|
61
|
+
'max-sm:p-5 max-sm:!pr-10 max-sm:pb-10 '}>
|
|
62
|
+
<h2 className={'whitespace-pre-wrap text-[36px] font-[800] leading-[1.3] ' +
|
|
63
|
+
'max-5xl:text-[34px] ' +
|
|
64
|
+
'max-3xl:text-[32px] ' +
|
|
65
|
+
'max-xl:text-[24px] ' +
|
|
66
|
+
'max-md:text-right ' +
|
|
67
|
+
'max-sm:text-right max-sm:text-[20px]'} dangerouslySetInnerHTML={{
|
|
68
|
+
__html: replaceInitialData(item.title.replace('(*consult_date*)', `<span class='text-[20px] font-medium'>(*consult_date*)</span>`), initialData)
|
|
69
|
+
}}></h2>
|
|
70
|
+
<p className={'relative z-10 whitespace-pre-wrap text-[24px] font-[400] leading-[1.4] ' +
|
|
71
|
+
'max-5xl:text-[22px] ' +
|
|
72
|
+
'max-3xl:text-[20px] ' +
|
|
73
|
+
'max-xl:text-[16px]'}>
|
|
74
|
+
{replaceInitialData(item.desc, initialData)}
|
|
75
|
+
<p className={'absolute right-0 top-[-160px] z-0 text-[200px] font-[900] leading-none text-[#E7E7E7] opacity-25 ' +
|
|
76
|
+
'max-3xl:top-[-130px] max-3xl:text-[150px] ' +
|
|
77
|
+
'max-xl:top-[-95px] max-xl:text-[120px] ' +
|
|
78
|
+
'max-md2:text-[100px] ' +
|
|
79
|
+
'max-md:top-[-190px] ' +
|
|
80
|
+
'max-sm:top-[-176px] max-sm:text-[80px]'}>
|
|
81
|
+
0{index + 1}
|
|
82
|
+
</p>
|
|
83
|
+
</p>
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
</div>);
|
|
89
|
+
};
|
|
90
|
+
const LeftTextItem = ({ item, index, initialData }) => {
|
|
91
|
+
const imagePath = process.env.NEXT_PUBLIC_S3_URL + '';
|
|
92
|
+
const { width } = useBrowser(true);
|
|
93
|
+
const [padding, setPadding] = useState(0);
|
|
94
|
+
useEffect(() => {
|
|
95
|
+
if (width != 0) {
|
|
96
|
+
if (width > 2119) {
|
|
97
|
+
setPadding((width - 1920 + 80) / 2);
|
|
98
|
+
}
|
|
99
|
+
else if (width < 2120 && width > 1920) {
|
|
100
|
+
setPadding((width - 1920 + 280) / 2);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}, [width]);
|
|
104
|
+
return (<div className={'mt-[-100px] w-full pr-[calc((100%-1920px+80px)/2)] ' +
|
|
105
|
+
'max-[2120px]:pr-[calc((100%-1920px+280px)/2)] ' +
|
|
106
|
+
'max-full:pr-[140px] ' +
|
|
107
|
+
'max-3xl:pr-20 ' +
|
|
108
|
+
'max-xl:mt-[-50px] ' +
|
|
109
|
+
'max-lg:pr-[60px] ' +
|
|
110
|
+
'max-sm:mt-[-20px] max-sm:pr-5'}>
|
|
111
|
+
<div className={'relative h-full w-full '}>
|
|
112
|
+
{/*원*/}
|
|
113
|
+
<div className={'absolute right-0 top-0 h-[400px] w-[400px] overflow-hidden rounded-full border border-solid border-[#4E00B3] ' +
|
|
114
|
+
'max-xl:h-[200px] max-xl:w-[200px] ' +
|
|
115
|
+
'max-sm:h-[180px] max-sm:w-[180px]'}>
|
|
116
|
+
{/*이미지*/}
|
|
117
|
+
<span className={'absolute bottom-0 left-0 block h-[299px] w-[279px] overflow-hidden max-xl:h-[149px] max-xl:w-[139px] max-xl:rounded-tr-[100px] max-sm:h-[160px] max-sm:w-[160px]'}>
|
|
118
|
+
<Image src={imagePath + `/strength_new/people_${index + 1}.webp`} alt={'강점'} fill sizes="(max-width: 640px) 160px, (max-width: 1280px) 139px, 279px" className={'object-contain object-left max-sm:hidden'} quality={100}/>
|
|
119
|
+
<Image src={imagePath + `/strength_new/people_mo_${index + 1}.webp`} alt={'강점'} fill sizes="(max-width: 640px) 160px, (max-width: 1280px) 139px, 279px" className={'object-contain object-left sm:hidden'} quality={100}/>
|
|
120
|
+
</span>
|
|
121
|
+
</div>
|
|
122
|
+
|
|
123
|
+
{/*내용*/}
|
|
124
|
+
<div className={'relative w-full pr-[120px] pt-[100px] ' +
|
|
125
|
+
'max-xl:pr-[60px] max-xl:pt-[50px] ' +
|
|
126
|
+
'max-sm:pr-5 max-sm:pt-5'}>
|
|
127
|
+
{/*보더*/}
|
|
128
|
+
<div style={{ paddingLeft: padding }} className={'relative w-full rounded-tr-[100px] border-r border-t border-solid border-r-[#4E00B3] border-t-[#4E00B3] pb-[100px] pr-[280px] ' +
|
|
129
|
+
'max-full:!pl-[140px] ' +
|
|
130
|
+
'max-3xl:!pl-20 ' +
|
|
131
|
+
'max-xl:pb-[50px] max-xl:pr-[140px] ' +
|
|
132
|
+
'max-lg:!pl-[60px] ' +
|
|
133
|
+
'max-md:pr-10 max-md:pt-[140px] ' +
|
|
134
|
+
'max-sm:!pl-5 max-sm:pb-5 max-sm:pr-0 max-sm:pt-[160px]'}>
|
|
135
|
+
{/*글자내용*/}
|
|
136
|
+
<div className={'relative flex min-h-[360px] w-full flex-col gap-10 px-[120px] pb-[65px] pt-[60px] ' +
|
|
137
|
+
'max-3xl:gap-7 max-3xl:pr-20 ' +
|
|
138
|
+
'max-xl:min-h-[228px] max-xl:gap-5 max-xl:p-10 max-xl:pl-[60px] ' +
|
|
139
|
+
'max-sm:p-5 max-sm:pb-10 '}>
|
|
140
|
+
<h2 className={'whitespace-pre-wrap text-[36px] font-[800] leading-[1.3] ' +
|
|
141
|
+
'max-5xl:text-[34px] ' +
|
|
142
|
+
'max-3xl:text-[32px] ' +
|
|
143
|
+
'max-xl:text-[24px] ' +
|
|
144
|
+
'max-sm:text-[20px]'} dangerouslySetInnerHTML={{
|
|
145
|
+
__html: replaceInitialData(item.title.replace('*consult_date*', `<span class='text-[20px]'>*consult_date*</span>`), initialData)
|
|
146
|
+
}}></h2>
|
|
147
|
+
<p className={'relative z-10 whitespace-pre-wrap text-[24px] font-[400] leading-[1.4] ' +
|
|
148
|
+
'max-5xl:text-[22px] ' +
|
|
149
|
+
'max-3xl:text-[20px] ' +
|
|
150
|
+
'max-xl:text-[16px]'}>
|
|
151
|
+
{replaceInitialData(item.desc, initialData)}
|
|
152
|
+
</p>
|
|
153
|
+
<p className={'absolute right-[120px] top-[30px] z-0 text-[200px] font-[900] leading-none text-[#E7E7E7] opacity-25 ' +
|
|
154
|
+
'max-3xl:top-[40px] max-3xl:text-[150px] ' +
|
|
155
|
+
'max-xl:right-10 max-xl:top-8 max-xl:text-[120px] ' +
|
|
156
|
+
'max-md2:text-[100px] ' +
|
|
157
|
+
'max-md:left-[60px] max-md:top-[-65px] ' +
|
|
158
|
+
'max-sm:left-5 max-sm:top-[-80px] max-sm:text-[80px]'}>
|
|
159
|
+
0{index + 1}
|
|
160
|
+
</p>{' '}
|
|
161
|
+
</div>
|
|
162
|
+
</div>
|
|
163
|
+
</div>
|
|
164
|
+
</div>
|
|
165
|
+
</div>);
|
|
166
|
+
};
|
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
import Image from 'next/image';
|
|
2
|
+
import React, { useEffect, useRef, useState } from 'react';
|
|
3
|
+
import { IInitialDataTypes } from '../../../../common';
|
|
4
|
+
import useBrowser from '../../../../hook/useBrowser';
|
|
5
|
+
import { replaceInitialData } from '../../../../../lib';
|
|
6
|
+
const PeopleSection = ({
|
|
7
|
+
people_list,
|
|
8
|
+
initialData
|
|
9
|
+
}: {
|
|
10
|
+
people_list: {
|
|
11
|
+
title: string;
|
|
12
|
+
desc: string;
|
|
13
|
+
}[];
|
|
14
|
+
initialData: IInitialDataTypes;
|
|
15
|
+
}) => {
|
|
16
|
+
return (
|
|
17
|
+
<section className={'w-full pt-[100px] tracking-[-0.04em] max-lg:pt-10 '}>
|
|
18
|
+
{people_list.map((item, index) => {
|
|
19
|
+
const Component = index % 2 === 0 ? RightTextItem : LeftTextItem;
|
|
20
|
+
return <Component item={item} key={index} index={index} initialData={initialData} />;
|
|
21
|
+
})}
|
|
22
|
+
</section>
|
|
23
|
+
);
|
|
24
|
+
};
|
|
25
|
+
export default PeopleSection;
|
|
26
|
+
|
|
27
|
+
const RightTextItem = ({
|
|
28
|
+
item,
|
|
29
|
+
index,
|
|
30
|
+
initialData
|
|
31
|
+
}: {
|
|
32
|
+
item: {
|
|
33
|
+
title: string;
|
|
34
|
+
desc: string;
|
|
35
|
+
};
|
|
36
|
+
index: number;
|
|
37
|
+
initialData: IInitialDataTypes;
|
|
38
|
+
}) => {
|
|
39
|
+
const imagePath: string = process.env.NEXT_PUBLIC_S3_URL + '';
|
|
40
|
+
const { width } = useBrowser(true);
|
|
41
|
+
const [padding, setPadding] = useState<number>(0);
|
|
42
|
+
|
|
43
|
+
useEffect(() => {
|
|
44
|
+
if (width != 0) {
|
|
45
|
+
if (width > 2119) {
|
|
46
|
+
setPadding((width - 1920 + 80) / 2);
|
|
47
|
+
} else if (width < 2120 && width > 1920) {
|
|
48
|
+
setPadding((width - 1920 + 280) / 2);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}, [width]);
|
|
52
|
+
|
|
53
|
+
return (
|
|
54
|
+
<div
|
|
55
|
+
className={
|
|
56
|
+
'w-full pl-[calc((100%-1920px+80px)/2)] ' +
|
|
57
|
+
'max-[2120px]:pl-[calc((100%-1920px+280px)/2)] ' +
|
|
58
|
+
'max-full:pl-[140px] ' +
|
|
59
|
+
'max-3xl:pl-20 ' +
|
|
60
|
+
'max-lg:pl-[60px] ' +
|
|
61
|
+
'max-sm:pl-5 ' +
|
|
62
|
+
(index != 0 ? 'mt-[-100px] max-xl:mt-[-50px] max-sm:mt-[-20px]' : '')
|
|
63
|
+
}
|
|
64
|
+
>
|
|
65
|
+
<div className={'relative h-full w-full '}>
|
|
66
|
+
{/*원*/}
|
|
67
|
+
<div
|
|
68
|
+
className={
|
|
69
|
+
'absolute left-0 top-0 h-[400px] w-[400px] overflow-hidden rounded-full border border-solid border-[#4E00B3] ' +
|
|
70
|
+
'max-xl:h-[200px] max-xl:w-[200px] ' +
|
|
71
|
+
'max-sm:h-[180px] max-sm:w-[180px]'
|
|
72
|
+
}
|
|
73
|
+
>
|
|
74
|
+
{/*이미지*/}
|
|
75
|
+
<span
|
|
76
|
+
className={
|
|
77
|
+
'absolute bottom-0 right-0 block h-[299px] w-[279px] overflow-hidden ' +
|
|
78
|
+
'max-xl:h-[149px] max-xl:w-[139px] max-xl:rounded-tl-[100px] ' +
|
|
79
|
+
'max-sm:h-[160px] max-sm:w-[160px]'
|
|
80
|
+
}
|
|
81
|
+
>
|
|
82
|
+
<Image
|
|
83
|
+
src={imagePath + `/strength_new/people_${index + 1}.webp`}
|
|
84
|
+
alt={'강점'}
|
|
85
|
+
fill
|
|
86
|
+
sizes="(max-width: 640px) 160px, (max-width: 1280px) 139px, 279px"
|
|
87
|
+
className={'object-contain object-right max-sm:hidden'}
|
|
88
|
+
quality={100}
|
|
89
|
+
/>
|
|
90
|
+
<Image
|
|
91
|
+
src={imagePath + `/strength_new/people_mo_${index + 1}.webp`}
|
|
92
|
+
alt={'강점'}
|
|
93
|
+
fill
|
|
94
|
+
sizes="(max-width: 640px) 160px, (max-width: 1280px) 139px, 279px"
|
|
95
|
+
className={'object-contain object-right sm:hidden'}
|
|
96
|
+
quality={100}
|
|
97
|
+
/>
|
|
98
|
+
</span>
|
|
99
|
+
</div>
|
|
100
|
+
|
|
101
|
+
{/*내용 박스 > 원 위에*/}
|
|
102
|
+
<div
|
|
103
|
+
className={
|
|
104
|
+
'relative w-full pl-[120px] pt-[100px] max-xl:pl-[60px] max-xl:pt-[50px] max-sm:pl-5 max-sm:pt-5'
|
|
105
|
+
}
|
|
106
|
+
>
|
|
107
|
+
{/*보더*/}
|
|
108
|
+
<div
|
|
109
|
+
className={
|
|
110
|
+
'relative w-full rounded-tl-[100px] border-l border-t border-solid border-l-[#4E00B3] border-t-[#4E00B3] pb-[100px] pl-[280px] ' +
|
|
111
|
+
'max-xl:pb-[50px] max-xl:pl-[140px] ' +
|
|
112
|
+
'max-md:pl-10 max-md:pt-[140px] ' +
|
|
113
|
+
'max-sm:pb-5 max-sm:pl-5 max-sm:pt-[160px] '
|
|
114
|
+
}
|
|
115
|
+
>
|
|
116
|
+
{/*글자 내용*/}
|
|
117
|
+
<div
|
|
118
|
+
style={{ paddingRight: padding + 120 }}
|
|
119
|
+
className={
|
|
120
|
+
'relative flex min-h-[360px] w-full flex-col gap-10 pb-[65px] pl-[120px] pt-[60px] ' +
|
|
121
|
+
'max-3xl:gap-7 max-3xl:!pr-[200px] max-3xl:pl-20 ' +
|
|
122
|
+
'max-xl:min-h-[228px] max-xl:gap-5 max-xl:p-10 max-xl:!pr-[140px] ' +
|
|
123
|
+
'max-lg:!pr-[120px] ' +
|
|
124
|
+
'max-sm:p-5 max-sm:!pr-10 max-sm:pb-10 '
|
|
125
|
+
}
|
|
126
|
+
>
|
|
127
|
+
<h2
|
|
128
|
+
className={
|
|
129
|
+
'whitespace-pre-wrap text-[36px] font-[800] leading-[1.3] ' +
|
|
130
|
+
'max-5xl:text-[34px] ' +
|
|
131
|
+
'max-3xl:text-[32px] ' +
|
|
132
|
+
'max-xl:text-[24px] ' +
|
|
133
|
+
'max-md:text-right ' +
|
|
134
|
+
'max-sm:text-right max-sm:text-[20px]'
|
|
135
|
+
}
|
|
136
|
+
dangerouslySetInnerHTML={{
|
|
137
|
+
__html: replaceInitialData(
|
|
138
|
+
item.title.replace(
|
|
139
|
+
'(*consult_date*)',
|
|
140
|
+
`<span class='text-[20px] font-medium'>(*consult_date*)</span>`
|
|
141
|
+
),
|
|
142
|
+
initialData
|
|
143
|
+
)
|
|
144
|
+
}}
|
|
145
|
+
></h2>
|
|
146
|
+
<p
|
|
147
|
+
className={
|
|
148
|
+
'relative z-10 whitespace-pre-wrap text-[24px] font-[400] leading-[1.4] ' +
|
|
149
|
+
'max-5xl:text-[22px] ' +
|
|
150
|
+
'max-3xl:text-[20px] ' +
|
|
151
|
+
'max-xl:text-[16px]'
|
|
152
|
+
}
|
|
153
|
+
>
|
|
154
|
+
{replaceInitialData(item.desc, initialData)}
|
|
155
|
+
<p
|
|
156
|
+
className={
|
|
157
|
+
'absolute right-0 top-[-160px] z-0 text-[200px] font-[900] leading-none text-[#E7E7E7] opacity-25 ' +
|
|
158
|
+
'max-3xl:top-[-130px] max-3xl:text-[150px] ' +
|
|
159
|
+
'max-xl:top-[-95px] max-xl:text-[120px] ' +
|
|
160
|
+
'max-md2:text-[100px] ' +
|
|
161
|
+
'max-md:top-[-190px] ' +
|
|
162
|
+
'max-sm:top-[-176px] max-sm:text-[80px]'
|
|
163
|
+
}
|
|
164
|
+
>
|
|
165
|
+
0{index + 1}
|
|
166
|
+
</p>
|
|
167
|
+
</p>
|
|
168
|
+
</div>
|
|
169
|
+
</div>
|
|
170
|
+
</div>
|
|
171
|
+
</div>
|
|
172
|
+
</div>
|
|
173
|
+
);
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
const LeftTextItem = ({
|
|
177
|
+
item,
|
|
178
|
+
index,
|
|
179
|
+
initialData
|
|
180
|
+
}: {
|
|
181
|
+
item: {
|
|
182
|
+
title: string;
|
|
183
|
+
desc: string;
|
|
184
|
+
};
|
|
185
|
+
index: number;
|
|
186
|
+
initialData: IInitialDataTypes;
|
|
187
|
+
}) => {
|
|
188
|
+
const imagePath: string = process.env.NEXT_PUBLIC_S3_URL + '';
|
|
189
|
+
const { width } = useBrowser(true);
|
|
190
|
+
const [padding, setPadding] = useState<number>(0);
|
|
191
|
+
|
|
192
|
+
useEffect(() => {
|
|
193
|
+
if (width != 0) {
|
|
194
|
+
if (width > 2119) {
|
|
195
|
+
setPadding((width - 1920 + 80) / 2);
|
|
196
|
+
} else if (width < 2120 && width > 1920) {
|
|
197
|
+
setPadding((width - 1920 + 280) / 2);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}, [width]);
|
|
201
|
+
|
|
202
|
+
return (
|
|
203
|
+
<div
|
|
204
|
+
className={
|
|
205
|
+
'mt-[-100px] w-full pr-[calc((100%-1920px+80px)/2)] ' +
|
|
206
|
+
'max-[2120px]:pr-[calc((100%-1920px+280px)/2)] ' +
|
|
207
|
+
'max-full:pr-[140px] ' +
|
|
208
|
+
'max-3xl:pr-20 ' +
|
|
209
|
+
'max-xl:mt-[-50px] ' +
|
|
210
|
+
'max-lg:pr-[60px] ' +
|
|
211
|
+
'max-sm:mt-[-20px] max-sm:pr-5'
|
|
212
|
+
}
|
|
213
|
+
>
|
|
214
|
+
<div className={'relative h-full w-full '}>
|
|
215
|
+
{/*원*/}
|
|
216
|
+
<div
|
|
217
|
+
className={
|
|
218
|
+
'absolute right-0 top-0 h-[400px] w-[400px] overflow-hidden rounded-full border border-solid border-[#4E00B3] ' +
|
|
219
|
+
'max-xl:h-[200px] max-xl:w-[200px] ' +
|
|
220
|
+
'max-sm:h-[180px] max-sm:w-[180px]'
|
|
221
|
+
}
|
|
222
|
+
>
|
|
223
|
+
{/*이미지*/}
|
|
224
|
+
<span
|
|
225
|
+
className={
|
|
226
|
+
'absolute bottom-0 left-0 block h-[299px] w-[279px] overflow-hidden max-xl:h-[149px] max-xl:w-[139px] max-xl:rounded-tr-[100px] max-sm:h-[160px] max-sm:w-[160px]'
|
|
227
|
+
}
|
|
228
|
+
>
|
|
229
|
+
<Image
|
|
230
|
+
src={imagePath + `/strength_new/people_${index + 1}.webp`}
|
|
231
|
+
alt={'강점'}
|
|
232
|
+
fill
|
|
233
|
+
sizes="(max-width: 640px) 160px, (max-width: 1280px) 139px, 279px"
|
|
234
|
+
className={'object-contain object-left max-sm:hidden'}
|
|
235
|
+
quality={100}
|
|
236
|
+
/>
|
|
237
|
+
<Image
|
|
238
|
+
src={imagePath + `/strength_new/people_mo_${index + 1}.webp`}
|
|
239
|
+
alt={'강점'}
|
|
240
|
+
fill
|
|
241
|
+
sizes="(max-width: 640px) 160px, (max-width: 1280px) 139px, 279px"
|
|
242
|
+
className={'object-contain object-left sm:hidden'}
|
|
243
|
+
quality={100}
|
|
244
|
+
/>
|
|
245
|
+
</span>
|
|
246
|
+
</div>
|
|
247
|
+
|
|
248
|
+
{/*내용*/}
|
|
249
|
+
<div
|
|
250
|
+
className={
|
|
251
|
+
'relative w-full pr-[120px] pt-[100px] ' +
|
|
252
|
+
'max-xl:pr-[60px] max-xl:pt-[50px] ' +
|
|
253
|
+
'max-sm:pr-5 max-sm:pt-5'
|
|
254
|
+
}
|
|
255
|
+
>
|
|
256
|
+
{/*보더*/}
|
|
257
|
+
<div
|
|
258
|
+
style={{ paddingLeft: padding }}
|
|
259
|
+
className={
|
|
260
|
+
'relative w-full rounded-tr-[100px] border-r border-t border-solid border-r-[#4E00B3] border-t-[#4E00B3] pb-[100px] pr-[280px] ' +
|
|
261
|
+
'max-full:!pl-[140px] ' +
|
|
262
|
+
'max-3xl:!pl-20 ' +
|
|
263
|
+
'max-xl:pb-[50px] max-xl:pr-[140px] ' +
|
|
264
|
+
'max-lg:!pl-[60px] ' +
|
|
265
|
+
'max-md:pr-10 max-md:pt-[140px] ' +
|
|
266
|
+
'max-sm:!pl-5 max-sm:pb-5 max-sm:pr-0 max-sm:pt-[160px]'
|
|
267
|
+
}
|
|
268
|
+
>
|
|
269
|
+
{/*글자내용*/}
|
|
270
|
+
<div
|
|
271
|
+
className={
|
|
272
|
+
'relative flex min-h-[360px] w-full flex-col gap-10 px-[120px] pb-[65px] pt-[60px] ' +
|
|
273
|
+
'max-3xl:gap-7 max-3xl:pr-20 ' +
|
|
274
|
+
'max-xl:min-h-[228px] max-xl:gap-5 max-xl:p-10 max-xl:pl-[60px] ' +
|
|
275
|
+
'max-sm:p-5 max-sm:pb-10 '
|
|
276
|
+
}
|
|
277
|
+
>
|
|
278
|
+
<h2
|
|
279
|
+
className={
|
|
280
|
+
'whitespace-pre-wrap text-[36px] font-[800] leading-[1.3] ' +
|
|
281
|
+
'max-5xl:text-[34px] ' +
|
|
282
|
+
'max-3xl:text-[32px] ' +
|
|
283
|
+
'max-xl:text-[24px] ' +
|
|
284
|
+
'max-sm:text-[20px]'
|
|
285
|
+
}
|
|
286
|
+
dangerouslySetInnerHTML={{
|
|
287
|
+
__html: replaceInitialData(
|
|
288
|
+
item.title.replace(
|
|
289
|
+
'*consult_date*',
|
|
290
|
+
`<span class='text-[20px]'>*consult_date*</span>`
|
|
291
|
+
),
|
|
292
|
+
initialData
|
|
293
|
+
)
|
|
294
|
+
}}
|
|
295
|
+
></h2>
|
|
296
|
+
<p
|
|
297
|
+
className={
|
|
298
|
+
'relative z-10 whitespace-pre-wrap text-[24px] font-[400] leading-[1.4] ' +
|
|
299
|
+
'max-5xl:text-[22px] ' +
|
|
300
|
+
'max-3xl:text-[20px] ' +
|
|
301
|
+
'max-xl:text-[16px]'
|
|
302
|
+
}
|
|
303
|
+
>
|
|
304
|
+
{replaceInitialData(item.desc, initialData)}
|
|
305
|
+
</p>
|
|
306
|
+
<p
|
|
307
|
+
className={
|
|
308
|
+
'absolute right-[120px] top-[30px] z-0 text-[200px] font-[900] leading-none text-[#E7E7E7] opacity-25 ' +
|
|
309
|
+
'max-3xl:top-[40px] max-3xl:text-[150px] ' +
|
|
310
|
+
'max-xl:right-10 max-xl:top-8 max-xl:text-[120px] ' +
|
|
311
|
+
'max-md2:text-[100px] ' +
|
|
312
|
+
'max-md:left-[60px] max-md:top-[-65px] ' +
|
|
313
|
+
'max-sm:left-5 max-sm:top-[-80px] max-sm:text-[80px]'
|
|
314
|
+
}
|
|
315
|
+
>
|
|
316
|
+
0{index + 1}
|
|
317
|
+
</p>{' '}
|
|
318
|
+
</div>
|
|
319
|
+
</div>
|
|
320
|
+
</div>
|
|
321
|
+
</div>
|
|
322
|
+
</div>
|
|
323
|
+
);
|
|
324
|
+
};
|