@daeryun/dr_components 0.1.3 → 0.1.6
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/custom.d.ts +1 -0
- package/dist/asset/images/footer/logo_b.webp +0 -0
- package/dist/asset/images/footer/top.svg +13 -0
- package/dist/components/Cat/index.jsx +1 -1
- package/dist/components/Cat/index.tsx +1 -2
- package/dist/components/Fix/Fix.stories.jsx +2 -1
- package/dist/components/Fix/Fix.stories.tsx +2 -1
- package/dist/components/Footer/Footer.stories.d.ts +5 -15
- package/dist/components/Footer/Footer.stories.jsx +15 -7
- package/dist/components/Footer/Footer.stories.tsx +20 -10
- package/dist/components/Footer/TopBtn.d.ts +5 -0
- package/dist/components/Footer/TopBtn.jsx +18 -0
- package/dist/components/Footer/TopBtn.tsx +29 -0
- package/dist/components/Footer/index.d.ts +5 -7
- package/dist/components/Footer/index.jsx +204 -106
- package/dist/components/Footer/index.tsx +381 -256
- package/dist/components/Layout/Wrapper.d.ts +2 -4
- package/dist/components/Layout/Wrapper.jsx +27 -39
- package/dist/components/Layout/Wrapper.tsx +29 -49
- package/dist/components/index.js +2 -2
- package/dist/components/index.ts +2 -2
- package/dist/styles/globals.css +127 -945
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -1
- package/dist/asset/images/logo.webp +0 -0
- package/dist/components/FooterKeywd/index.d.ts +0 -3
- package/dist/components/FooterKeywd/index.jsx +0 -88
- package/dist/components/FooterKeywd/index.module.css +0 -123
- package/dist/components/FooterKeywd/index.tsx +0 -92
- package/dist/components/Top/Fix.d.ts +0 -0
- package/dist/components/Top/Fix.jsx +0 -306
- package/dist/components/Top/Fix.module.css +0 -54
- package/dist/components/Top/Fix.tsx +0 -305
- package/dist/components/Top/Gnb.d.ts +0 -0
- package/dist/components/Top/Gnb.jsx +0 -212
- package/dist/components/Top/Gnb.tsx +0 -211
- package/dist/components/Top/Hamburger.d.ts +0 -0
- package/dist/components/Top/Hamburger.jsx +0 -743
- package/dist/components/Top/Hamburger.tsx +0 -742
- package/dist/components/Top/index.d.ts +0 -0
- package/dist/components/Top/index.jsx +0 -62
- package/dist/components/Top/index.tsx +0 -61
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/* 하단 고정 상담신청바 */
|
|
2
|
-
#m_fix_cont { display: none; }
|
|
3
|
-
.p_fix { width: 120px; position: fixed; top: 20%; right: 0; z-index: 1000; }
|
|
4
|
-
.p_fix ul { padding: 0; margin: 0; background-color: #fff; }
|
|
5
|
-
.p_fix ul li a { display: block; width: 120px; padding: 15px 0; border: 1px solid #eee; box-sizing: content-box; text-align: center; color: #222; font-weight: 400; }
|
|
6
|
-
.p_fix ul li .r_logo { display: block; width: 120px; padding: 15px 0; border: 1px solid #eee; box-sizing: content-box; text-align: center; color: #222; font-weight: 400; background-color: #ab0634; color: #fff; font-weight: 500; font-size: 18px; }
|
|
7
|
-
.p_fix ul li a .txt { font-size: 16px; font-weight: 500; }
|
|
8
|
-
.p_fix ul li:nth-child(5) a { padding: 15px 0 0 0; }
|
|
9
|
-
.p_fix ul li a .txt .ph { color: #db0c46; }
|
|
10
|
-
.p_fix ul li a .txt .inner { background-color: #ab0634; border: 1px solid #ab0634; color: #fff; margin-top: 15px; line-height: 1.8; padding-bottom: 10px; }
|
|
11
|
-
.p_fix ul li a .txt .inner p { color: #fff; }
|
|
12
|
-
.p_fix ul li a .txt .pointer { font-weight: 500; padding: 10px 0 5px 0; margin: 0 10px 5px 10px; border-bottom: 1px solid #fff; }
|
|
13
|
-
.p_fix ul li a .txt span { display: block; color: #fff; }
|
|
14
|
-
.p_fix ul li:last-child a { background-color: #3d3d3d; border: 1px solid #3d3d3d; color: #fff; }
|
|
15
|
-
|
|
16
|
-
@media (max-width: 1024px) { /* 하단 고정 상담신청바 */
|
|
17
|
-
#p_fix_cont { display: none; }
|
|
18
|
-
#m_fix_cont { display: block; }
|
|
19
|
-
.m_fix { width: 100%; position: fixed; bottom: 0; left: 0; z-index: 9999; background: #ab0634; border-top: 1px solid #ab0634; border-bottom: 1px solid #ab0634; }
|
|
20
|
-
.m_fix:after { content: ""; display: block; clear: both; }
|
|
21
|
-
.m_fix .box { width: 33.28%; text-align: center; float: left; padding: 8px 0; background: #f6f6f6; }
|
|
22
|
-
.m_fix .box:nth-child(1) { background: #ab0634; color: #fff; }
|
|
23
|
-
.m_fix .box:nth-child(1) a p { color: #fff; }
|
|
24
|
-
.m_fix .box:nth-child(2) { border-right: 1px solid #bdbdbd; }
|
|
25
|
-
.m_fix .box a { color: #000; display: inline-block; width: 100%; }
|
|
26
|
-
.m_fix .box a img { width: 22px !important; height: 22px !important; position: relative; padding: 0 0 7px 0; }
|
|
27
|
-
.m_fix .box a p { font-weight: 500; }
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
@media (max-width: 900px){
|
|
31
|
-
.footer .footer_cont .f_down { padding-bottom: 65px; }
|
|
32
|
-
|
|
33
|
-
/* 하단 고정 상담신청바 */
|
|
34
|
-
.m_fix { width: 100%; position: fixed; bottom: 0; left: 0; }
|
|
35
|
-
.m_fix:after { content: ""; display: block; clear: both; }
|
|
36
|
-
.m_fix .txt { text-align: center; padding: 5px 0; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.6); font-size: 18px; }
|
|
37
|
-
.m_fix .box { text-align: center; float: left; padding: 8px 0; }
|
|
38
|
-
.m_fix .box a { color: #000; display: inline-block; width: 100%; }
|
|
39
|
-
.m_fix .box a img { width: 22px; height: 22px; position: relative; }
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
@media (max-width: 640px){
|
|
43
|
-
.m_fix .box a p { font-size: 14px; }
|
|
44
|
-
.m_fix .box { width: 33.24%; }
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
@media (max-width: 400px) { /* 하단 고정 상담신청바 */
|
|
48
|
-
.m_fix .txt { font-size: 16px; }
|
|
49
|
-
.m_fix .box a { font-size: 14px; }
|
|
50
|
-
/* .m_fix .box:nth-child(1) a p { font-size: 13px; } */}
|
|
51
|
-
|
|
52
|
-
@media (max-width: 360px){
|
|
53
|
-
.m_fix .box { width: 33.2%; }
|
|
54
|
-
}
|
|
@@ -1,305 +0,0 @@
|
|
|
1
|
-
// import React, { useEffect, useState } from 'react'
|
|
2
|
-
// import Image from 'next/image'
|
|
3
|
-
// import { insert } from '../../lib/conversion'
|
|
4
|
-
// import * as gtag from '../../lib/gtag'
|
|
5
|
-
// import Link from 'next/link'
|
|
6
|
-
// import { useTranslation } from 'next-i18next'
|
|
7
|
-
// import { useRouter } from 'next/router'
|
|
8
|
-
// import DOMPurify from 'isomorphic-dompurify'
|
|
9
|
-
// import { saveNaverPowerLinkConversion } from '../../lib/powerlink'
|
|
10
|
-
// import top1 from '../../asset/images/header/top_icon_01.webp'
|
|
11
|
-
// import top2 from '../../asset/images/header/top_icon_02.webp'
|
|
12
|
-
// import top3 from '../../asset/images/header/top_icon_03.webp'
|
|
13
|
-
// import top4 from '../../asset/images/header/top_icon_04.webp'
|
|
14
|
-
// import online from '../../asset/images/header/online.png'
|
|
15
|
-
// import talk from '../../asset/images/header/talk.png'
|
|
16
|
-
// import phone from '../../asset/images/header/phone.png'
|
|
17
|
-
//
|
|
18
|
-
// const Fix = () => {
|
|
19
|
-
// const mobile = require('is-mobile')
|
|
20
|
-
// const [isMobile, setIsMobile] = useState<boolean>(false)
|
|
21
|
-
// const router = useRouter()
|
|
22
|
-
// const [isTop, setIsTop] = useState(true)
|
|
23
|
-
// const { t } = useTranslation('common')
|
|
24
|
-
//
|
|
25
|
-
// useEffect(() => {
|
|
26
|
-
// const handleScroll = () => {
|
|
27
|
-
// setIsTop(window.scrollY <= window.innerHeight * 0.5)
|
|
28
|
-
// }
|
|
29
|
-
//
|
|
30
|
-
// const is_mobile = mobile()
|
|
31
|
-
// setIsMobile(is_mobile)
|
|
32
|
-
//
|
|
33
|
-
// // Add scroll event listener
|
|
34
|
-
// window.addEventListener('scroll', handleScroll)
|
|
35
|
-
//
|
|
36
|
-
// // Remove scroll event listener on component unmount
|
|
37
|
-
// return () => {
|
|
38
|
-
// window.removeEventListener('scroll', handleScroll)
|
|
39
|
-
// }
|
|
40
|
-
// }, [])
|
|
41
|
-
//
|
|
42
|
-
// // GA 클릭이벤트
|
|
43
|
-
// const mTelClick = () => {
|
|
44
|
-
// gtag.event({
|
|
45
|
-
// action: 'mobile_tel',
|
|
46
|
-
// category: 'tel',
|
|
47
|
-
// label: '모바일전화버튼',
|
|
48
|
-
// value: '1'
|
|
49
|
-
// })
|
|
50
|
-
// }
|
|
51
|
-
//
|
|
52
|
-
// // GA 클릭이벤트
|
|
53
|
-
// const pcTelClick = () => {
|
|
54
|
-
// gtag.event({
|
|
55
|
-
// action: 'pc_tel',
|
|
56
|
-
// category: 'tel',
|
|
57
|
-
// label: '피씨전화버튼',
|
|
58
|
-
// value: '1'
|
|
59
|
-
// })
|
|
60
|
-
// }
|
|
61
|
-
//
|
|
62
|
-
// // GA 클릭이벤트
|
|
63
|
-
// const mKakaoClick = () => {
|
|
64
|
-
// gtag.event({
|
|
65
|
-
// action: 'mobile_kakao',
|
|
66
|
-
// category: 'kakao',
|
|
67
|
-
// label: '모바일카카오버튼',
|
|
68
|
-
// value: '1'
|
|
69
|
-
// })
|
|
70
|
-
// }
|
|
71
|
-
//
|
|
72
|
-
// // GA 클릭이벤트
|
|
73
|
-
// const pcKakaoClick = () => {
|
|
74
|
-
// gtag.event({
|
|
75
|
-
// action: 'pc_kakao',
|
|
76
|
-
// category: 'kakao',
|
|
77
|
-
// label: '피씨카카오버튼',
|
|
78
|
-
// value: '1'
|
|
79
|
-
// })
|
|
80
|
-
// }
|
|
81
|
-
//
|
|
82
|
-
// // 에이스카운터 전환태그
|
|
83
|
-
// const ace_mTelClick = () => {
|
|
84
|
-
// try {
|
|
85
|
-
// // @ts-ignore
|
|
86
|
-
// AM_PL('/m_tel')
|
|
87
|
-
// } catch (e) {}
|
|
88
|
-
// }
|
|
89
|
-
//
|
|
90
|
-
// const ace_pcTelClick = () => {
|
|
91
|
-
// try {
|
|
92
|
-
// // @ts-ignore
|
|
93
|
-
// _PL('www.daeryunlaw-assault.com/tel')
|
|
94
|
-
// } catch (e) {}
|
|
95
|
-
// }
|
|
96
|
-
//
|
|
97
|
-
// const ace_mKakaoClick = () => {
|
|
98
|
-
// try {
|
|
99
|
-
// // @ts-ignore
|
|
100
|
-
// AM_PL('/m_kakao')
|
|
101
|
-
// } catch (e) {}
|
|
102
|
-
// }
|
|
103
|
-
//
|
|
104
|
-
// const ace_pcKakaoClick = () => {
|
|
105
|
-
// try {
|
|
106
|
-
// // @ts-ignore
|
|
107
|
-
// _PL('www.daeryunlaw-assault.com/kakao')
|
|
108
|
-
// } catch (e) {}
|
|
109
|
-
// }
|
|
110
|
-
//
|
|
111
|
-
// return (
|
|
112
|
-
// <>
|
|
113
|
-
// <section id={'fix_pc'} className={`hidden ${isTop ? '' : 'lg:block relative z-50'}`}>
|
|
114
|
-
// <div
|
|
115
|
-
// className={
|
|
116
|
-
// 'w-[166px] h-[312.px] fixed bottom-[5%] right-0.5 z-1000 bg-white border border-[#B57C1E] border-solid rounded-bl-[55px]'
|
|
117
|
-
// }
|
|
118
|
-
// >
|
|
119
|
-
// <ul className={'mt-6'}>
|
|
120
|
-
// <li className={'mx-6 text-center'}>
|
|
121
|
-
// <div>
|
|
122
|
-
// {t('fix_easy and fast')}
|
|
123
|
-
// <br />
|
|
124
|
-
// <p className={'text-[#897046] text-[18px]'}>
|
|
125
|
-
// {t('fix_Online consultation reservation')}
|
|
126
|
-
// </p>
|
|
127
|
-
// </div>
|
|
128
|
-
// </li>
|
|
129
|
-
// <li>
|
|
130
|
-
// <Link href="/choice">
|
|
131
|
-
// <div className={'mx-[68px] mt-[15.32px] mb-[25.88px]'}>
|
|
132
|
-
// <Image src={top1} alt="온라인상담예약" width={29.59} height={28.1} />
|
|
133
|
-
// </div>
|
|
134
|
-
// </Link>
|
|
135
|
-
// </li>
|
|
136
|
-
// <hr className={'w-[139px] h-1 border-[#D8D8D8] border-solid mx-auto'} />
|
|
137
|
-
// <li className={'mt-[19px] ml-[22px] mr-[31px] mb-[18.81px] '}>
|
|
138
|
-
// <Link
|
|
139
|
-
// href="http://pf.kakao.com/_xgxoTlK/chat"
|
|
140
|
-
// target={'_blank'}
|
|
141
|
-
// rel={'noreferrer noopener'}
|
|
142
|
-
// className="flex items-center justify-center"
|
|
143
|
-
// onClick={() => {
|
|
144
|
-
// insert('kakao', isMobile)
|
|
145
|
-
// saveNaverPowerLinkConversion('kakao', isMobile)
|
|
146
|
-
// }}
|
|
147
|
-
// onMouseDown={() => {
|
|
148
|
-
// // ace_pcKakaoClick();
|
|
149
|
-
// // pcKakaoClick();
|
|
150
|
-
// }}
|
|
151
|
-
// >
|
|
152
|
-
// <Image
|
|
153
|
-
// src={top2}
|
|
154
|
-
// alt="카톡상담예약"
|
|
155
|
-
// width={22.24}
|
|
156
|
-
// height={20.54}
|
|
157
|
-
// className={'mr-[10px]'}
|
|
158
|
-
// />
|
|
159
|
-
// <p className={`text-[15px] text-center ${router.locale === 'en' ? '' : ''} `}>
|
|
160
|
-
// <span
|
|
161
|
-
// dangerouslySetInnerHTML={{
|
|
162
|
-
// __html: DOMPurify.sanitize(t('fix_Kakaotalk consultation reservation'))
|
|
163
|
-
// }}
|
|
164
|
-
// />
|
|
165
|
-
// </p>
|
|
166
|
-
// </Link>
|
|
167
|
-
// </li>
|
|
168
|
-
// <hr className={'w-[139px] h-1 border-[#D8D8D8] border-solid mx-auto'} />
|
|
169
|
-
// <li className={'mt-[19px] ml-[22px] mr-[31px] mb-[18.81px]'}>
|
|
170
|
-
// <Link
|
|
171
|
-
// href={`tel:1234`}
|
|
172
|
-
// className="flex items-center justify-center"
|
|
173
|
-
// onClick={() => {
|
|
174
|
-
// insert('call', isMobile)
|
|
175
|
-
// saveNaverPowerLinkConversion('call', isMobile)
|
|
176
|
-
// ace_pcTelClick()
|
|
177
|
-
// pcTelClick()
|
|
178
|
-
// }}
|
|
179
|
-
// >
|
|
180
|
-
// <div className={'mr-[10px]'}>
|
|
181
|
-
// <Image src={top3} alt="전화상담예약" width={22.08} height={22.08} />
|
|
182
|
-
// </div>
|
|
183
|
-
// <p className={'text-[15px] text-center'}>
|
|
184
|
-
// <span
|
|
185
|
-
// dangerouslySetInnerHTML={{
|
|
186
|
-
// __html: DOMPurify.sanitize(t('fix_Telephone consultation reservation'))
|
|
187
|
-
// }}
|
|
188
|
-
// />
|
|
189
|
-
// </p>
|
|
190
|
-
// </Link>
|
|
191
|
-
// </li>
|
|
192
|
-
// <li
|
|
193
|
-
// className={
|
|
194
|
-
// 'h-[58.36px] text-center bg-[#B57C1E] bg-origin-padding bg-no-repeat rounded-bl-[55px]'
|
|
195
|
-
// }
|
|
196
|
-
// >
|
|
197
|
-
// {/* 맨위로올라가기 이벤트 */}
|
|
198
|
-
// <a href="#" className={'text-white'} id="back-top">
|
|
199
|
-
// <div className={'pt-[12.96px] ml-[76.24px] mb-[4px]'}>
|
|
200
|
-
// <Image src={top4} alt="화살표" width={14} height={9} />
|
|
201
|
-
// </div>
|
|
202
|
-
// <div className={'mx-[69.04px] text-[15px]'}>TOP</div>
|
|
203
|
-
// </a>
|
|
204
|
-
// </li>
|
|
205
|
-
// </ul>
|
|
206
|
-
// </div>
|
|
207
|
-
// </section>
|
|
208
|
-
//
|
|
209
|
-
// <section id={'fix_mobile'} className={'lg:hidden'}>
|
|
210
|
-
// <div
|
|
211
|
-
// className={
|
|
212
|
-
// 'w-full fixed flex items-center align-baseline bottom-0 left-0 z-50 bg-[#ab0634] border-solid border-t border-b border-[#ab0634]'
|
|
213
|
-
// }
|
|
214
|
-
// >
|
|
215
|
-
// <div className={'w-1/3 text-center float-left py-[8px] px-0 bg-[#ab0634] text-[#fff]'}>
|
|
216
|
-
// <Link href="/choice" className={'text-[#000] w-full inline-block'}>
|
|
217
|
-
// <Image
|
|
218
|
-
// src={online}
|
|
219
|
-
// alt="온라인상담예약"
|
|
220
|
-
// width={41}
|
|
221
|
-
// height={41}
|
|
222
|
-
// className={'inline-block w-[22px] h-[22px] text-[#000]'}
|
|
223
|
-
// />
|
|
224
|
-
// <p
|
|
225
|
-
// className={`text-[#fff] text-[14px] sm:text-[16px] font-[500] pt-[7px] ${
|
|
226
|
-
// router.locale == 'cn' || router.locale == 'jp' ? ' !text-[10px]' : ''
|
|
227
|
-
// } mb-1.5}`}
|
|
228
|
-
// >
|
|
229
|
-
// {t('fix_Online consultation reservation')}
|
|
230
|
-
// </p>
|
|
231
|
-
// </Link>
|
|
232
|
-
// </div>
|
|
233
|
-
// <div
|
|
234
|
-
// className={
|
|
235
|
-
// 'w-1/3 text-center float-left py-[8px] px-0 bg-gray-200 border-solid border-r border-[#bdbdbd] h-[100%] '
|
|
236
|
-
// }
|
|
237
|
-
// >
|
|
238
|
-
// <Link
|
|
239
|
-
// href="http://pf.kakao.com/_xgxoTlK/chat"
|
|
240
|
-
// onClick={() => {
|
|
241
|
-
// insert('kakao', isMobile)
|
|
242
|
-
// saveNaverPowerLinkConversion('kakao', isMobile)
|
|
243
|
-
// ace_mKakaoClick()
|
|
244
|
-
// mKakaoClick()
|
|
245
|
-
// }}
|
|
246
|
-
// className={'text-[#000] w-full inline-block'}
|
|
247
|
-
// >
|
|
248
|
-
// <Image
|
|
249
|
-
// src={talk}
|
|
250
|
-
// alt="법무법인(유한) 대륜 카톡상담예약"
|
|
251
|
-
// width={41}
|
|
252
|
-
// height={41}
|
|
253
|
-
// className={'inline-block w-[22px] h-[22px]'}
|
|
254
|
-
// />
|
|
255
|
-
// <p
|
|
256
|
-
// className={`text-[14px] sm:text-[16px] font-[500] pt-[7px] ${
|
|
257
|
-
// router.locale == 'cn' || router.locale == 'jp' ? '!text-[12px]' : ''
|
|
258
|
-
// } mb-1.5}`}
|
|
259
|
-
// >
|
|
260
|
-
// <span
|
|
261
|
-
// dangerouslySetInnerHTML={{
|
|
262
|
-
// __html: DOMPurify.sanitize(t('fix_Kakaotalk consultation reservation'))
|
|
263
|
-
// }}
|
|
264
|
-
// />
|
|
265
|
-
// </p>
|
|
266
|
-
// </Link>
|
|
267
|
-
// </div>
|
|
268
|
-
// <div className={'w-1/3 text-center float-left py-[8px] px-0 bg-gray-200'}>
|
|
269
|
-
// <Link
|
|
270
|
-
// href={`tel:1234`}
|
|
271
|
-
// onClick={() => {
|
|
272
|
-
// insert('call', isMobile)
|
|
273
|
-
// saveNaverPowerLinkConversion('call', isMobile)
|
|
274
|
-
// ace_mTelClick()
|
|
275
|
-
// mTelClick()
|
|
276
|
-
// }}
|
|
277
|
-
// className={'text-[#000] w-full inline-block'}
|
|
278
|
-
// >
|
|
279
|
-
// <Image
|
|
280
|
-
// src={phone}
|
|
281
|
-
// alt="법무법인(유한) 대륜 전화연결"
|
|
282
|
-
// width={41}
|
|
283
|
-
// height={41}
|
|
284
|
-
// className={'inline-block w-[22px] h-[22px]'}
|
|
285
|
-
// />
|
|
286
|
-
// <p
|
|
287
|
-
// className={`text-[14px] sm:text-[16px] font-[500] pt-[7px] ${
|
|
288
|
-
// router.locale == 'cn' || router.locale == 'jp' ? '!text-[12px]' : ''
|
|
289
|
-
// } mb-1.5}`}
|
|
290
|
-
// >
|
|
291
|
-
// <span
|
|
292
|
-
// dangerouslySetInnerHTML={{
|
|
293
|
-
// __html: DOMPurify.sanitize(t('fix_Telephone consultation reservation'))
|
|
294
|
-
// }}
|
|
295
|
-
// />
|
|
296
|
-
// </p>
|
|
297
|
-
// </Link>
|
|
298
|
-
// </div>
|
|
299
|
-
// </div>
|
|
300
|
-
// </section>
|
|
301
|
-
// </>
|
|
302
|
-
// )
|
|
303
|
-
// }
|
|
304
|
-
//
|
|
305
|
-
// export default Fix
|
|
File without changes
|
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// import Link from "next/link";
|
|
3
|
-
// import { useCallback, useEffect, useRef, useState } from "react";
|
|
4
|
-
// import { insert } from "../../lib/conversion";
|
|
5
|
-
// import Image from "next/image";
|
|
6
|
-
// import * as gtag from "../../lib/gtag";
|
|
7
|
-
// import { useRouter } from "next/router";
|
|
8
|
-
// import { useTranslation } from "next-i18next";
|
|
9
|
-
// import { saveNaverPowerLinkConversion } from "../../lib/powerlink";
|
|
10
|
-
// // import Hamburger from "./Hamburger";
|
|
11
|
-
// import menuSrc from "../../asset/images/header/menu.webp";
|
|
12
|
-
// import headerCallSrc from "../../asset/images/header/header_call.webp";
|
|
13
|
-
//
|
|
14
|
-
//
|
|
15
|
-
// type HamburgerType = {
|
|
16
|
-
// handleMenuToggle?: () => void
|
|
17
|
-
// opacity?: number
|
|
18
|
-
// }
|
|
19
|
-
//
|
|
20
|
-
// interface IGnbTypes {
|
|
21
|
-
// logoAlt: string;
|
|
22
|
-
// tel: string;
|
|
23
|
-
// Hamburger: React.FC<HamburgerType>;
|
|
24
|
-
// // hamburger: React.ReactNode
|
|
25
|
-
// }
|
|
26
|
-
//
|
|
27
|
-
// const Gnb = ({
|
|
28
|
-
// logoAlt,
|
|
29
|
-
// tel,
|
|
30
|
-
// Hamburger
|
|
31
|
-
// }: IGnbTypes) => {
|
|
32
|
-
// const { t } = useTranslation("common");
|
|
33
|
-
// const router = useRouter();
|
|
34
|
-
// const [isMobile, setIsMobile] = useState<boolean>(false);
|
|
35
|
-
// const [menuToggle, setMenuToggle] = useState<boolean>(false);
|
|
36
|
-
// const [isLanguageToggle, setIsLanguageToggle] = useState<boolean>(false);
|
|
37
|
-
// const languageRef = useRef<HTMLDivElement>(null);
|
|
38
|
-
// const [opacity, setOpacity] = useState<number>(0);
|
|
39
|
-
// const timeoutRef = useRef<NodeJS.Timeout>();
|
|
40
|
-
//
|
|
41
|
-
// useEffect(() => {
|
|
42
|
-
// const clickOutside = (e: MouseEvent) => {
|
|
43
|
-
// if (isLanguageToggle && !languageRef.current?.contains(e.target as Node)) {
|
|
44
|
-
// setIsLanguageToggle(false);
|
|
45
|
-
// }
|
|
46
|
-
// };
|
|
47
|
-
// if (isLanguageToggle) {
|
|
48
|
-
// document.addEventListener("mousedown", clickOutside);
|
|
49
|
-
// } else {
|
|
50
|
-
// document.removeEventListener("mousedown", clickOutside);
|
|
51
|
-
// }
|
|
52
|
-
// }, [isLanguageToggle]);
|
|
53
|
-
//
|
|
54
|
-
// useEffect(() => {
|
|
55
|
-
// if (opacity > 1) {
|
|
56
|
-
// clearInterval(timeoutRef.current);
|
|
57
|
-
// }
|
|
58
|
-
// }, [opacity]);
|
|
59
|
-
//
|
|
60
|
-
// const handleMenuToggle = useCallback(() => {
|
|
61
|
-
// if (!menuToggle) {
|
|
62
|
-
// timeoutRef.current = setInterval(() => {
|
|
63
|
-
// setOpacity((prev) => prev + 0.2);
|
|
64
|
-
// }, 40);
|
|
65
|
-
// } else {
|
|
66
|
-
// setOpacity(0);
|
|
67
|
-
// clearInterval(timeoutRef.current);
|
|
68
|
-
// }
|
|
69
|
-
// setMenuToggle((prev) => !prev);
|
|
70
|
-
// }, [menuToggle]);
|
|
71
|
-
//
|
|
72
|
-
// const handleLanguagePopup = useCallback(() => {
|
|
73
|
-
// setIsLanguageToggle((prev) => !prev);
|
|
74
|
-
// }, []);
|
|
75
|
-
//
|
|
76
|
-
// const ace_ToptelClick = () => {
|
|
77
|
-
// try {
|
|
78
|
-
// // @ts-ignore
|
|
79
|
-
// AM_PL("/m_Toptel");
|
|
80
|
-
// } catch (e) {
|
|
81
|
-
// }
|
|
82
|
-
// };
|
|
83
|
-
// const topTelClick = () => {
|
|
84
|
-
// gtag.event({
|
|
85
|
-
// action: "mobile_toptel",
|
|
86
|
-
// category: "toptel",
|
|
87
|
-
// label: "모바일상단전화버튼",
|
|
88
|
-
// value: "1"
|
|
89
|
-
// });
|
|
90
|
-
// };
|
|
91
|
-
// const handleMultilingual = () => {
|
|
92
|
-
// };
|
|
93
|
-
// const handleLocaleChange = async (e: any) => {
|
|
94
|
-
// console.log(router.pathname);
|
|
95
|
-
// await router.push({ pathname: router.pathname, query: router.query }, router.asPath, {
|
|
96
|
-
// locale: e.target.textContent.toLowerCase()
|
|
97
|
-
// });
|
|
98
|
-
// setIsLanguageToggle(false);
|
|
99
|
-
// };
|
|
100
|
-
//
|
|
101
|
-
// return (
|
|
102
|
-
// <>
|
|
103
|
-
// <div
|
|
104
|
-
// className={`flex mt-[5px] pr-[20px] xs:pr-[25px] sm:pr-[40px] md:pr-[60px] lg:pr-[80px] xl:pr-[156px] xxl:pr-[157px] w-auto h-full items-center justify-center relative z-30`}
|
|
105
|
-
// >
|
|
106
|
-
// {/*웹환경*/}
|
|
107
|
-
// <div
|
|
108
|
-
// className={
|
|
109
|
-
// "hidden xl:flex flex-row items-center justify-evenly w-[75px] h-[20px] xs:w-[144px] xs:h-[35px] border border-solid border-[#A9122C] border-1 rounded-[18px] mr-[14px]"
|
|
110
|
-
// }
|
|
111
|
-
// >
|
|
112
|
-
// <Image
|
|
113
|
-
// src={headerCallSrc}
|
|
114
|
-
// width={"14"}
|
|
115
|
-
// height={"14"}
|
|
116
|
-
// alt={"전화상담"}
|
|
117
|
-
// className={"block w-[10px] h-[10px] xs:w-[14px] xs:h-[14px]"}
|
|
118
|
-
// priority
|
|
119
|
-
// />
|
|
120
|
-
// <div className={"text-[9px] xs:text-[16px] text-[#A9122C] font-bold"}>{tel}</div>
|
|
121
|
-
// </div>
|
|
122
|
-
// {/*모바일 웹환경*/}
|
|
123
|
-
// <Link
|
|
124
|
-
// href={`tel:1234`}
|
|
125
|
-
// className={
|
|
126
|
-
// "flex xl:hidden flex-row items-center justify-evenly w-[75px] h-[20px] xs:w-[134px] xs:h-[35px] border border-solid border-[#A9122C] border-1 rounded-[18px] mr-[14px]"
|
|
127
|
-
// }
|
|
128
|
-
// onClick={() => {
|
|
129
|
-
// insert("call", isMobile);
|
|
130
|
-
// saveNaverPowerLinkConversion("call", isMobile);
|
|
131
|
-
// ace_ToptelClick();
|
|
132
|
-
// topTelClick();
|
|
133
|
-
// }}
|
|
134
|
-
// >
|
|
135
|
-
// <Image
|
|
136
|
-
// src={headerCallSrc}
|
|
137
|
-
// width={"14"}
|
|
138
|
-
// height={"14"}
|
|
139
|
-
// alt={"전화상담"}
|
|
140
|
-
// className={"block w-[10px] h-[10px] xs:w-[14px] xs:h-[14px]"}
|
|
141
|
-
// priority
|
|
142
|
-
// />
|
|
143
|
-
// <div className={"text-[9px] xs:text-[16px] text-[#A9122C] font-bold"}>{tel}</div>
|
|
144
|
-
// </Link>
|
|
145
|
-
//
|
|
146
|
-
// <div className={"hidden sm:block text-[16px] mr-[36px] relative "}>
|
|
147
|
-
// <Link href={"/choice"}>
|
|
148
|
-
// <span>{t("Gnb_To contact2")}</span>
|
|
149
|
-
// </Link>
|
|
150
|
-
// <span className={"text-[#D6D6D6] whitespace-pre-wrap"}> | </span>
|
|
151
|
-
// <span ref={languageRef} className={"cursor-pointer "} onClick={handleLanguagePopup}>
|
|
152
|
-
// {router.locale?.toUpperCase()}
|
|
153
|
-
// {isLanguageToggle && (
|
|
154
|
-
// <>
|
|
155
|
-
// <div
|
|
156
|
-
// className={
|
|
157
|
-
// "absolute text-center sm:top-[40px] sm:-right-[22%] bg-white border-2 py-[14px] px-[17px] rounded-[8px] border-[#e5e5e5]"
|
|
158
|
-
// }
|
|
159
|
-
// >
|
|
160
|
-
// <div
|
|
161
|
-
// className={`${router.locale === "ko" ? "text-[red]" : ""} mb-1.5`}
|
|
162
|
-
// onClick={handleLocaleChange}
|
|
163
|
-
// >
|
|
164
|
-
// KO
|
|
165
|
-
// </div>
|
|
166
|
-
// <div
|
|
167
|
-
// className={`${router.locale === "en" ? "text-[red]" : ""} mb-1.5`}
|
|
168
|
-
// onClick={handleLocaleChange}
|
|
169
|
-
// >
|
|
170
|
-
// EN
|
|
171
|
-
// </div>
|
|
172
|
-
// <div
|
|
173
|
-
// className={`${router.locale === "jp" ? "text-[red]" : ""} mb-1.5`}
|
|
174
|
-
// onClick={handleLocaleChange}
|
|
175
|
-
// >
|
|
176
|
-
// JP
|
|
177
|
-
// </div>
|
|
178
|
-
// <div
|
|
179
|
-
// className={`${router.locale === "cn" ? "text-[red]" : ""} `}
|
|
180
|
-
// onClick={handleLocaleChange}
|
|
181
|
-
// >
|
|
182
|
-
// CN
|
|
183
|
-
// </div>
|
|
184
|
-
// </div>
|
|
185
|
-
// </>
|
|
186
|
-
// )}
|
|
187
|
-
// </span>
|
|
188
|
-
// </div>
|
|
189
|
-
// <div>
|
|
190
|
-
// {menuToggle ? (
|
|
191
|
-
// <>
|
|
192
|
-
// {/*{props.hamburger}*/}
|
|
193
|
-
// <Hamburger handleMenuToggle={handleMenuToggle} opacity={opacity} />
|
|
194
|
-
// </>
|
|
195
|
-
// ) : (
|
|
196
|
-
// <Image
|
|
197
|
-
// src={menuSrc}
|
|
198
|
-
// width={"30"}
|
|
199
|
-
// height={"21"}
|
|
200
|
-
// alt={logoAlt}
|
|
201
|
-
// className={" block w-[18.91px] h-[12.29px] xs:h-[21.28px] xs:w-[30px] cursor-pointer"}
|
|
202
|
-
// onClick={() => handleMenuToggle()}
|
|
203
|
-
// priority
|
|
204
|
-
// />
|
|
205
|
-
// )}
|
|
206
|
-
// </div>
|
|
207
|
-
// </div>
|
|
208
|
-
// </>
|
|
209
|
-
// );
|
|
210
|
-
// };
|
|
211
|
-
//
|
|
212
|
-
// export default Gnb;
|