@daeryun/dr_components 0.0.12 → 0.1.0
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/README.md +24 -24
- package/custom.d.ts +7 -0
- package/dist/asset/images/cat.png +0 -0
- package/dist/asset/images/categoryView/section9_arrow_01.webp +0 -0
- package/dist/asset/images/categoryView/section9_arrow_02.webp +0 -0
- package/dist/asset/images/categoryView/section9_arrow_03.webp +0 -0
- package/dist/asset/images/categoryView/section9_arrow_04.webp +0 -0
- package/dist/asset/images/categoryView/section9_arrow_05.webp +0 -0
- package/dist/asset/images/categoryView/section9_icon.webp +0 -0
- package/dist/asset/images/fix/arrow.webp +0 -0
- package/dist/asset/images/fix/call.webp +0 -0
- package/dist/asset/images/fix/call2.webp +0 -0
- package/dist/asset/images/fix/kakao.webp +0 -0
- package/dist/asset/images/fix/menu_x.webp +0 -0
- package/dist/asset/images/fix/online.webp +0 -0
- package/dist/asset/images/footer/footer_daeryun.webp +0 -0
- package/dist/asset/images/footer/ft_icon_arr_2.webp +0 -0
- package/dist/asset/images/footer/icon_arrow_gray.webp +0 -0
- package/dist/asset/images/footer/sns_01.webp +0 -0
- package/dist/asset/images/footer/sns_02.webp +0 -0
- package/dist/asset/images/footer/sns_03.webp +0 -0
- package/dist/asset/images/footer/sns_04.webp +0 -0
- package/dist/asset/images/footer/sns_05.webp +0 -0
- package/dist/asset/images/header/h_icon_g.webp +0 -0
- package/dist/asset/images/header/header_call.webp +0 -0
- package/dist/asset/images/header/language.webp +0 -0
- package/dist/asset/images/header/logo_s.webp +0 -0
- package/dist/asset/images/header/main_img_01.webp +0 -0
- package/dist/asset/images/header/main_img_02.webp +0 -0
- package/dist/asset/images/header/main_img_03.webp +0 -0
- package/dist/asset/images/header/menu.webp +0 -0
- package/dist/asset/images/header/menu_call.webp +0 -0
- package/dist/asset/images/header/menu_sns.webp +0 -0
- package/dist/asset/images/header/menu_sns_01.webp +0 -0
- package/dist/asset/images/header/menu_sns_02.webp +0 -0
- package/dist/asset/images/header/menu_sns_03.webp +0 -0
- package/dist/asset/images/header/menu_sns_04.webp +0 -0
- package/dist/asset/images/header/menu_sns_05.webp +0 -0
- package/dist/asset/images/header/menu_x.webp +0 -0
- package/dist/asset/images/header/online.png +0 -0
- package/dist/asset/images/header/phone.png +0 -0
- package/dist/asset/images/header/talk.png +0 -0
- package/dist/asset/images/header/top_icon_01.webp +0 -0
- package/dist/asset/images/header/top_icon_02.webp +0 -0
- package/dist/asset/images/header/top_icon_03.webp +0 -0
- package/dist/asset/images/header/top_icon_04.webp +0 -0
- package/dist/asset/images/logo.webp +0 -0
- package/dist/cjs/cn/common.json +156 -0
- package/dist/cjs/en/common.json +156 -0
- package/dist/cjs/index.js +14 -0
- package/dist/cjs/jp/common.json +156 -0
- package/dist/cjs/ko/common.json +156 -0
- package/dist/cjs/package.json +3 -0
- package/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -0
- package/dist/components/Button/Button.js +39 -0
- package/dist/components/Cat/index.d.ts +2 -0
- package/dist/components/Cat/index.jsx +9 -0
- package/dist/components/Cat/index.tsx +20 -0
- package/dist/components/Fix/Fix.stories.d.ts +12 -0
- package/dist/components/Fix/Fix.stories.jsx +12 -0
- package/dist/components/Fix/Fix.stories.tsx +20 -0
- package/dist/components/Fix/index.d.ts +5 -0
- package/dist/components/Fix/index.jsx +254 -0
- package/dist/components/Fix/index.module.css +316 -0
- package/dist/components/Fix/index.tsx +383 -0
- package/dist/components/Footer/Footer.stories.d.ts +16 -0
- package/dist/components/Footer/Footer.stories.jsx +14 -0
- package/dist/components/Footer/Footer.stories.tsx +20 -0
- package/dist/components/Footer/index.d.ts +10 -0
- package/dist/components/Footer/index.jsx +170 -0
- package/dist/components/Footer/index.tsx +313 -0
- package/dist/components/FooterKeywd/index.d.ts +2 -0
- package/dist/components/FooterKeywd/index.jsx +88 -0
- package/dist/components/FooterKeywd/index.module.css +123 -0
- package/dist/components/FooterKeywd/index.tsx +92 -0
- package/dist/components/Layout/Wrapper.d.ts +10 -0
- package/dist/components/Layout/Wrapper.jsx +42 -0
- package/dist/components/Layout/Wrapper.tsx +54 -0
- package/dist/components/SearchBar/SearchBar.d.ts +14 -0
- package/dist/components/SearchBar/SearchBar.jsx +73 -0
- package/dist/components/SearchBar/SearchBar.tsx +139 -0
- package/dist/components/Top/Fix.d.ts +0 -0
- package/dist/components/Top/Fix.jsx +306 -0
- package/dist/components/Top/Fix.module.css +54 -0
- package/dist/components/Top/Fix.tsx +305 -0
- package/dist/components/Top/Gnb.d.ts +0 -0
- package/dist/components/Top/Gnb.jsx +212 -0
- package/dist/components/Top/Gnb.tsx +211 -0
- package/dist/components/Top/Hamburger.d.ts +0 -0
- package/dist/components/Top/Hamburger.jsx +743 -0
- package/dist/components/Top/Hamburger.tsx +742 -0
- package/dist/components/Top/index.d.ts +0 -0
- package/dist/components/Top/index.jsx +62 -0
- package/dist/components/Top/index.tsx +61 -0
- package/dist/components/common/hook/useBrowser.d.ts +5 -0
- package/dist/components/common/hook/useBrowser.js +45 -0
- package/dist/components/common/hook/useBrowser.ts +52 -0
- package/dist/components/common/index.d.ts +36 -0
- package/dist/components/common/index.js +2041 -0
- package/dist/components/common/index.ts +2061 -0
- package/dist/components/common/types/index.d.ts +20 -0
- package/dist/components/common/types/index.js +1 -0
- package/dist/components/common/types/index.ts +22 -0
- package/dist/components/index.js +6 -0
- package/dist/components/index.ts +6 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/index.ts +2 -0
- package/dist/lib/catagoryMenuName.d.ts +8 -0
- package/dist/lib/catagoryMenuName.js +8 -0
- package/dist/lib/catagoryMenuName.ts +12 -0
- package/dist/lib/conversion.d.ts +1 -0
- package/dist/lib/conversion.js +6 -0
- package/dist/lib/conversion.ts +6 -0
- package/dist/lib/gtag.d.ts +8 -0
- package/dist/lib/gtag.js +16 -0
- package/dist/lib/index.js +5 -0
- package/dist/lib/index.ts +5 -0
- package/dist/lib/pagination/locale/en_US.js +23 -0
- package/dist/lib/pagination/locale/ko_KR.js +23 -0
- package/dist/lib/powerlink.d.ts +2 -0
- package/dist/lib/powerlink.js +128 -0
- package/dist/lib/powerlink.ts +147 -0
- package/dist/lib/utils.d.ts +35 -0
- package/dist/lib/utils.js +267 -0
- package/dist/lib/utils.ts +301 -0
- package/dist/styles/globals.css +2781 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +55 -23
- package/.eslintrc.json +0 -3
- package/.idea/modules.xml +0 -8
- package/.idea/npm_test.iml +0 -12
- package/.idea/vcs.xml +0 -6
- package/babel.config.json +0 -31
- package/next.config.js +0 -22
- package/pages/_app.tsx +0 -5
- package/pages/_document.tsx +0 -13
- package/pages/api/hello.ts +0 -13
- package/pages/index.tsx +0 -9
- package/postcss.config.js +0 -6
- package/src/lib/components/Button/Button.d.ts +0 -11
- package/src/lib/components/Button/Button.js +0 -17
- package/src/lib/index.ts +0 -1
- package/styles/globals.css +0 -27
- package/tailwind.config.js +0 -37
- package/tsconfig.json +0 -35
- /package/{src/lib → dist}/components/Button/Button.tsx +0 -0
|
@@ -0,0 +1,254 @@
|
|
|
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
|
+
import Link from 'next/link';
|
|
11
|
+
import React, { useEffect, useRef, useState } from 'react';
|
|
12
|
+
import Image from 'next/image';
|
|
13
|
+
import { insert } from '../../lib';
|
|
14
|
+
import * as gtag from '../../lib/gtag';
|
|
15
|
+
import { savePowerLinkConversion } from '../../lib';
|
|
16
|
+
import style from './index.module.css';
|
|
17
|
+
import { useRouter } from 'next/router';
|
|
18
|
+
import OnlineIcon from '../../asset/images/fix/online.webp';
|
|
19
|
+
import KakaoIcon from '../../asset/images/fix/kakao.webp';
|
|
20
|
+
import CallIcon from '../../asset/images/fix/call.webp';
|
|
21
|
+
import Call2Icon from '../../asset/images/fix/call2.webp';
|
|
22
|
+
import MenuXIcon from '../../asset/images/fix/menu_x.webp';
|
|
23
|
+
import ArrowIcon from '../../asset/images/fix/arrow.webp';
|
|
24
|
+
const Fix = (props) => {
|
|
25
|
+
const mobile = require('is-mobile');
|
|
26
|
+
const [isMobile, setIsMobile] = useState(false);
|
|
27
|
+
// const [tel] = useRecoilState(telAtom)
|
|
28
|
+
const [isTop, setIsTop] = useState(true);
|
|
29
|
+
const [position, setPosition] = useState(0);
|
|
30
|
+
const onlineRef = useRef(null);
|
|
31
|
+
const callRef = useRef(null);
|
|
32
|
+
const router = useRouter();
|
|
33
|
+
const onClickKakao = () => {
|
|
34
|
+
insert('kakao', isMobile);
|
|
35
|
+
savePowerLinkConversion('kakao', isMobile);
|
|
36
|
+
if (isMobile) {
|
|
37
|
+
ace_mKakaoClick();
|
|
38
|
+
mKakaoClick();
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
// ace_pcKakaoClick();
|
|
42
|
+
pcKakaoClick();
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
const onClickTel = () => {
|
|
46
|
+
insert('call', isMobile);
|
|
47
|
+
savePowerLinkConversion('call', isMobile);
|
|
48
|
+
if (isMobile) {
|
|
49
|
+
ace_mTelClick();
|
|
50
|
+
mTelClick();
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
// ace_pcTelClick();
|
|
54
|
+
pcTelClick();
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
// GA 클릭이벤트
|
|
58
|
+
const mTelClick = () => {
|
|
59
|
+
gtag.event({
|
|
60
|
+
action: 'mobile_tel',
|
|
61
|
+
category: 'tel',
|
|
62
|
+
label: '모바일전화버튼',
|
|
63
|
+
value: '1'
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
const pcTelClick = () => {
|
|
67
|
+
gtag.event({
|
|
68
|
+
action: 'pc_tel',
|
|
69
|
+
category: 'tel',
|
|
70
|
+
label: '피씨전화버튼',
|
|
71
|
+
value: '1'
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
const mKakaoClick = () => {
|
|
75
|
+
gtag.event({
|
|
76
|
+
action: 'mobile_kakao',
|
|
77
|
+
category: 'kakao',
|
|
78
|
+
label: '모바일카카오버튼',
|
|
79
|
+
value: '1'
|
|
80
|
+
});
|
|
81
|
+
};
|
|
82
|
+
const pcKakaoClick = () => {
|
|
83
|
+
gtag.event({
|
|
84
|
+
action: 'pc_kakao',
|
|
85
|
+
category: 'kakao',
|
|
86
|
+
label: '피씨카카오버튼',
|
|
87
|
+
value: '1'
|
|
88
|
+
});
|
|
89
|
+
};
|
|
90
|
+
// 에이스카운터 전환태그
|
|
91
|
+
const ace_mTelClick = () => {
|
|
92
|
+
try {
|
|
93
|
+
// @ts-ignore
|
|
94
|
+
AM_PL('/m_tel');
|
|
95
|
+
}
|
|
96
|
+
catch (e) { }
|
|
97
|
+
};
|
|
98
|
+
// const ace_pcTelClick = () => {
|
|
99
|
+
// try {
|
|
100
|
+
// // @ts-ignore
|
|
101
|
+
// _PL('www.daeryunlaw.com/tel');
|
|
102
|
+
// } catch (e) {}
|
|
103
|
+
// };
|
|
104
|
+
const ace_mKakaoClick = () => {
|
|
105
|
+
try {
|
|
106
|
+
// @ts-ignore
|
|
107
|
+
AM_PL('/m_kakao');
|
|
108
|
+
}
|
|
109
|
+
catch (e) { }
|
|
110
|
+
};
|
|
111
|
+
// const ace_pcKakaoClick = () => {
|
|
112
|
+
// try {
|
|
113
|
+
// // @ts-ignore
|
|
114
|
+
// _PL('www.daeryunlaw.com/kakao');
|
|
115
|
+
// } catch (e) {}
|
|
116
|
+
// };
|
|
117
|
+
useEffect(() => {
|
|
118
|
+
if (typeof window != 'undefined') {
|
|
119
|
+
const handleScroll = () => {
|
|
120
|
+
var _a, _b, _c, _d;
|
|
121
|
+
setIsTop(window.scrollY <= 0);
|
|
122
|
+
if (window.scrollY <= 0) {
|
|
123
|
+
(_a = onlineRef.current) === null || _a === void 0 ? void 0 : _a.classList.remove(style.fadeOut);
|
|
124
|
+
(_b = onlineRef.current) === null || _b === void 0 ? void 0 : _b.classList.remove(style.fadeIn);
|
|
125
|
+
(_c = callRef.current) === null || _c === void 0 ? void 0 : _c.classList.remove(style.fadeOut);
|
|
126
|
+
(_d = callRef.current) === null || _d === void 0 ? void 0 : _d.classList.remove(style.fadeIn);
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
window.addEventListener('scroll', handleScroll);
|
|
130
|
+
return () => {
|
|
131
|
+
window.removeEventListener('scroll', handleScroll);
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
}, []);
|
|
135
|
+
useEffect(() => {
|
|
136
|
+
const is_mobile = mobile();
|
|
137
|
+
setIsMobile(is_mobile);
|
|
138
|
+
}, []);
|
|
139
|
+
return (<>
|
|
140
|
+
<div className={(isTop ? ' hidden ' : '') +
|
|
141
|
+
' fixed bottom-[43px] right-[25px] z-[2000] w-fit font-[SUIT] ' +
|
|
142
|
+
' max-lg:w-full max-lg:bottom-0 max-lg:right-0'}>
|
|
143
|
+
{/*Fix*/}
|
|
144
|
+
|
|
145
|
+
<div className={'relative w-[100px] h-[330px] rounded-full overflow-hidden z-20 shadow-[0_4px_8px_0_rgba(0,0,0,0.1)] ' +
|
|
146
|
+
'max-5xl:w-[75px] max-5xl:h-[250px] ' +
|
|
147
|
+
'max-lg:h-[65px] max-lg:w-full max-lg:rounded-none max-lg:shadow-[0_-2px_20px_0_rgba(0,0,0,0.08)] '}>
|
|
148
|
+
<div className={'w-full h-[60px] text-white text-[16px] bg-[#1B244F] font-[800] tracking-[0px] flex justify-center pt-[15px] py-[9px] px-[28px] leading-[17px] max-5xl:text-[14px] max-5xl:h-[55px] max-5xl:pt-[13px] max-lg:hidden '}>
|
|
149
|
+
Quick Menu
|
|
150
|
+
</div>
|
|
151
|
+
<div className={'w-full flex-col flex items-center h-full py-[15px] gap-y-[29px] text-[#2B2B2B] text-[14px] leading-1 font-[600] tracking-[-0.7px] bg-[#fff] pb-[20px] ' +
|
|
152
|
+
' max-5xl:gap-y-[13px] max-5xl:text-[13px] max-5xl:py-[13px] ' +
|
|
153
|
+
' max-lg:flex-row max-lg:pt-[20px] max-lg:pb-[18px] max-lg:text-[13px] '}>
|
|
154
|
+
{/*온라인 예약 버튼*/}
|
|
155
|
+
<div className={'w-full flex flex-col items-center cursor-pointer'} onClick={() => {
|
|
156
|
+
var _a, _b, _c, _d;
|
|
157
|
+
(_a = callRef.current) === null || _a === void 0 ? void 0 : _a.classList.remove(style.fadeIn);
|
|
158
|
+
(_b = callRef.current) === null || _b === void 0 ? void 0 : _b.classList.remove(style.fadeOut);
|
|
159
|
+
(_c = onlineRef.current) === null || _c === void 0 ? void 0 : _c.classList.remove(style.fadeOut);
|
|
160
|
+
(_d = onlineRef.current) === null || _d === void 0 ? void 0 : _d.classList.add(style.fadeIn);
|
|
161
|
+
}}>
|
|
162
|
+
<Image src={OnlineIcon} alt={'online icon'} width={33} height={38} className={'w-[33px] h-auto 5xl:mb-[5px] max-5xl:w-[23px] lg:mb-[3px] max-lg:w-[25px] '}/>
|
|
163
|
+
온라인예약
|
|
164
|
+
</div>
|
|
165
|
+
{/*카톡 예약 버튼*/}
|
|
166
|
+
<Link href="http://pf.kakao.com/_xgxoTlK/chat" target={'_blank'} className={'w-full flex flex-col items-center cursor-pointer'} onClick={onClickKakao}>
|
|
167
|
+
<Image src={KakaoIcon} alt={'kakao icon'} width={33} height={31} className={'w-[33px] h-auto mb-[5px] max-5xl:w-[23px] max-5xl:mb-[3px] max-lg:w-[25px] '}/>
|
|
168
|
+
카톡예약
|
|
169
|
+
</Link>
|
|
170
|
+
{/*전화 예약 버튼*/}
|
|
171
|
+
<div className={'w-full flex flex-col items-center cursor-pointer'} onClick={() => {
|
|
172
|
+
var _a, _b, _c, _d;
|
|
173
|
+
(_a = onlineRef.current) === null || _a === void 0 ? void 0 : _a.classList.remove(style.fadeIn);
|
|
174
|
+
(_b = onlineRef.current) === null || _b === void 0 ? void 0 : _b.classList.remove(style.fadeOut);
|
|
175
|
+
(_c = callRef.current) === null || _c === void 0 ? void 0 : _c.classList.remove(style.fadeOut);
|
|
176
|
+
(_d = callRef.current) === null || _d === void 0 ? void 0 : _d.classList.add(style.fadeIn);
|
|
177
|
+
}}>
|
|
178
|
+
<Image src={CallIcon} alt={'call icon'} width={33} height={33} className={'w-[33px] h-auto mb-[5px] max-5xl:w-[23px] max-5xl:mb-[3px] max-lg:w-[25px]'}/>
|
|
179
|
+
전화예약
|
|
180
|
+
</div>
|
|
181
|
+
</div>
|
|
182
|
+
</div>
|
|
183
|
+
|
|
184
|
+
{/*온라인*/}
|
|
185
|
+
<div ref={onlineRef} className={'shadow-[0_4px_8px_0_rgba(0,0,0,0.1)] fixed bottom-[13px] right-[25px] w-[300px] h-[300px] bg-white px-[30px] py-[26px] opacity-0 pointer-events-none ' +
|
|
186
|
+
'max-5xl:h-[230px] max-5xl:w-[230px] max-5xl:bottom-[10px] max-5xl:px-[22px] max-5xl:py-[20px] ' +
|
|
187
|
+
' max-lg:w-[240px] max-lg:h-[160px] max-lg:bottom-[85px] max-lg:left-[20px] max-lg:px-[20px] max-lg:py-[17px]'}>
|
|
188
|
+
<span className={'w-full flex items-center justify-between text-[26px] font-bold tracking-[-1.3px] mb-[11px] leading-[30px] z-10 max-5xl:text-[20px] max-lg:text-[18px] max-lg:leading-[23px]'}>
|
|
189
|
+
온라인 예약상담
|
|
190
|
+
<Image src={MenuXIcon} width={54} height={54} alt={'취소'} onClick={() => {
|
|
191
|
+
var _a, _b;
|
|
192
|
+
(_a = onlineRef.current) === null || _a === void 0 ? void 0 : _a.classList.remove(style.fadeIn);
|
|
193
|
+
(_b = onlineRef.current) === null || _b === void 0 ? void 0 : _b.classList.add(style.fadeOut);
|
|
194
|
+
}} className={'w-[20px] h-auto cursor-pointer max-5xl:w-[15px] max-lg:w-[15px]'}/>
|
|
195
|
+
</span>
|
|
196
|
+
|
|
197
|
+
<span className={'text-[#5C5C5C] text-[16px] max-5xl:text-[14px] tracking-[-0.8px] max-lg:hidden'}>
|
|
198
|
+
해당사건에 특화된 전문변호사가 검토 후 신속한 대응전략을 제시합니다.
|
|
199
|
+
</span>
|
|
200
|
+
|
|
201
|
+
<button className={'w-[240px] h-[60px] px-[20px] py-[16px] bg-[#285EA7] text-white text-[22px] font-bold flex items-center justify-between rounded-[5px] mt-[32px] mb-[4px] ' +
|
|
202
|
+
' max-5xl:mt-[13px] max-5xl:w-[190px] max-5xl:h-[45px] max-5xl:text-[18px] ' +
|
|
203
|
+
' max-lg:w-[200px] max-lg:h-[40px] max-lg:mt-[17px] max-lg:text-[16px] max-lg:py-[10px] '} onClick={() => __awaiter(void 0, void 0, void 0, function* () {
|
|
204
|
+
yield router.push('/consulting');
|
|
205
|
+
})}>
|
|
206
|
+
기업상담
|
|
207
|
+
<Image src={ArrowIcon} width={22} height={18} alt={'기업상담'} className={'w-[22px] h-auto max-5xl:w-[20px] max-lg:w-[17px]'}/>
|
|
208
|
+
</button>
|
|
209
|
+
<button className={'w-[240px] h-[60px] px-[20px] py-[16px] bg-[#0A96AF] text-white text-[22px] font-bold flex items-center justify-between rounded-[5px]' +
|
|
210
|
+
' max-5xl:w-[190px] max-5xl:h-[45px] max-5xl:text-[18px] ' +
|
|
211
|
+
' max-lg:w-[200px] max-lg:h-[40px] max-lg:text-[16px] max-lg:py-[10px] '} onClick={() => __awaiter(void 0, void 0, void 0, function* () {
|
|
212
|
+
yield router.push('/consult');
|
|
213
|
+
})}>
|
|
214
|
+
개인상담
|
|
215
|
+
<Image src={ArrowIcon} width={22} height={18} alt={'개인상담'} className={'w-[22px] h-auto max-5xl:w-[20px] max-lg:w-[17px]'}/>
|
|
216
|
+
</button>
|
|
217
|
+
</div>
|
|
218
|
+
|
|
219
|
+
{/*전화*/}
|
|
220
|
+
<div ref={callRef} className={'shadow-[0_4px_8px_0_rgba(0,0,0,0.1)] fixed bottom-[13px] right-[25px] w-[300px] h-[300px] bg-white px-[30px] py-[26px] opacity-0 pointer-events-none ' +
|
|
221
|
+
'max-5xl:h-[230px] max-5xl:w-[230px] max-5xl:bottom-[10px] max-5xl:px-[22px] max-5xl:py-[20px] ' +
|
|
222
|
+
'max-lg:w-[240px] max-lg:h-[200px] max-lg:bottom-[85px] max-lg:right-[20px] max-lg:px-[20px] max-lg:py-[17px]'}>
|
|
223
|
+
<span className={'w-full flex items-center justify-between text-[26px] font-bold tracking-[-1.3px] mb-[11px] leading-[30px] z-10 max-5xl:text-[20px] max-lg:text-[18px] max-lg:leading-[23px]'}>
|
|
224
|
+
전화 예약상담
|
|
225
|
+
<Image src={MenuXIcon} width={54} height={54} alt={'취소'} onClick={() => {
|
|
226
|
+
var _a, _b;
|
|
227
|
+
(_a = callRef.current) === null || _a === void 0 ? void 0 : _a.classList.remove(style.fadeIn);
|
|
228
|
+
(_b = callRef.current) === null || _b === void 0 ? void 0 : _b.classList.add(style.fadeOut);
|
|
229
|
+
}} className={'w-[20px] h-auto cursor-pointer max-5xl:w-[15px] max-lg:w-[15px]'}/>
|
|
230
|
+
</span>
|
|
231
|
+
|
|
232
|
+
<Link href={`tel:${props.tel}`} className={'w-[240px] h-[80px] px-[20px] py-[16px] bg-[#285EA7] text-white text-[22px] font-bold flex justify-between rounded-[5px] mt-[32px] mb-[4px] items-center' +
|
|
233
|
+
' max-5xl:w-[190px] max-5xl:h-[60px] max-5xl:text-[18px] ' +
|
|
234
|
+
' max-lg:mt-[15px] max-lg:w-[200px] max-lg:h-[60px] max-lg:px-[15px] max-lg:py-[12px] '} onClick={onClickTel}>
|
|
235
|
+
<span className={'text-left leading-tight font-bold max-lg:leading-[17.5px]'}>
|
|
236
|
+
<span className={'text-[20px] max-lg:text-[16px]'}>기업상담</span>
|
|
237
|
+
{/* <span className={'text-[22px] max-lg:text-[16px] block'}>{tel}</span> */}
|
|
238
|
+
</span>
|
|
239
|
+
<Image src={Call2Icon} width={30} height={30} alt={'기업상담'} className={'w-[30px] h-[30px]'}/>
|
|
240
|
+
</Link>
|
|
241
|
+
<Link href={`tel:${props.tel}`} className={'w-[240px] h-[80px] px-[20px] py-[16px] bg-[#0A96AF] text-white text-[22px] font-bold flex justify-between rounded-[5px] items-center' +
|
|
242
|
+
' max-5xl:w-[190px] max-5xl:h-[60px] max-5xl:text-[18px] ' +
|
|
243
|
+
' max-lg:w-[200px] max-lg:h-[60px] max-lg:px-[15px] max-lg:py-[12px] '} onClick={onClickTel}>
|
|
244
|
+
<span className={'text-left leading-tight font-bold max-lg:leading-[17.5px]'}>
|
|
245
|
+
<span className={'text-[20px] max-lg:text-[16px] '}>개인상담</span>
|
|
246
|
+
{/* <span className={'text-[22px] max-lg:text-[16px] block '}>{tel}</span> */}
|
|
247
|
+
</span>
|
|
248
|
+
<Image src={Call2Icon} width={30} height={30} alt={'개인상담'} className={'w-[30px] h-[30px]'}/>
|
|
249
|
+
</Link>
|
|
250
|
+
</div>
|
|
251
|
+
</div>
|
|
252
|
+
</>);
|
|
253
|
+
};
|
|
254
|
+
export default Fix;
|
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
/* 하단 고정 상담신청바 */
|
|
2
|
+
#m_fix_cont {
|
|
3
|
+
display: none;
|
|
4
|
+
font-family: 나눔스퀘어, 'NanumSquare', sans-serif;
|
|
5
|
+
}
|
|
6
|
+
.nanum {
|
|
7
|
+
font-family: 나눔스퀘어, 'NanumSquare', sans-serif;
|
|
8
|
+
}
|
|
9
|
+
.p_fix {
|
|
10
|
+
width: 120px;
|
|
11
|
+
position: fixed;
|
|
12
|
+
bottom: 5%;
|
|
13
|
+
right: 1%;
|
|
14
|
+
z-index: 10000000;
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
align-items: flex-end;
|
|
19
|
+
}
|
|
20
|
+
.p_fix ul {
|
|
21
|
+
padding: 0;
|
|
22
|
+
margin: 0;
|
|
23
|
+
}
|
|
24
|
+
.p_fix ul li {
|
|
25
|
+
display: block;
|
|
26
|
+
width: 130px;
|
|
27
|
+
height: 40px;
|
|
28
|
+
padding: 10px;
|
|
29
|
+
box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
|
|
30
|
+
box-sizing: content-box;
|
|
31
|
+
display: flex;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
align-items: center;
|
|
34
|
+
color: #222;
|
|
35
|
+
font-weight: 400;
|
|
36
|
+
background-color: #fff;
|
|
37
|
+
border-radius: 10px;
|
|
38
|
+
margin-bottom: 10px;
|
|
39
|
+
}
|
|
40
|
+
.p_fix ul li .sideBar {
|
|
41
|
+
display: flex;
|
|
42
|
+
justify-content: center;
|
|
43
|
+
align-items: center;
|
|
44
|
+
box-sizing: border-box;
|
|
45
|
+
}
|
|
46
|
+
.p_fix ul li .sideBar div:nth-child(1) {
|
|
47
|
+
margin-right: 8px;
|
|
48
|
+
text-align: left;
|
|
49
|
+
}
|
|
50
|
+
.p_fix ul li .sideBar div p {
|
|
51
|
+
font-family: 나눔스퀘어, 'NanumSquare', sans-serif;
|
|
52
|
+
}
|
|
53
|
+
.p_fix ul li .r_logo {
|
|
54
|
+
display: block;
|
|
55
|
+
width: 120px;
|
|
56
|
+
padding: 15px 0;
|
|
57
|
+
border: 1px solid #eee;
|
|
58
|
+
box-sizing: content-box;
|
|
59
|
+
text-align: center;
|
|
60
|
+
color: #222;
|
|
61
|
+
font-weight: 400;
|
|
62
|
+
background-color: #ab0634;
|
|
63
|
+
color: #fff;
|
|
64
|
+
font-weight: 500;
|
|
65
|
+
font-size: 18px;
|
|
66
|
+
}
|
|
67
|
+
.p_fix ul li a .txt {
|
|
68
|
+
font-size: 14px;
|
|
69
|
+
font-weight: 600;
|
|
70
|
+
text-align: left;
|
|
71
|
+
color: #083450;
|
|
72
|
+
font-family: 나눔스퀘어, 'NanumSquare', sans-serif;
|
|
73
|
+
}
|
|
74
|
+
.p_fix ul li a .txt .gray {
|
|
75
|
+
color: #666;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.p_fix ul li:nth-of-type(3) {
|
|
79
|
+
position: relative;
|
|
80
|
+
}
|
|
81
|
+
.p_fix ul li:nth-of-type(3):before {
|
|
82
|
+
content: '';
|
|
83
|
+
position: absolute;
|
|
84
|
+
bottom: 15%;
|
|
85
|
+
right: 20px;
|
|
86
|
+
width: 0;
|
|
87
|
+
height: 0;
|
|
88
|
+
border: 16px solid transparent;
|
|
89
|
+
border-top-color: #eee;
|
|
90
|
+
border-bottom: 0;
|
|
91
|
+
border-right: 0;
|
|
92
|
+
margin-left: -12px;
|
|
93
|
+
margin-bottom: -24px;
|
|
94
|
+
z-index: 0;
|
|
95
|
+
}
|
|
96
|
+
.p_fix ul li:nth-of-type(3):after {
|
|
97
|
+
content: '';
|
|
98
|
+
position: absolute;
|
|
99
|
+
bottom: 19%;
|
|
100
|
+
right: 21px;
|
|
101
|
+
width: 0;
|
|
102
|
+
height: 0;
|
|
103
|
+
border: 14px solid transparent;
|
|
104
|
+
border-top-color: #fff;
|
|
105
|
+
border-bottom: 0;
|
|
106
|
+
border-right: 0;
|
|
107
|
+
margin-left: -12px;
|
|
108
|
+
margin-bottom: -24px;
|
|
109
|
+
z-index: 1;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.p_fix ul li:nth-child(5) a {
|
|
113
|
+
padding: 15px 0 0 0;
|
|
114
|
+
}
|
|
115
|
+
.p_fix ul li a .txt .ph {
|
|
116
|
+
color: #db0c46;
|
|
117
|
+
}
|
|
118
|
+
.p_fix ul li a .txt .inner {
|
|
119
|
+
background-color: #ab0634;
|
|
120
|
+
border: 1px solid #ab0634;
|
|
121
|
+
color: #fff;
|
|
122
|
+
margin-top: 15px;
|
|
123
|
+
line-height: 1.8;
|
|
124
|
+
padding-bottom: 10px;
|
|
125
|
+
}
|
|
126
|
+
.p_fix ul li a .txt .inner p {
|
|
127
|
+
color: #fff;
|
|
128
|
+
margin-top: 10px;
|
|
129
|
+
line-height: 25px;
|
|
130
|
+
}
|
|
131
|
+
.p_fix ul li a .txt .inner p:first-child {
|
|
132
|
+
margin-top: 0;
|
|
133
|
+
}
|
|
134
|
+
.p_fix ul li a .txt .pointer {
|
|
135
|
+
font-weight: 500;
|
|
136
|
+
padding: 10px 0 5px 0;
|
|
137
|
+
margin: 0 10px 5px 10px;
|
|
138
|
+
border-bottom: 1px solid #fff;
|
|
139
|
+
}
|
|
140
|
+
.p_fix ul li a .txt span {
|
|
141
|
+
display: block;
|
|
142
|
+
color: #fff;
|
|
143
|
+
}
|
|
144
|
+
/*.p_fix ul li:last-child a { background-color: #3d3d3d; border: 1px solid #3d3d3d; color: #fff; } */
|
|
145
|
+
|
|
146
|
+
.p_fix .circle {
|
|
147
|
+
width: 70px;
|
|
148
|
+
height: 70px;
|
|
149
|
+
border-radius: 50%;
|
|
150
|
+
background: #9bb3c2;
|
|
151
|
+
display: flex;
|
|
152
|
+
justify-content: center;
|
|
153
|
+
align-items: center;
|
|
154
|
+
margin-top: 10px;
|
|
155
|
+
margin-right: 5px;
|
|
156
|
+
}
|
|
157
|
+
.p_fix .circle img {
|
|
158
|
+
width: 70%;
|
|
159
|
+
height: auto;
|
|
160
|
+
box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.topHidden {
|
|
164
|
+
display: none;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
@media (max-width: 1024px) {
|
|
168
|
+
/* 하단 고정 상담신청바 */
|
|
169
|
+
#p_fix_cont {
|
|
170
|
+
display: none;
|
|
171
|
+
}
|
|
172
|
+
#m_fix_cont {
|
|
173
|
+
display: block;
|
|
174
|
+
}
|
|
175
|
+
.topHidden {
|
|
176
|
+
display: none !important;
|
|
177
|
+
}
|
|
178
|
+
.m_fix {
|
|
179
|
+
width: 100%;
|
|
180
|
+
position: fixed;
|
|
181
|
+
bottom: 0;
|
|
182
|
+
left: 0;
|
|
183
|
+
background: #f6f6f6;
|
|
184
|
+
z-index: 9999;
|
|
185
|
+
border-top: 1px solid #083450;
|
|
186
|
+
border-bottom: 1px solid #083450;
|
|
187
|
+
}
|
|
188
|
+
.m_fix:after {
|
|
189
|
+
content: '';
|
|
190
|
+
display: block;
|
|
191
|
+
clear: both;
|
|
192
|
+
}
|
|
193
|
+
.m_fix .box {
|
|
194
|
+
width: 33.3%;
|
|
195
|
+
text-align: center;
|
|
196
|
+
float: left;
|
|
197
|
+
padding: 8px 0;
|
|
198
|
+
background: #f6f6f6;
|
|
199
|
+
}
|
|
200
|
+
/*.m_fix .box:nth-child(1) { background: #083450; color: #fff; }*/
|
|
201
|
+
/*.m_fix .box:nth-child(1) a p { color: #fff; }*/
|
|
202
|
+
.m_fix .box:nth-child(2) {
|
|
203
|
+
border-right: 1px solid #bdbdbd;
|
|
204
|
+
border-left: 1px solid #bdbdbd;
|
|
205
|
+
}
|
|
206
|
+
.m_fix .box a {
|
|
207
|
+
color: #000;
|
|
208
|
+
display: inline-block;
|
|
209
|
+
width: 100%;
|
|
210
|
+
}
|
|
211
|
+
.m_fix .box a img {
|
|
212
|
+
width: 22px;
|
|
213
|
+
height: 22px;
|
|
214
|
+
position: relative;
|
|
215
|
+
padding: 0 0 7px 0;
|
|
216
|
+
}
|
|
217
|
+
.m_fix .box a p {
|
|
218
|
+
font-weight: 500;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
@media (max-width: 900px) {
|
|
223
|
+
.footer .footer_cont .f_down {
|
|
224
|
+
padding-bottom: 65px;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/* 하단 고정 상담신청바 */
|
|
228
|
+
.m_fix {
|
|
229
|
+
width: 100%;
|
|
230
|
+
position: fixed;
|
|
231
|
+
bottom: 0;
|
|
232
|
+
left: 0;
|
|
233
|
+
}
|
|
234
|
+
.m_fix:after {
|
|
235
|
+
content: '';
|
|
236
|
+
display: block;
|
|
237
|
+
clear: both;
|
|
238
|
+
}
|
|
239
|
+
.m_fix .txt {
|
|
240
|
+
text-align: center;
|
|
241
|
+
padding: 5px 0;
|
|
242
|
+
color: #fff;
|
|
243
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.6);
|
|
244
|
+
font-size: 18px;
|
|
245
|
+
}
|
|
246
|
+
.m_fix .box {
|
|
247
|
+
text-align: center;
|
|
248
|
+
float: left;
|
|
249
|
+
padding: 8px 0;
|
|
250
|
+
}
|
|
251
|
+
.m_fix .box a {
|
|
252
|
+
color: #000;
|
|
253
|
+
display: inline-block;
|
|
254
|
+
width: 100%;
|
|
255
|
+
}
|
|
256
|
+
.m_fix .box a img {
|
|
257
|
+
width: 22px;
|
|
258
|
+
height: 22px;
|
|
259
|
+
position: relative;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
@media (max-width: 640px) {
|
|
264
|
+
.m_fix .box a p {
|
|
265
|
+
font-size: 14px;
|
|
266
|
+
}
|
|
267
|
+
.m_fix .box {
|
|
268
|
+
width: 33.3333%;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
@media (max-width: 400px) {
|
|
273
|
+
/* 하단 고정 상담신청바 */
|
|
274
|
+
.m_fix .txt {
|
|
275
|
+
font-size: 16px;
|
|
276
|
+
}
|
|
277
|
+
.m_fix .box a {
|
|
278
|
+
font-size: 14px;
|
|
279
|
+
}
|
|
280
|
+
/* .m_fix .box:nth-child(1) a p { font-size: 13px; } */
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/*애니메이션*/
|
|
284
|
+
.fadeIn {
|
|
285
|
+
animation: fadeIn 0.3s ease-in-out forwards;
|
|
286
|
+
z-index: 30;
|
|
287
|
+
pointer-events: all;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.fadeOut {
|
|
291
|
+
animation: fadeOut 0.3s ease-in-out forwards;
|
|
292
|
+
z-index: 10;
|
|
293
|
+
pointer-events: none;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
@keyframes fadeIn {
|
|
297
|
+
from {
|
|
298
|
+
opacity: 0;
|
|
299
|
+
z-index: 30;
|
|
300
|
+
}
|
|
301
|
+
to {
|
|
302
|
+
opacity: 1;
|
|
303
|
+
z-index: 30;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
@keyframes fadeOut {
|
|
308
|
+
from {
|
|
309
|
+
opacity: 1;
|
|
310
|
+
z-index: 30;
|
|
311
|
+
}
|
|
312
|
+
to {
|
|
313
|
+
opacity: 0;
|
|
314
|
+
z-index: 10;
|
|
315
|
+
}
|
|
316
|
+
}
|