@daeryun/dr_components 1.0.9 → 1.0.11

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.
Files changed (45) hide show
  1. package/dist/components/common/types/strength_new/index.d.ts +65 -0
  2. package/dist/components/common/types/strength_new/index.js +1 -0
  3. package/dist/components/common/types/strength_new/index.ts +68 -0
  4. package/dist/components/page/LawInfoNew/LawInfoNew.jsx +21 -20
  5. package/dist/components/page/LawInfoNew/LawInfoNew.tsx +37 -24
  6. package/dist/components/page/LawInfoNew/LawInfoNewTypes.d.ts +1 -1
  7. package/dist/components/page/LawInfoNew/LawInfoNewTypes.ts +1 -1
  8. package/dist/components/page/StrengthNew/StrengthNew.d.ts +8 -0
  9. package/dist/components/page/StrengthNew/StrengthNew.jsx +11 -0
  10. package/dist/components/page/StrengthNew/StrengthNew.tsx +28 -0
  11. package/dist/components/page/StrengthNew/StrengthPeople.d.ts +8 -0
  12. package/dist/components/page/StrengthNew/StrengthPeople.jsx +13 -0
  13. package/dist/components/page/StrengthNew/StrengthPeople.tsx +34 -0
  14. package/dist/components/page/StrengthNew/StrengthSystem.d.ts +8 -0
  15. package/dist/components/page/StrengthNew/StrengthSystem.jsx +13 -0
  16. package/dist/components/page/StrengthNew/StrengthSystem.tsx +35 -0
  17. package/dist/components/page/StrengthNew/components/common/BannerSection.d.ts +13 -0
  18. package/dist/components/page/StrengthNew/components/common/BannerSection.jsx +111 -0
  19. package/dist/components/page/StrengthNew/components/common/BannerSection.tsx +231 -0
  20. package/dist/components/page/StrengthNew/components/common/LawyerSection.d.ts +12 -0
  21. package/dist/components/page/StrengthNew/components/common/LawyerSection.jsx +82 -0
  22. package/dist/components/page/StrengthNew/components/common/LawyerSection.tsx +193 -0
  23. package/dist/components/page/StrengthNew/components/common/ViewMoreSection.d.ts +9 -0
  24. package/dist/components/page/StrengthNew/components/common/ViewMoreSection.jsx +141 -0
  25. package/dist/components/page/StrengthNew/components/common/ViewMoreSection.tsx +297 -0
  26. package/dist/components/page/StrengthNew/components/main/IntroSection.d.ts +6 -0
  27. package/dist/components/page/StrengthNew/components/main/IntroSection.jsx +66 -0
  28. package/dist/components/page/StrengthNew/components/main/IntroSection.tsx +115 -0
  29. package/dist/components/page/StrengthNew/components/people/PeopleSection.d.ts +10 -0
  30. package/dist/components/page/StrengthNew/components/people/PeopleSection.jsx +166 -0
  31. package/dist/components/page/StrengthNew/components/people/PeopleSection.tsx +324 -0
  32. package/dist/components/page/StrengthNew/components/system/SystemSection.d.ts +6 -0
  33. package/dist/components/page/StrengthNew/components/system/SystemSection.jsx +270 -0
  34. package/dist/components/page/StrengthNew/components/system/SystemSection.tsx +495 -0
  35. package/dist/components/page/SuccessNew/SuccessNewType.d.ts +1 -0
  36. package/dist/components/page/SuccessNew/SuccessNewType.ts +1 -0
  37. package/dist/components/page/SuccessNew/components/H2Contents.d.ts +2 -1
  38. package/dist/components/page/SuccessNew/components/H2Contents.jsx +44 -6
  39. package/dist/components/page/SuccessNew/components/H2Contents.tsx +64 -12
  40. package/dist/components/page/SuccessNew/components/H3Contents.d.ts +2 -1
  41. package/dist/components/page/SuccessNew/components/H3Contents.jsx +43 -5
  42. package/dist/components/page/SuccessNew/components/H3Contents.tsx +57 -9
  43. package/dist/styles/globals.css +1091 -0
  44. package/dist/tsconfig.tsbuildinfo +1 -1
  45. package/package.json +1 -1
@@ -0,0 +1,141 @@
1
+ import Link from 'next/link';
2
+ import React from 'react';
3
+ import Image from 'next/image';
4
+ import { usePathname } from 'next/navigation';
5
+ import { useRouter } from 'next/router';
6
+ import Wrapper from '../../../../Layout/Wrapper';
7
+ import { replaceInitialData } from '../../../../../lib';
8
+ const ViewMoreSection = ({ view_more_section_title, view_more_list, initialData }) => {
9
+ const pathname = usePathname();
10
+ const isMain = pathname === '/strength';
11
+ return (<section className={'relative w-full pb-[180px] max-lg:pb-20 ' + (isMain ? ' pt-[100px]' : 'pt-[180px]')}>
12
+ <Wrapper className={'pt-10'}>
13
+ <h2 className={'text-center text-[36px] font-[800] leading-[1] tracking-[-0.04em] max-lg:text-[28px]'}>
14
+ {view_more_section_title}
15
+ </h2>
16
+ <div className={(isMain ? 'grid-cols-4' : 'grid-cols-3 ') + ' mt-10 grid gap-5 max-xl:hidden'}>
17
+ {view_more_list.map((item, index) => {
18
+ return <ViewMorePCItem key={index} item={item} index={index} initialData={initialData}/>;
19
+ })}
20
+ </div>
21
+ <div className={'mt-[20px] grid max-xl:grid-cols-1 max-xs:mt-0 xl:hidden'}>
22
+ {view_more_list.map((item, index) => {
23
+ return <ViewMoreTabItem key={index} item={item} index={index} initialData={initialData}/>;
24
+ })}
25
+ </div>
26
+ </Wrapper>
27
+ </section>);
28
+ };
29
+ export default ViewMoreSection;
30
+ const ViewMorePCItem = ({ item, index, initialData }) => {
31
+ const imagePath = process.env.NEXT_PUBLIC_S3_URL + '';
32
+ const pathname = usePathname();
33
+ const router = useRouter();
34
+ const hidden = pathname.includes(item.url); //이미지 순서 밀림때문에 히든으로 처리
35
+ return (<Link href={`/strength/${item.url}`} className={`view_more_${index} group flex h-[598px] w-full flex-col border-b border-solid border-black pb-10 tracking-[-0.04em] max-3xl:h-[530px] max-xl:hidden ` +
36
+ (hidden ? '!hidden' : '')}>
37
+ <style>
38
+ {`
39
+ .view_more_${index} h3 {
40
+ color: ${item.color};
41
+ }
42
+ .view_more_${index}:hover h3 {
43
+ color: #AA1D36;
44
+ }
45
+ .view_more_${index} .circle {
46
+ background-color: ${item.color};
47
+ }
48
+ .view_more_${index}:hover .circle {
49
+ background-color: #AA1D36;
50
+ }
51
+ .view_more_${index}:hover .view_more_text {
52
+ color: #AA1D36;
53
+ font-weight: 600;
54
+ }
55
+
56
+ .view_more_${index} .logo_span {
57
+ background-size: contain;
58
+ background-position: center;
59
+ background-color: #57000F;
60
+ background-blend-mode: darken;
61
+ }
62
+ `}
63
+ </style>
64
+
65
+ <span className={'group relative h-fit w-full'}>
66
+ <span className={'absolute left-0 top-0 z-[1] block h-full w-full bg-[#57000F] opacity-0 mix-blend-color transition-opacity duration-500 group-hover:opacity-100'}/>
67
+ <span className={'absolute left-[50%] top-[50%] z-[1] block h-[60px] w-[94px] -translate-x-1/2 -translate-y-1/2 opacity-0 ' +
68
+ 'max-3xl:h-[50px] max-3xl:w-[80px] ' +
69
+ 'mix-blend-overlay transition-opacity duration-500 group-hover:opacity-70 '}>
70
+ <Image src={`${imagePath}/strength_new/logo_white.webp`} alt={'강점'} fill sizes="(max-width: 1500px) 80px, 94px" className={'object-cover'}/>
71
+ </span>
72
+
73
+ <div className={`relative flex h-[200px] w-full items-center justify-center overflow-hidden duration-500 max-3xl:h-[180px]`}>
74
+ <Image src={`${imagePath}/strength_new/viewmore_${index + 1}.webp`} alt={'강점'} fill sizes="(max-width: 700px) 95vw, (max-width: 1280px) 260px, 33vw" className={'object-cover transition-transform duration-500 group-hover:scale-[120%]'}/>
75
+ </div>
76
+ </span>
77
+
78
+ <h3 className={'mt-10 text-[32px] font-[800] leading-none transition-colors duration-500 max-3xl:mt-8 max-3xl:text-[30px]'}>
79
+ {router.locale === 'en' ? (<span className={'line-clamp-1 text-[0.9em]'}>{item.title}</span>) : (item.title)}
80
+ </h3>
81
+ <p className={'mt-6 line-clamp-2 min-h-[62px] text-[24px] font-[600] leading-[1.3] max-3xl:mt-4 max-3xl:text-[22px]'}>
82
+ {router.locale === 'en' ? <span className={'text-[0.9em]'}>{item.subTitle}</span> : item.subTitle}
83
+ </p>
84
+ <p className={'mt-6 line-clamp-4 font-[400] leading-[1.4] max-3xl:mt-4 max-3xl:text-[18px] ' +
85
+ (router.locale === 'en' ? 'text-[18px]' : 'text-[20px]')} dangerouslySetInnerHTML={{
86
+ __html: replaceInitialData(item.description.replace('*consult_date*', `<span class='text-[16px] max-3xl:text-[16px]'>*consult_date*</span>`), initialData)
87
+ }}></p>
88
+ <div className={'mt-auto flex justify-end'}>
89
+ <span className={'view_more_text flex items-center gap-[10px] text-[20px] leading-[1] transition-[color,font-weight] duration-500 max-3xl:text-[18px]'}>
90
+ {item.view_more_text}
91
+ <span className={'circle flex h-8 w-8 items-center justify-center rounded-full transition-[background-color] duration-500 max-3xl:h-7 max-3xl:w-7'}>
92
+ <span className={'relative block h-[14px] w-[17px] opacity-0 transition-opacity duration-500 group-hover:opacity-100 max-3xl:h-[12px] max-3xl:w-[15px]'}>
93
+ <Image src={imagePath + `/strength_new/arrow.webp`} alt={'강점'} fill className={'object-contain'} quality={100}/>
94
+ </span>
95
+ </span>
96
+ </span>
97
+ </div>
98
+ </Link>);
99
+ };
100
+ const ViewMoreTabItem = ({ item, index, initialData }) => {
101
+ const imagePath = process.env.NEXT_PUBLIC_S3_URL + '';
102
+ const pathname = usePathname();
103
+ const hidden = pathname.includes(item.url); //이미지 순서 밀림때문에 히든으로 처리
104
+ return (<Link href={`/strength/${item.url}`} className={'group flex w-full gap-10 border-b border-solid border-black py-10 tracking-[-0.04em] ' +
105
+ 'max-md:gap-8 ' +
106
+ 'max-[700px]:flex-col max-[700px]:gap-6 max-[700px]:pb-5 ' +
107
+ 'xl:hidden ' +
108
+ (hidden ? '!hidden' : '')}>
109
+ <div className={'relative h-fit w-fit max-[700px]:w-full'}>
110
+ <div className={'absolute right-1/2 top-1/2 z-20 h-[40px] w-[62px] -translate-y-1/2 translate-x-1/2 opacity-70 mix-blend-overlay '}>
111
+ <Image src={`${imagePath}/strength_new/logo_white.webp`} alt={'강점'} fill sizes="62px" className={'object-cover'}/>
112
+ </div>
113
+ <div className={'relative h-[128px] w-[260px] shrink-0 ' +
114
+ 'max-lg:h-[148px] max-md:w-[220px] ' +
115
+ 'max-[700px]:h-[100px] max-[700px]:w-full'}>
116
+ <Image src={`${imagePath}/strength_new/viewmore_tab_${index + 1}.webp`} alt={'강점'} fill sizes="(max-width: 700px) 95vw, (max-width: 1280px) 260px, 33vw" className={'object-cover'}/>
117
+ </div>
118
+ </div>
119
+ <div className={'flex flex-col gap-4 max-xs:gap-[10px]'}>
120
+ <div className={'flex justify-between'}>
121
+ <h3 className={'text-[24px] font-[800] leading-none max-md:text-[22px] max-xs:text-[20px]'} style={{ color: item.color }}>
122
+ {item.title}
123
+ </h3>
124
+ <div className={'mt-auto flex justify-end'}>
125
+ <span className={'flex items-center gap-[10px] text-[16px] leading-[1] '}>
126
+ {item.view_more_text}
127
+ <span style={{ backgroundColor: item.color }} className={'flex h-6 w-6 items-center justify-center rounded-full '}>
128
+ <span className={'relative block h-[12px] w-[16px]'}>
129
+ <Image src={imagePath + `/strength_new/arrow.webp`} alt={'강점'} fill sizes="16px" className={'object-contain'} quality={100}/>
130
+ </span>
131
+ </span>
132
+ </span>
133
+ </div>
134
+ </div>
135
+ <p className={'text-[20px] font-[600] leading-[1.3] max-xs:mt-[10px]'}>{item.subTitle}</p>
136
+ <p className={'text-[16px] font-[400] leading-[1.4] '} dangerouslySetInnerHTML={{
137
+ __html: replaceInitialData(item.description.replace('*consult_date*', `<span class='text-[14px]'>*consult_date*</span>`), initialData)
138
+ }}></p>
139
+ </div>
140
+ </Link>);
141
+ };
@@ -0,0 +1,297 @@
1
+ import Link from 'next/link';
2
+ import React, { useEffect, useState } from 'react';
3
+ import Image from 'next/image';
4
+
5
+ import { usePathname } from 'next/navigation';
6
+
7
+ import { useRouter } from 'next/router';
8
+ import { IViewMoreListTypes } from '../../../../common/types/strength_new';
9
+ import { IInitialDataTypes } from '../../../../common';
10
+ import Wrapper from '../../../../Layout/Wrapper';
11
+ import { replaceInitialData } from '../../../../../lib';
12
+
13
+ const ViewMoreSection = ({
14
+ view_more_section_title,
15
+ view_more_list,
16
+ initialData
17
+ }: {
18
+ view_more_section_title: string;
19
+ view_more_list: IViewMoreListTypes[];
20
+ initialData: IInitialDataTypes;
21
+ }) => {
22
+ const pathname = usePathname();
23
+ const isMain = pathname === '/strength';
24
+
25
+ return (
26
+ <section className={'relative w-full pb-[180px] max-lg:pb-20 ' + (isMain ? ' pt-[100px]' : 'pt-[180px]')}>
27
+ <Wrapper className={'pt-10'}>
28
+ <h2 className={'text-center text-[36px] font-[800] leading-[1] tracking-[-0.04em] max-lg:text-[28px]'}>
29
+ {view_more_section_title}
30
+ </h2>
31
+ <div className={(isMain ? 'grid-cols-4' : 'grid-cols-3 ') + ' mt-10 grid gap-5 max-xl:hidden'}>
32
+ {view_more_list.map((item, index) => {
33
+ return <ViewMorePCItem key={index} item={item} index={index} initialData={initialData} />;
34
+ })}
35
+ </div>
36
+ <div className={'mt-[20px] grid max-xl:grid-cols-1 max-xs:mt-0 xl:hidden'}>
37
+ {view_more_list.map((item, index) => {
38
+ return <ViewMoreTabItem key={index} item={item} index={index} initialData={initialData} />;
39
+ })}
40
+ </div>
41
+ </Wrapper>
42
+ </section>
43
+ );
44
+ };
45
+
46
+ export default ViewMoreSection;
47
+
48
+ const ViewMorePCItem = ({
49
+ item,
50
+ index,
51
+ initialData
52
+ }: {
53
+ item: IViewMoreListTypes;
54
+ index: number;
55
+ initialData: IInitialDataTypes;
56
+ }) => {
57
+ const imagePath: string = process.env.NEXT_PUBLIC_S3_URL + '';
58
+ const pathname = usePathname();
59
+ const router = useRouter();
60
+ const hidden = pathname.includes(item.url); //이미지 순서 밀림때문에 히든으로 처리
61
+
62
+ return (
63
+ <Link
64
+ href={`/strength/${item.url}`}
65
+ className={
66
+ `view_more_${index} group flex h-[598px] w-full flex-col border-b border-solid border-black pb-10 tracking-[-0.04em] max-3xl:h-[530px] max-xl:hidden ` +
67
+ (hidden ? '!hidden' : '')
68
+ }
69
+ >
70
+ <style>
71
+ {`
72
+ .view_more_${index} h3 {
73
+ color: ${item.color};
74
+ }
75
+ .view_more_${index}:hover h3 {
76
+ color: #AA1D36;
77
+ }
78
+ .view_more_${index} .circle {
79
+ background-color: ${item.color};
80
+ }
81
+ .view_more_${index}:hover .circle {
82
+ background-color: #AA1D36;
83
+ }
84
+ .view_more_${index}:hover .view_more_text {
85
+ color: #AA1D36;
86
+ font-weight: 600;
87
+ }
88
+
89
+ .view_more_${index} .logo_span {
90
+ background-size: contain;
91
+ background-position: center;
92
+ background-color: #57000F;
93
+ background-blend-mode: darken;
94
+ }
95
+ `}
96
+ </style>
97
+
98
+ <span className={'group relative h-fit w-full'}>
99
+ <span
100
+ className={
101
+ 'absolute left-0 top-0 z-[1] block h-full w-full bg-[#57000F] opacity-0 mix-blend-color transition-opacity duration-500 group-hover:opacity-100'
102
+ }
103
+ />
104
+ <span
105
+ className={
106
+ 'absolute left-[50%] top-[50%] z-[1] block h-[60px] w-[94px] -translate-x-1/2 -translate-y-1/2 opacity-0 ' +
107
+ 'max-3xl:h-[50px] max-3xl:w-[80px] ' +
108
+ 'mix-blend-overlay transition-opacity duration-500 group-hover:opacity-70 '
109
+ }
110
+ >
111
+ <Image
112
+ src={`${imagePath}/strength_new/logo_white.webp`}
113
+ alt={'강점'}
114
+ fill
115
+ sizes="(max-width: 1500px) 80px, 94px"
116
+ className={'object-cover'}
117
+ />
118
+ </span>
119
+
120
+ <div
121
+ className={`relative flex h-[200px] w-full items-center justify-center overflow-hidden duration-500 max-3xl:h-[180px]`}
122
+ >
123
+ <Image
124
+ src={`${imagePath}/strength_new/viewmore_${index + 1}.webp`}
125
+ alt={'강점'}
126
+ fill
127
+ sizes="(max-width: 700px) 95vw, (max-width: 1280px) 260px, 33vw"
128
+ className={'object-cover transition-transform duration-500 group-hover:scale-[120%]'}
129
+ // sizes={'width: 94px'}
130
+ />
131
+ </div>
132
+ </span>
133
+
134
+ <h3
135
+ className={
136
+ 'mt-10 text-[32px] font-[800] leading-none transition-colors duration-500 max-3xl:mt-8 max-3xl:text-[30px]'
137
+ }
138
+ >
139
+ {router.locale === 'en' ? (
140
+ <span className={'line-clamp-1 text-[0.9em]'}>{item.title}</span>
141
+ ) : (
142
+ item.title
143
+ )}
144
+ </h3>
145
+ <p
146
+ className={
147
+ 'mt-6 line-clamp-2 min-h-[62px] text-[24px] font-[600] leading-[1.3] max-3xl:mt-4 max-3xl:text-[22px]'
148
+ }
149
+ >
150
+ {router.locale === 'en' ? <span className={'text-[0.9em]'}>{item.subTitle}</span> : item.subTitle}
151
+ </p>
152
+ <p
153
+ className={
154
+ 'mt-6 line-clamp-4 font-[400] leading-[1.4] max-3xl:mt-4 max-3xl:text-[18px] ' +
155
+ (router.locale === 'en' ? 'text-[18px]' : 'text-[20px]')
156
+ }
157
+ dangerouslySetInnerHTML={{
158
+ __html: replaceInitialData(
159
+ item.description.replace(
160
+ '*consult_date*',
161
+ `<span class='text-[16px] max-3xl:text-[16px]'>*consult_date*</span>`
162
+ ),
163
+ initialData
164
+ )
165
+ }}
166
+ ></p>
167
+ <div className={'mt-auto flex justify-end'}>
168
+ <span
169
+ className={
170
+ 'view_more_text flex items-center gap-[10px] text-[20px] leading-[1] transition-[color,font-weight] duration-500 max-3xl:text-[18px]'
171
+ }
172
+ >
173
+ {item.view_more_text}
174
+ <span
175
+ className={
176
+ 'circle flex h-8 w-8 items-center justify-center rounded-full transition-[background-color] duration-500 max-3xl:h-7 max-3xl:w-7'
177
+ }
178
+ >
179
+ <span
180
+ className={
181
+ 'relative block h-[14px] w-[17px] opacity-0 transition-opacity duration-500 group-hover:opacity-100 max-3xl:h-[12px] max-3xl:w-[15px]'
182
+ }
183
+ >
184
+ <Image
185
+ src={imagePath + `/strength_new/arrow.webp`}
186
+ alt={'강점'}
187
+ fill
188
+ className={'object-contain'}
189
+ quality={100}
190
+ />
191
+ </span>
192
+ </span>
193
+ </span>
194
+ </div>
195
+ </Link>
196
+ );
197
+ };
198
+
199
+ const ViewMoreTabItem = ({
200
+ item,
201
+ index,
202
+ initialData
203
+ }: {
204
+ item: IViewMoreListTypes;
205
+ index: number;
206
+ initialData: IInitialDataTypes;
207
+ }) => {
208
+ const imagePath: string = process.env.NEXT_PUBLIC_S3_URL + '';
209
+ const pathname = usePathname();
210
+ const hidden = pathname.includes(item.url); //이미지 순서 밀림때문에 히든으로 처리
211
+ return (
212
+ <Link
213
+ href={`/strength/${item.url}`}
214
+ className={
215
+ 'group flex w-full gap-10 border-b border-solid border-black py-10 tracking-[-0.04em] ' +
216
+ 'max-md:gap-8 ' +
217
+ 'max-[700px]:flex-col max-[700px]:gap-6 max-[700px]:pb-5 ' +
218
+ 'xl:hidden ' +
219
+ (hidden ? '!hidden' : '')
220
+ }
221
+ >
222
+ <div className={'relative h-fit w-fit max-[700px]:w-full'}>
223
+ <div
224
+ className={
225
+ 'absolute right-1/2 top-1/2 z-20 h-[40px] w-[62px] -translate-y-1/2 translate-x-1/2 opacity-70 mix-blend-overlay '
226
+ }
227
+ >
228
+ <Image
229
+ src={`${imagePath}/strength_new/logo_white.webp`}
230
+ alt={'강점'}
231
+ fill
232
+ sizes="62px"
233
+ className={'object-cover'}
234
+ />
235
+ </div>
236
+ <div
237
+ className={
238
+ 'relative h-[128px] w-[260px] shrink-0 ' +
239
+ 'max-lg:h-[148px] max-md:w-[220px] ' +
240
+ 'max-[700px]:h-[100px] max-[700px]:w-full'
241
+ }
242
+ >
243
+ <Image
244
+ src={`${imagePath}/strength_new/viewmore_tab_${index + 1}.webp`}
245
+ alt={'강점'}
246
+ fill
247
+ sizes="(max-width: 700px) 95vw, (max-width: 1280px) 260px, 33vw"
248
+ className={'object-cover'}
249
+ />
250
+ </div>
251
+ </div>
252
+ <div className={'flex flex-col gap-4 max-xs:gap-[10px]'}>
253
+ <div className={'flex justify-between'}>
254
+ <h3
255
+ className={'text-[24px] font-[800] leading-none max-md:text-[22px] max-xs:text-[20px]'}
256
+ style={{ color: item.color }}
257
+ >
258
+ {item.title}
259
+ </h3>
260
+ <div className={'mt-auto flex justify-end'}>
261
+ <span className={'flex items-center gap-[10px] text-[16px] leading-[1] '}>
262
+ {item.view_more_text}
263
+ <span
264
+ style={{ backgroundColor: item.color }}
265
+ className={'flex h-6 w-6 items-center justify-center rounded-full '}
266
+ >
267
+ <span className={'relative block h-[12px] w-[16px]'}>
268
+ <Image
269
+ src={imagePath + `/strength_new/arrow.webp`}
270
+ alt={'강점'}
271
+ fill
272
+ sizes="16px"
273
+ className={'object-contain'}
274
+ quality={100}
275
+ />
276
+ </span>
277
+ </span>
278
+ </span>
279
+ </div>
280
+ </div>
281
+ <p className={'text-[20px] font-[600] leading-[1.3] max-xs:mt-[10px]'}>{item.subTitle}</p>
282
+ <p
283
+ className={'text-[16px] font-[400] leading-[1.4] '}
284
+ dangerouslySetInnerHTML={{
285
+ __html: replaceInitialData(
286
+ item.description.replace(
287
+ '*consult_date*',
288
+ `<span class='text-[14px]'>*consult_date*</span>`
289
+ ),
290
+ initialData
291
+ )
292
+ }}
293
+ ></p>
294
+ </div>
295
+ </Link>
296
+ );
297
+ };
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { IMainPageDataTypes } from '../../../../common/types/strength_new';
3
+ declare const IntroSection: ({ data }: {
4
+ data: IMainPageDataTypes;
5
+ }) => React.JSX.Element;
6
+ export default IntroSection;
@@ -0,0 +1,66 @@
1
+ import Image from 'next/image';
2
+ import React from 'react';
3
+ import Link from 'next/link';
4
+ import Wrapper from '../../../../Layout/Wrapper';
5
+ const IntroSection = ({ data }) => {
6
+ const imagePath = process.env.NEXT_PUBLIC_S3_URL + '';
7
+ return (<section className={'relative w-full py-[100px] max-lg:py-20 max-xs:py-10'}>
8
+ <Wrapper>
9
+ <div className={'mx-auto flex max-w-[1400px] flex-col gap-10 text-[24px] font-[400] leading-[1.8] tracking-[-0.04em] ' +
10
+ 'max-3xl:text-[22px] ' +
11
+ 'max-lg:text-[20px] ' +
12
+ 'max-xs:text-[16px]'}>
13
+ <p dangerouslySetInnerHTML={{ __html: data.p_1 }}/>
14
+ <p dangerouslySetInnerHTML={{ __html: data.p_2 }}/>
15
+
16
+ <div className={'relative flex w-full flex-col py-10 max-xs:pt-0'}>
17
+ <div className={'flex w-[54.5%] flex-col gap-10 max-3xl:w-[60%] max-lg:w-[50.8%] max-xs:w-full max-xs:gap-5'}>
18
+ <p dangerouslySetInnerHTML={{ __html: data.p_3 }}/>
19
+ <p dangerouslySetInnerHTML={{ __html: data.p_4 }}/>
20
+
21
+ <p dangerouslySetInnerHTML={{
22
+ __html: data.p_5.replace('(가칭)', "<span class='text-[16px]'>(가칭)</span>")
23
+ }}/>
24
+ </div>
25
+
26
+ {/*오른쪽 이미지*/}
27
+ <div className={'absolute right-0 top-0 z-[-1] h-full w-[840px] max-xs:hidden'}>
28
+ <Image src={imagePath + '/strength_new/main_intro.webp'} alt={'강점'} fill className={'object-contain object-right'} quality={100}/>
29
+ </div>
30
+ </div>
31
+ </div>
32
+ </Wrapper>
33
+ <div className={'relative h-[200px] w-full xs:hidden'}>
34
+ <Image src={imagePath + '/strength_new/main_intro_mo.webp'} alt={'강점'} fill className={'object-cover'} quality={100}/>
35
+ </div>
36
+ </section>);
37
+ };
38
+ export default IntroSection;
39
+ const Lawfirm3Btn = () => {
40
+ const imagePath = process.env.NEXT_PUBLIC_S3_URL + '';
41
+ return (<Link href={'/'} className={'group relative mt-20 flex h-12 w-[241px] gap-[10px] text-[24px] font-[700]'}>
42
+ {/*그라데이션 보더*/}
43
+ <span className={'absolute z-0 h-full w-full bg-gradient-to-r from-[#4E00B3] to-[#5368C4]'}/>
44
+
45
+ {/*내부 흰색 배경*/}
46
+ <span className={'absolute z-10 block h-full w-full p-[1px]'}>
47
+ <span className={'float-right block h-full w-full bg-white transition-[width] duration-500 group-hover:w-[0px]'}></span>
48
+ </span>
49
+
50
+ {/*내용*/}
51
+ <span className={'absolute top-0 z-20 flex h-full w-full items-center justify-center gap-[10px] leading-none'}>
52
+ <span>
53
+ <span className={'text-[#4E00B3] transition-colors duration-500 group-hover:text-white'}>
54
+ 로펌3.0{' '}
55
+ </span>
56
+ <span className={'text-[#5368C4] transition-colors duration-500 group-hover:text-white'}>
57
+ 바로가기
58
+ </span>
59
+ </span>
60
+ <span className={'relative block h-6 w-6'}>
61
+ <Image src={imagePath + '/strength_new/lawfirm_arrow.webp'} alt={'강점'} fill className={'object-contain opacity-100 transition-opacity duration-500 group-hover:opacity-0'} quality={100}/>
62
+ <Image src={imagePath + '/strength_new/lawfirm_arrow_w.webp'} alt={'강점'} fill className={'object-contain opacity-0 transition-opacity duration-500 group-hover:opacity-100'} quality={100}/>
63
+ </span>
64
+ </span>
65
+ </Link>);
66
+ };
@@ -0,0 +1,115 @@
1
+ import Image from 'next/image';
2
+ import React from 'react';
3
+ import Link from 'next/link';
4
+ import { IMainPageDataTypes } from '../../../../common/types/strength_new';
5
+ import Wrapper from '../../../../Layout/Wrapper';
6
+
7
+ const IntroSection = ({ data }: { data: IMainPageDataTypes }) => {
8
+ const imagePath: string = process.env.NEXT_PUBLIC_S3_URL + '';
9
+ return (
10
+ <section className={'relative w-full py-[100px] max-lg:py-20 max-xs:py-10'}>
11
+ <Wrapper>
12
+ <div
13
+ className={
14
+ 'mx-auto flex max-w-[1400px] flex-col gap-10 text-[24px] font-[400] leading-[1.8] tracking-[-0.04em] ' +
15
+ 'max-3xl:text-[22px] ' +
16
+ 'max-lg:text-[20px] ' +
17
+ 'max-xs:text-[16px]'
18
+ }
19
+ >
20
+ <p dangerouslySetInnerHTML={{ __html: data.p_1 }} />
21
+ <p dangerouslySetInnerHTML={{ __html: data.p_2 }} />
22
+
23
+ <div className={'relative flex w-full flex-col py-10 max-xs:pt-0'}>
24
+ <div
25
+ className={
26
+ 'flex w-[54.5%] flex-col gap-10 max-3xl:w-[60%] max-lg:w-[50.8%] max-xs:w-full max-xs:gap-5'
27
+ }
28
+ >
29
+ <p dangerouslySetInnerHTML={{ __html: data.p_3 }} />
30
+ <p dangerouslySetInnerHTML={{ __html: data.p_4 }} />
31
+
32
+ <p
33
+ dangerouslySetInnerHTML={{
34
+ __html: data.p_5.replace('(가칭)', "<span class='text-[16px]'>(가칭)</span>")
35
+ }}
36
+ />
37
+ </div>
38
+
39
+ {/*오른쪽 이미지*/}
40
+ <div className={'absolute right-0 top-0 z-[-1] h-full w-[840px] max-xs:hidden'}>
41
+ <Image
42
+ src={imagePath + '/strength_new/main_intro.webp'}
43
+ alt={'강점'}
44
+ fill
45
+ className={'object-contain object-right'}
46
+ quality={100}
47
+ />
48
+ </div>
49
+ </div>
50
+ </div>
51
+ </Wrapper>
52
+ <div className={'relative h-[200px] w-full xs:hidden'}>
53
+ <Image
54
+ src={imagePath + '/strength_new/main_intro_mo.webp'}
55
+ alt={'강점'}
56
+ fill
57
+ className={'object-cover'}
58
+ quality={100}
59
+ />
60
+ </div>
61
+ </section>
62
+ );
63
+ };
64
+
65
+ export default IntroSection;
66
+
67
+ const Lawfirm3Btn = () => {
68
+ const imagePath: string = process.env.NEXT_PUBLIC_S3_URL + '';
69
+
70
+ return (
71
+ <Link href={'/'} className={'group relative mt-20 flex h-12 w-[241px] gap-[10px] text-[24px] font-[700]'}>
72
+ {/*그라데이션 보더*/}
73
+ <span className={'absolute z-0 h-full w-full bg-gradient-to-r from-[#4E00B3] to-[#5368C4]'} />
74
+
75
+ {/*내부 흰색 배경*/}
76
+ <span className={'absolute z-10 block h-full w-full p-[1px]'}>
77
+ <span
78
+ className={
79
+ 'float-right block h-full w-full bg-white transition-[width] duration-500 group-hover:w-[0px]'
80
+ }
81
+ ></span>
82
+ </span>
83
+
84
+ {/*내용*/}
85
+ <span
86
+ className={'absolute top-0 z-20 flex h-full w-full items-center justify-center gap-[10px] leading-none'}
87
+ >
88
+ <span>
89
+ <span className={'text-[#4E00B3] transition-colors duration-500 group-hover:text-white'}>
90
+ 로펌3.0{' '}
91
+ </span>
92
+ <span className={'text-[#5368C4] transition-colors duration-500 group-hover:text-white'}>
93
+ 바로가기
94
+ </span>
95
+ </span>
96
+ <span className={'relative block h-6 w-6'}>
97
+ <Image
98
+ src={imagePath + '/strength_new/lawfirm_arrow.webp'}
99
+ alt={'강점'}
100
+ fill
101
+ className={'object-contain opacity-100 transition-opacity duration-500 group-hover:opacity-0'}
102
+ quality={100}
103
+ />
104
+ <Image
105
+ src={imagePath + '/strength_new/lawfirm_arrow_w.webp'}
106
+ alt={'강점'}
107
+ fill
108
+ className={'object-contain opacity-0 transition-opacity duration-500 group-hover:opacity-100'}
109
+ quality={100}
110
+ />
111
+ </span>
112
+ </span>
113
+ </Link>
114
+ );
115
+ };
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { IInitialDataTypes } from '../../../../common';
3
+ declare const PeopleSection: ({ people_list, initialData }: {
4
+ people_list: {
5
+ title: string;
6
+ desc: string;
7
+ }[];
8
+ initialData: IInitialDataTypes;
9
+ }) => React.JSX.Element;
10
+ export default PeopleSection;