@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,231 @@
|
|
|
1
|
+
import { useTranslation } from 'next-i18next';
|
|
2
|
+
import Link from 'next/link';
|
|
3
|
+
import Image from 'next/image';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { usePathname } from 'next/navigation';
|
|
6
|
+
import { useRouter } from 'next/router';
|
|
7
|
+
import { IInitialDataTypes } from '../../../../common';
|
|
8
|
+
import CategoryMenuForPage from '../../../../CategoryMenu/CategoryMenuForPage';
|
|
9
|
+
import Wrapper from '../../../../Layout/Wrapper';
|
|
10
|
+
import { replaceInitialData } from '../../../../../lib';
|
|
11
|
+
|
|
12
|
+
const BannerSection = ({
|
|
13
|
+
title,
|
|
14
|
+
subTitle,
|
|
15
|
+
menu,
|
|
16
|
+
initialData
|
|
17
|
+
}: {
|
|
18
|
+
title: React.ReactNode;
|
|
19
|
+
subTitle: React.ReactNode;
|
|
20
|
+
menu: { url: string; text: string; color: string }[];
|
|
21
|
+
initialData: IInitialDataTypes;
|
|
22
|
+
}) => {
|
|
23
|
+
const { t } = useTranslation('common');
|
|
24
|
+
const imagePath: string = process.env.NEXT_PUBLIC_S3_URL + '';
|
|
25
|
+
const pathname = usePathname();
|
|
26
|
+
const router = useRouter();
|
|
27
|
+
const isMain = pathname === '/strength';
|
|
28
|
+
const bannerImg = pathname.replace('/strength/', '') + '_banner';
|
|
29
|
+
|
|
30
|
+
return (
|
|
31
|
+
<section
|
|
32
|
+
className={
|
|
33
|
+
'relative h-[620px] w-full overflow-hidden pt-[196px] ' +
|
|
34
|
+
'max-3xl:h-[580px] ' +
|
|
35
|
+
'max-lg:h-[420px] max-lg:pt-[162px] ' +
|
|
36
|
+
'max-md:h-[400px] ' +
|
|
37
|
+
'max-sm:pt-[108px] ' +
|
|
38
|
+
(isMain ? 'bg-[#D1E4F7] max-xs:h-[342px]' : 'max-xs:h-[400px]')
|
|
39
|
+
}
|
|
40
|
+
>
|
|
41
|
+
<Wrapper className={'relative z-10 w-full '}>
|
|
42
|
+
<CategoryMenuForPage className={'font-[SUIT]'} />
|
|
43
|
+
<div
|
|
44
|
+
className={
|
|
45
|
+
'flex w-full flex-col tracking-[-0.04em] ' +
|
|
46
|
+
(isMain
|
|
47
|
+
? ' mt-20 gap-20 max-lg:mt-9 '
|
|
48
|
+
: ' mt-[60px] gap-10 max-lg:mt-4 max-lg:gap-5 max-sm:mt-10 ')
|
|
49
|
+
}
|
|
50
|
+
>
|
|
51
|
+
{isMain ? (
|
|
52
|
+
<h1
|
|
53
|
+
className={
|
|
54
|
+
'text-center text-[40px] font-[400] leading-[1] ' +
|
|
55
|
+
'max-3xl:text-[34px] ' +
|
|
56
|
+
'max-xl:text-[30px] ' +
|
|
57
|
+
'max-lg:text-[24px] ' +
|
|
58
|
+
'max-md:text-[22px] ' +
|
|
59
|
+
'max-xs:text-[20px]'
|
|
60
|
+
}
|
|
61
|
+
>
|
|
62
|
+
{title}
|
|
63
|
+
<span
|
|
64
|
+
className={
|
|
65
|
+
'mt-4 block text-[64px] font-[800] ' +
|
|
66
|
+
'max-3xl:text-[54px] ' +
|
|
67
|
+
'max-xl:text-[46px] ' +
|
|
68
|
+
'max-lg:mt-[10px] max-lg:text-[40px] ' +
|
|
69
|
+
'max-md:text-[34px] ' +
|
|
70
|
+
'max-xs:text-[28px]'
|
|
71
|
+
}
|
|
72
|
+
>
|
|
73
|
+
{subTitle}
|
|
74
|
+
</span>
|
|
75
|
+
</h1>
|
|
76
|
+
) : (
|
|
77
|
+
<>
|
|
78
|
+
<h1
|
|
79
|
+
className={
|
|
80
|
+
'text-center text-[52px] font-[800] leading-[1] ' +
|
|
81
|
+
'max-3xl:text-[46px] ' +
|
|
82
|
+
'max-xl:text-[42px] ' +
|
|
83
|
+
'max-lg:text-[36px] ' +
|
|
84
|
+
'max-md:text-[32px] ' +
|
|
85
|
+
'max-xs:text-[28px] '
|
|
86
|
+
}
|
|
87
|
+
>
|
|
88
|
+
{title}
|
|
89
|
+
</h1>
|
|
90
|
+
<p
|
|
91
|
+
className={
|
|
92
|
+
'text-center text-[24px] leading-[1.4] ' +
|
|
93
|
+
'max-3xl:text-[22px] ' +
|
|
94
|
+
'max-lg:text-[20px] ' +
|
|
95
|
+
'max-md:text-[18px] ' +
|
|
96
|
+
'max-xs:text-left max-xs:text-[16px] sm:whitespace-pre-wrap'
|
|
97
|
+
}
|
|
98
|
+
>
|
|
99
|
+
{replaceInitialData(String(subTitle), initialData)}
|
|
100
|
+
</p>
|
|
101
|
+
</>
|
|
102
|
+
)}
|
|
103
|
+
</div>
|
|
104
|
+
</Wrapper>
|
|
105
|
+
|
|
106
|
+
<div
|
|
107
|
+
className={
|
|
108
|
+
'!absolute bottom-0 z-20 h-[60px] w-full bg-[#5368C41A] font-[SUIT] max-lg:h-12 max-sm:h-fit max-sm:bg-[unset]'
|
|
109
|
+
}
|
|
110
|
+
>
|
|
111
|
+
<div
|
|
112
|
+
className={
|
|
113
|
+
'relative mx-auto h-full w-full max-w-[1920px] px-[40px] max-[2120px]:px-[140px] max-3xl:px-[80px] max-xl:w-[100%] max-lg:px-[60px] max-sm:px-0 '
|
|
114
|
+
}
|
|
115
|
+
>
|
|
116
|
+
<div
|
|
117
|
+
className={
|
|
118
|
+
'mx-auto grid h-full w-full max-w-[1400px] grid-cols-4 max-lg:max-w-[760px] max-sm:grid-cols-2 max-sm:gap-[2px]'
|
|
119
|
+
}
|
|
120
|
+
>
|
|
121
|
+
{menu.map(menu => {
|
|
122
|
+
return (
|
|
123
|
+
<Link
|
|
124
|
+
href={`/strength/${menu.url}`}
|
|
125
|
+
key={menu.url}
|
|
126
|
+
style={{ color: menu.color }}
|
|
127
|
+
className={
|
|
128
|
+
'flex h-full w-full items-center justify-center text-[24px] leading-none tracking-[-0.7px] ' +
|
|
129
|
+
'max-3xl:text-[22px] ' +
|
|
130
|
+
'max-lg:text-[20px] ' +
|
|
131
|
+
'max-md:text-[18px] ' +
|
|
132
|
+
'max-sm:h-10 max-sm:bg-[#5368C41A] max-sm:text-[16px] ' +
|
|
133
|
+
'transition-[background-color,font-weight] duration-500 hover:bg-[#5368C433] hover:font-[800] ' +
|
|
134
|
+
(pathname.includes(menu.url)
|
|
135
|
+
? ' bg-[#5368C433] font-[800] max-sm:bg-[#5368C433]'
|
|
136
|
+
: ' font-medium ')
|
|
137
|
+
}
|
|
138
|
+
>
|
|
139
|
+
{router.locale === 'en' ? (
|
|
140
|
+
<span className={'w-full text-center text-[0.9em]'}>{menu.text}</span>
|
|
141
|
+
) : (
|
|
142
|
+
menu.text
|
|
143
|
+
)}
|
|
144
|
+
</Link>
|
|
145
|
+
);
|
|
146
|
+
})}
|
|
147
|
+
</div>
|
|
148
|
+
</div>
|
|
149
|
+
</div>
|
|
150
|
+
|
|
151
|
+
{!isMain ? (
|
|
152
|
+
<>
|
|
153
|
+
<Image
|
|
154
|
+
src={imagePath + `/strength_new/${bannerImg}.webp`}
|
|
155
|
+
alt={'강점'}
|
|
156
|
+
fill
|
|
157
|
+
priority
|
|
158
|
+
className={'relative z-0 object-cover max-lg:hidden'}
|
|
159
|
+
quality={100}
|
|
160
|
+
/>
|
|
161
|
+
<Image
|
|
162
|
+
src={imagePath + `/strength_new/${bannerImg}_tab.webp`}
|
|
163
|
+
alt={'강점'}
|
|
164
|
+
fill
|
|
165
|
+
priority
|
|
166
|
+
className={'relative z-0 object-cover max-xs:hidden lg:hidden '}
|
|
167
|
+
quality={100}
|
|
168
|
+
/>
|
|
169
|
+
<Image
|
|
170
|
+
src={imagePath + `/strength_new/${bannerImg}_mo.webp`}
|
|
171
|
+
alt={'강점'}
|
|
172
|
+
fill
|
|
173
|
+
priority
|
|
174
|
+
className={'relative z-0 object-cover xs:hidden'}
|
|
175
|
+
quality={100}
|
|
176
|
+
/>
|
|
177
|
+
</>
|
|
178
|
+
) : (
|
|
179
|
+
<></>
|
|
180
|
+
)}
|
|
181
|
+
|
|
182
|
+
{isMain ? (
|
|
183
|
+
<>
|
|
184
|
+
{/*상단 이미지*/}
|
|
185
|
+
<span
|
|
186
|
+
className={
|
|
187
|
+
'absolute right-0 top-[120px] z-0 block h-[500px] w-[636px] ' +
|
|
188
|
+
'max-3xl:h-[400px] max-3xl:w-[500px] ' +
|
|
189
|
+
'max-lg:h-[300px] max-lg:w-[380px] ' +
|
|
190
|
+
'max-md:h-[240px] max-md:w-[320px] ' +
|
|
191
|
+
'max-sm:top-[68px] ' +
|
|
192
|
+
'max-xs:h-[157px] max-xs:w-[200px]'
|
|
193
|
+
}
|
|
194
|
+
>
|
|
195
|
+
<Image
|
|
196
|
+
src={imagePath + '/strength_new/main_bg_right.webp'}
|
|
197
|
+
alt={'강점'}
|
|
198
|
+
fill
|
|
199
|
+
sizes="(max-width: 480px) 200px, (max-width: 768px) 320px, (max-width: 1024px) 380px, (max-width: 1500px) 500px, 636px"
|
|
200
|
+
className={'object-contain object-right-top'}
|
|
201
|
+
quality={100}
|
|
202
|
+
/>
|
|
203
|
+
</span>
|
|
204
|
+
{/*하단 이미지*/}
|
|
205
|
+
<span
|
|
206
|
+
className={
|
|
207
|
+
'absolute bottom-0 left-0 z-0 block h-[400px] w-[400px] ' +
|
|
208
|
+
'max-3xl:h-[300px] max-3xl:w-[300px] ' +
|
|
209
|
+
'max-lg:h-[180px] max-lg:w-[180px] ' +
|
|
210
|
+
'max-md:h-[150px] max-md:w-[150px] ' +
|
|
211
|
+
'max-xs:h-[100px] max-xs:w-[100px]'
|
|
212
|
+
}
|
|
213
|
+
>
|
|
214
|
+
<Image
|
|
215
|
+
src={imagePath + '/strength_new/main_bg_left.webp'}
|
|
216
|
+
alt={'강점'}
|
|
217
|
+
fill
|
|
218
|
+
sizes="(max-width: 480px) 100px, (max-width: 768px) 150px, (max-width: 1024px) 180px, (max-width: 1500px) 300px, 400px"
|
|
219
|
+
className={'object-contain'}
|
|
220
|
+
quality={100}
|
|
221
|
+
/>
|
|
222
|
+
</span>
|
|
223
|
+
</>
|
|
224
|
+
) : (
|
|
225
|
+
<></>
|
|
226
|
+
)}
|
|
227
|
+
</section>
|
|
228
|
+
);
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
export default BannerSection;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const LawyerSection: ({ lawyer_title_1, lawyer_title_2, lawyer_link_list }: {
|
|
3
|
+
lawyer_title_1: string;
|
|
4
|
+
lawyer_title_2: string;
|
|
5
|
+
lawyer_link_list: {
|
|
6
|
+
title: string;
|
|
7
|
+
buttonText: string;
|
|
8
|
+
url: string;
|
|
9
|
+
color: string;
|
|
10
|
+
}[];
|
|
11
|
+
}) => React.JSX.Element;
|
|
12
|
+
export default LawyerSection;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import Image from 'next/image';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Link from 'next/link';
|
|
4
|
+
import { useRouter } from 'next/router';
|
|
5
|
+
import Wrapper from '../../../../Layout/Wrapper';
|
|
6
|
+
const LawyerSection = ({ lawyer_title_1, lawyer_title_2, lawyer_link_list }) => {
|
|
7
|
+
const imagePath = process.env.NEXT_PUBLIC_S3_URL + '';
|
|
8
|
+
const router = useRouter();
|
|
9
|
+
return (<section className={'relative flex h-[400px] w-full items-center tracking-[-0.04em] max-3xl:h-[340px] max-lg:h-[240px] max-md:h-fit'}>
|
|
10
|
+
<Wrapper className={'!static z-10 flex w-full items-center justify-between max-md:flex-col max-md:items-start max-md:gap-10 max-md:py-10 max-xs:pl-5 '}>
|
|
11
|
+
<Image src={imagePath + `/strength_new/lawyer_bg.webp`} alt={'강점'} fill className={'absolute left-0 top-0 z-[-1] object-cover max-md:hidden'} quality={100}/>
|
|
12
|
+
<Image src={imagePath + `/strength_new/lawyer_bg_mo.webp`} alt={'강점'} fill className={'absolute left-0 top-0 z-[-1] object-cover md:hidden'} quality={100}/>
|
|
13
|
+
<div className={'text-[40px] font-medium leading-[1.4] ' +
|
|
14
|
+
'max-3xl:text-[32px] ' +
|
|
15
|
+
'max-xl:text-[26px] ' +
|
|
16
|
+
'max-lg:text-[24px] ' +
|
|
17
|
+
'max-md:pl-5 max-md:leading-[1.3] '}>
|
|
18
|
+
{router.locale === 'en' ? (<>
|
|
19
|
+
<p className={'text-[0.9em]'} dangerouslySetInnerHTML={{ __html: lawyer_title_1 }}/>
|
|
20
|
+
<p className={'pl-[245px] text-[0.9em] ' +
|
|
21
|
+
'max-3xl:pl-[195px] ' +
|
|
22
|
+
'max-xl:pl-[158px] ' +
|
|
23
|
+
'max-lg:pl-[70px] ' +
|
|
24
|
+
'max-md:mt-[10px] max-md:pl-0'} dangerouslySetInnerHTML={{ __html: lawyer_title_2 }}/>
|
|
25
|
+
</>) : (<>
|
|
26
|
+
<p dangerouslySetInnerHTML={{ __html: lawyer_title_1 }}/>
|
|
27
|
+
<p className={'pl-[245px] ' +
|
|
28
|
+
'max-3xl:pl-[195px] ' +
|
|
29
|
+
'max-xl:pl-[158px] ' +
|
|
30
|
+
'max-lg:pl-[70px] ' +
|
|
31
|
+
'max-md:mt-[10px] max-md:pl-0'} dangerouslySetInnerHTML={{ __html: lawyer_title_2 }}/>
|
|
32
|
+
</>)}
|
|
33
|
+
</div>
|
|
34
|
+
<div className={'flex gap-5 tracking-[-0.04em] ' +
|
|
35
|
+
'max-3xl:gap-3 ' +
|
|
36
|
+
'max-lg:gap-[10px] ' +
|
|
37
|
+
'max-md2:gap-0 ' +
|
|
38
|
+
'max-md:gap-[15px] ' +
|
|
39
|
+
'max-xs:gap-[10px]'}>
|
|
40
|
+
{lawyer_link_list.map((item, index) => {
|
|
41
|
+
return (<Link href={item.url} className={'group relative h-[240px] w-[240px] rounded-full ' +
|
|
42
|
+
'max-3xl:h-[200px] max-3xl:w-[200px] ' +
|
|
43
|
+
'max-lg:h-[160px] max-lg:w-[160px] '} key={index}>
|
|
44
|
+
<span style={{ backgroundColor: item.color }} className={'absolute right-1/2 top-1/2 flex h-[220px] w-[220px] -translate-y-1/2 translate-x-1/2 rounded-full ' +
|
|
45
|
+
'max-3xl:h-[180px] max-3xl:w-[180px] ' +
|
|
46
|
+
'max-lg:h-[140px] max-lg:w-[140px] max-lg:gap-[18px] ' +
|
|
47
|
+
'mix-blend-multiply'}/>
|
|
48
|
+
{/*선*/}
|
|
49
|
+
<span style={{ borderColor: item.color }} className={'absolute right-1/2 top-1/2 h-[230px] w-[230px] -translate-y-1/2 translate-x-1/2 rounded-full border border-solid ' +
|
|
50
|
+
'max-3xl:h-[190px] max-3xl:w-[190px] ' +
|
|
51
|
+
'max-lg:h-[150px] max-lg:w-[150px] ' +
|
|
52
|
+
'lg:transition-[width,height] lg:duration-500 lg:group-hover:h-[200px] lg:group-hover:w-[200px] 3xl:group-hover:h-[240px] 3xl:group-hover:w-[240px] '}></span>
|
|
53
|
+
{/*내용*/}
|
|
54
|
+
<span className={'absolute right-1/2 top-1/2 flex h-[220px] w-[220px] -translate-y-1/2 translate-x-1/2 flex-col items-center justify-center gap-5 rounded-full text-white ' +
|
|
55
|
+
'max-3xl:h-[180px] max-3xl:w-[180px] ' +
|
|
56
|
+
'max-lg:h-[140px] max-lg:w-[140px] max-lg:gap-[18px] '}>
|
|
57
|
+
<p className={'whitespace-pre-wrap text-center text-[24px] font-[700] leading-[1.3] max-3xl:text-[20px] max-lg:text-[16px]'}>
|
|
58
|
+
{router.locale === 'en' ? (<span className={'text-[0.9em]'}>{item.title}</span>) : (item.title)}
|
|
59
|
+
</p>
|
|
60
|
+
|
|
61
|
+
<span className={'flex items-center gap-[10px] border-b border-solid border-white pb-[10px] text-[20px] font-[500] leading-[1] ' +
|
|
62
|
+
'max-3xl:text-[18px] ' +
|
|
63
|
+
'lg:transition-[width] lg:duration-500 ' +
|
|
64
|
+
'max-lg:pb-[6px] max-lg:text-[14px]'}>
|
|
65
|
+
{router.locale === 'en' ? (<span className={'text-[0.8em]'}>{item.buttonText}</span>) : (item.buttonText)}
|
|
66
|
+
<span className={'relative block h-[14px] w-[8px] ' +
|
|
67
|
+
'max-3xl:h-[12px] max-3xl:w-[6px] ' +
|
|
68
|
+
'lg:duration-500 lg:group-hover:w-[18px] lg:group-hover:transition-[width] 3xl:group-hover:w-[20px] ' +
|
|
69
|
+
'max-lg:hidden'}>
|
|
70
|
+
<span className={'absolute right-[1px] top-1/2 block h-[2px] w-0 -translate-y-1/2 bg-white opacity-0 ' +
|
|
71
|
+
'lg:transition-[width,opacity] lg:duration-500 lg:group-hover:w-5 lg:group-hover:opacity-100'}></span>
|
|
72
|
+
<Image src={imagePath + `/strength_new/arrow_2.webp`} alt={'강점'} fill className={'relative z-0 object-contain object-right'} quality={100}/>
|
|
73
|
+
</span>
|
|
74
|
+
</span>
|
|
75
|
+
</span>
|
|
76
|
+
</Link>);
|
|
77
|
+
})}
|
|
78
|
+
</div>
|
|
79
|
+
</Wrapper>
|
|
80
|
+
</section>);
|
|
81
|
+
};
|
|
82
|
+
export default LawyerSection;
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import Image from 'next/image';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Link from 'next/link';
|
|
4
|
+
import { useRouter } from 'next/router';
|
|
5
|
+
import Wrapper from '../../../../Layout/Wrapper';
|
|
6
|
+
|
|
7
|
+
const LawyerSection = ({
|
|
8
|
+
lawyer_title_1,
|
|
9
|
+
lawyer_title_2,
|
|
10
|
+
lawyer_link_list
|
|
11
|
+
}: {
|
|
12
|
+
lawyer_title_1: string;
|
|
13
|
+
lawyer_title_2: string;
|
|
14
|
+
lawyer_link_list: {
|
|
15
|
+
title: string;
|
|
16
|
+
buttonText: string;
|
|
17
|
+
url: string;
|
|
18
|
+
color: string;
|
|
19
|
+
}[];
|
|
20
|
+
}) => {
|
|
21
|
+
const imagePath: string = process.env.NEXT_PUBLIC_S3_URL + '';
|
|
22
|
+
const router = useRouter();
|
|
23
|
+
return (
|
|
24
|
+
<section
|
|
25
|
+
className={
|
|
26
|
+
'relative flex h-[400px] w-full items-center tracking-[-0.04em] max-3xl:h-[340px] max-lg:h-[240px] max-md:h-fit'
|
|
27
|
+
}
|
|
28
|
+
>
|
|
29
|
+
<Wrapper
|
|
30
|
+
className={
|
|
31
|
+
'!static z-10 flex w-full items-center justify-between max-md:flex-col max-md:items-start max-md:gap-10 max-md:py-10 max-xs:pl-5 '
|
|
32
|
+
}
|
|
33
|
+
>
|
|
34
|
+
<Image
|
|
35
|
+
src={imagePath + `/strength_new/lawyer_bg.webp`}
|
|
36
|
+
alt={'강점'}
|
|
37
|
+
fill
|
|
38
|
+
className={'absolute left-0 top-0 z-[-1] object-cover max-md:hidden'}
|
|
39
|
+
quality={100}
|
|
40
|
+
/>
|
|
41
|
+
<Image
|
|
42
|
+
src={imagePath + `/strength_new/lawyer_bg_mo.webp`}
|
|
43
|
+
alt={'강점'}
|
|
44
|
+
fill
|
|
45
|
+
className={'absolute left-0 top-0 z-[-1] object-cover md:hidden'}
|
|
46
|
+
quality={100}
|
|
47
|
+
/>
|
|
48
|
+
<div
|
|
49
|
+
className={
|
|
50
|
+
'text-[40px] font-medium leading-[1.4] ' +
|
|
51
|
+
'max-3xl:text-[32px] ' +
|
|
52
|
+
'max-xl:text-[26px] ' +
|
|
53
|
+
'max-lg:text-[24px] ' +
|
|
54
|
+
'max-md:pl-5 max-md:leading-[1.3] '
|
|
55
|
+
}
|
|
56
|
+
>
|
|
57
|
+
{router.locale === 'en' ? (
|
|
58
|
+
<>
|
|
59
|
+
<p className={'text-[0.9em]'} dangerouslySetInnerHTML={{ __html: lawyer_title_1 }} />
|
|
60
|
+
<p
|
|
61
|
+
className={
|
|
62
|
+
'pl-[245px] text-[0.9em] ' +
|
|
63
|
+
'max-3xl:pl-[195px] ' +
|
|
64
|
+
'max-xl:pl-[158px] ' +
|
|
65
|
+
'max-lg:pl-[70px] ' +
|
|
66
|
+
'max-md:mt-[10px] max-md:pl-0'
|
|
67
|
+
}
|
|
68
|
+
dangerouslySetInnerHTML={{ __html: lawyer_title_2 }}
|
|
69
|
+
/>
|
|
70
|
+
</>
|
|
71
|
+
) : (
|
|
72
|
+
<>
|
|
73
|
+
<p dangerouslySetInnerHTML={{ __html: lawyer_title_1 }} />
|
|
74
|
+
<p
|
|
75
|
+
className={
|
|
76
|
+
'pl-[245px] ' +
|
|
77
|
+
'max-3xl:pl-[195px] ' +
|
|
78
|
+
'max-xl:pl-[158px] ' +
|
|
79
|
+
'max-lg:pl-[70px] ' +
|
|
80
|
+
'max-md:mt-[10px] max-md:pl-0'
|
|
81
|
+
}
|
|
82
|
+
dangerouslySetInnerHTML={{ __html: lawyer_title_2 }}
|
|
83
|
+
/>
|
|
84
|
+
</>
|
|
85
|
+
)}
|
|
86
|
+
</div>
|
|
87
|
+
<div
|
|
88
|
+
className={
|
|
89
|
+
'flex gap-5 tracking-[-0.04em] ' +
|
|
90
|
+
'max-3xl:gap-3 ' +
|
|
91
|
+
'max-lg:gap-[10px] ' +
|
|
92
|
+
'max-md2:gap-0 ' +
|
|
93
|
+
'max-md:gap-[15px] ' +
|
|
94
|
+
'max-xs:gap-[10px]'
|
|
95
|
+
}
|
|
96
|
+
>
|
|
97
|
+
{lawyer_link_list.map((item, index) => {
|
|
98
|
+
return (
|
|
99
|
+
<Link
|
|
100
|
+
href={item.url}
|
|
101
|
+
className={
|
|
102
|
+
'group relative h-[240px] w-[240px] rounded-full ' +
|
|
103
|
+
'max-3xl:h-[200px] max-3xl:w-[200px] ' +
|
|
104
|
+
'max-lg:h-[160px] max-lg:w-[160px] '
|
|
105
|
+
}
|
|
106
|
+
key={index}
|
|
107
|
+
>
|
|
108
|
+
<span
|
|
109
|
+
style={{ backgroundColor: item.color }}
|
|
110
|
+
className={
|
|
111
|
+
'absolute right-1/2 top-1/2 flex h-[220px] w-[220px] -translate-y-1/2 translate-x-1/2 rounded-full ' +
|
|
112
|
+
'max-3xl:h-[180px] max-3xl:w-[180px] ' +
|
|
113
|
+
'max-lg:h-[140px] max-lg:w-[140px] max-lg:gap-[18px] ' +
|
|
114
|
+
'mix-blend-multiply'
|
|
115
|
+
}
|
|
116
|
+
/>
|
|
117
|
+
{/*선*/}
|
|
118
|
+
<span
|
|
119
|
+
style={{ borderColor: item.color }}
|
|
120
|
+
className={
|
|
121
|
+
'absolute right-1/2 top-1/2 h-[230px] w-[230px] -translate-y-1/2 translate-x-1/2 rounded-full border border-solid ' +
|
|
122
|
+
'max-3xl:h-[190px] max-3xl:w-[190px] ' +
|
|
123
|
+
'max-lg:h-[150px] max-lg:w-[150px] ' +
|
|
124
|
+
'lg:transition-[width,height] lg:duration-500 lg:group-hover:h-[200px] lg:group-hover:w-[200px] 3xl:group-hover:h-[240px] 3xl:group-hover:w-[240px] '
|
|
125
|
+
}
|
|
126
|
+
></span>
|
|
127
|
+
{/*내용*/}
|
|
128
|
+
<span
|
|
129
|
+
className={
|
|
130
|
+
'absolute right-1/2 top-1/2 flex h-[220px] w-[220px] -translate-y-1/2 translate-x-1/2 flex-col items-center justify-center gap-5 rounded-full text-white ' +
|
|
131
|
+
'max-3xl:h-[180px] max-3xl:w-[180px] ' +
|
|
132
|
+
'max-lg:h-[140px] max-lg:w-[140px] max-lg:gap-[18px] '
|
|
133
|
+
}
|
|
134
|
+
>
|
|
135
|
+
<p
|
|
136
|
+
className={
|
|
137
|
+
'whitespace-pre-wrap text-center text-[24px] font-[700] leading-[1.3] max-3xl:text-[20px] max-lg:text-[16px]'
|
|
138
|
+
}
|
|
139
|
+
>
|
|
140
|
+
{router.locale === 'en' ? (
|
|
141
|
+
<span className={'text-[0.9em]'}>{item.title}</span>
|
|
142
|
+
) : (
|
|
143
|
+
item.title
|
|
144
|
+
)}
|
|
145
|
+
</p>
|
|
146
|
+
|
|
147
|
+
<span
|
|
148
|
+
className={
|
|
149
|
+
'flex items-center gap-[10px] border-b border-solid border-white pb-[10px] text-[20px] font-[500] leading-[1] ' +
|
|
150
|
+
'max-3xl:text-[18px] ' +
|
|
151
|
+
'lg:transition-[width] lg:duration-500 ' +
|
|
152
|
+
'max-lg:pb-[6px] max-lg:text-[14px]'
|
|
153
|
+
}
|
|
154
|
+
>
|
|
155
|
+
{router.locale === 'en' ? (
|
|
156
|
+
<span className={'text-[0.8em]'}>{item.buttonText}</span>
|
|
157
|
+
) : (
|
|
158
|
+
item.buttonText
|
|
159
|
+
)}
|
|
160
|
+
<span
|
|
161
|
+
className={
|
|
162
|
+
'relative block h-[14px] w-[8px] ' +
|
|
163
|
+
'max-3xl:h-[12px] max-3xl:w-[6px] ' +
|
|
164
|
+
'lg:duration-500 lg:group-hover:w-[18px] lg:group-hover:transition-[width] 3xl:group-hover:w-[20px] ' +
|
|
165
|
+
'max-lg:hidden'
|
|
166
|
+
}
|
|
167
|
+
>
|
|
168
|
+
<span
|
|
169
|
+
className={
|
|
170
|
+
'absolute right-[1px] top-1/2 block h-[2px] w-0 -translate-y-1/2 bg-white opacity-0 ' +
|
|
171
|
+
'lg:transition-[width,opacity] lg:duration-500 lg:group-hover:w-5 lg:group-hover:opacity-100'
|
|
172
|
+
}
|
|
173
|
+
></span>
|
|
174
|
+
<Image
|
|
175
|
+
src={imagePath + `/strength_new/arrow_2.webp`}
|
|
176
|
+
alt={'강점'}
|
|
177
|
+
fill
|
|
178
|
+
className={'relative z-0 object-contain object-right'}
|
|
179
|
+
quality={100}
|
|
180
|
+
/>
|
|
181
|
+
</span>
|
|
182
|
+
</span>
|
|
183
|
+
</span>
|
|
184
|
+
</Link>
|
|
185
|
+
);
|
|
186
|
+
})}
|
|
187
|
+
</div>
|
|
188
|
+
</Wrapper>
|
|
189
|
+
</section>
|
|
190
|
+
);
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
export default LawyerSection;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IViewMoreListTypes } from '../../../../common/types/strength_new';
|
|
3
|
+
import { IInitialDataTypes } from '../../../../common';
|
|
4
|
+
declare const ViewMoreSection: ({ view_more_section_title, view_more_list, initialData }: {
|
|
5
|
+
view_more_section_title: string;
|
|
6
|
+
view_more_list: IViewMoreListTypes[];
|
|
7
|
+
initialData: IInitialDataTypes;
|
|
8
|
+
}) => React.JSX.Element;
|
|
9
|
+
export default ViewMoreSection;
|