@daeryun/dr_components 0.1.16 → 0.1.18

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.
@@ -2,84 +2,76 @@ import Image from 'next/image';
2
2
  import React, { useEffect, useRef, useState } from 'react';
3
3
  import * as gtag from '../../lib/gtag';
4
4
  import Link from 'next/link';
5
- import { insert } from '../../lib';
5
+ import { getDomainHandler, insert } from '../../lib';
6
6
  import { savePowerLinkConversion } from '../../lib';
7
- import { paramFetch } from '../../lib';
8
- import { useQuery } from 'react-query';
9
7
  import TopBtn from './TopBtn';
10
8
  import Wrapper from '../Layout/Wrapper';
11
-
9
+ import { useRouter } from 'next/router';
12
10
  import ArrowIcon from '../../asset/images/footer/icon_arrow_gray.webp';
13
11
  import SNS1 from '../../asset/images/footer/sns_01.webp';
14
12
  import SNS2 from '../../asset/images/footer/sns_02.webp';
15
13
  import SNS3 from '../../asset/images/footer/sns_03.webp';
16
14
  import SNS4 from '../../asset/images/footer/sns_04.webp';
17
15
  import SNS5 from '../../asset/images/footer/sns_05.webp';
16
+ import { IGroupsData } from './IFooterTypes';
18
17
 
19
18
  interface IFooterTypes {
20
19
  tel: string;
21
20
  logoUrl: string;
22
21
  aceCountLink?: string;
22
+ groupsData: IGroupsData[] | null;
23
+ }
24
+
25
+ interface GroupsProps {
26
+ list: IGroupsData[];
23
27
  }
24
28
 
25
- // tel: string -> 전화번호
26
- // logoUrl:string -> 로고 url
27
- // aceCountLink?: string -> 에이스 카운터 전환태그 주소, 안 넣을 경우 메인으로
28
- const Footer = (props: IFooterTypes) => {
29
+ const Footer = ({ groupsData, tel, logoUrl, aceCountLink }: IFooterTypes) => {
30
+ const router = useRouter();
29
31
  const mobile = require('is-mobile');
30
32
  const snsClass =
31
33
  'w-[44px] h-auto mr-[5px] max-md:w-[40px] max-md:m-0 max-xs:w-[45px] max-xs:mr-[17px] max-2xs:w-[40px] max-3xs:w-[35px]';
34
+ const [isGroups, setIsGroups] = useState<GroupsProps[]>([]);
32
35
 
33
36
  const [isMobile, setIsMobile] = useState<boolean>(false);
34
- const [centerLink, setCenterLink] = useState<
35
- { code: string; codename: string; parent_code: string; etc: string; etc2: string }[]
36
- >([]);
37
37
  const [isOpen, setIsOpen] = useState(false);
38
38
  const wrapperRef = useRef(null);
39
39
 
40
- useQuery(
41
- 'centerList',
42
- () => {
43
- paramFetch(
44
- 'https://mng.daeryunlaw.com/api/center/list',
45
- { type: 'footer' },
46
- (obj: any) => {
47
- const data = obj.list
48
- .filter((i: any) => i.code != 'CT0020')
49
- .map((l: any) => {
50
- return {
51
- codename: l.code_name.replace('전문', '') + '그룹',
52
- code:
53
- l.code === 'CT0000'
54
- ? 'https://www.daeryunlaw.com/'
55
- : l.parent_code === 'center'
56
- ? `https://www.daeryunlaw-${l.code_desc}.com`
57
- : l.etc2,
58
- code_num: l.code,
59
- etc: l.etc,
60
- code_name2: l.code_name2,
61
- parent_code: l.parent_code,
62
- etc2: l.etc2
63
- };
64
- });
40
+ const routeLocation: boolean = router.asPath === '/' ? true : false;
65
41
 
66
- setCenterLink(data);
67
- },
68
- 'GET'
69
- );
70
- },
71
- { refetchOnWindowFocus: false, refetchInterval: undefined }
72
- );
42
+ const fetchData = async () => {
43
+ try {
44
+ const req = await fetch('/api/center/list');
45
+ return await req.json();
46
+ } catch (error) {
47
+ console.error(`fetch groupsData error : ${error} `);
48
+ }
49
+ };
50
+
51
+ useEffect(() => {
52
+ const fetchGroupsData = async () => {
53
+ if (router.asPath !== '/') {
54
+ try {
55
+ const data: GroupsProps[] = await fetchData();
56
+ setIsGroups(data);
57
+ } catch (error) {
58
+ console.error(`fetch groupsData useEffect error: ${error}`);
59
+ }
60
+ }
61
+ };
62
+
63
+ fetchGroupsData();
64
+ }, [router.asPath]);
73
65
 
74
66
  const onClickTel = () => {
75
67
  insert('call', isMobile);
76
68
  savePowerLinkConversion('call', isMobile);
77
69
  if (isMobile) {
78
- mTelClick();
79
70
  ace_mTelClick();
71
+ mTelClick();
80
72
  } else {
81
- pcTelClick();
82
73
  ace_pcTelClick();
74
+ pcTelClick();
83
75
  }
84
76
  };
85
77
 
@@ -115,7 +107,7 @@ const Footer = (props: IFooterTypes) => {
115
107
  const ace_pcTelClick = () => {
116
108
  try {
117
109
  // @ts-ignore
118
- _PL(props.aceCountLink ? props.aceCountLink : 'www.daeryunlaw.com/tel');
110
+ _PL(aceCountLink ? aceCountLink : 'www.daeryunlaw.com/tel');
119
111
  } catch (e) {}
120
112
  };
121
113
 
@@ -147,11 +139,11 @@ const Footer = (props: IFooterTypes) => {
147
139
  }
148
140
  >
149
141
  {/*top button*/}
150
- {/*<Wrapper className={'!absolute top-0'}>*/}
151
- {/* <div className={'relative z-20'}>*/}
152
- {/* <TopBtn className={'absolute right-0 top-[-50%] translate-y-[-50%]'} />*/}
153
- {/* </div>*/}
154
- {/*</Wrapper>*/}
142
+ <Wrapper className={'!absolute top-0'}>
143
+ <div className={'relative z-20'}>
144
+ <TopBtn className={'absolute right-0 top-[-50%] translate-y-[-50%]'} />
145
+ </div>
146
+ </Wrapper>
155
147
  <Wrapper>
156
148
  <div className={'w-full'}>
157
149
  <div
@@ -162,7 +154,7 @@ const Footer = (props: IFooterTypes) => {
162
154
  >
163
155
  <Link href={'/'}>
164
156
  <Image
165
- src={props.logoUrl}
157
+ src={logoUrl}
166
158
  alt="대륜 로고"
167
159
  width={216}
168
160
  height={33}
@@ -204,59 +196,115 @@ const Footer = (props: IFooterTypes) => {
204
196
  법무법인 대륜 그룹 바로가기
205
197
  </button>
206
198
 
207
- {isOpen && (
208
- <ul
209
- className="absolute right-0 mt-2 h-[340px] w-full origin-top-right overflow-y-auto rounded-md bg-white pt-3 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none"
210
- role="listbox"
211
- aria-orientation="vertical"
212
- aria-labelledby="listbox-label"
213
- aria-expanded="true"
214
- aria-hidden="false"
215
- >
216
- {centerLink.map(
217
- (item: any, index: number) =>
218
- item.parent_code === 'center' && (
219
- <li
220
- key={index}
221
- value={item.code}
222
- className="cursor-pointer px-5 py-[5px] text-[17px] font-[500]"
223
- >
224
- <Link
225
- href={item.code}
226
- key={index}
227
- target="_blank"
228
- title={'새창열기'}
229
- onClick={() => {
230
- setIsOpen(!isOpen);
231
- }}
232
- >
233
- {item.code_num === 'CT0000'
234
- ? '법무법인 대륜 변호사 대표사이트'
235
- : item.codename}
236
- </Link>
237
- {centerLink.map((items, index2) => {
238
- return (
239
- items.parent_code === 'in_center' &&
240
- item.code_num === items.etc && (
241
- <Link
242
- href={items.code}
243
- key={index2}
244
- target="_blank"
245
- title={'새창열기'}
246
- >
247
- <p>
248
- &nbsp;&nbsp;{' '}
249
- {items.codename.replace('그룹', '센터')}
250
- </p>
251
- </Link>
252
- )
253
- );
254
- })}
255
- </li>
256
- )
257
- )}
258
- </ul>
259
- )}
199
+ <ul
200
+ className={`absolute right-0 mt-2 h-[340px] w-full origin-top-right overflow-y-auto rounded-md bg-white pt-3 shadow-lg ring-1 ring-black ring-opacity-5 transition-all duration-150 focus:outline-none ${
201
+ isOpen ? 'visible opacity-100' : 'invisible opacity-0'
202
+ }`}
203
+ style={{
204
+ zIndex: isOpen ? 50 : -9999,
205
+ pointerEvents: isOpen ? 'auto' : 'none'
206
+ }}
207
+ role="listbox"
208
+ aria-orientation="vertical"
209
+ aria-labelledby="listbox-label"
210
+ aria-expanded="true"
211
+ aria-hidden="false"
212
+ >
213
+ {routeLocation
214
+ ? groupsData?.map((item: any, index: number) => (
215
+ // 메인페이지로 접근했을 때, 서버사이드에서 가져온 데이터로 색인
216
+ <>
217
+ <li
218
+ key={index}
219
+ value={item.code_name}
220
+ className="cursor-pointer px-5 py-[5px] text-[17px] font-[500] duration-150 hover:bg-gray-100"
221
+ >
222
+ <Link
223
+ href={getDomainHandler(item.code, item.code_desc)}
224
+ key={index}
225
+ target="_blank"
226
+ title={item.code_name}
227
+ onClick={() => {
228
+ setIsOpen(!isOpen);
229
+ }}
230
+ >
231
+ {item.code === 'CT0000'
232
+ ? item.code_name
233
+ : `${item.code_name} 그룹`}
234
+ </Link>
235
+ </li>
236
+ {item.children.length > 0 &&
237
+ item.children.map((childGroup: any) => (
238
+ <li
239
+ key={childGroup.code}
240
+ value={childGroup.code_name}
241
+ className="cursor-pointer px-9 py-[5px] text-[15px] font-[500] duration-150 hover:bg-gray-100"
242
+ >
243
+ <Link
244
+ href={childGroup.etc2}
245
+ key={index}
246
+ target="_blank"
247
+ title={childGroup.codename}
248
+ onClick={() => {
249
+ setIsOpen(!isOpen);
250
+ }}
251
+ >
252
+ {childGroup.code_name} 센터
253
+ </Link>
254
+ </li>
255
+ ))}
256
+ </>
257
+ ))
258
+ : // 메인페이지가 아닌 경로로 유입되었을 때, api 호출하여 받은 데이터. 색인 x
259
+ (
260
+ isGroups as unknown as {
261
+ list: any[];
262
+ }
263
+ ).list?.map((item: any, index: number) => (
264
+ <>
265
+ <li
266
+ key={index}
267
+ value={item.code_name}
268
+ className="cursor-pointer px-5 py-[5px] text-[17px] font-[500] duration-150 hover:bg-gray-100"
269
+ >
270
+ <Link
271
+ href={getDomainHandler(item.code, item.code_desc)}
272
+ key={index}
273
+ target="_blank"
274
+ title={item.code_name}
275
+ onClick={() => {
276
+ setIsOpen(!isOpen);
277
+ }}
278
+ >
279
+ {item.code === 'CT0000'
280
+ ? item.code_name
281
+ : `${item.code_name} 그룹`}
282
+ </Link>
283
+ </li>
284
+ {item.children.length > 0 &&
285
+ item.children.map((childGroup: any) => (
286
+ <li
287
+ key={childGroup.code}
288
+ value={childGroup.code_name}
289
+ className="cursor-pointer px-9 py-[5px] text-[15px] font-[500] duration-150 hover:bg-gray-100"
290
+ >
291
+ <Link
292
+ href={childGroup.etc2}
293
+ key={index}
294
+ target="_blank"
295
+ title={childGroup.codename}
296
+ onClick={() => {
297
+ setIsOpen(!isOpen);
298
+ }}
299
+ >
300
+ {childGroup.code_name} 센터
301
+ </Link>
302
+ </li>
303
+ ))}
304
+ </>
305
+ ))}
306
+ </ul>
307
+
260
308
  <Image
261
309
  draggable={false}
262
310
  src={ArrowIcon}
@@ -285,7 +333,7 @@ const Footer = (props: IFooterTypes) => {
285
333
  </div>
286
334
  <div
287
335
  className={
288
- 'mb-[15px] max-xl:justify-center max-md:text-[14px] max-xs:mb-[24px] max-xs:text-[16px] max-2xs:mb-[33px] xs:flex xs:w-full xs:items-center'
336
+ 'mb-[15px] max-xl:justify-center max-md:text-[14px] max-xs:mb-[24px] max-xs:text-[16px] max-2xs:mb-[33px] xs:flex xs:w-[90vw] xs:items-center'
289
337
  }
290
338
  >
291
339
  <p className={'xs:pr-[11px] xs:text-center'}>
@@ -308,12 +356,12 @@ const Footer = (props: IFooterTypes) => {
308
356
  <p className={'border-solid max-xs:my-[11px] xs:border-r xs:px-[11px] xs:text-center'}>
309
357
  <span className="font-[800]">법률상담접수 </span>{' '}
310
358
  <Link
311
- href={`tel:${props.tel}`}
359
+ href={`tel:${tel}`}
312
360
  onClick={onClickTel}
313
- aria-label={'법률상담접수 ' + props.tel}
361
+ aria-label={'법률상담접수 ' + tel}
314
362
  className={'inline-block'}
315
363
  >
316
- <span className={'inline-block'}>{props.tel}</span>
364
+ <span className={'inline-block'}>{tel}</span>
317
365
  </Link>
318
366
  </p>
319
367
  <p className={'break-keep xs:pl-[11px] xs:text-center'}>
@@ -354,8 +402,8 @@ const Footer = (props: IFooterTypes) => {
354
402
  onClick={() => {
355
403
  insert('kakao', isMobile);
356
404
  savePowerLinkConversion('kakao', isMobile);
357
- mKakaoClick();
358
405
  ace_mKakaoClick();
406
+ mKakaoClick();
359
407
  }}
360
408
  >
361
409
  <Image
@@ -409,29 +457,19 @@ const FooterLinkList = () => {
409
457
  return (
410
458
  <>
411
459
  <p>
412
- <Link href={'https://www.daeryunlaw.com/common/disclaimer'} target={'_blank'}>
413
- 면책공고
414
- </Link>
460
+ <Link href={'/common/disclaimer'}>면책공고</Link>
415
461
  </p>
416
462
  <p>
417
- <Link href={'https://www.daeryunlaw.com/common/limited-liability'} target={'_blank'}>
418
- 유한책임
419
- </Link>
463
+ <Link href={'/common/limited-liability'}>유한책임</Link>
420
464
  </p>
421
465
  <p>
422
- <Link href={'https://www.daeryunlaw.com/common/privacy-policy'} target={'_blank'}>
423
- 개인정보처리방침
424
- </Link>
466
+ <Link href={'/common/privacy-policy'}>개인정보처리방침</Link>
425
467
  </p>
426
468
  <p>
427
- <Link href={'https://www.daeryunlaw.com/common/collect'} target={'_blank'}>
428
- 이메일무단수집거부
429
- </Link>
469
+ <Link href={'/common/collect'}>이메일무단수집거부</Link>
430
470
  </p>
431
471
  <p className={'text-[#285FA7]'}>
432
- <Link href={'https://www.daeryunlaw.com/inquire'} target={'_blank'}>
433
- 고객만족센터
434
- </Link>
472
+ <Link href={'https://www.daeryunlaw.com/inquire'}>고객만족센터</Link>
435
473
  </p>
436
474
  </>
437
475
  );
@@ -1,6 +1,9 @@
1
1
  import Link from 'next/link';
2
2
  import Image from 'next/image';
3
3
  import React from 'react';
4
+ import Icon from '../../asset/images/categoryView/section9_icon.webp';
5
+ import Arrow5 from '../../asset/images/categoryView/section9_arrow_05.webp';
6
+ import Arrow3 from '../../asset/images/categoryView/section9_arrow_03.webp';
4
7
  const CategoryComponent = (props) => {
5
8
  const { showCategory, onClickPage, currentPage, maxPageNum, selectedCenter, currentCenterTitle, allMainCenterTargetBlank } = props;
6
9
  const linkString = (id, pathname) => {
@@ -11,6 +14,30 @@ const CategoryComponent = (props) => {
11
14
  else {
12
15
  link = `https://www.daeryunlaw-${selectedCenter.code_desc}.com/${pathname}`;
13
16
  }
17
+ //
18
+ // //field 상세 없는 페이지 처리
19
+ // //노동
20
+ // if (selectedCenter.code_desc === 'labor') {
21
+ // if (id === 217 || id === 221 || id === 234 || id === 226 || id === 225 || id === 222) link += '/fire';
22
+ // else if (id === 216) link += '/payment';
23
+ // else if (id === 228 || id === 229) link += '/industrial';
24
+ // else if (id === 234) link += '/damages';
25
+ // else if (id === 232 || id === 219 || id === 224) link += '/accusation';
26
+ // else if (id === 223) link += '/torment';
27
+ // else if (id === 223) link += '/victim';
28
+ // return link;
29
+ // }
30
+ // //학교폭력
31
+ // if (selectedCenter.code_desc === 'school') {
32
+ // if (id === 375 || id === 362) link += '/violence';
33
+ // else if (id === 364) link += '/perpetrator';
34
+ // else if (id === 365) link += '/victim';
35
+ // else if (id === 363) link += '/process';
36
+ // else if (id === 366) link += '/juvenile';
37
+ // return link;
38
+ // }
39
+ // //증거조사
40
+ // if (selectedCenter.code_desc === 'discovery') return link;
14
41
  return link + '/' + id;
15
42
  };
16
43
  return (<div className={'flex h-auto w-full flex-col justify-between bg-[#FAFAFA] px-[30px] py-[20px] ' +
@@ -43,7 +70,7 @@ const CategoryComponent = (props) => {
43
70
  'max-2sm:text-[13px]'}>
44
71
  {item.title}
45
72
  </p>
46
- <Image src={'/images/categoryView/section9_arrow_03.webp'} alt={'arrow'} width={43} height={36} className={'h-auto w-[20px] transition-all group-hover/category:translate-x-[5px] ' +
73
+ <Image src={Arrow3} alt={'arrow'} width={43} height={36} className={'h-auto w-[20px] transition-all group-hover/category:translate-x-[5px] ' +
47
74
  //520px
48
75
  'max-md2:w-[16px] ' +
49
76
  //520px
@@ -69,11 +96,11 @@ const CategoryComponent = (props) => {
69
96
  <button className={`${currentPage <= 1 && 'pointer-events-none opacity-30'}`} onClick={() => {
70
97
  onClickPage(currentPage - 1);
71
98
  }}>
72
- <Image src={'/images/categoryView/section9_arrow_05.webp'} alt={'section9 next button'} width={22} height={39} className={'h-[19px] w-auto rotate-180 ' +
99
+ <Image src={Arrow5} alt={'section9 next button'} width={22} height={39} className={'h-[19px] w-auto rotate-180 ' +
73
100
  //520px
74
101
  'max-2sm:h-[15px]'}/>
75
102
  </button>
76
- <Image src={'/images/categoryView/section9_icon.webp'} alt={'section9'} width={12} height={32} className={'h-[16px] w-auto ' +
103
+ <Image src={Icon} alt={'section9'} width={12} height={32} className={'h-[16px] w-auto ' +
77
104
  //520px
78
105
  'max-2sm:h-[12px]'}/>
79
106
  <button className={`${currentPage >= maxPageNum && 'pointer-events-none opacity-30'}`} onClick={() => {
@@ -2,7 +2,9 @@ import Link from 'next/link';
2
2
  import Image from 'next/image';
3
3
  import React from 'react';
4
4
  import { ICategory, ICenter } from './ICategoryViewTypes';
5
-
5
+ import Icon from '../../asset/images/categoryView/section9_icon.webp';
6
+ import Arrow5 from '../../asset/images/categoryView/section9_arrow_05.webp';
7
+ import Arrow3 from '../../asset/images/categoryView/section9_arrow_03.webp';
6
8
  const CategoryComponent = (props: {
7
9
  showCategory: ICategory[];
8
10
  onClickPage: (num: number) => void;
@@ -30,6 +32,30 @@ const CategoryComponent = (props: {
30
32
  } else {
31
33
  link = `https://www.daeryunlaw-${selectedCenter.code_desc}.com/${pathname}`;
32
34
  }
35
+ //
36
+ // //field 상세 없는 페이지 처리
37
+ // //노동
38
+ // if (selectedCenter.code_desc === 'labor') {
39
+ // if (id === 217 || id === 221 || id === 234 || id === 226 || id === 225 || id === 222) link += '/fire';
40
+ // else if (id === 216) link += '/payment';
41
+ // else if (id === 228 || id === 229) link += '/industrial';
42
+ // else if (id === 234) link += '/damages';
43
+ // else if (id === 232 || id === 219 || id === 224) link += '/accusation';
44
+ // else if (id === 223) link += '/torment';
45
+ // else if (id === 223) link += '/victim';
46
+ // return link;
47
+ // }
48
+ // //학교폭력
49
+ // if (selectedCenter.code_desc === 'school') {
50
+ // if (id === 375 || id === 362) link += '/violence';
51
+ // else if (id === 364) link += '/perpetrator';
52
+ // else if (id === 365) link += '/victim';
53
+ // else if (id === 363) link += '/process';
54
+ // else if (id === 366) link += '/juvenile';
55
+ // return link;
56
+ // }
57
+ // //증거조사
58
+ // if (selectedCenter.code_desc === 'discovery') return link;
33
59
 
34
60
  return link + '/' + id;
35
61
  };
@@ -87,7 +113,7 @@ const CategoryComponent = (props: {
87
113
  {item.title}
88
114
  </p>
89
115
  <Image
90
- src={'/images/categoryView/section9_arrow_03.webp'}
116
+ src={Arrow3}
91
117
  alt={'arrow'}
92
118
  width={43}
93
119
  height={36}
@@ -141,7 +167,7 @@ const CategoryComponent = (props: {
141
167
  }}
142
168
  >
143
169
  <Image
144
- src={'/images/categoryView/section9_arrow_05.webp'}
170
+ src={Arrow5}
145
171
  alt={'section9 next button'}
146
172
  width={22}
147
173
  height={39}
@@ -153,7 +179,7 @@ const CategoryComponent = (props: {
153
179
  />
154
180
  </button>
155
181
  <Image
156
- src={'/images/categoryView/section9_icon.webp'}
182
+ src={Icon}
157
183
  alt={'section9'}
158
184
  width={12}
159
185
  height={32}
@@ -1,5 +1,7 @@
1
1
  import React from 'react';
2
2
  import Image from 'next/image';
3
+ import Arrow1 from '../../asset/images/categoryView/section9_arrow_01.webp';
4
+ import Arrow2 from '../../asset/images/categoryView/section9_arrow_02.webp';
3
5
  const CenterComponent = (props) => {
4
6
  const { themeColor, centerList, onClick, hiddenTitle, currentCenterTitle } = props;
5
7
  const currentCenter = props.centerList.filter(item => item.code_desc === currentCenterTitle);
@@ -31,13 +33,13 @@ const CenterComponent = (props) => {
31
33
  'max-2sm:text-[13px]'}>
32
34
  {item.code_name}
33
35
  </p>
34
- <Image src={'/images/categoryView/section9_arrow_01.webp'} alt={'arrow'} width={24} height={43} className={'mr-[10px] h-auto w-[12px] ' +
36
+ <Image src={Arrow1} alt={'arrow'} width={24} height={43} className={'mr-[10px] h-auto w-[12px] ' +
35
37
  `${item.isSelect ? 'block ' : 'hidden '}` +
36
38
  //1280px
37
39
  'max-xl:w-[9px] ' +
38
40
  //520px
39
41
  'max-2sm:w-[6px]'}/>
40
- <Image src={'/images/categoryView/section9_arrow_02.webp'} alt={'arrow'} width={24} height={43} className={'mr-[10px] h-auto w-[12px] ' +
42
+ <Image src={Arrow2} alt={'arrow'} width={24} height={43} className={'mr-[10px] h-auto w-[12px] ' +
41
43
  `${item.isSelect ? 'hidden ' : 'block '}` +
42
44
  //1280px
43
45
  'max-xl:w-[9px] ' +
@@ -1,6 +1,8 @@
1
1
  import React from 'react';
2
2
  import { ICenter } from './ICategoryViewTypes';
3
3
  import Image from 'next/image';
4
+ import Arrow1 from '../../asset/images/categoryView/section9_arrow_01.webp';
5
+ import Arrow2 from '../../asset/images/categoryView/section9_arrow_02.webp';
4
6
 
5
7
  const CenterComponent = (props: {
6
8
  themeColor: string;
@@ -61,7 +63,7 @@ const CenterComponent = (props: {
61
63
  {item.code_name}
62
64
  </p>
63
65
  <Image
64
- src={'/images/categoryView/section9_arrow_01.webp'}
66
+ src={Arrow1}
65
67
  alt={'arrow'}
66
68
  width={24}
67
69
  height={43}
@@ -75,7 +77,7 @@ const CenterComponent = (props: {
75
77
  }
76
78
  />
77
79
  <Image
78
- src={'/images/categoryView/section9_arrow_02.webp'}
80
+ src={Arrow2}
79
81
  alt={'arrow'}
80
82
  width={24}
81
83
  height={43}
@@ -544,6 +544,14 @@ video {
544
544
  pointer-events: none;
545
545
  }
546
546
 
547
+ .visible {
548
+ visibility: visible;
549
+ }
550
+
551
+ .invisible {
552
+ visibility: hidden;
553
+ }
554
+
547
555
  .fixed {
548
556
  position: fixed;
549
557
  }
@@ -1195,6 +1203,11 @@ video {
1195
1203
  padding-right: 1.25rem;
1196
1204
  }
1197
1205
 
1206
+ .px-9 {
1207
+ padding-left: 2.25rem;
1208
+ padding-right: 2.25rem;
1209
+ }
1210
+
1198
1211
  .px-\[140px\] {
1199
1212
  padding-left: 140px;
1200
1213
  padding-right: 140px;
@@ -1303,6 +1316,10 @@ video {
1303
1316
  font-size: 14px;
1304
1317
  }
1305
1318
 
1319
+ .text-\[15px\] {
1320
+ font-size: 15px;
1321
+ }
1322
+
1306
1323
  .text-\[16px\] {
1307
1324
  font-size: 16px;
1308
1325
  }
@@ -1529,6 +1546,10 @@ video {
1529
1546
  transition-duration: 150ms;
1530
1547
  }
1531
1548
 
1549
+ .duration-150 {
1550
+ transition-duration: 150ms;
1551
+ }
1552
+
1532
1553
  .duration-700 {
1533
1554
  transition-duration: 700ms;
1534
1555
  }
@@ -1590,6 +1611,11 @@ body {
1590
1611
  background-color: #b99c6e1a;
1591
1612
  }
1592
1613
 
1614
+ .hover\:bg-gray-100:hover {
1615
+ --tw-bg-opacity: 1;
1616
+ background-color: rgb(243 244 246 / var(--tw-bg-opacity));
1617
+ }
1618
+
1593
1619
  .focus\:outline-none:focus {
1594
1620
  outline: 2px solid transparent;
1595
1621
  outline-offset: 2px;
@@ -2406,8 +2432,8 @@ body {
2406
2432
  display: flex;
2407
2433
  }
2408
2434
 
2409
- .xs\:w-full {
2410
- width: 100%;
2435
+ .xs\:w-\[90vw\] {
2436
+ width: 90vw;
2411
2437
  }
2412
2438
 
2413
2439
  .xs\:items-center {