@daeryun/dr_components 1.0.43 → 1.0.45
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/cjs/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/components/Daeryuntalk/ChatButton.jsx +1 -1
- package/dist/components/Daeryuntalk/ChatButton.tsx +1 -1
- package/dist/components/Fix/index.jsx +59 -37
- package/dist/components/Fix/index.tsx +126 -66
- package/dist/components/page/Login/Login.jsx +1 -1
- package/dist/components/page/Login/Login.tsx +1 -1
- package/dist/styles/globals.css +57 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ import useBrowser from '../common/hook/useBrowser';
|
|
|
12
12
|
import OnlineIcon from '../../asset/images/fix/online.webp';
|
|
13
13
|
import KakaoIcon from '../../asset/images/fix/kakao.webp';
|
|
14
14
|
import CallIcon from '../../asset/images/fix/call.webp';
|
|
15
|
-
import Call2Icon from '../../asset/images/fix/call2.webp';
|
|
15
|
+
// import Call2Icon from '../../asset/images/fix/call2.webp';
|
|
16
16
|
import MenuXIcon from '../../asset/images/fix/menu_x.webp';
|
|
17
17
|
import ArrowIcon from '../../asset/images/fix/arrow.webp';
|
|
18
18
|
import OnlineIconM from '../../asset/images/fix/online_m.webp';
|
|
@@ -260,6 +260,10 @@ const Fix = (props: { tel: string; aceUrl?: string; wideBottom?: boolean; center
|
|
|
260
260
|
setViewCall(false);
|
|
261
261
|
}, [pathname]);
|
|
262
262
|
|
|
263
|
+
useEffect(() => {
|
|
264
|
+
width < 1024 && setViewCall(false);
|
|
265
|
+
}, [width]);
|
|
266
|
+
|
|
263
267
|
return (
|
|
264
268
|
<>
|
|
265
269
|
<div
|
|
@@ -531,13 +535,15 @@ const Fix = (props: { tel: string; aceUrl?: string; wideBottom?: boolean; center
|
|
|
531
535
|
{/*전화*/}
|
|
532
536
|
{viewCall ? (
|
|
533
537
|
<CallBox
|
|
534
|
-
titleTxt={'
|
|
538
|
+
titleTxt={'변호사상담 접수'}
|
|
539
|
+
mobileTitleTxt={'전화 예약상담'}
|
|
535
540
|
tel={props.tel}
|
|
536
541
|
companyTxt={'기업상담'}
|
|
537
542
|
privateTxt={'개인상담'}
|
|
538
543
|
cancel={handleCancel}
|
|
539
544
|
onClickTel={onClickTel}
|
|
540
545
|
callRef={callRef}
|
|
546
|
+
width={width}
|
|
541
547
|
/>
|
|
542
548
|
) : (
|
|
543
549
|
<></>
|
|
@@ -640,80 +646,134 @@ const OnlineBox = (props: {
|
|
|
640
646
|
|
|
641
647
|
const CallBox = (props: {
|
|
642
648
|
titleTxt: string;
|
|
649
|
+
mobileTitleTxt: string;
|
|
643
650
|
tel: string;
|
|
644
651
|
companyTxt: string;
|
|
645
652
|
privateTxt: string;
|
|
646
653
|
cancel: (ref: RefObject<HTMLDivElement>, type: 'online' | 'call') => void;
|
|
647
654
|
onClickTel: () => void;
|
|
648
|
-
callRef:
|
|
655
|
+
callRef: RefObject<HTMLDivElement>;
|
|
656
|
+
width: number;
|
|
649
657
|
}) => {
|
|
650
658
|
const closeRef = useRef<HTMLButtonElement>(null);
|
|
651
659
|
|
|
652
660
|
return (
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
661
|
+
<>
|
|
662
|
+
{props.width >= 1024 ? (
|
|
663
|
+
<div
|
|
664
|
+
ref={props.callRef}
|
|
665
|
+
className={
|
|
666
|
+
'absolute bottom-[0px] right-[112px] z-50 flex h-[101px] w-[309px] items-center rounded-2xl max-5xl:right-[80px] ' +
|
|
667
|
+
'animate-[fadeIn_0.15s] transition-opacity'
|
|
668
|
+
}
|
|
669
|
+
>
|
|
670
|
+
<Image src={'/images/header/callbox.webp'} alt={'전화상담 box_pc view'} fill className={`z-[-1]`} />
|
|
671
|
+
|
|
672
|
+
<div className={`flex items-center justify-between px-5`}>
|
|
673
|
+
{/* 전화 아이콘 */}
|
|
674
|
+
<div>
|
|
675
|
+
<Image
|
|
676
|
+
src={'/images/header/call.webp'}
|
|
677
|
+
alt={'변호사 상담접수 전화 아이콘'}
|
|
678
|
+
width={48}
|
|
679
|
+
height={48}
|
|
680
|
+
className={`mr-4`}
|
|
681
|
+
/>
|
|
682
|
+
</div>
|
|
683
|
+
<div id="content_box" className={`font-[Pretendard] font-bold`}>
|
|
684
|
+
<p className={'mb-[1px] text-xl tracking-tighter'}>{props.titleTxt}</p>
|
|
685
|
+
<p className={`text-[32px] leading-[1] text-[#142897]`}>{props.tel}</p>
|
|
686
|
+
</div>
|
|
678
687
|
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
'flex h-[80px] w-[240px] items-center justify-between rounded-[5px] bg-[#0A96AF] px-[20px] py-[16px] text-[22px] font-bold text-white' +
|
|
699
|
-
' max-5xl:h-[60px] max-5xl:w-[190px] max-5xl:text-[18px] ' +
|
|
700
|
-
' max-lg:h-[60px] max-lg:w-[200px] max-lg:px-[15px] max-lg:py-[12px] '
|
|
701
|
-
}
|
|
702
|
-
onClick={props.onClickTel}
|
|
703
|
-
aria-label={'개인 전화상담'}
|
|
704
|
-
onKeyDown={e => {
|
|
705
|
-
if (e.key === 'Tab') {
|
|
706
|
-
e.preventDefault();
|
|
707
|
-
closeRef.current?.focus();
|
|
688
|
+
<button onClick={() => props.cancel(props.callRef, 'call')} ref={closeRef}>
|
|
689
|
+
<Image
|
|
690
|
+
src={'/images/header/menu_x.webp'}
|
|
691
|
+
width={13.15}
|
|
692
|
+
height={13.15}
|
|
693
|
+
alt={'변호사 상담접수 닫기 버튼'}
|
|
694
|
+
className={'absolute right-[28px] top-[20px] h-auto w-[13.16px] cursor-pointer'}
|
|
695
|
+
/>
|
|
696
|
+
</button>
|
|
697
|
+
</div>
|
|
698
|
+
</div>
|
|
699
|
+
) : (
|
|
700
|
+
<div
|
|
701
|
+
ref={props.callRef}
|
|
702
|
+
className={
|
|
703
|
+
'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)] ' +
|
|
704
|
+
'max-5xl:bottom-[15px] max-5xl:h-[230px] max-5xl:w-[230px] max-5xl:px-[22px] max-5xl:py-[20px] ' +
|
|
705
|
+
'max-lg:bottom-[85px] max-lg:right-[20px] max-lg:h-[200px] max-lg:w-[240px] max-lg:px-[20px] max-lg:py-[17px] ' +
|
|
706
|
+
'animate-[fadeIn_0.15s] transition-opacity '
|
|
708
707
|
}
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
708
|
+
>
|
|
709
|
+
<span
|
|
710
|
+
className={
|
|
711
|
+
'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]'
|
|
712
|
+
}
|
|
713
|
+
>
|
|
714
|
+
<p>{props.mobileTitleTxt}</p>
|
|
715
|
+
<button onClick={() => props.cancel(props.callRef, 'call')} ref={closeRef}>
|
|
716
|
+
<Image
|
|
717
|
+
src={'/images/header/menu_x.webp'}
|
|
718
|
+
width={54}
|
|
719
|
+
height={54}
|
|
720
|
+
alt={'전화상담 닫기'}
|
|
721
|
+
className={'h-auto w-[20px] cursor-pointer max-5xl:w-[15px] max-lg:w-[15px]'}
|
|
722
|
+
/>
|
|
723
|
+
</button>
|
|
724
|
+
</span>
|
|
725
|
+
|
|
726
|
+
<Link
|
|
727
|
+
href={`tel:${props.tel}`}
|
|
728
|
+
className={
|
|
729
|
+
'mb-[4px] mt-[32px] flex h-[80px] w-[240px] items-center justify-between rounded-[5px] bg-[#285EA7] px-[20px] py-[16px] text-[22px] font-bold text-white' +
|
|
730
|
+
' max-5xl:h-[60px] max-5xl:w-[190px] max-5xl:text-[18px] ' +
|
|
731
|
+
' max-lg:mt-[15px] max-lg:h-[60px] max-lg:w-[200px] max-lg:px-[15px] max-lg:py-[12px] '
|
|
732
|
+
}
|
|
733
|
+
onClick={props.onClickTel}
|
|
734
|
+
aria-label={'기업 전화상담'}
|
|
735
|
+
>
|
|
736
|
+
<span className={'text-left font-bold leading-tight max-lg:leading-[17.5px]'}>
|
|
737
|
+
<span className={'text-[20px] max-lg:text-[16px]'}>{props.companyTxt}</span>
|
|
738
|
+
{/* <span className={'text-[22px] max-lg:text-[16px] block'}>{tel}</span> */}
|
|
739
|
+
</span>
|
|
740
|
+
<Image
|
|
741
|
+
src={'/images/fix/call2.webp'}
|
|
742
|
+
width={30}
|
|
743
|
+
height={30}
|
|
744
|
+
alt={''}
|
|
745
|
+
className={'h-[30px] w-[30px]'}
|
|
746
|
+
/>
|
|
747
|
+
</Link>
|
|
748
|
+
<Link
|
|
749
|
+
href={`tel:${props.tel}`}
|
|
750
|
+
className={
|
|
751
|
+
'flex h-[80px] w-[240px] items-center justify-between rounded-[5px] bg-[#0A96AF] px-[20px] py-[16px] text-[22px] font-bold text-white' +
|
|
752
|
+
' max-5xl:h-[60px] max-5xl:w-[190px] max-5xl:text-[18px] ' +
|
|
753
|
+
' max-lg:h-[60px] max-lg:w-[200px] max-lg:px-[15px] max-lg:py-[12px] '
|
|
754
|
+
}
|
|
755
|
+
onClick={props.onClickTel}
|
|
756
|
+
aria-label={'개인 전화상담'}
|
|
757
|
+
onKeyDown={e => {
|
|
758
|
+
if (e.key === 'Tab') {
|
|
759
|
+
e.preventDefault();
|
|
760
|
+
closeRef.current?.focus();
|
|
761
|
+
}
|
|
762
|
+
}}
|
|
763
|
+
>
|
|
764
|
+
<span className={'text-left font-bold leading-tight max-lg:leading-[17.5px]'}>
|
|
765
|
+
<span className={'text-[20px] max-lg:text-[16px] '}>{props.privateTxt}</span>
|
|
766
|
+
</span>
|
|
767
|
+
<Image
|
|
768
|
+
src={'/images/fix/call2.webp'}
|
|
769
|
+
width={30}
|
|
770
|
+
height={30}
|
|
771
|
+
alt={''}
|
|
772
|
+
className={'h-[30px] w-[30px]'}
|
|
773
|
+
/>
|
|
774
|
+
</Link>
|
|
775
|
+
</div>
|
|
776
|
+
)}
|
|
777
|
+
</>
|
|
718
778
|
);
|
|
719
779
|
};
|
|
@@ -12,7 +12,7 @@ import React, { Suspense, useEffect } from 'react';
|
|
|
12
12
|
import { usePathname } from 'next/navigation';
|
|
13
13
|
import LoginContainer from './LoginComp/LoginContainer';
|
|
14
14
|
import { fetchUserData } from './_api/fetchUserData';
|
|
15
|
-
const Login = ({ layoutClassName = ' relative h-[100%] max-
|
|
15
|
+
const Login = ({ layoutClassName = ' relative h-[100%] mt-[200px] max-md2:mt-[140px] max-2sm:mt-[100px] w-full overflow-hidden bg-white font-[SUIT] mb-[150px] ' +
|
|
16
16
|
' max-sm:mt-[20px] ', state, isTestLogin = false }) => {
|
|
17
17
|
const pathName = usePathname();
|
|
18
18
|
const userCheck = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -13,7 +13,7 @@ interface props {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
const Login = ({
|
|
16
|
-
layoutClassName = ' relative h-[100%] max-
|
|
16
|
+
layoutClassName = ' relative h-[100%] mt-[200px] max-md2:mt-[140px] max-2sm:mt-[100px] w-full overflow-hidden bg-white font-[SUIT] mb-[150px] ' +
|
|
17
17
|
' max-sm:mt-[20px] ',
|
|
18
18
|
state,
|
|
19
19
|
isTestLogin = false
|
package/dist/styles/globals.css
CHANGED
|
@@ -898,6 +898,10 @@ video {
|
|
|
898
898
|
bottom: -5px;
|
|
899
899
|
}
|
|
900
900
|
|
|
901
|
+
.bottom-\[0px\] {
|
|
902
|
+
bottom: 0px;
|
|
903
|
+
}
|
|
904
|
+
|
|
901
905
|
.bottom-\[10px\] {
|
|
902
906
|
bottom: 10px;
|
|
903
907
|
}
|
|
@@ -1034,6 +1038,10 @@ video {
|
|
|
1034
1038
|
right: 10px;
|
|
1035
1039
|
}
|
|
1036
1040
|
|
|
1041
|
+
.right-\[112px\] {
|
|
1042
|
+
right: 112px;
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1037
1045
|
.right-\[120px\] {
|
|
1038
1046
|
right: 120px;
|
|
1039
1047
|
}
|
|
@@ -1058,6 +1066,10 @@ video {
|
|
|
1058
1066
|
right: 25px;
|
|
1059
1067
|
}
|
|
1060
1068
|
|
|
1069
|
+
.right-\[28px\] {
|
|
1070
|
+
right: 28px;
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1061
1073
|
.right-\[30px\] {
|
|
1062
1074
|
right: 30px;
|
|
1063
1075
|
}
|
|
@@ -1665,6 +1677,10 @@ video {
|
|
|
1665
1677
|
margin-right: 0.75rem;
|
|
1666
1678
|
}
|
|
1667
1679
|
|
|
1680
|
+
.mr-4 {
|
|
1681
|
+
margin-right: 1rem;
|
|
1682
|
+
}
|
|
1683
|
+
|
|
1668
1684
|
.mr-8 {
|
|
1669
1685
|
margin-right: 2rem;
|
|
1670
1686
|
}
|
|
@@ -1877,6 +1893,10 @@ video {
|
|
|
1877
1893
|
margin-top: 20.11px;
|
|
1878
1894
|
}
|
|
1879
1895
|
|
|
1896
|
+
.mt-\[200px\] {
|
|
1897
|
+
margin-top: 200px;
|
|
1898
|
+
}
|
|
1899
|
+
|
|
1880
1900
|
.mt-\[20px\] {
|
|
1881
1901
|
margin-top: 20px;
|
|
1882
1902
|
}
|
|
@@ -2225,6 +2245,10 @@ video {
|
|
|
2225
2245
|
height: 100vh;
|
|
2226
2246
|
}
|
|
2227
2247
|
|
|
2248
|
+
.h-\[101px\] {
|
|
2249
|
+
height: 101px;
|
|
2250
|
+
}
|
|
2251
|
+
|
|
2228
2252
|
.h-\[102px\] {
|
|
2229
2253
|
height: 102px;
|
|
2230
2254
|
}
|
|
@@ -3004,6 +3028,10 @@ video {
|
|
|
3004
3028
|
width: 12px;
|
|
3005
3029
|
}
|
|
3006
3030
|
|
|
3031
|
+
.w-\[13\.16px\] {
|
|
3032
|
+
width: 13.16px;
|
|
3033
|
+
}
|
|
3034
|
+
|
|
3007
3035
|
.w-\[130px\] {
|
|
3008
3036
|
width: 130px;
|
|
3009
3037
|
}
|
|
@@ -3180,6 +3208,10 @@ video {
|
|
|
3180
3208
|
width: 300vw;
|
|
3181
3209
|
}
|
|
3182
3210
|
|
|
3211
|
+
.w-\[309px\] {
|
|
3212
|
+
width: 309px;
|
|
3213
|
+
}
|
|
3214
|
+
|
|
3183
3215
|
.w-\[30px\] {
|
|
3184
3216
|
width: 30px;
|
|
3185
3217
|
}
|
|
@@ -4586,6 +4618,10 @@ video {
|
|
|
4586
4618
|
border-radius: 0.25rem;
|
|
4587
4619
|
}
|
|
4588
4620
|
|
|
4621
|
+
.rounded-2xl {
|
|
4622
|
+
border-radius: 1rem;
|
|
4623
|
+
}
|
|
4624
|
+
|
|
4589
4625
|
.rounded-\[0px\] {
|
|
4590
4626
|
border-radius: 0px;
|
|
4591
4627
|
}
|
|
@@ -6992,6 +7028,10 @@ video {
|
|
|
6992
7028
|
font-family: NotoSansKR;
|
|
6993
7029
|
}
|
|
6994
7030
|
|
|
7031
|
+
.font-\[Pretendard\] {
|
|
7032
|
+
font-family: Pretendard;
|
|
7033
|
+
}
|
|
7034
|
+
|
|
6995
7035
|
.font-\[SUIT\] {
|
|
6996
7036
|
font-family: SUIT;
|
|
6997
7037
|
}
|
|
@@ -7656,6 +7696,11 @@ video {
|
|
|
7656
7696
|
color: rgb(13 116 206 / var(--tw-text-opacity));
|
|
7657
7697
|
}
|
|
7658
7698
|
|
|
7699
|
+
.text-\[\#142897\] {
|
|
7700
|
+
--tw-text-opacity: 1;
|
|
7701
|
+
color: rgb(20 40 151 / var(--tw-text-opacity));
|
|
7702
|
+
}
|
|
7703
|
+
|
|
7659
7704
|
.text-\[\#143F79\] {
|
|
7660
7705
|
--tw-text-opacity: 1;
|
|
7661
7706
|
color: rgb(20 63 121 / var(--tw-text-opacity));
|
|
@@ -9558,6 +9603,10 @@ body {
|
|
|
9558
9603
|
bottom: 75px;
|
|
9559
9604
|
}
|
|
9560
9605
|
|
|
9606
|
+
.max-5xl\:right-\[80px\] {
|
|
9607
|
+
right: 80px;
|
|
9608
|
+
}
|
|
9609
|
+
|
|
9561
9610
|
.max-5xl\:mb-\[3px\] {
|
|
9562
9611
|
margin-bottom: 3px;
|
|
9563
9612
|
}
|
|
@@ -13289,6 +13338,10 @@ body {
|
|
|
13289
13338
|
margin-top: 0;
|
|
13290
13339
|
}
|
|
13291
13340
|
|
|
13341
|
+
.max-md2\:mt-\[140px\] {
|
|
13342
|
+
margin-top: 140px;
|
|
13343
|
+
}
|
|
13344
|
+
|
|
13292
13345
|
.max-md2\:mt-\[2px\] {
|
|
13293
13346
|
margin-top: 2px;
|
|
13294
13347
|
}
|
|
@@ -16127,6 +16180,10 @@ body {
|
|
|
16127
16180
|
margin-bottom: 30px;
|
|
16128
16181
|
}
|
|
16129
16182
|
|
|
16183
|
+
.max-2sm\:mt-\[100px\] {
|
|
16184
|
+
margin-top: 100px;
|
|
16185
|
+
}
|
|
16186
|
+
|
|
16130
16187
|
.max-2sm\:mt-\[15px\] {
|
|
16131
16188
|
margin-top: 15px;
|
|
16132
16189
|
}
|