@daeryun/dr_components 0.1.84 → 0.1.86
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/choice/choice_call.webp +0 -0
- package/dist/asset/images/choice/choice_kakao.webp +0 -0
- package/dist/asset/images/choice/choice_stepIcon_01.webp +0 -0
- package/dist/asset/images/choice/choice_stepIcon_02.webp +0 -0
- package/dist/asset/images/choice/choice_stepIcon_03.webp +0 -0
- package/dist/asset/images/choice/choice_stepIcon_04.webp +0 -0
- package/dist/asset/images/choice/choice_tri.webp +0 -0
- package/dist/asset/images/choice/mt_icon.svg +16 -0
- package/dist/asset/images/choice/new_choice_consult.webp +0 -0
- package/dist/asset/images/choice/new_choice_consulting.webp +0 -0
- package/dist/asset/images/fix/call_m.webp +0 -0
- package/dist/asset/images/fix/kakao_m.webp +0 -0
- package/dist/asset/images/fix/online_m.webp +0 -0
- package/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/components/Fix/index.jsx +287 -105
- package/dist/components/Fix/index.tsx +532 -210
- package/dist/components/page/Choice/Choice.d.ts +8 -0
- package/dist/components/page/Choice/Choice.jsx +640 -0
- package/dist/components/page/Choice/Choice.stories.d.ts +6 -0
- package/dist/components/page/Choice/Choice.stories.jsx +51 -0
- package/dist/components/page/Choice/Choice.stories.tsx +62 -0
- package/dist/components/page/Choice/Choice.tsx +972 -0
- package/dist/components/page/index.d.ts +0 -0
- package/dist/components/page/index.js +1 -0
- package/dist/components/page/index.ts +0 -0
- package/dist/styles/globals.css +1129 -37
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,33 +1,126 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
1
|
import Link from 'next/link';
|
|
11
2
|
import React, { useEffect, useRef, useState } from 'react';
|
|
12
3
|
import Image from 'next/image';
|
|
13
4
|
import { insert } from '../../lib';
|
|
14
5
|
import * as gtag from '../../lib/gtag';
|
|
15
6
|
import { savePowerLinkConversion } from '../../lib';
|
|
16
|
-
import style from './index.module.css';
|
|
17
7
|
import { useRouter } from 'next/router';
|
|
8
|
+
import useBrowser from '../common/hook/useBrowser';
|
|
18
9
|
import OnlineIcon from '../../asset/images/fix/online.webp';
|
|
19
10
|
import KakaoIcon from '../../asset/images/fix/kakao.webp';
|
|
20
11
|
import CallIcon from '../../asset/images/fix/call.webp';
|
|
21
12
|
import Call2Icon from '../../asset/images/fix/call2.webp';
|
|
22
13
|
import MenuXIcon from '../../asset/images/fix/menu_x.webp';
|
|
23
14
|
import ArrowIcon from '../../asset/images/fix/arrow.webp';
|
|
15
|
+
import OnlineIconM from '../../asset/images/fix/online_m.webp';
|
|
16
|
+
import KakaoIconM from '../../asset/images/fix/kakao_m.webp';
|
|
17
|
+
import CallIconM from '../../asset/images/fix/call_m.webp';
|
|
24
18
|
const Fix = (props) => {
|
|
25
19
|
const mobile = require('is-mobile');
|
|
26
20
|
const [isMobile, setIsMobile] = useState(false);
|
|
27
21
|
// const [isTop, setIsTop] = useState(true);
|
|
22
|
+
//온라인상담, 전화상담
|
|
23
|
+
const [viewOnline, setViewOnline] = useState(false);
|
|
24
|
+
const [viewCall, setViewCall] = useState(false);
|
|
28
25
|
const onlineRef = useRef(null);
|
|
29
26
|
const callRef = useRef(null);
|
|
27
|
+
const { width } = useBrowser();
|
|
28
|
+
//모바일 액티브
|
|
29
|
+
const [activeNum, setActiveNum] = useState(0);
|
|
30
|
+
const [isHovered, setIsHovered] = useState(false);
|
|
30
31
|
const router = useRouter();
|
|
32
|
+
const handleCancel = (ref, type) => {
|
|
33
|
+
var _a, _b;
|
|
34
|
+
if (ref.current) {
|
|
35
|
+
ref.current.style.opacity = '0';
|
|
36
|
+
}
|
|
37
|
+
if (type === 'call')
|
|
38
|
+
(_a = document.getElementById('callBtn')) === null || _a === void 0 ? void 0 : _a.focus();
|
|
39
|
+
else if (type === 'online')
|
|
40
|
+
(_b = document.getElementById('onlineBtn')) === null || _b === void 0 ? void 0 : _b.focus();
|
|
41
|
+
setTimeout(() => {
|
|
42
|
+
var _a;
|
|
43
|
+
if (type === 'call') {
|
|
44
|
+
setViewCall(false);
|
|
45
|
+
}
|
|
46
|
+
else if (type === 'online') {
|
|
47
|
+
(_a = document.getElementById('onlineBtn')) === null || _a === void 0 ? void 0 : _a.focus();
|
|
48
|
+
setViewOnline(false);
|
|
49
|
+
}
|
|
50
|
+
}, 400);
|
|
51
|
+
};
|
|
52
|
+
const onClickConsult = () => {
|
|
53
|
+
if (isMobile) {
|
|
54
|
+
mConsultClick();
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
pcConsultClick();
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
const onConsultCompClick = () => {
|
|
61
|
+
if (isMobile) {
|
|
62
|
+
mConsultCompClick();
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
pcConsultCompClick();
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
const onConsultPersonalClick = () => {
|
|
69
|
+
if (isMobile) {
|
|
70
|
+
mConsultPersonalClick();
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
pcConsultPersonalClick();
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
const pcConsultClick = () => {
|
|
77
|
+
gtag.event({
|
|
78
|
+
action: 'pc_fix_consult',
|
|
79
|
+
category: 'fix_consult',
|
|
80
|
+
label: '피씨온라인예약클릭',
|
|
81
|
+
value: '1'
|
|
82
|
+
});
|
|
83
|
+
};
|
|
84
|
+
const mConsultClick = () => {
|
|
85
|
+
gtag.event({
|
|
86
|
+
action: 'mobile_fix_consult',
|
|
87
|
+
category: 'fix_consult',
|
|
88
|
+
label: '모바일온라인예약클릭',
|
|
89
|
+
value: '1'
|
|
90
|
+
});
|
|
91
|
+
};
|
|
92
|
+
const pcConsultCompClick = () => {
|
|
93
|
+
gtag.event({
|
|
94
|
+
action: 'pc_fix_comp_consult',
|
|
95
|
+
category: 'fix_consult',
|
|
96
|
+
label: '피씨온라인기업상담클릭',
|
|
97
|
+
value: '1'
|
|
98
|
+
});
|
|
99
|
+
};
|
|
100
|
+
const mConsultCompClick = () => {
|
|
101
|
+
gtag.event({
|
|
102
|
+
action: 'mobile_fix_comp_consult',
|
|
103
|
+
category: 'fix_consult',
|
|
104
|
+
label: '모바일온라인기업상담클릭',
|
|
105
|
+
value: '1'
|
|
106
|
+
});
|
|
107
|
+
};
|
|
108
|
+
const pcConsultPersonalClick = () => {
|
|
109
|
+
gtag.event({
|
|
110
|
+
action: 'pc_fix_personal_consult',
|
|
111
|
+
category: 'fix_consult',
|
|
112
|
+
label: '피씨온라인개인상담클릭',
|
|
113
|
+
value: '1'
|
|
114
|
+
});
|
|
115
|
+
};
|
|
116
|
+
const mConsultPersonalClick = () => {
|
|
117
|
+
gtag.event({
|
|
118
|
+
action: 'mobile_fix_personal_consult',
|
|
119
|
+
category: 'fix_consult',
|
|
120
|
+
label: '모바일온라인개인상담클릭',
|
|
121
|
+
value: '1'
|
|
122
|
+
});
|
|
123
|
+
};
|
|
31
124
|
const onClickKakao = () => {
|
|
32
125
|
insert('kakao', isMobile);
|
|
33
126
|
savePowerLinkConversion('kakao', isMobile);
|
|
@@ -126,121 +219,210 @@ const Fix = (props) => {
|
|
|
126
219
|
const is_mobile = mobile();
|
|
127
220
|
setIsMobile(is_mobile);
|
|
128
221
|
}, []);
|
|
222
|
+
useEffect(() => {
|
|
223
|
+
let mainLoop;
|
|
224
|
+
const resetInterval = () => {
|
|
225
|
+
if (mainLoop)
|
|
226
|
+
clearInterval(mainLoop);
|
|
227
|
+
if (!isHovered) {
|
|
228
|
+
// 호버 중이 아닐 때만 인터벌 설정
|
|
229
|
+
mainLoop = setInterval(() => {
|
|
230
|
+
console.log(activeNum);
|
|
231
|
+
if (activeNum >= 2) {
|
|
232
|
+
setActiveNum(0);
|
|
233
|
+
}
|
|
234
|
+
else {
|
|
235
|
+
setActiveNum(prev => prev + 1);
|
|
236
|
+
}
|
|
237
|
+
}, 2000);
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
resetInterval();
|
|
241
|
+
return () => clearInterval(mainLoop);
|
|
242
|
+
}, [activeNum, isHovered]);
|
|
129
243
|
return (<>
|
|
130
244
|
<div className={
|
|
131
245
|
// (isTop ? ' hidden ' : '') +
|
|
132
246
|
' fixed bottom-[6.5%] right-[25px] z-[2000] w-fit font-[SUIT] ' +
|
|
133
247
|
' max-5xl:bottom-[4%] ' +
|
|
134
|
-
' max-lg:relative max-lg:bottom-0 max-lg:right-0 max-lg:w-full'}>
|
|
248
|
+
' max-lg:relative max-lg:bottom-0 max-lg:right-0 max-lg:w-full max-lg:rounded-t-[20px] max-lg:shadow-[0_-2px_20px_0_rgba(0,0,0,0.08)] '}>
|
|
249
|
+
{/*모바일용 원*/}
|
|
250
|
+
<div className={'absolute -top-[10px] aspect-square w-[50px] translate-x-[-50%] rounded-full bg-white transition-[left] duration-300 ease-out lg:hidden '} style={{
|
|
251
|
+
left: `calc(((100%/3)/2)*${activeNum * 2 + 1})`
|
|
252
|
+
}}/>
|
|
253
|
+
|
|
135
254
|
{/*Fix*/}
|
|
136
255
|
|
|
137
256
|
<div className={'relative z-20 h-[330px] w-[100px] overflow-hidden rounded-full shadow-[0_4px_8px_0_rgba(0,0,0,0.1)] ' +
|
|
138
257
|
'max-5xl:h-[250px] max-5xl:w-[75px] ' +
|
|
139
|
-
'max-lg:h-[
|
|
258
|
+
'max-lg:h-[70px] max-lg:w-full max-lg:overflow-visible max-lg:shadow-none '}>
|
|
140
259
|
<div className={'flex h-[60px] w-full justify-center bg-[#1B244F] px-[28px] py-[9px] pt-[15px] text-[16px] font-[800] leading-[17px] tracking-[0px] text-white max-5xl:h-[55px] max-5xl:pt-[13px] max-5xl:text-[14px] max-lg:hidden '}>
|
|
141
260
|
Quick Menu
|
|
142
261
|
</div>
|
|
143
|
-
<div className={'leading-1 flex h-full w-full flex-col items-center gap-y-[29px] bg-[#fff] py-[15px] pb-[20px] text-[14px] font-[600] tracking-[-0.7px] text-[#2B2B2B] ' +
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
262
|
+
{width >= 1024 ? (<div className={'leading-1 flex h-full w-full flex-col items-center gap-y-[29px] bg-[#fff] py-[15px] pb-[20px] text-[14px] font-[600] tracking-[-0.7px] text-[#2B2B2B] ' +
|
|
263
|
+
' max-5xl:gap-y-[13px] max-5xl:py-[13px] max-5xl:text-[13px] ' +
|
|
264
|
+
' max-lg:flex-row max-lg:pb-[18px] max-lg:pt-[20px] max-lg:text-[13px] ' +
|
|
265
|
+
' max-lg:hidden'}>
|
|
266
|
+
{/*온라인 예약 버튼*/}
|
|
267
|
+
<div className={'flex w-full cursor-pointer flex-col items-center'} onClick={() => {
|
|
268
|
+
onClickConsult();
|
|
269
|
+
setViewOnline(true);
|
|
270
|
+
}}>
|
|
271
|
+
<Image src={OnlineIcon} alt={'online icon'} width={33} height={38} className={'h-auto w-[33px] max-5xl:w-[23px] max-lg:w-[25px] lg:mb-[3px] 5xl:mb-[5px] '}/>
|
|
272
|
+
온라인예약
|
|
273
|
+
</div>
|
|
274
|
+
{/*카톡 예약 버튼*/}
|
|
275
|
+
<Link href="https://pf.kakao.com/_xgxoTlK/chat" target={'_blank'} className={'flex w-full cursor-pointer flex-col items-center'} onClick={onClickKakao}>
|
|
276
|
+
<Image src={KakaoIcon} alt={'kakao icon'} width={33} height={31} className={'mb-[5px] h-auto w-[33px] max-5xl:mb-[3px] max-5xl:w-[23px] max-lg:w-[25px] '}/>
|
|
277
|
+
카톡예약
|
|
278
|
+
</Link>
|
|
279
|
+
{/*전화 예약 버튼*/}
|
|
280
|
+
<div className={'flex w-full cursor-pointer flex-col items-center'} onClick={() => {
|
|
281
|
+
setViewCall(true);
|
|
282
|
+
}}>
|
|
283
|
+
<Image src={CallIcon} alt={'call icon'} width={33} height={33} className={'mb-[5px] h-auto w-[33px] max-5xl:mb-[3px] max-5xl:w-[23px] max-lg:w-[25px]'}/>
|
|
284
|
+
전화예약
|
|
285
|
+
</div>
|
|
286
|
+
</div>) : (<div className={'flex h-full w-full rounded-t-[20px] bg-white pb-[5px] text-[13px] font-[600] leading-none text-[#2B2B2B] lg:hidden '}>
|
|
287
|
+
{/*온라인 예약 버튼*/}
|
|
288
|
+
<button className={'relative z-10 flex w-full flex-col items-center justify-center gap-[8px]'} onClick={() => {
|
|
289
|
+
onClickConsult();
|
|
290
|
+
setViewOnline(true);
|
|
291
|
+
}} tabIndex={0} aria-label="온라인 예약" id={'onlineBtn'} onMouseEnter={() => {
|
|
292
|
+
setActiveNum(0);
|
|
293
|
+
setIsHovered(true);
|
|
294
|
+
}} onMouseLeave={() => setIsHovered(false)}>
|
|
295
|
+
<div className={'absolute top-[-5px] z-0 aspect-square w-[40px] scale-50 rounded-full bg-[#AE0E36] delay-[150ms] duration-300 ' +
|
|
296
|
+
'transition-[opacity,transform] ' +
|
|
297
|
+
`${activeNum === 0 ? 'scale-[1] opacity-100' : 'opacity-0 transition-none delay-0'}`}/>
|
|
298
|
+
<span className={'relative h-[21px] w-[21px] transition-[filter,transform] delay-[150ms] duration-300 ' +
|
|
299
|
+
`${activeNum === 0 ? 'translate-y-[-8px] brightness-[300]' : 'brightness-[0] transition-none delay-0'}`}>
|
|
300
|
+
<Image src={OnlineIconM} alt={''} fill className={'h-full w-full object-contain '}/>
|
|
301
|
+
</span>
|
|
302
|
+
<p className={'z-10 tracking-[-0.6px] transition-[color,font-weight] delay-[150ms] duration-300 ' +
|
|
303
|
+
`${activeNum === 0 ? 'font-[800] text-[#AE0E36]' : ' transition-none delay-0'}`}>
|
|
304
|
+
온라인예약
|
|
305
|
+
</p>
|
|
306
|
+
</button>
|
|
307
|
+
{/*카톡 예약 버튼*/}
|
|
308
|
+
<Link href="https://pf.kakao.com/_xgxoTlK/chat" title={'새창열림'} target={'_blank'} className={'flex w-full flex-col items-center justify-center gap-[8px]'} onClick={onClickKakao} tabIndex={0} aria-label="카카오톡 예약" onMouseEnter={() => {
|
|
309
|
+
setActiveNum(1);
|
|
310
|
+
setIsHovered(true);
|
|
311
|
+
}} onMouseLeave={() => setIsHovered(false)}>
|
|
312
|
+
<div className={'absolute top-[-5px] z-0 aspect-square w-[40px] scale-50 rounded-full bg-[#AE0E36] delay-[150ms] duration-300 ' +
|
|
313
|
+
'transition-[opacity,transform] ' +
|
|
314
|
+
`${activeNum === 1 ? 'scale-[1] opacity-100' : 'opacity-0 transition-none delay-0'}`}/>
|
|
315
|
+
<span className={'relative h-[21px] w-[21px] transition-[filter,transform] delay-[150ms] duration-300 ' +
|
|
316
|
+
`${activeNum === 1 ? 'translate-y-[-8px] brightness-[300]' : 'brightness-[0] transition-none delay-0'}`}>
|
|
317
|
+
<Image src={KakaoIconM} alt={''} fill className={'h-full w-full scale-110 object-contain'}/>
|
|
318
|
+
</span>
|
|
319
|
+
<p className={'z-10 tracking-[-0.6px] transition-[color,font-weight] delay-[150ms] duration-300 ' +
|
|
320
|
+
`${activeNum === 1 ? 'font-[800] text-[#AE0E36]' : ' transition-none delay-0'}`}>
|
|
321
|
+
카톡예약
|
|
322
|
+
</p>
|
|
323
|
+
</Link>
|
|
324
|
+
{/*전화 예약 버튼*/}
|
|
325
|
+
<button className={'flex w-full flex-col items-center justify-center gap-[8px]'} onClick={() => {
|
|
326
|
+
setViewCall(true);
|
|
327
|
+
}} tabIndex={0} aria-label="전화 예약" id={'callBtn'} onMouseEnter={() => {
|
|
328
|
+
setActiveNum(2);
|
|
329
|
+
setIsHovered(true);
|
|
330
|
+
}} onMouseLeave={() => setIsHovered(false)}>
|
|
331
|
+
<div className={'absolute top-[-5px] z-0 aspect-square w-[40px] scale-50 rounded-full bg-[#AE0E36] delay-[150ms] duration-300 ' +
|
|
332
|
+
'transition-[opacity,transform] ' +
|
|
333
|
+
`${activeNum === 2 ? 'scale-[1] opacity-100' : 'opacity-0 transition-none delay-0'}`}/>
|
|
334
|
+
<span className={'relative h-[21px] w-[21px] transition-[filter,transform] delay-[150ms] duration-300 ' +
|
|
335
|
+
`${activeNum === 2 ? 'translate-y-[-8px] brightness-[300]' : 'brightness-[0] transition-none delay-0'}`}>
|
|
336
|
+
<Image src={CallIconM} alt={''} fill className={'h-full w-full object-contain'}/>
|
|
337
|
+
</span>
|
|
338
|
+
<p className={'z-10 tracking-[-0.6px] transition-[color,font-weight] delay-[150ms] duration-300 ' +
|
|
339
|
+
`${activeNum === 2 ? 'font-[800] text-[#AE0E36]' : ' transition-none delay-0'}`}>
|
|
340
|
+
전화예약
|
|
341
|
+
</p>
|
|
342
|
+
</button>
|
|
343
|
+
</div>)}
|
|
174
344
|
</div>
|
|
175
345
|
|
|
176
346
|
{/*온라인*/}
|
|
177
|
-
<
|
|
178
|
-
'max-5xl:bottom-[10px] max-5xl:h-[230px] max-5xl:w-[230px] max-5xl:px-[22px] max-5xl:py-[20px] ' +
|
|
179
|
-
' max-lg:bottom-[85px] max-lg:left-[20px] max-lg:h-[160px] max-lg:w-[240px] max-lg:px-[20px] max-lg:py-[17px]'}>
|
|
180
|
-
<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]'}>
|
|
181
|
-
온라인 예약상담
|
|
182
|
-
<Image src={MenuXIcon} width={54} height={54} alt={'취소'} onClick={() => {
|
|
183
|
-
var _a, _b;
|
|
184
|
-
(_a = onlineRef.current) === null || _a === void 0 ? void 0 : _a.classList.remove(style.fadeIn);
|
|
185
|
-
(_b = onlineRef.current) === null || _b === void 0 ? void 0 : _b.classList.add(style.fadeOut);
|
|
186
|
-
}} className={'h-auto w-[20px] cursor-pointer max-5xl:w-[15px] max-lg:w-[15px]'}/>
|
|
187
|
-
</span>
|
|
347
|
+
{viewOnline ? (<OnlineBox titleTxt={'온라인 예약상담'} reservationTxt={'해당사건에 특화된 전문변호사가 검토 후 신속한 대응전략을 제시합니다.'} companyTxt={'기업상담'} privateTxt={'개인상담'} cancel={handleCancel} onlineRef={onlineRef} onConsultCompClick={() => onConsultCompClick()} onConsultPersonalClick={() => onConsultPersonalClick()}/>) : (<></>)}
|
|
188
348
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
349
|
+
{/*전화*/}
|
|
350
|
+
{viewCall ? (<CallBox titleTxt={'전화 예약상담'} tel={props.tel} companyTxt={'기업상담'} privateTxt={'개인상담'} cancel={handleCancel} onClickTel={onClickTel} callRef={callRef}/>) : (<></>)}
|
|
351
|
+
</div>
|
|
352
|
+
</>);
|
|
353
|
+
};
|
|
354
|
+
export default Fix;
|
|
355
|
+
const OnlineBox = (props) => {
|
|
356
|
+
const closeRef = useRef(null);
|
|
357
|
+
return (<div ref={props.onlineRef} className={'fixed bottom-[33px] 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)] ' +
|
|
358
|
+
'max-5xl:bottom-[10px] max-5xl:h-[230px] max-5xl:w-[230px] max-5xl:px-[22px] max-5xl:py-[20px] ' +
|
|
359
|
+
'max-lg:bottom-[85px] max-lg:left-[20px] max-lg:h-[160px] max-lg:w-[240px] max-lg:px-[20px] max-lg:py-[17px] ' +
|
|
360
|
+
'animate-[fadeIn_0.15s] transition-opacity '}>
|
|
361
|
+
<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]'}>
|
|
362
|
+
{props.titleTxt}
|
|
363
|
+
<button onClick={() => props.cancel(props.onlineRef, 'online')} ref={closeRef}>
|
|
364
|
+
<Image src={MenuXIcon} width={54} height={54} alt={'온라인상담 닫기'} className={'h-auto w-[20px] cursor-pointer max-5xl:w-[15px] max-lg:w-[15px]'}/>
|
|
365
|
+
</button>
|
|
366
|
+
</span>
|
|
367
|
+
<span className={'text-[16px] tracking-[-0.8px] text-[#5C5C5C] max-5xl:text-[14px] max-lg:hidden'}>
|
|
368
|
+
{props.reservationTxt}
|
|
369
|
+
</span>
|
|
370
|
+
<Link className={'mb-[4px] mt-[32px] flex h-[60px] w-[240px] items-center justify-between rounded-[5px] bg-[#285EA7] px-[20px] py-[16px] text-[22px] font-bold text-white ' +
|
|
194
371
|
' max-5xl:mt-[13px] max-5xl:h-[45px] max-5xl:w-[190px] max-5xl:text-[18px] ' +
|
|
195
|
-
' max-lg:mt-[17px] max-lg:h-[40px] max-lg:w-[200px] max-lg:py-[10px] max-lg:text-[16px] '}
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
</button>
|
|
201
|
-
<button className={'flex h-[60px] w-[240px] items-center justify-between rounded-[5px] bg-[#0A96AF] px-[20px] py-[16px] text-[22px] font-bold text-white' +
|
|
372
|
+
' max-lg:mt-[17px] max-lg:h-[40px] max-lg:w-[200px] max-lg:py-[10px] max-lg:text-[16px] '} href={'/consulting'} aria-label={'기업 온라인 상담'} onClick={props.onConsultCompClick}>
|
|
373
|
+
{props.companyTxt}
|
|
374
|
+
<Image src={ArrowIcon} width={22} height={18} alt={''} className={'h-auto w-[22px] max-5xl:w-[20px] max-lg:w-[17px]'}/>
|
|
375
|
+
</Link>
|
|
376
|
+
<Link className={'flex h-[60px] w-[240px] items-center justify-between rounded-[5px] bg-[#0A96AF] px-[20px] py-[16px] text-[22px] font-bold text-white' +
|
|
202
377
|
' max-5xl:h-[45px] max-5xl:w-[190px] max-5xl:text-[18px] ' +
|
|
203
|
-
' max-lg:h-[40px] max-lg:w-[200px] max-lg:py-[10px] max-lg:text-[16px] '}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
{
|
|
212
|
-
|
|
378
|
+
' max-lg:h-[40px] max-lg:w-[200px] max-lg:py-[10px] max-lg:text-[16px] '} href={'/consult'} aria-label={'개인 온라인 상담'} onClick={props.onConsultPersonalClick} onKeyDown={e => {
|
|
379
|
+
var _a;
|
|
380
|
+
if (e.key === 'Tab') {
|
|
381
|
+
e.preventDefault();
|
|
382
|
+
(_a = closeRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
383
|
+
}
|
|
384
|
+
}}>
|
|
385
|
+
{props.privateTxt}
|
|
386
|
+
<Image src={ArrowIcon} width={22} height={18} alt={''} className={'h-auto w-[22px] max-5xl:w-[20px] max-lg:w-[17px]'}/>
|
|
387
|
+
</Link>
|
|
388
|
+
</div>);
|
|
389
|
+
};
|
|
390
|
+
const CallBox = (props) => {
|
|
391
|
+
const closeRef = useRef(null);
|
|
392
|
+
return (<div ref={props.callRef} className={'fixed bottom-[13px] 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)] ' +
|
|
213
393
|
'max-5xl:bottom-[10px] max-5xl:h-[230px] max-5xl:w-[230px] max-5xl:px-[22px] max-5xl:py-[20px] ' +
|
|
214
|
-
'max-lg:bottom-[85px] max-lg:right-[20px] max-lg:h-[200px] max-lg:w-[240px] max-lg:px-[20px] max-lg:py-[17px]'
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
</span>
|
|
394
|
+
'max-lg:bottom-[85px] max-lg:right-[20px] max-lg:h-[200px] max-lg:w-[240px] max-lg:px-[20px] max-lg:py-[17px] ' +
|
|
395
|
+
'animate-[fadeIn_0.15s] transition-opacity '}>
|
|
396
|
+
<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]'}>
|
|
397
|
+
{props.titleTxt}
|
|
398
|
+
<button onClick={() => props.cancel(props.callRef, 'call')} ref={closeRef}>
|
|
399
|
+
<Image src={MenuXIcon} width={54} height={54} alt={'취소'} className={'h-auto w-[20px] cursor-pointer max-5xl:w-[15px] max-lg:w-[15px]'}/>
|
|
400
|
+
</button>
|
|
401
|
+
</span>
|
|
223
402
|
|
|
224
|
-
|
|
403
|
+
<Link href={`tel:${props.tel}`} className={'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' +
|
|
225
404
|
' max-5xl:h-[60px] max-5xl:w-[190px] max-5xl:text-[18px] ' +
|
|
226
|
-
' max-lg:mt-[15px] max-lg:h-[60px] max-lg:w-[200px] max-lg:px-[15px] max-lg:py-[12px]
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
405
|
+
' max-lg:mt-[15px] max-lg:h-[60px] max-lg:w-[200px] max-lg:px-[15px] max-lg:py-[12px] '} onClick={props.onClickTel} aria-label={'기업 전화상담'}>
|
|
406
|
+
<span className={'text-left font-bold leading-tight max-lg:leading-[17.5px]'}>
|
|
407
|
+
<span className={'text-[20px] max-lg:text-[16px]'}>{props.companyTxt}</span>
|
|
408
|
+
{/* <span className={'text-[22px] max-lg:text-[16px] block'}>{tel}</span> */}
|
|
409
|
+
</span>
|
|
410
|
+
<Image src={Call2Icon} width={30} height={30} alt={''} className={'h-[30px] w-[30px]'}/>
|
|
411
|
+
</Link>
|
|
412
|
+
<Link href={`tel:${props.tel}`} className={'flex h-[80px] w-[240px] items-center justify-between rounded-[5px] bg-[#0A96AF] px-[20px] py-[16px] text-[22px] font-bold text-white' +
|
|
234
413
|
' max-5xl:h-[60px] max-5xl:w-[190px] max-5xl:text-[18px] ' +
|
|
235
|
-
' max-lg:h-[60px] max-lg:w-[200px] max-lg:px-[15px] max-lg:py-[12px] '} onClick={onClickTel}
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
414
|
+
' max-lg:h-[60px] max-lg:w-[200px] max-lg:px-[15px] max-lg:py-[12px] '} onClick={props.onClickTel} aria-label={'개인 전화상담'} onKeyDown={e => {
|
|
415
|
+
var _a;
|
|
416
|
+
if (e.key === 'Tab') {
|
|
417
|
+
e.preventDefault();
|
|
418
|
+
(_a = closeRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
419
|
+
}
|
|
420
|
+
}}>
|
|
421
|
+
<span className={'text-left font-bold leading-tight max-lg:leading-[17.5px]'}>
|
|
422
|
+
<span className={'text-[20px] max-lg:text-[16px] '}>{props.privateTxt}</span>
|
|
423
|
+
{/* <span className={'text-[22px] max-lg:text-[16px] block '}>{tel}</span> */}
|
|
424
|
+
</span>
|
|
425
|
+
<Image src={Call2Icon} width={30} height={30} alt={''} className={'h-[30px] w-[30px]'}/>
|
|
426
|
+
</Link>
|
|
427
|
+
</div>);
|
|
245
428
|
};
|
|
246
|
-
export default Fix;
|