@daeryun/dr_components 1.1.6 → 1.1.8

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.
@@ -16,6 +16,8 @@ import ArrowIcon from '../../asset/images/fix/arrow.webp';
16
16
  import OnlineIconM from '../../asset/images/fix/online_m.webp';
17
17
  import KakaoIconM from '../../asset/images/fix/kakao_m.webp';
18
18
  import CallIconM from '../../asset/images/fix/call_m.webp';
19
+ import CallIconB from '../../../public/images/header/call.webp';
20
+ import CallBoxIcon from '../../../public/images/header/callbox.webp';
19
21
  const Fix = (props) => {
20
22
  const mobile = require('is-mobile');
21
23
  const pathname = usePathname();
@@ -365,7 +367,7 @@ const Fix = (props) => {
365
367
  </div>
366
368
 
367
369
  {/*온라인*/}
368
- {viewOnline ? (<OnlineBox titleTxt={'온라인 예약상담'} centerConsultUrl={props.centerConsultUrl} reservationTxt={'해당사건에 특화된 전문변호사가 검토 후 신속한 대응전략을 제시합니다.'} companyTxt={'기업상담'} privateTxt={'개인상담'} cancel={handleCancel} onlineRef={onlineRef} onConsultCompClick={() => onConsultCompClick()} onConsultPersonalClick={() => onConsultPersonalClick()}/>) : (<></>)}
370
+ {viewOnline ? (<OnlineBox titleTxt={'온라인 예약상담'} centerConsultUrl={props.centerConsultUrl} reservationTxt={'해당사건에 특화된 전문변호사가 검토 후 신속한 대응전략을 제시합니다.'} companyTxt={'기업상담'} privateTxt={'개인상담'} cancel={handleCancel} onlineRef={onlineRef} onConsultCompClick={() => onConsultCompClick()} onConsultPersonalClick={() => onConsultPersonalClick()} target={props.target}/>) : (<></>)}
369
371
 
370
372
  {/*전화*/}
371
373
  {viewCall ? (<CallBox titleTxt={'변호사상담 접수'} mobileTitleTxt={'전화 예약상담'} tel={props.tel} companyTxt={'기업상담'} privateTxt={'개인상담'} cancel={handleCancel} onClickTel={onClickTel} callRef={callRef} width={width} customFont={props.customFont}/>) : (<></>)}
@@ -413,12 +415,12 @@ const CallBox = (props) => {
413
415
  return (<>
414
416
  {props.width >= 1024 ? (<div ref={props.callRef} className={'absolute bottom-[0px] right-[112px] z-50 flex h-[101px] w-[309px] items-center rounded-2xl max-5xl:right-[80px] ' +
415
417
  'animate-[fadeIn_0.15s] transition-opacity'}>
416
- <Image src={'/images/header/callbox.webp'} alt={'전화상담 box_pc view'} fill className={`z-[-1]`}/>
418
+ <Image src={CallBoxIcon} alt={'전화상담 box_pc view'} fill className={`z-[-1]`}/>
417
419
 
418
420
  <div className={`flex items-center justify-between px-5`}>
419
421
  {/* 전화 아이콘 */}
420
422
  <div>
421
- <Image src={'/images/header/call.webp'} alt={'변호사 상담접수 전화 아이콘'} width={48} height={48} className={`mr-4`}/>
423
+ <Image src={CallIconB} alt={'변호사 상담접수 전화 아이콘'} width={48} height={48} className={`mr-4`}/>
422
424
  </div>
423
425
  <div id="content_box" className={`${props.customFont} font-bold`}>
424
426
  <p className={'mb-[1px] text-xl tracking-tighter'}>{props.titleTxt}</p>
@@ -426,7 +428,7 @@ const CallBox = (props) => {
426
428
  </div>
427
429
 
428
430
  <button onClick={() => props.cancel(props.callRef, 'call')} ref={closeRef}>
429
- <Image src={'/images/header/menu_x.webp'} width={13.15} height={13.15} alt={'변호사 상담접수 닫기 버튼'} className={'absolute right-[28px] top-[20px] h-auto w-[13.16px] cursor-pointer'}/>
431
+ <Image src={MenuXIcon} width={13.15} height={13.15} alt={'변호사 상담접수 닫기 버튼'} className={'absolute right-[28px] top-[20px] h-auto w-[13.16px] cursor-pointer'}/>
430
432
  </button>
431
433
  </div>
432
434
  </div>) : (<div ref={props.callRef} className={'fixed bottom-[80px] right-[25px] z-50 h-[300px] w-[300px] bg-white px-[30px] py-[26px] shadow-[0_4px_8px_0_rgba(0,0,0,0.1)] ' +
@@ -436,7 +438,7 @@ const CallBox = (props) => {
436
438
  <span className={'z-10 mb-[11px] flex w-full items-center justify-between text-[26px] font-bold leading-[30px] tracking-[-1.3px] max-5xl:text-[20px] max-lg:text-[18px] max-lg:leading-[23px]'}>
437
439
  <p>{props.mobileTitleTxt}</p>
438
440
  <button onClick={() => props.cancel(props.callRef, 'call')} ref={closeRef}>
439
- <Image src={'/images/header/menu_x.webp'} width={54} height={54} alt={'전화상담 닫기'} className={'h-auto w-[20px] cursor-pointer max-5xl:w-[15px] max-lg:w-[15px]'}/>
441
+ <Image src={MenuXIcon} width={54} height={54} alt={'전화상담 닫기'} className={'h-auto w-[20px] cursor-pointer max-5xl:w-[15px] max-lg:w-[15px]'}/>
440
442
  </button>
441
443
  </span>
442
444
 
@@ -19,6 +19,9 @@ import OnlineIconM from '../../asset/images/fix/online_m.webp';
19
19
  import KakaoIconM from '../../asset/images/fix/kakao_m.webp';
20
20
  import CallIconM from '../../asset/images/fix/call_m.webp';
21
21
 
22
+ import CallIconB from '../../../public/images/header/call.webp';
23
+ import CallBoxIcon from '../../../public/images/header/callbox.webp';
24
+
22
25
  const Fix = (props: {
23
26
  tel: string;
24
27
  aceUrl?: string;
@@ -545,6 +548,7 @@ const Fix = (props: {
545
548
  onlineRef={onlineRef}
546
549
  onConsultCompClick={() => onConsultCompClick()}
547
550
  onConsultPersonalClick={() => onConsultPersonalClick()}
551
+ target={props.target}
548
552
  />
549
553
  ) : (
550
554
  <></>
@@ -690,13 +694,13 @@ const CallBox = (props: {
690
694
  'animate-[fadeIn_0.15s] transition-opacity'
691
695
  }
692
696
  >
693
- <Image src={'/images/header/callbox.webp'} alt={'전화상담 box_pc view'} fill className={`z-[-1]`} />
697
+ <Image src={CallBoxIcon} alt={'전화상담 box_pc view'} fill className={`z-[-1]`} />
694
698
 
695
699
  <div className={`flex items-center justify-between px-5`}>
696
700
  {/* 전화 아이콘 */}
697
701
  <div>
698
702
  <Image
699
- src={'/images/header/call.webp'}
703
+ src={CallIconB}
700
704
  alt={'변호사 상담접수 전화 아이콘'}
701
705
  width={48}
702
706
  height={48}
@@ -710,7 +714,7 @@ const CallBox = (props: {
710
714
 
711
715
  <button onClick={() => props.cancel(props.callRef, 'call')} ref={closeRef}>
712
716
  <Image
713
- src={'/images/header/menu_x.webp'}
717
+ src={MenuXIcon}
714
718
  width={13.15}
715
719
  height={13.15}
716
720
  alt={'변호사 상담접수 닫기 버튼'}
@@ -737,7 +741,7 @@ const CallBox = (props: {
737
741
  <p>{props.mobileTitleTxt}</p>
738
742
  <button onClick={() => props.cancel(props.callRef, 'call')} ref={closeRef}>
739
743
  <Image
740
- src={'/images/header/menu_x.webp'}
744
+ src={MenuXIcon}
741
745
  width={54}
742
746
  height={54}
743
747
  alt={'전화상담 닫기'}