@daeryun/dr_components 1.1.31 → 1.1.32
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/ListBottomKeywd/bgo.webp +0 -0
- package/dist/asset/images/ListBottomKeywd/right2.webp +0 -0
- package/dist/components/ListBottomKeywd/ListBottomKeywd.d.ts +7 -0
- package/dist/components/ListBottomKeywd/ListBottomKeywd.jsx +303 -0
- package/dist/components/ListBottomKeywd/ListBottomKeywd.module.css +193 -0
- package/dist/components/ListBottomKeywd/ListBottomKeywd.stories.d.ts +8 -0
- package/dist/components/ListBottomKeywd/ListBottomKeywd.stories.jsx +36 -0
- package/dist/components/ListBottomKeywd/ListBottomKeywd.stories.tsx +44 -0
- package/dist/components/ListBottomKeywd/ListBottomKeywd.tsx +472 -0
- package/dist/components/ListBottomKeywd/RouteType.d.ts +11 -0
- package/dist/components/ListBottomKeywd/RouteType.js +12 -0
- package/dist/components/ListBottomKeywd/RouteType.ts +11 -0
- package/dist/components/common/hook/useElementObserve.d.ts +4 -4
- package/dist/lib/handleGtagClick.d.ts +8 -0
- package/dist/lib/handleGtagClick.js +13 -0
- package/dist/lib/handleGtagClick.ts +21 -0
- package/dist/styles/globals.css +38 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,472 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import Link from 'next/link';
|
|
4
|
+
import style from './ListBottomKeywd.module.css';
|
|
5
|
+
import { NextPage } from 'next';
|
|
6
|
+
import Image from 'next/image';
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import { handleGtagClick } from '../../lib/handleGtagClick';
|
|
9
|
+
import { usePathname, useRouter } from 'next/navigation';
|
|
10
|
+
import { RouteType } from './RouteType';
|
|
11
|
+
import IconBgo from '../../asset/images/ListBottomKeywd/bgo.webp';
|
|
12
|
+
import IconRight from '../../asset/images/ListBottomKeywd/right2.webp';
|
|
13
|
+
|
|
14
|
+
interface ListBottomKeywdProps {
|
|
15
|
+
routeType: string;
|
|
16
|
+
tel: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const ListBottomKeywd: NextPage<ListBottomKeywdProps> = ({ routeType, tel }) => {
|
|
20
|
+
const pathname = usePathname();
|
|
21
|
+
|
|
22
|
+
switch (routeType) {
|
|
23
|
+
case RouteType.BROADCAST:
|
|
24
|
+
return (
|
|
25
|
+
<>
|
|
26
|
+
<div
|
|
27
|
+
className={
|
|
28
|
+
'm-auto mb-[2em] flex max-w-screen-2xl justify-center text-[24px] font-[700] leading-[1.6px] sm:text-[30px]'
|
|
29
|
+
}
|
|
30
|
+
>
|
|
31
|
+
더 궁금한 점이 있으신가요?
|
|
32
|
+
</div>
|
|
33
|
+
<div className={style.bottom_container}>
|
|
34
|
+
<div className={style.bottom_media}>
|
|
35
|
+
<ConsultComponent
|
|
36
|
+
tel={tel}
|
|
37
|
+
onClick={() => handleGtagClick('broadcast_tel', 'tel', '언론보도 페이지 전화상담버튼')}
|
|
38
|
+
/>
|
|
39
|
+
<SuccessComponent />
|
|
40
|
+
</div>
|
|
41
|
+
<div className={style.bottom_media}>
|
|
42
|
+
<LawyerComponent />
|
|
43
|
+
<ReplyComponent />
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
</>
|
|
47
|
+
);
|
|
48
|
+
|
|
49
|
+
case RouteType.NOTICE:
|
|
50
|
+
return (
|
|
51
|
+
<>
|
|
52
|
+
<div
|
|
53
|
+
className={
|
|
54
|
+
'm-auto mb-[2em] flex max-w-screen-2xl justify-center text-[24px] font-[700] leading-[1.6px] sm:text-[30px]'
|
|
55
|
+
}
|
|
56
|
+
>
|
|
57
|
+
더 궁금한 점이 있으신가요?
|
|
58
|
+
</div>
|
|
59
|
+
<div className={style.bottom_container}>
|
|
60
|
+
<div className={style.bottom_media}>
|
|
61
|
+
<ConsultComponent
|
|
62
|
+
tel={tel}
|
|
63
|
+
onClick={() => handleGtagClick('notice_tel', 'tel', '공지사항 페이지 전화상담버튼')}
|
|
64
|
+
/>
|
|
65
|
+
<SuccessComponent />
|
|
66
|
+
</div>
|
|
67
|
+
<div className={style.bottom_media}>
|
|
68
|
+
<LawyerComponent />
|
|
69
|
+
<ReplyComponent />
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
</>
|
|
73
|
+
);
|
|
74
|
+
|
|
75
|
+
case RouteType.LAWYER:
|
|
76
|
+
return (
|
|
77
|
+
<>
|
|
78
|
+
<div
|
|
79
|
+
className={
|
|
80
|
+
'm-auto mb-[2em] flex max-w-screen-2xl justify-center text-[24px] font-[700] leading-[1.6px] sm:text-[30px]'
|
|
81
|
+
}
|
|
82
|
+
>
|
|
83
|
+
더 궁금한 점이 있으신가요?
|
|
84
|
+
</div>
|
|
85
|
+
<div className={style.bottom_container}>
|
|
86
|
+
<div className={style.bottom_media}>
|
|
87
|
+
<ConsultComponent
|
|
88
|
+
tel={tel}
|
|
89
|
+
onClick={() => handleGtagClick('lawyerPage_tel', 'tel', '변호사 페이지 전화상담버튼')}
|
|
90
|
+
/>
|
|
91
|
+
<SuccessComponent />
|
|
92
|
+
</div>
|
|
93
|
+
<div className={style.bottom_media}>
|
|
94
|
+
<BroadcastComponent />
|
|
95
|
+
<ReplyComponent />
|
|
96
|
+
</div>
|
|
97
|
+
</div>
|
|
98
|
+
</>
|
|
99
|
+
);
|
|
100
|
+
|
|
101
|
+
case RouteType.SUCCESS:
|
|
102
|
+
return (
|
|
103
|
+
<>
|
|
104
|
+
<div
|
|
105
|
+
className={
|
|
106
|
+
'm-auto mb-[2em] flex max-w-screen-2xl justify-center text-[24px] font-[700] leading-[1.6px] sm:text-[30px]'
|
|
107
|
+
}
|
|
108
|
+
>
|
|
109
|
+
더 궁금한 점이 있으신가요?
|
|
110
|
+
</div>
|
|
111
|
+
<div className={style.bottom_container}>
|
|
112
|
+
<div className={style.bottom_media}>
|
|
113
|
+
<ConsultComponent
|
|
114
|
+
tel={tel}
|
|
115
|
+
onClick={() => {
|
|
116
|
+
if (pathname === '/success') {
|
|
117
|
+
handleGtagClick('success_tel', 'tel', '업무사례 페이지 전화상담버튼');
|
|
118
|
+
} else if (pathname === '/instagram') {
|
|
119
|
+
handleGtagClick('instagram_tel', 'tel', '인스타그램 페이지 전화상담버튼');
|
|
120
|
+
} else if (pathname === '/info') {
|
|
121
|
+
handleGtagClick('lawinfo_tel', 'tel', '법률정보 페이지 전화상담버튼');
|
|
122
|
+
} else if (pathname === '/notice') {
|
|
123
|
+
handleGtagClick('notice_tel', 'tel', '공지사항 페이지 전화상담버튼');
|
|
124
|
+
} else if (pathname === '/archive') {
|
|
125
|
+
handleGtagClick('archive_tel', 'tel', '법률서식 페이지 전화상담버튼');
|
|
126
|
+
}
|
|
127
|
+
}}
|
|
128
|
+
/>
|
|
129
|
+
<BroadcastComponent />
|
|
130
|
+
</div>
|
|
131
|
+
<div className={style.bottom_media}>
|
|
132
|
+
<LawyerComponent />
|
|
133
|
+
<ReplyComponent />
|
|
134
|
+
</div>
|
|
135
|
+
</div>
|
|
136
|
+
</>
|
|
137
|
+
);
|
|
138
|
+
|
|
139
|
+
case RouteType.REPLY:
|
|
140
|
+
return (
|
|
141
|
+
<>
|
|
142
|
+
<div
|
|
143
|
+
className={
|
|
144
|
+
'm-auto mb-[2em] flex max-w-screen-2xl justify-center text-[24px] font-[700] leading-[1.6px] sm:text-[30px]'
|
|
145
|
+
}
|
|
146
|
+
>
|
|
147
|
+
더 궁금한 점이 있으신가요?
|
|
148
|
+
</div>
|
|
149
|
+
<div className={style.bottom_container}>
|
|
150
|
+
<div className={style.bottom_media}>
|
|
151
|
+
<ConsultComponent
|
|
152
|
+
tel={tel}
|
|
153
|
+
onClick={() => {
|
|
154
|
+
if (pathname === '/reply') {
|
|
155
|
+
handleGtagClick('reply_tel', 'tel', '고객후기 페이지 전화상담버튼');
|
|
156
|
+
} else if (pathname === '/blog') {
|
|
157
|
+
handleGtagClick('blog_tel', 'tel', '블로그 페이지 전화상담버튼');
|
|
158
|
+
} else if (pathname === '/kin') {
|
|
159
|
+
handleGtagClick('kin_tel', 'tel', '법률지식인 페이지 전화상담버튼');
|
|
160
|
+
}
|
|
161
|
+
}}
|
|
162
|
+
/>
|
|
163
|
+
<BroadcastComponent />
|
|
164
|
+
</div>
|
|
165
|
+
<div className={style.bottom_media}>
|
|
166
|
+
<LawyerComponent />
|
|
167
|
+
<SuccessComponent />
|
|
168
|
+
</div>
|
|
169
|
+
</div>
|
|
170
|
+
</>
|
|
171
|
+
);
|
|
172
|
+
|
|
173
|
+
case RouteType.YOUTUBE:
|
|
174
|
+
return (
|
|
175
|
+
<>
|
|
176
|
+
<div
|
|
177
|
+
className={
|
|
178
|
+
'm-auto mb-[3em] flex max-w-screen-2xl justify-center py-[130] text-[24px] font-[700] leading-[1.6px] sm:text-[30px]'
|
|
179
|
+
}
|
|
180
|
+
>
|
|
181
|
+
더 궁금한 점이 있으신가요?
|
|
182
|
+
</div>
|
|
183
|
+
<div className={style.bottom_container}>
|
|
184
|
+
<div className={style.bottom_media}>
|
|
185
|
+
<ConsultComponent
|
|
186
|
+
tel={tel}
|
|
187
|
+
onClick={() => handleGtagClick('youtube_tel', 'tel', '유튜브 페이지 전화상담버튼')}
|
|
188
|
+
/>
|
|
189
|
+
<BroadcastComponent />
|
|
190
|
+
</div>
|
|
191
|
+
<div className={style.bottom_media}>
|
|
192
|
+
<LawyerComponent />
|
|
193
|
+
<ReplyComponent />
|
|
194
|
+
</div>
|
|
195
|
+
</div>
|
|
196
|
+
</>
|
|
197
|
+
);
|
|
198
|
+
|
|
199
|
+
case RouteType.INFO:
|
|
200
|
+
return (
|
|
201
|
+
<>
|
|
202
|
+
<div
|
|
203
|
+
className={
|
|
204
|
+
'm-auto mb-[3em] flex max-w-screen-2xl justify-center py-[130] text-[24px] font-[700] leading-[1.6px] sm:text-[30px]'
|
|
205
|
+
}
|
|
206
|
+
>
|
|
207
|
+
더 궁금한 점이 있으신가요?
|
|
208
|
+
</div>
|
|
209
|
+
<div className={style.bottom_container}>
|
|
210
|
+
<div className={style.bottom_media}>
|
|
211
|
+
<ConsultComponent
|
|
212
|
+
tel={tel}
|
|
213
|
+
onClick={() => handleGtagClick('lawinfo_tel', 'tel', '법률정보 페이지 전화상담버튼')}
|
|
214
|
+
/>
|
|
215
|
+
<BroadcastComponent />
|
|
216
|
+
</div>
|
|
217
|
+
<div className={style.bottom_media}>
|
|
218
|
+
<LawyerComponent />
|
|
219
|
+
<SuccessComponent />
|
|
220
|
+
</div>
|
|
221
|
+
</div>
|
|
222
|
+
</>
|
|
223
|
+
);
|
|
224
|
+
case RouteType.INTEGTARE:
|
|
225
|
+
return (
|
|
226
|
+
<>
|
|
227
|
+
<div
|
|
228
|
+
className={
|
|
229
|
+
'm-auto mb-[3em] flex max-w-screen-2xl justify-center py-[130] text-[24px] font-[700] leading-[1.6px] sm:text-[30px]'
|
|
230
|
+
}
|
|
231
|
+
>
|
|
232
|
+
더 궁금한 점이 있으신가요?
|
|
233
|
+
</div>
|
|
234
|
+
<div className={style.bottom_container}>
|
|
235
|
+
<div className={style.bottom_media}>
|
|
236
|
+
<ConsultComponent
|
|
237
|
+
tel={tel}
|
|
238
|
+
onClick={() => handleGtagClick('integrate_tel', 'tel', '통합검색 페이지 전화상담버튼')}
|
|
239
|
+
/>
|
|
240
|
+
<SuccessComponent />
|
|
241
|
+
</div>
|
|
242
|
+
<div className={style.bottom_media}>
|
|
243
|
+
<LawyerComponent />
|
|
244
|
+
<ReplyComponent />
|
|
245
|
+
</div>
|
|
246
|
+
</div>
|
|
247
|
+
</>
|
|
248
|
+
);
|
|
249
|
+
|
|
250
|
+
case RouteType.MEDIA:
|
|
251
|
+
return (
|
|
252
|
+
<>
|
|
253
|
+
<div
|
|
254
|
+
className={
|
|
255
|
+
'm-auto mb-[2em] flex max-w-screen-2xl justify-center text-[24px] font-[700] leading-[1.6px] sm:text-[30px]'
|
|
256
|
+
}
|
|
257
|
+
>
|
|
258
|
+
더 궁금한 점이 있으신가요?
|
|
259
|
+
</div>
|
|
260
|
+
<div className={style.bottom_container}>
|
|
261
|
+
<div className={style.bottom_media}>
|
|
262
|
+
<ConsultComponent
|
|
263
|
+
tel={tel}
|
|
264
|
+
onClick={() => handleGtagClick('media_tel', 'tel', '취재문의 페이지 전화상담버튼')}
|
|
265
|
+
/>
|
|
266
|
+
<SuccessComponent />
|
|
267
|
+
</div>
|
|
268
|
+
<div className={style.bottom_media}>
|
|
269
|
+
<LawyerComponent />
|
|
270
|
+
<ReplyComponent />
|
|
271
|
+
</div>
|
|
272
|
+
</div>
|
|
273
|
+
</>
|
|
274
|
+
);
|
|
275
|
+
|
|
276
|
+
default:
|
|
277
|
+
return null;
|
|
278
|
+
}
|
|
279
|
+
};
|
|
280
|
+
|
|
281
|
+
const ConsultComponent = ({ onClick, tel }: { onClick: () => void; tel: string }) => {
|
|
282
|
+
const handleClick = () => {
|
|
283
|
+
onClick();
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
return (
|
|
287
|
+
<Link href={'/choice'} className={style.bottom_box} onClick={handleClick}>
|
|
288
|
+
<div className={'flex h-full flex-col justify-between gap-[10px]'}>
|
|
289
|
+
<div className={'flex items-center justify-between'}>
|
|
290
|
+
<div className={''}>
|
|
291
|
+
<p className={`${style.consult_txt} ${style.consult_red}`}>대륜법률 상담</p>
|
|
292
|
+
<p className={style.sub_txt}>
|
|
293
|
+
전화상담 <b className={'inline-block text-[#285FA7]'}>{tel}</b>
|
|
294
|
+
</p>
|
|
295
|
+
</div>
|
|
296
|
+
<div className={'block sm:hidden'}>
|
|
297
|
+
<Image src={IconBgo} alt="화살표" width={52} height={21} className={'h-auto w-[34px]'} />
|
|
298
|
+
</div>
|
|
299
|
+
</div>
|
|
300
|
+
|
|
301
|
+
<div
|
|
302
|
+
className={
|
|
303
|
+
'hidden w-[7em] justify-center rounded-[20px] bg-[#285FA7] py-1 pr-1 text-[15px] text-[#fff] sm:flex sm:w-[8em] sm:py-2'
|
|
304
|
+
}
|
|
305
|
+
>
|
|
306
|
+
상담하기
|
|
307
|
+
<div
|
|
308
|
+
className={'relative left-[10px] flex h-[24px] w-[24px] items-center rounded-[50%] bg-[#fff] '}
|
|
309
|
+
>
|
|
310
|
+
<Image
|
|
311
|
+
src={IconRight}
|
|
312
|
+
alt="상담하기"
|
|
313
|
+
width={14}
|
|
314
|
+
height={14}
|
|
315
|
+
className={'absolute left-[6px] top-[7px] h-auto w-[14px]'}
|
|
316
|
+
/>
|
|
317
|
+
</div>
|
|
318
|
+
</div>
|
|
319
|
+
</div>
|
|
320
|
+
</Link>
|
|
321
|
+
);
|
|
322
|
+
};
|
|
323
|
+
|
|
324
|
+
const BroadcastComponent = () => {
|
|
325
|
+
return (
|
|
326
|
+
<Link href={'/broadcast'} className={style.bottom_box}>
|
|
327
|
+
<div className={'flex h-full flex-col justify-between gap-[10px]'}>
|
|
328
|
+
<div className={'flex items-center justify-between'}>
|
|
329
|
+
<div className={''}>
|
|
330
|
+
<p className={`${style.consult_txt} ${style.consult_red}`}>언론보도</p>
|
|
331
|
+
<p className={style.sub_txt}>언론에서 활동하는 대륜</p>
|
|
332
|
+
</div>
|
|
333
|
+
<div className={'block sm:hidden'}>
|
|
334
|
+
<Image src={IconBgo} alt="화살표" width={52} height={21} className={'h-auto w-[34px]'} />
|
|
335
|
+
</div>
|
|
336
|
+
</div>
|
|
337
|
+
|
|
338
|
+
<div
|
|
339
|
+
className={
|
|
340
|
+
'hidden w-[7em] justify-center rounded-[20px] bg-[#285FA7] py-1 pr-1 text-[15px] text-[#fff] sm:flex sm:w-[8em] sm:py-2'
|
|
341
|
+
}
|
|
342
|
+
>
|
|
343
|
+
바로가기
|
|
344
|
+
<div
|
|
345
|
+
className={'relative left-[10px] flex h-[24px] w-[24px] items-center rounded-[50%] bg-[#fff] '}
|
|
346
|
+
>
|
|
347
|
+
<Image
|
|
348
|
+
src={IconRight}
|
|
349
|
+
alt="상담하기"
|
|
350
|
+
width={14}
|
|
351
|
+
height={14}
|
|
352
|
+
className={'absolute left-[6px] top-[7px] h-auto w-[14px]'}
|
|
353
|
+
/>
|
|
354
|
+
</div>
|
|
355
|
+
</div>
|
|
356
|
+
</div>
|
|
357
|
+
</Link>
|
|
358
|
+
);
|
|
359
|
+
};
|
|
360
|
+
|
|
361
|
+
const LawyerComponent = () => {
|
|
362
|
+
return (
|
|
363
|
+
<Link href={'/lawyer'} className={style.bottom_box}>
|
|
364
|
+
<div className={'flex h-full flex-col justify-between gap-[10px]'}>
|
|
365
|
+
<div className={'flex items-center justify-between'}>
|
|
366
|
+
<div className={''}>
|
|
367
|
+
<p className={`${style.consult_txt} ${style.consult_red}`}>변호사 소개</p>
|
|
368
|
+
<p className={style.sub_txt}>{process.env.NEXT_PUBLIC_KEYWORD}전문변호사</p>
|
|
369
|
+
</div>
|
|
370
|
+
<div className={'block sm:hidden'}>
|
|
371
|
+
<Image src={IconBgo} alt="화살표" width={52} height={21} className={'h-auto w-[34px]'} />
|
|
372
|
+
</div>
|
|
373
|
+
</div>
|
|
374
|
+
|
|
375
|
+
<div
|
|
376
|
+
className={
|
|
377
|
+
'hidden w-[7em] justify-center rounded-[20px] bg-[#285FA7] py-1 pr-1 text-[15px] text-[#fff] sm:flex sm:w-[8em] sm:py-2'
|
|
378
|
+
}
|
|
379
|
+
>
|
|
380
|
+
바로가기
|
|
381
|
+
<div
|
|
382
|
+
className={'relative left-[10px] flex h-[24px] w-[24px] items-center rounded-[50%] bg-[#fff] '}
|
|
383
|
+
>
|
|
384
|
+
<Image
|
|
385
|
+
src={IconRight}
|
|
386
|
+
alt="상담하기"
|
|
387
|
+
width={14}
|
|
388
|
+
height={14}
|
|
389
|
+
className={'absolute left-[6px] top-[7px] h-auto w-[14px]'}
|
|
390
|
+
/>
|
|
391
|
+
</div>
|
|
392
|
+
</div>
|
|
393
|
+
</div>
|
|
394
|
+
</Link>
|
|
395
|
+
);
|
|
396
|
+
};
|
|
397
|
+
|
|
398
|
+
const ReplyComponent = () => {
|
|
399
|
+
return (
|
|
400
|
+
<Link href={'/reply'} className={style.bottom_box}>
|
|
401
|
+
<div className={'flex h-full flex-col justify-between gap-[10px]'}>
|
|
402
|
+
<div className={'flex items-center justify-between'}>
|
|
403
|
+
<div className={''}>
|
|
404
|
+
<p className={`${style.consult_txt} ${style.consult_red}`}>고객후기</p>
|
|
405
|
+
<p className={style.sub_txt}>만족으로 이어진 신뢰</p>
|
|
406
|
+
</div>
|
|
407
|
+
<div className={'block sm:hidden'}>
|
|
408
|
+
<Image src={IconBgo} alt="화살표" width={52} height={21} className={'h-auto w-[34px]'} />
|
|
409
|
+
</div>
|
|
410
|
+
</div>
|
|
411
|
+
|
|
412
|
+
<div
|
|
413
|
+
className={
|
|
414
|
+
'hidden w-[7em] justify-center rounded-[20px] bg-[#285FA7] py-1 pr-1 text-[15px] text-[#fff] sm:flex sm:w-[8em] sm:py-2'
|
|
415
|
+
}
|
|
416
|
+
>
|
|
417
|
+
바로가기
|
|
418
|
+
<div
|
|
419
|
+
className={'relative left-[10px] flex h-[24px] w-[24px] items-center rounded-[50%] bg-[#fff] '}
|
|
420
|
+
>
|
|
421
|
+
<Image
|
|
422
|
+
src={IconRight}
|
|
423
|
+
alt="상담하기"
|
|
424
|
+
width={14}
|
|
425
|
+
height={14}
|
|
426
|
+
className={'absolute left-[6px] top-[7px] h-auto w-[14px]'}
|
|
427
|
+
/>
|
|
428
|
+
</div>
|
|
429
|
+
</div>
|
|
430
|
+
</div>
|
|
431
|
+
</Link>
|
|
432
|
+
);
|
|
433
|
+
};
|
|
434
|
+
|
|
435
|
+
const SuccessComponent = () => {
|
|
436
|
+
return (
|
|
437
|
+
<Link href={'/success'} className={style.bottom_box}>
|
|
438
|
+
<div className={'flex h-full flex-col justify-between gap-[10px]'}>
|
|
439
|
+
<div className={'flex items-center justify-between'}>
|
|
440
|
+
<div className={''}>
|
|
441
|
+
<p className={`${style.consult_txt} ${style.consult_red}`}>업무사례</p>
|
|
442
|
+
<p className={style.sub_txt}>풍부한 경험으로, 맞춤형 해결책 제시</p>
|
|
443
|
+
</div>
|
|
444
|
+
<div className={'block sm:hidden'}>
|
|
445
|
+
<Image src={IconBgo} alt="화살표" width={52} height={21} className={'h-auto w-[34px]'} />
|
|
446
|
+
</div>
|
|
447
|
+
</div>
|
|
448
|
+
|
|
449
|
+
<div
|
|
450
|
+
className={
|
|
451
|
+
'hidden w-[7em] justify-center rounded-[20px] bg-[#285FA7] py-1 pr-1 text-[15px] text-[#fff] sm:flex sm:w-[8em] sm:py-2'
|
|
452
|
+
}
|
|
453
|
+
>
|
|
454
|
+
바로가기
|
|
455
|
+
<div
|
|
456
|
+
className={'relative left-[10px] flex h-[24px] w-[24px] items-center rounded-[50%] bg-[#fff] '}
|
|
457
|
+
>
|
|
458
|
+
<Image
|
|
459
|
+
src={IconRight}
|
|
460
|
+
alt="상담하기"
|
|
461
|
+
width={14}
|
|
462
|
+
height={14}
|
|
463
|
+
className={'absolute left-[6px] top-[7px] h-auto w-[14px]'}
|
|
464
|
+
/>
|
|
465
|
+
</div>
|
|
466
|
+
</div>
|
|
467
|
+
</div>
|
|
468
|
+
</Link>
|
|
469
|
+
);
|
|
470
|
+
};
|
|
471
|
+
|
|
472
|
+
export default ListBottomKeywd;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export var RouteType;
|
|
2
|
+
(function (RouteType) {
|
|
3
|
+
RouteType["BROADCAST"] = "broadcast";
|
|
4
|
+
RouteType["NOTICE"] = "notice";
|
|
5
|
+
RouteType["LAWYER"] = "lawyer";
|
|
6
|
+
RouteType["SUCCESS"] = "success";
|
|
7
|
+
RouteType["REPLY"] = "reply";
|
|
8
|
+
RouteType["YOUTUBE"] = "youtube";
|
|
9
|
+
RouteType["INFO"] = "info";
|
|
10
|
+
RouteType["INTEGTARE"] = "integrate";
|
|
11
|
+
RouteType["MEDIA"] = "media";
|
|
12
|
+
})(RouteType || (RouteType = {}));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
declare const useElementObserve: (targetRef: any, threshold?: number) => {
|
|
2
2
|
flag: boolean;
|
|
3
|
-
flagClass:
|
|
4
|
-
flagFastClass:
|
|
5
|
-
strengthClass:
|
|
6
|
-
lawFirmClass:
|
|
3
|
+
flagClass: string;
|
|
4
|
+
flagFastClass: string;
|
|
5
|
+
strengthClass: string;
|
|
6
|
+
lawFirmClass: string;
|
|
7
7
|
};
|
|
8
8
|
export default useElementObserve;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface GtagClickProps {
|
|
2
|
+
action: string;
|
|
3
|
+
category: string;
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const GtagClick: ({ action, category, label }: GtagClickProps) => void;
|
|
7
|
+
export declare const handleGtagClick: (action: string, category: string, label: string) => void;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as gtag from './gtag';
|
|
2
|
+
export const GtagClick = ({ action, category, label }) => {
|
|
3
|
+
gtag.event({
|
|
4
|
+
action: action,
|
|
5
|
+
category: category,
|
|
6
|
+
label: label,
|
|
7
|
+
value: '1'
|
|
8
|
+
});
|
|
9
|
+
console.log("I'm clicked", action);
|
|
10
|
+
};
|
|
11
|
+
export const handleGtagClick = (action, category, label) => {
|
|
12
|
+
GtagClick({ action, category, label });
|
|
13
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as gtag from './gtag';
|
|
2
|
+
|
|
3
|
+
interface GtagClickProps {
|
|
4
|
+
action: string;
|
|
5
|
+
category: string;
|
|
6
|
+
label: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const GtagClick = ({ action, category, label }: GtagClickProps) => {
|
|
10
|
+
gtag.event({
|
|
11
|
+
action: action,
|
|
12
|
+
category: category,
|
|
13
|
+
label: label,
|
|
14
|
+
value: '1'
|
|
15
|
+
});
|
|
16
|
+
console.log("I'm clicked", action);
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export const handleGtagClick = (action: string, category: string, label: string) => {
|
|
20
|
+
GtagClick({ action, category, label });
|
|
21
|
+
};
|
package/dist/styles/globals.css
CHANGED
|
@@ -994,6 +994,10 @@ html {
|
|
|
994
994
|
left: -5px;
|
|
995
995
|
}
|
|
996
996
|
|
|
997
|
+
.left-\[10px\] {
|
|
998
|
+
left: 10px;
|
|
999
|
+
}
|
|
1000
|
+
|
|
997
1001
|
.left-\[2\.5px\] {
|
|
998
1002
|
left: 2.5px;
|
|
999
1003
|
}
|
|
@@ -1022,6 +1026,10 @@ html {
|
|
|
1022
1026
|
left: 50px;
|
|
1023
1027
|
}
|
|
1024
1028
|
|
|
1029
|
+
.left-\[6px\] {
|
|
1030
|
+
left: 6px;
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1025
1033
|
.left-\[7px\] {
|
|
1026
1034
|
left: 7px;
|
|
1027
1035
|
}
|
|
@@ -1652,6 +1660,10 @@ html {
|
|
|
1652
1660
|
margin-bottom: 30px;
|
|
1653
1661
|
}
|
|
1654
1662
|
|
|
1663
|
+
.mb-\[3em\] {
|
|
1664
|
+
margin-bottom: 3em;
|
|
1665
|
+
}
|
|
1666
|
+
|
|
1655
1667
|
.mb-\[40px\] {
|
|
1656
1668
|
margin-bottom: 40px;
|
|
1657
1669
|
}
|
|
@@ -3707,6 +3719,10 @@ html {
|
|
|
3707
3719
|
width: 75px;
|
|
3708
3720
|
}
|
|
3709
3721
|
|
|
3722
|
+
.w-\[7em\] {
|
|
3723
|
+
width: 7em;
|
|
3724
|
+
}
|
|
3725
|
+
|
|
3710
3726
|
.w-\[80\%\] {
|
|
3711
3727
|
width: 80%;
|
|
3712
3728
|
}
|
|
@@ -6952,6 +6968,11 @@ html {
|
|
|
6952
6968
|
padding-bottom: 12px;
|
|
6953
6969
|
}
|
|
6954
6970
|
|
|
6971
|
+
.py-\[130\] {
|
|
6972
|
+
padding-top: 130;
|
|
6973
|
+
padding-bottom: 130;
|
|
6974
|
+
}
|
|
6975
|
+
|
|
6955
6976
|
.py-\[14px\] {
|
|
6956
6977
|
padding-top: 14px;
|
|
6957
6978
|
padding-bottom: 14px;
|
|
@@ -7378,6 +7399,10 @@ html {
|
|
|
7378
7399
|
padding-left: calc((100% - 1920px + 80px) / 2);
|
|
7379
7400
|
}
|
|
7380
7401
|
|
|
7402
|
+
.pr-1 {
|
|
7403
|
+
padding-right: 0.25rem;
|
|
7404
|
+
}
|
|
7405
|
+
|
|
7381
7406
|
.pr-3 {
|
|
7382
7407
|
padding-right: 0.75rem;
|
|
7383
7408
|
}
|
|
@@ -7979,6 +8004,10 @@ html {
|
|
|
7979
8004
|
line-height: 1.6;
|
|
7980
8005
|
}
|
|
7981
8006
|
|
|
8007
|
+
.leading-\[1\.6px\] {
|
|
8008
|
+
line-height: 1.6px;
|
|
8009
|
+
}
|
|
8010
|
+
|
|
7982
8011
|
.leading-\[1\.7\] {
|
|
7983
8012
|
line-height: 1.7;
|
|
7984
8013
|
}
|
|
@@ -19378,6 +19407,10 @@ body {
|
|
|
19378
19407
|
width: 80px;
|
|
19379
19408
|
}
|
|
19380
19409
|
|
|
19410
|
+
.sm\:w-\[8em\] {
|
|
19411
|
+
width: 8em;
|
|
19412
|
+
}
|
|
19413
|
+
|
|
19381
19414
|
.sm\:w-\[90\%\] {
|
|
19382
19415
|
width: 90%;
|
|
19383
19416
|
}
|
|
@@ -19541,6 +19574,11 @@ body {
|
|
|
19541
19574
|
padding-right: 8px;
|
|
19542
19575
|
}
|
|
19543
19576
|
|
|
19577
|
+
.sm\:py-2 {
|
|
19578
|
+
padding-top: 0.5rem;
|
|
19579
|
+
padding-bottom: 0.5rem;
|
|
19580
|
+
}
|
|
19581
|
+
|
|
19544
19582
|
.sm\:py-9 {
|
|
19545
19583
|
padding-top: 2.25rem;
|
|
19546
19584
|
padding-bottom: 2.25rem;
|