@daeryun/dr_components 0.1.7 → 0.1.9
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 +2 -2
- package/dist/components/Fix/index.jsx +42 -75
- package/dist/components/Fix/index.tsx +111 -147
- package/dist/components/index.js +2 -1
- package/dist/components/index.ts +2 -1
- package/dist/styles/globals.css +4 -224
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/components/SearchBar/SearchBar.d.ts +0 -14
- package/dist/components/SearchBar/SearchBar.jsx +0 -73
- package/dist/components/SearchBar/SearchBar.tsx +0 -139
package/README.md
CHANGED
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
## 설치
|
|
5
5
|
|
|
6
6
|
```bash
|
|
7
|
-
npm install @daeryun/
|
|
7
|
+
npm install @daeryun/dr_components
|
|
8
8
|
```
|
|
9
9
|
|
|
10
10
|
## 사용법
|
|
11
11
|
|
|
12
12
|
```bash
|
|
13
|
-
import { Top } from '@daeryun/
|
|
13
|
+
import { Top } from '@daeryun/dr_components';
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
## 배포
|
|
@@ -24,9 +24,7 @@ import ArrowIcon from '../../asset/images/fix/arrow.webp';
|
|
|
24
24
|
const Fix = (props) => {
|
|
25
25
|
const mobile = require('is-mobile');
|
|
26
26
|
const [isMobile, setIsMobile] = useState(false);
|
|
27
|
-
// const [tel] = useRecoilState(telAtom)
|
|
28
27
|
const [isTop, setIsTop] = useState(true);
|
|
29
|
-
const [position, setPosition] = useState(0);
|
|
30
28
|
const onlineRef = useRef(null);
|
|
31
29
|
const callRef = useRef(null);
|
|
32
30
|
const router = useRouter();
|
|
@@ -34,11 +32,9 @@ const Fix = (props) => {
|
|
|
34
32
|
insert('kakao', isMobile);
|
|
35
33
|
savePowerLinkConversion('kakao', isMobile);
|
|
36
34
|
if (isMobile) {
|
|
37
|
-
ace_mKakaoClick();
|
|
38
35
|
mKakaoClick();
|
|
39
36
|
}
|
|
40
37
|
else {
|
|
41
|
-
// ace_pcKakaoClick();
|
|
42
38
|
pcKakaoClick();
|
|
43
39
|
}
|
|
44
40
|
};
|
|
@@ -46,11 +42,9 @@ const Fix = (props) => {
|
|
|
46
42
|
insert('call', isMobile);
|
|
47
43
|
savePowerLinkConversion('call', isMobile);
|
|
48
44
|
if (isMobile) {
|
|
49
|
-
ace_mTelClick();
|
|
50
45
|
mTelClick();
|
|
51
46
|
}
|
|
52
47
|
else {
|
|
53
|
-
// ace_pcTelClick();
|
|
54
48
|
pcTelClick();
|
|
55
49
|
}
|
|
56
50
|
};
|
|
@@ -87,33 +81,6 @@ const Fix = (props) => {
|
|
|
87
81
|
value: '1'
|
|
88
82
|
});
|
|
89
83
|
};
|
|
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
84
|
useEffect(() => {
|
|
118
85
|
if (typeof window != 'undefined') {
|
|
119
86
|
const handleScroll = () => {
|
|
@@ -139,113 +106,113 @@ const Fix = (props) => {
|
|
|
139
106
|
return (<>
|
|
140
107
|
<div className={(isTop ? ' hidden ' : '') +
|
|
141
108
|
' fixed bottom-[43px] right-[25px] z-[2000] w-fit font-[SUIT] ' +
|
|
142
|
-
' max-lg:
|
|
109
|
+
' max-lg:relative max-lg:bottom-0 max-lg:right-0 max-lg:w-full'}>
|
|
143
110
|
{/*Fix*/}
|
|
144
111
|
|
|
145
|
-
<div className={'relative
|
|
146
|
-
'max-5xl:
|
|
112
|
+
<div className={'relative z-20 h-[330px] w-[100px] overflow-hidden rounded-full shadow-[0_4px_8px_0_rgba(0,0,0,0.1)] ' +
|
|
113
|
+
'max-5xl:h-[250px] max-5xl:w-[75px] ' +
|
|
147
114
|
'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={'
|
|
115
|
+
<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 '}>
|
|
149
116
|
Quick Menu
|
|
150
117
|
</div>
|
|
151
|
-
<div className={'w-full flex-col
|
|
152
|
-
' max-5xl:gap-y-[13px] max-5xl:
|
|
153
|
-
' max-lg:flex-row max-lg:
|
|
118
|
+
<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] ' +
|
|
119
|
+
' max-5xl:gap-y-[13px] max-5xl:py-[13px] max-5xl:text-[13px] ' +
|
|
120
|
+
' max-lg:flex-row max-lg:pb-[18px] max-lg:pt-[20px] max-lg:text-[13px] '}>
|
|
154
121
|
{/*온라인 예약 버튼*/}
|
|
155
|
-
<div className={'w-full
|
|
122
|
+
<div className={'flex w-full cursor-pointer flex-col items-center'} onClick={() => {
|
|
156
123
|
var _a, _b, _c, _d;
|
|
157
124
|
(_a = callRef.current) === null || _a === void 0 ? void 0 : _a.classList.remove(style.fadeIn);
|
|
158
125
|
(_b = callRef.current) === null || _b === void 0 ? void 0 : _b.classList.remove(style.fadeOut);
|
|
159
126
|
(_c = onlineRef.current) === null || _c === void 0 ? void 0 : _c.classList.remove(style.fadeOut);
|
|
160
127
|
(_d = onlineRef.current) === null || _d === void 0 ? void 0 : _d.classList.add(style.fadeIn);
|
|
161
128
|
}}>
|
|
162
|
-
<Image src={OnlineIcon} alt={'online icon'} width={33} height={38} className={'w-[33px]
|
|
129
|
+
<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] '}/>
|
|
163
130
|
온라인예약
|
|
164
131
|
</div>
|
|
165
132
|
{/*카톡 예약 버튼*/}
|
|
166
|
-
<Link href="
|
|
167
|
-
<Image src={KakaoIcon} alt={'kakao icon'} width={33} height={31} className={'
|
|
133
|
+
<Link href="https://pf.kakao.com/_xgxoTlK/chat" target={'_blank'} className={'flex w-full cursor-pointer flex-col items-center'} onClick={onClickKakao}>
|
|
134
|
+
<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] '}/>
|
|
168
135
|
카톡예약
|
|
169
136
|
</Link>
|
|
170
137
|
{/*전화 예약 버튼*/}
|
|
171
|
-
<div className={'w-full
|
|
138
|
+
<div className={'flex w-full cursor-pointer flex-col items-center'} onClick={() => {
|
|
172
139
|
var _a, _b, _c, _d;
|
|
173
140
|
(_a = onlineRef.current) === null || _a === void 0 ? void 0 : _a.classList.remove(style.fadeIn);
|
|
174
141
|
(_b = onlineRef.current) === null || _b === void 0 ? void 0 : _b.classList.remove(style.fadeOut);
|
|
175
142
|
(_c = callRef.current) === null || _c === void 0 ? void 0 : _c.classList.remove(style.fadeOut);
|
|
176
143
|
(_d = callRef.current) === null || _d === void 0 ? void 0 : _d.classList.add(style.fadeIn);
|
|
177
144
|
}}>
|
|
178
|
-
<Image src={CallIcon} alt={'call icon'} width={33} height={33} className={'
|
|
145
|
+
<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]'}/>
|
|
179
146
|
전화예약
|
|
180
147
|
</div>
|
|
181
148
|
</div>
|
|
182
149
|
</div>
|
|
183
150
|
|
|
184
151
|
{/*온라인*/}
|
|
185
|
-
<div ref={onlineRef} className={'
|
|
186
|
-
'max-5xl:
|
|
187
|
-
' max-lg:
|
|
188
|
-
<span className={'w-full
|
|
152
|
+
<div ref={onlineRef} className={'pointer-events-none fixed bottom-[13px] right-[25px] h-[300px] w-[300px] bg-white px-[30px] py-[26px] opacity-0 shadow-[0_4px_8px_0_rgba(0,0,0,0.1)] ' +
|
|
153
|
+
'max-5xl:bottom-[10px] max-5xl:h-[230px] max-5xl:w-[230px] max-5xl:px-[22px] max-5xl:py-[20px] ' +
|
|
154
|
+
' max-lg:bottom-[85px] max-lg:left-[20px] max-lg:h-[160px] max-lg:w-[240px] max-lg:px-[20px] max-lg:py-[17px]'}>
|
|
155
|
+
<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]'}>
|
|
189
156
|
온라인 예약상담
|
|
190
157
|
<Image src={MenuXIcon} width={54} height={54} alt={'취소'} onClick={() => {
|
|
191
158
|
var _a, _b;
|
|
192
159
|
(_a = onlineRef.current) === null || _a === void 0 ? void 0 : _a.classList.remove(style.fadeIn);
|
|
193
160
|
(_b = onlineRef.current) === null || _b === void 0 ? void 0 : _b.classList.add(style.fadeOut);
|
|
194
|
-
}} className={'w-[20px]
|
|
161
|
+
}} className={'h-auto w-[20px] cursor-pointer max-5xl:w-[15px] max-lg:w-[15px]'}/>
|
|
195
162
|
</span>
|
|
196
163
|
|
|
197
|
-
<span className={'text-[
|
|
164
|
+
<span className={'text-[16px] tracking-[-0.8px] text-[#5C5C5C] max-5xl:text-[14px] max-lg:hidden'}>
|
|
198
165
|
해당사건에 특화된 전문변호사가 검토 후 신속한 대응전략을 제시합니다.
|
|
199
166
|
</span>
|
|
200
167
|
|
|
201
|
-
<button className={'
|
|
202
|
-
' max-5xl:mt-[13px] max-5xl:
|
|
203
|
-
' max-lg:
|
|
168
|
+
<button 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 ' +
|
|
169
|
+
' max-5xl:mt-[13px] max-5xl:h-[45px] max-5xl:w-[190px] max-5xl:text-[18px] ' +
|
|
170
|
+
' max-lg:mt-[17px] max-lg:h-[40px] max-lg:w-[200px] max-lg:py-[10px] max-lg:text-[16px] '} onClick={() => __awaiter(void 0, void 0, void 0, function* () {
|
|
204
171
|
yield router.push('/consulting');
|
|
205
172
|
})}>
|
|
206
173
|
기업상담
|
|
207
|
-
<Image src={ArrowIcon} width={22} height={18} alt={'기업상담'} className={'w-[22px]
|
|
174
|
+
<Image src={ArrowIcon} width={22} height={18} alt={'기업상담'} className={'h-auto w-[22px] max-5xl:w-[20px] max-lg:w-[17px]'}/>
|
|
208
175
|
</button>
|
|
209
|
-
<button className={'
|
|
210
|
-
' max-5xl:
|
|
211
|
-
' max-lg:
|
|
176
|
+
<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' +
|
|
177
|
+
' max-5xl:h-[45px] max-5xl:w-[190px] max-5xl:text-[18px] ' +
|
|
178
|
+
' max-lg:h-[40px] max-lg:w-[200px] max-lg:py-[10px] max-lg:text-[16px] '} onClick={() => __awaiter(void 0, void 0, void 0, function* () {
|
|
212
179
|
yield router.push('/consult');
|
|
213
180
|
})}>
|
|
214
181
|
개인상담
|
|
215
|
-
<Image src={ArrowIcon} width={22} height={18} alt={'개인상담'} className={'w-[22px]
|
|
182
|
+
<Image src={ArrowIcon} width={22} height={18} alt={'개인상담'} className={'h-auto w-[22px] max-5xl:w-[20px] max-lg:w-[17px]'}/>
|
|
216
183
|
</button>
|
|
217
184
|
</div>
|
|
218
185
|
|
|
219
186
|
{/*전화*/}
|
|
220
|
-
<div ref={callRef} className={'
|
|
221
|
-
'max-5xl:
|
|
222
|
-
'max-lg:
|
|
223
|
-
<span className={'w-full
|
|
187
|
+
<div ref={callRef} className={'pointer-events-none fixed bottom-[13px] right-[25px] h-[300px] w-[300px] bg-white px-[30px] py-[26px] opacity-0 shadow-[0_4px_8px_0_rgba(0,0,0,0.1)] ' +
|
|
188
|
+
'max-5xl:bottom-[10px] max-5xl:h-[230px] max-5xl:w-[230px] max-5xl:px-[22px] max-5xl:py-[20px] ' +
|
|
189
|
+
'max-lg:bottom-[85px] max-lg:right-[20px] max-lg:h-[200px] max-lg:w-[240px] max-lg:px-[20px] max-lg:py-[17px]'}>
|
|
190
|
+
<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]'}>
|
|
224
191
|
전화 예약상담
|
|
225
192
|
<Image src={MenuXIcon} width={54} height={54} alt={'취소'} onClick={() => {
|
|
226
193
|
var _a, _b;
|
|
227
194
|
(_a = callRef.current) === null || _a === void 0 ? void 0 : _a.classList.remove(style.fadeIn);
|
|
228
195
|
(_b = callRef.current) === null || _b === void 0 ? void 0 : _b.classList.add(style.fadeOut);
|
|
229
|
-
}} className={'w-[20px]
|
|
196
|
+
}} className={'h-auto w-[20px] cursor-pointer max-5xl:w-[15px] max-lg:w-[15px]'}/>
|
|
230
197
|
</span>
|
|
231
198
|
|
|
232
|
-
<Link href={`tel:${props.tel}`} className={'
|
|
233
|
-
' max-5xl:
|
|
234
|
-
' max-lg:mt-[15px] max-lg:
|
|
235
|
-
<span className={'text-left leading-tight
|
|
199
|
+
<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' +
|
|
200
|
+
' max-5xl:h-[60px] max-5xl:w-[190px] max-5xl:text-[18px] ' +
|
|
201
|
+
' max-lg:mt-[15px] max-lg:h-[60px] max-lg:w-[200px] max-lg:px-[15px] max-lg:py-[12px] '} onClick={onClickTel}>
|
|
202
|
+
<span className={'text-left font-bold leading-tight max-lg:leading-[17.5px]'}>
|
|
236
203
|
<span className={'text-[20px] max-lg:text-[16px]'}>기업상담</span>
|
|
237
204
|
{/* <span className={'text-[22px] max-lg:text-[16px] block'}>{tel}</span> */}
|
|
238
205
|
</span>
|
|
239
|
-
<Image src={Call2Icon} width={30} height={30} alt={'기업상담'} className={'
|
|
206
|
+
<Image src={Call2Icon} width={30} height={30} alt={'기업상담'} className={'h-[30px] w-[30px]'}/>
|
|
240
207
|
</Link>
|
|
241
|
-
<Link href={`tel:${props.tel}`} className={'
|
|
242
|
-
' max-5xl:
|
|
243
|
-
' max-lg:
|
|
244
|
-
<span className={'text-left leading-tight
|
|
208
|
+
<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' +
|
|
209
|
+
' max-5xl:h-[60px] max-5xl:w-[190px] max-5xl:text-[18px] ' +
|
|
210
|
+
' max-lg:h-[60px] max-lg:w-[200px] max-lg:px-[15px] max-lg:py-[12px] '} onClick={onClickTel}>
|
|
211
|
+
<span className={'text-left font-bold leading-tight max-lg:leading-[17.5px]'}>
|
|
245
212
|
<span className={'text-[20px] max-lg:text-[16px] '}>개인상담</span>
|
|
246
213
|
{/* <span className={'text-[22px] max-lg:text-[16px] block '}>{tel}</span> */}
|
|
247
214
|
</span>
|
|
248
|
-
<Image src={Call2Icon} width={30} height={30} alt={'개인상담'} className={'
|
|
215
|
+
<Image src={Call2Icon} width={30} height={30} alt={'개인상담'} className={'h-[30px] w-[30px]'}/>
|
|
249
216
|
</Link>
|
|
250
217
|
</div>
|
|
251
218
|
</div>
|