@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,383 @@
|
|
|
1
|
+
import Link from 'next/link'
|
|
2
|
+
import React, { useEffect, useRef, useState } from 'react'
|
|
3
|
+
import Image from 'next/image'
|
|
4
|
+
import { insert } from '../../lib'
|
|
5
|
+
import * as gtag from '../../lib/gtag'
|
|
6
|
+
import { savePowerLinkConversion } from '../../lib'
|
|
7
|
+
import style from './index.module.css'
|
|
8
|
+
import { useRouter } from 'next/router'
|
|
9
|
+
|
|
10
|
+
import OnlineIcon from '../../asset/images/fix/online.webp'
|
|
11
|
+
import KakaoIcon from '../../asset/images/fix/kakao.webp'
|
|
12
|
+
import CallIcon from '../../asset/images/fix/call.webp'
|
|
13
|
+
import Call2Icon from '../../asset/images/fix/call2.webp'
|
|
14
|
+
import MenuXIcon from '../../asset/images/fix/menu_x.webp'
|
|
15
|
+
import ArrowIcon from '../../asset/images/fix/arrow.webp'
|
|
16
|
+
|
|
17
|
+
const Fix = (props: { tel: string }) => {
|
|
18
|
+
const mobile = require('is-mobile')
|
|
19
|
+
const [isMobile, setIsMobile] = useState<boolean>(false)
|
|
20
|
+
// const [tel] = useRecoilState(telAtom)
|
|
21
|
+
const [isTop, setIsTop] = useState(true)
|
|
22
|
+
const [position, setPosition] = useState(0)
|
|
23
|
+
|
|
24
|
+
const onlineRef = useRef<HTMLDivElement>(null)
|
|
25
|
+
const callRef = useRef<HTMLDivElement>(null)
|
|
26
|
+
|
|
27
|
+
const router = useRouter()
|
|
28
|
+
|
|
29
|
+
const onClickKakao = () => {
|
|
30
|
+
insert('kakao', isMobile)
|
|
31
|
+
savePowerLinkConversion('kakao', isMobile)
|
|
32
|
+
|
|
33
|
+
if (isMobile) {
|
|
34
|
+
ace_mKakaoClick()
|
|
35
|
+
mKakaoClick()
|
|
36
|
+
} else {
|
|
37
|
+
// ace_pcKakaoClick();
|
|
38
|
+
pcKakaoClick()
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
const onClickTel = () => {
|
|
42
|
+
insert('call', isMobile)
|
|
43
|
+
savePowerLinkConversion('call', isMobile)
|
|
44
|
+
if (isMobile) {
|
|
45
|
+
ace_mTelClick()
|
|
46
|
+
mTelClick()
|
|
47
|
+
} else {
|
|
48
|
+
// ace_pcTelClick();
|
|
49
|
+
pcTelClick()
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// GA 클릭이벤트
|
|
54
|
+
const mTelClick = () => {
|
|
55
|
+
gtag.event({
|
|
56
|
+
action: 'mobile_tel',
|
|
57
|
+
category: 'tel',
|
|
58
|
+
label: '모바일전화버튼',
|
|
59
|
+
value: '1'
|
|
60
|
+
})
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
const pcTelClick = () => {
|
|
64
|
+
gtag.event({
|
|
65
|
+
action: 'pc_tel',
|
|
66
|
+
category: 'tel',
|
|
67
|
+
label: '피씨전화버튼',
|
|
68
|
+
value: '1'
|
|
69
|
+
})
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
const mKakaoClick = () => {
|
|
73
|
+
gtag.event({
|
|
74
|
+
action: 'mobile_kakao',
|
|
75
|
+
category: 'kakao',
|
|
76
|
+
label: '모바일카카오버튼',
|
|
77
|
+
value: '1'
|
|
78
|
+
})
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
const pcKakaoClick = () => {
|
|
82
|
+
gtag.event({
|
|
83
|
+
action: 'pc_kakao',
|
|
84
|
+
category: 'kakao',
|
|
85
|
+
label: '피씨카카오버튼',
|
|
86
|
+
value: '1'
|
|
87
|
+
})
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// 에이스카운터 전환태그
|
|
91
|
+
const ace_mTelClick = () => {
|
|
92
|
+
try {
|
|
93
|
+
// @ts-ignore
|
|
94
|
+
AM_PL('/m_tel')
|
|
95
|
+
} catch (e) {}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// const ace_pcTelClick = () => {
|
|
99
|
+
// try {
|
|
100
|
+
// // @ts-ignore
|
|
101
|
+
// _PL('www.daeryunlaw.com/tel');
|
|
102
|
+
// } catch (e) {}
|
|
103
|
+
// };
|
|
104
|
+
|
|
105
|
+
const ace_mKakaoClick = () => {
|
|
106
|
+
try {
|
|
107
|
+
// @ts-ignore
|
|
108
|
+
AM_PL('/m_kakao')
|
|
109
|
+
} catch (e) {}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// const ace_pcKakaoClick = () => {
|
|
113
|
+
// try {
|
|
114
|
+
// // @ts-ignore
|
|
115
|
+
// _PL('www.daeryunlaw.com/kakao');
|
|
116
|
+
// } catch (e) {}
|
|
117
|
+
// };
|
|
118
|
+
|
|
119
|
+
useEffect(() => {
|
|
120
|
+
if (typeof window != 'undefined') {
|
|
121
|
+
const handleScroll = () => {
|
|
122
|
+
setIsTop(window.scrollY <= 0)
|
|
123
|
+
|
|
124
|
+
if (window.scrollY <= 0) {
|
|
125
|
+
onlineRef.current?.classList.remove(style.fadeOut)
|
|
126
|
+
onlineRef.current?.classList.remove(style.fadeIn)
|
|
127
|
+
callRef.current?.classList.remove(style.fadeOut)
|
|
128
|
+
callRef.current?.classList.remove(style.fadeIn)
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
window.addEventListener('scroll', handleScroll)
|
|
133
|
+
return () => {
|
|
134
|
+
window.removeEventListener('scroll', handleScroll)
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}, [])
|
|
138
|
+
|
|
139
|
+
useEffect(() => {
|
|
140
|
+
const is_mobile = mobile()
|
|
141
|
+
setIsMobile(is_mobile)
|
|
142
|
+
}, [])
|
|
143
|
+
|
|
144
|
+
return (
|
|
145
|
+
<>
|
|
146
|
+
<div
|
|
147
|
+
className={
|
|
148
|
+
(isTop ? ' hidden ' : '') +
|
|
149
|
+
' fixed bottom-[43px] right-[25px] z-[2000] w-fit font-[SUIT] ' +
|
|
150
|
+
' max-lg:w-full max-lg:bottom-0 max-lg:right-0'
|
|
151
|
+
}
|
|
152
|
+
>
|
|
153
|
+
{/*Fix*/}
|
|
154
|
+
|
|
155
|
+
<div
|
|
156
|
+
className={
|
|
157
|
+
'relative w-[100px] h-[330px] rounded-full overflow-hidden z-20 shadow-[0_4px_8px_0_rgba(0,0,0,0.1)] ' +
|
|
158
|
+
'max-5xl:w-[75px] max-5xl:h-[250px] ' +
|
|
159
|
+
'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)] '
|
|
160
|
+
}
|
|
161
|
+
>
|
|
162
|
+
<div
|
|
163
|
+
className={
|
|
164
|
+
'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 '
|
|
165
|
+
}
|
|
166
|
+
>
|
|
167
|
+
Quick Menu
|
|
168
|
+
</div>
|
|
169
|
+
<div
|
|
170
|
+
className={
|
|
171
|
+
'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] ' +
|
|
172
|
+
' max-5xl:gap-y-[13px] max-5xl:text-[13px] max-5xl:py-[13px] ' +
|
|
173
|
+
' max-lg:flex-row max-lg:pt-[20px] max-lg:pb-[18px] max-lg:text-[13px] '
|
|
174
|
+
}
|
|
175
|
+
>
|
|
176
|
+
{/*온라인 예약 버튼*/}
|
|
177
|
+
<div
|
|
178
|
+
className={'w-full flex flex-col items-center cursor-pointer'}
|
|
179
|
+
onClick={() => {
|
|
180
|
+
callRef.current?.classList.remove(style.fadeIn)
|
|
181
|
+
callRef.current?.classList.remove(style.fadeOut)
|
|
182
|
+
onlineRef.current?.classList.remove(style.fadeOut)
|
|
183
|
+
onlineRef.current?.classList.add(style.fadeIn)
|
|
184
|
+
}}
|
|
185
|
+
>
|
|
186
|
+
<Image
|
|
187
|
+
src={OnlineIcon}
|
|
188
|
+
alt={'online icon'}
|
|
189
|
+
width={33}
|
|
190
|
+
height={38}
|
|
191
|
+
className={'w-[33px] h-auto 5xl:mb-[5px] max-5xl:w-[23px] lg:mb-[3px] max-lg:w-[25px] '}
|
|
192
|
+
/>
|
|
193
|
+
온라인예약
|
|
194
|
+
</div>
|
|
195
|
+
{/*카톡 예약 버튼*/}
|
|
196
|
+
<Link
|
|
197
|
+
href="http://pf.kakao.com/_xgxoTlK/chat"
|
|
198
|
+
target={'_blank'}
|
|
199
|
+
className={'w-full flex flex-col items-center cursor-pointer'}
|
|
200
|
+
onClick={onClickKakao}
|
|
201
|
+
>
|
|
202
|
+
<Image
|
|
203
|
+
src={KakaoIcon}
|
|
204
|
+
alt={'kakao icon'}
|
|
205
|
+
width={33}
|
|
206
|
+
height={31}
|
|
207
|
+
className={
|
|
208
|
+
'w-[33px] h-auto mb-[5px] max-5xl:w-[23px] max-5xl:mb-[3px] max-lg:w-[25px] '
|
|
209
|
+
}
|
|
210
|
+
/>
|
|
211
|
+
카톡예약
|
|
212
|
+
</Link>
|
|
213
|
+
{/*전화 예약 버튼*/}
|
|
214
|
+
<div
|
|
215
|
+
className={'w-full flex flex-col items-center cursor-pointer'}
|
|
216
|
+
onClick={() => {
|
|
217
|
+
onlineRef.current?.classList.remove(style.fadeIn)
|
|
218
|
+
onlineRef.current?.classList.remove(style.fadeOut)
|
|
219
|
+
callRef.current?.classList.remove(style.fadeOut)
|
|
220
|
+
callRef.current?.classList.add(style.fadeIn)
|
|
221
|
+
}}
|
|
222
|
+
>
|
|
223
|
+
<Image
|
|
224
|
+
src={CallIcon}
|
|
225
|
+
alt={'call icon'}
|
|
226
|
+
width={33}
|
|
227
|
+
height={33}
|
|
228
|
+
className={'w-[33px] h-auto mb-[5px] max-5xl:w-[23px] max-5xl:mb-[3px] max-lg:w-[25px]'}
|
|
229
|
+
/>
|
|
230
|
+
전화예약
|
|
231
|
+
</div>
|
|
232
|
+
</div>
|
|
233
|
+
</div>
|
|
234
|
+
|
|
235
|
+
{/*온라인*/}
|
|
236
|
+
<div
|
|
237
|
+
ref={onlineRef}
|
|
238
|
+
className={
|
|
239
|
+
'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 ' +
|
|
240
|
+
'max-5xl:h-[230px] max-5xl:w-[230px] max-5xl:bottom-[10px] max-5xl:px-[22px] max-5xl:py-[20px] ' +
|
|
241
|
+
' max-lg:w-[240px] max-lg:h-[160px] max-lg:bottom-[85px] max-lg:left-[20px] max-lg:px-[20px] max-lg:py-[17px]'
|
|
242
|
+
}
|
|
243
|
+
>
|
|
244
|
+
<span
|
|
245
|
+
className={
|
|
246
|
+
'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]'
|
|
247
|
+
}
|
|
248
|
+
>
|
|
249
|
+
온라인 예약상담
|
|
250
|
+
<Image
|
|
251
|
+
src={MenuXIcon}
|
|
252
|
+
width={54}
|
|
253
|
+
height={54}
|
|
254
|
+
alt={'취소'}
|
|
255
|
+
onClick={() => {
|
|
256
|
+
onlineRef.current?.classList.remove(style.fadeIn)
|
|
257
|
+
onlineRef.current?.classList.add(style.fadeOut)
|
|
258
|
+
}}
|
|
259
|
+
className={'w-[20px] h-auto cursor-pointer max-5xl:w-[15px] max-lg:w-[15px]'}
|
|
260
|
+
/>
|
|
261
|
+
</span>
|
|
262
|
+
|
|
263
|
+
<span className={'text-[#5C5C5C] text-[16px] max-5xl:text-[14px] tracking-[-0.8px] max-lg:hidden'}>
|
|
264
|
+
해당사건에 특화된 전문변호사가 검토 후 신속한 대응전략을 제시합니다.
|
|
265
|
+
</span>
|
|
266
|
+
|
|
267
|
+
<button
|
|
268
|
+
className={
|
|
269
|
+
'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] ' +
|
|
270
|
+
' max-5xl:mt-[13px] max-5xl:w-[190px] max-5xl:h-[45px] max-5xl:text-[18px] ' +
|
|
271
|
+
' max-lg:w-[200px] max-lg:h-[40px] max-lg:mt-[17px] max-lg:text-[16px] max-lg:py-[10px] '
|
|
272
|
+
}
|
|
273
|
+
onClick={async () => {
|
|
274
|
+
await router.push('/consulting')
|
|
275
|
+
}}
|
|
276
|
+
>
|
|
277
|
+
기업상담
|
|
278
|
+
<Image
|
|
279
|
+
src={ArrowIcon}
|
|
280
|
+
width={22}
|
|
281
|
+
height={18}
|
|
282
|
+
alt={'기업상담'}
|
|
283
|
+
className={'w-[22px] h-auto max-5xl:w-[20px] max-lg:w-[17px]'}
|
|
284
|
+
/>
|
|
285
|
+
</button>
|
|
286
|
+
<button
|
|
287
|
+
className={
|
|
288
|
+
'w-[240px] h-[60px] px-[20px] py-[16px] bg-[#0A96AF] text-white text-[22px] font-bold flex items-center justify-between rounded-[5px]' +
|
|
289
|
+
' max-5xl:w-[190px] max-5xl:h-[45px] max-5xl:text-[18px] ' +
|
|
290
|
+
' max-lg:w-[200px] max-lg:h-[40px] max-lg:text-[16px] max-lg:py-[10px] '
|
|
291
|
+
}
|
|
292
|
+
onClick={async () => {
|
|
293
|
+
await router.push('/consult')
|
|
294
|
+
}}
|
|
295
|
+
>
|
|
296
|
+
개인상담
|
|
297
|
+
<Image
|
|
298
|
+
src={ArrowIcon}
|
|
299
|
+
width={22}
|
|
300
|
+
height={18}
|
|
301
|
+
alt={'개인상담'}
|
|
302
|
+
className={'w-[22px] h-auto max-5xl:w-[20px] max-lg:w-[17px]'}
|
|
303
|
+
/>
|
|
304
|
+
</button>
|
|
305
|
+
</div>
|
|
306
|
+
|
|
307
|
+
{/*전화*/}
|
|
308
|
+
<div
|
|
309
|
+
ref={callRef}
|
|
310
|
+
className={
|
|
311
|
+
'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 ' +
|
|
312
|
+
'max-5xl:h-[230px] max-5xl:w-[230px] max-5xl:bottom-[10px] max-5xl:px-[22px] max-5xl:py-[20px] ' +
|
|
313
|
+
'max-lg:w-[240px] max-lg:h-[200px] max-lg:bottom-[85px] max-lg:right-[20px] max-lg:px-[20px] max-lg:py-[17px]'
|
|
314
|
+
}
|
|
315
|
+
>
|
|
316
|
+
<span
|
|
317
|
+
className={
|
|
318
|
+
'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]'
|
|
319
|
+
}
|
|
320
|
+
>
|
|
321
|
+
전화 예약상담
|
|
322
|
+
<Image
|
|
323
|
+
src={MenuXIcon}
|
|
324
|
+
width={54}
|
|
325
|
+
height={54}
|
|
326
|
+
alt={'취소'}
|
|
327
|
+
onClick={() => {
|
|
328
|
+
callRef.current?.classList.remove(style.fadeIn)
|
|
329
|
+
callRef.current?.classList.add(style.fadeOut)
|
|
330
|
+
}}
|
|
331
|
+
className={'w-[20px] h-auto cursor-pointer max-5xl:w-[15px] max-lg:w-[15px]'}
|
|
332
|
+
/>
|
|
333
|
+
</span>
|
|
334
|
+
|
|
335
|
+
<Link
|
|
336
|
+
href={`tel:${props.tel}`}
|
|
337
|
+
className={
|
|
338
|
+
'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' +
|
|
339
|
+
' max-5xl:w-[190px] max-5xl:h-[60px] max-5xl:text-[18px] ' +
|
|
340
|
+
' max-lg:mt-[15px] max-lg:w-[200px] max-lg:h-[60px] max-lg:px-[15px] max-lg:py-[12px] '
|
|
341
|
+
}
|
|
342
|
+
onClick={onClickTel}
|
|
343
|
+
>
|
|
344
|
+
<span className={'text-left leading-tight font-bold max-lg:leading-[17.5px]'}>
|
|
345
|
+
<span className={'text-[20px] max-lg:text-[16px]'}>기업상담</span>
|
|
346
|
+
{/* <span className={'text-[22px] max-lg:text-[16px] block'}>{tel}</span> */}
|
|
347
|
+
</span>
|
|
348
|
+
<Image
|
|
349
|
+
src={Call2Icon}
|
|
350
|
+
width={30}
|
|
351
|
+
height={30}
|
|
352
|
+
alt={'기업상담'}
|
|
353
|
+
className={'w-[30px] h-[30px]'}
|
|
354
|
+
/>
|
|
355
|
+
</Link>
|
|
356
|
+
<Link
|
|
357
|
+
href={`tel:${props.tel}`}
|
|
358
|
+
className={
|
|
359
|
+
'w-[240px] h-[80px] px-[20px] py-[16px] bg-[#0A96AF] text-white text-[22px] font-bold flex justify-between rounded-[5px] items-center' +
|
|
360
|
+
' max-5xl:w-[190px] max-5xl:h-[60px] max-5xl:text-[18px] ' +
|
|
361
|
+
' max-lg:w-[200px] max-lg:h-[60px] max-lg:px-[15px] max-lg:py-[12px] '
|
|
362
|
+
}
|
|
363
|
+
onClick={onClickTel}
|
|
364
|
+
>
|
|
365
|
+
<span className={'text-left leading-tight font-bold max-lg:leading-[17.5px]'}>
|
|
366
|
+
<span className={'text-[20px] max-lg:text-[16px] '}>개인상담</span>
|
|
367
|
+
{/* <span className={'text-[22px] max-lg:text-[16px] block '}>{tel}</span> */}
|
|
368
|
+
</span>
|
|
369
|
+
<Image
|
|
370
|
+
src={Call2Icon}
|
|
371
|
+
width={30}
|
|
372
|
+
height={30}
|
|
373
|
+
alt={'개인상담'}
|
|
374
|
+
className={'w-[30px] h-[30px]'}
|
|
375
|
+
/>
|
|
376
|
+
</Link>
|
|
377
|
+
</div>
|
|
378
|
+
</div>
|
|
379
|
+
</>
|
|
380
|
+
)
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
export default Fix
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import '../../styles/globals.css';
|
|
3
|
+
declare const footer: {
|
|
4
|
+
component: (props: {
|
|
5
|
+
tel: string;
|
|
6
|
+
logoUrl: string;
|
|
7
|
+
centerList: {
|
|
8
|
+
code: string;
|
|
9
|
+
codename: string;
|
|
10
|
+
}[];
|
|
11
|
+
}) => import("react").JSX.Element;
|
|
12
|
+
title: string;
|
|
13
|
+
};
|
|
14
|
+
export default footer;
|
|
15
|
+
type Story = StoryObj<typeof footer>;
|
|
16
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import Footer from './index';
|
|
2
|
+
import '../../styles/globals.css'; //테일윈드 적용된거 스토리북에서 봐야해서
|
|
3
|
+
const footer = {
|
|
4
|
+
component: Footer, //컴포넌트
|
|
5
|
+
title: 'Footer' //스토리 이름
|
|
6
|
+
};
|
|
7
|
+
export default footer;
|
|
8
|
+
export const Default = {
|
|
9
|
+
args: {
|
|
10
|
+
centerList: [],
|
|
11
|
+
tel: '1800-7905',
|
|
12
|
+
logoUrl: ''
|
|
13
|
+
}
|
|
14
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import Footer from './index'
|
|
2
|
+
import { categoryListExample, centerListExample } from '../common'
|
|
3
|
+
import type { Meta, StoryObj } from '@storybook/react'
|
|
4
|
+
import '../../styles/globals.css' //테일윈드 적용된거 스토리북에서 봐야해서
|
|
5
|
+
|
|
6
|
+
const footer = {
|
|
7
|
+
component: Footer, //컴포넌트
|
|
8
|
+
title: 'Footer' //스토리 이름
|
|
9
|
+
} satisfies Meta<typeof Footer>
|
|
10
|
+
|
|
11
|
+
export default footer
|
|
12
|
+
type Story = StoryObj<typeof footer>
|
|
13
|
+
|
|
14
|
+
export const Default: Story = {
|
|
15
|
+
args: {
|
|
16
|
+
centerList: [],
|
|
17
|
+
tel: '1800-7905',
|
|
18
|
+
logoUrl: ''
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import Image from 'next/image';
|
|
2
|
+
import React, { useEffect, useRef, useState } from 'react';
|
|
3
|
+
import * as gtag from '../../lib/gtag';
|
|
4
|
+
import Link from 'next/link';
|
|
5
|
+
import { insert } from '../../lib/conversion';
|
|
6
|
+
import { savePowerLinkConversion } from '../../lib/powerlink';
|
|
7
|
+
import ArrowIcon from '../../asset/images/footer/icon_arrow_gray.webp';
|
|
8
|
+
import SNS1 from '../../asset/images/footer/sns_01.webp';
|
|
9
|
+
import SNS2 from '../../asset/images/footer/sns_02.webp';
|
|
10
|
+
import SNS3 from '../../asset/images/footer/sns_03.webp';
|
|
11
|
+
import SNS4 from '../../asset/images/footer/sns_04.webp';
|
|
12
|
+
import SNS5 from '../../asset/images/footer/sns_05.webp';
|
|
13
|
+
// import ArrowIcon from '../../asset/images/fix/arrow.webp'
|
|
14
|
+
const NewFooter = (props) => {
|
|
15
|
+
const mobile = require('is-mobile');
|
|
16
|
+
const snsClass = 'w-[44px] h-auto mr-[5px] max-md:w-[40px] max-md:mr-[17px] max-xs:w-[45px] max-xs:mr-[17px] max-2xs:w-[40px] max-3xs:w-[35px]';
|
|
17
|
+
// const [tel] = useRecoilState(telAtom)
|
|
18
|
+
const [isMobile, setIsMobile] = useState(false);
|
|
19
|
+
const [centerLink, setCenterLink] = useState([]);
|
|
20
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
21
|
+
const wrapperRef = useRef(null);
|
|
22
|
+
useEffect(() => {
|
|
23
|
+
setCenterLink(props.centerList);
|
|
24
|
+
}, [props.centerList]);
|
|
25
|
+
// useEffect(() => {
|
|
26
|
+
// paramFetch('/api/center/list', { type: 'all' }, (obj: any) => {
|
|
27
|
+
// const data = obj.list
|
|
28
|
+
// .filter((i: any) => i.code != 'CT0000' && i.code != 'CT0020')
|
|
29
|
+
// .map((l: any) => {
|
|
30
|
+
// return {
|
|
31
|
+
// codename: l.code_name.replace('전문', '') + '그룹',
|
|
32
|
+
// code: `https://www.daeryunlaw-${l.code_desc}.com`
|
|
33
|
+
// }
|
|
34
|
+
// })
|
|
35
|
+
//
|
|
36
|
+
// setCenterLink([{ codename: '대표 홈페이지', code: 'https://www.daeryunlaw.com/' }, ...data])
|
|
37
|
+
// })
|
|
38
|
+
// }, [])
|
|
39
|
+
const mTelClick = () => {
|
|
40
|
+
gtag.event({
|
|
41
|
+
action: 'mobile_tel',
|
|
42
|
+
category: 'tel',
|
|
43
|
+
label: '모바일전화버튼',
|
|
44
|
+
value: '1'
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
// GA 클릭이벤트
|
|
48
|
+
const mKakaoClick = () => {
|
|
49
|
+
gtag.event({
|
|
50
|
+
action: 'mobile_kakao',
|
|
51
|
+
category: 'kakao',
|
|
52
|
+
label: '모바일카카오버튼',
|
|
53
|
+
value: '1'
|
|
54
|
+
});
|
|
55
|
+
};
|
|
56
|
+
useEffect(() => {
|
|
57
|
+
setIsMobile(mobile());
|
|
58
|
+
}, []);
|
|
59
|
+
return (<footer className={'font-[SUIT] flex items-center justify-center w-full h-[730px] bg-white border-t border-[#A8A8A8] border-solid text-[18px] xs:h-[550px] 2xs:h-[800px] ' +
|
|
60
|
+
'3xl:px-[130px] lg:px-[40px] xs:px-[10px] max-xs:px-[40px] max-3xs:px-[35px] '}>
|
|
61
|
+
<div className={'w-full'}>
|
|
62
|
+
<div className={'xs:flex xs:items-center font-[800] tracking-[-0px] mb-[77px] ' +
|
|
63
|
+
'max-xl:mb-[50px] max-xl:justify-center max-xl:gap-[5%]'}>
|
|
64
|
+
<Link href={'/'}>
|
|
65
|
+
<Image draggable={false} src={props.logoUrl} alt="대륜 로고" width={432} height={67} className={'w-[216px] h-auto mr-[4.27vw] max-3xl:mr-[2vw] max-md:w-[195px] '}/>
|
|
66
|
+
</Link>
|
|
67
|
+
<div className={'flex max-xl:hidden '}>
|
|
68
|
+
<FooterLinkList />
|
|
69
|
+
</div>
|
|
70
|
+
|
|
71
|
+
<div className={'xl:ml-auto'}>
|
|
72
|
+
<div ref={wrapperRef} className={'relative h-[68px] max-md:h-[53px] max-sm:h-[48px] max-xs:mt-[8.2vw] max-xs:w-[79.29vw] max-3xs:h-[45px] max-md:w-[260px] ' +
|
|
73
|
+
` w-[299px] max-sm:w-[230px] max-xs:h-[16.07vw] `}>
|
|
74
|
+
<button type="button" className="appearance-none w-full h-full bg-white border-solid border border-gray-[#707070] font-normal md:pl-[5%] pl-[9%] md:pr-[14%] md:text-center text-left max-md:text-[14px] max-xs:text-[3.93vw] max-3xs:text-[4.2vw] focus:outline-8 focus:outline-blue-500" onClick={() => setIsOpen(!isOpen)} aria-haspopup="listbox" aria-expanded="true">
|
|
75
|
+
법무법인 대륜 그룹 바로가기
|
|
76
|
+
</button>
|
|
77
|
+
|
|
78
|
+
{isOpen && (<ul className="origin-top-right absolute right-0 mt-2 pt-3 w-full rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none h-[340px] overflow-y-auto" role="listbox" aria-orientation="vertical" aria-labelledby="listbox-label" aria-expanded="true" aria-hidden="false">
|
|
79
|
+
{centerLink.map((item, index) => (<Link href={item.code} key={index} target="_blank" onClick={() => {
|
|
80
|
+
setIsOpen(!isOpen);
|
|
81
|
+
}}>
|
|
82
|
+
<li value={item.code} className="cursor-pointer px-5 py-[5px] font-[500] text-[17px]">
|
|
83
|
+
{item.codename}
|
|
84
|
+
</li>
|
|
85
|
+
</Link>))}
|
|
86
|
+
</ul>)}
|
|
87
|
+
<Image draggable={false} src={ArrowIcon} alt={'select icon'} width={28} height={15} className={'absolute top-[50%] translate-y-[-50%] right-[10%] w-[15px] max-sm:w-[14px]'}/>
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
90
|
+
</div>
|
|
91
|
+
|
|
92
|
+
{/*xl일때부터*/}
|
|
93
|
+
<div className={'flex xl:hidden mb-[60px] font-[800] max-xl:justify-center max-md:text-[14px] max-xs:grid max-xs:grid-cols-2 max-xs:gap-2 max-xs:text-[16px] max-xs:leading-snug max-xs:mb-[42px] '}>
|
|
94
|
+
<FooterLinkList />
|
|
95
|
+
</div>
|
|
96
|
+
<div className={'xs:flex mb-[15px] max-xl:justify-center max-md:text-[14px] max-xs:text-[16px] max-xs:mb-[24px] max-2xs:mb-[33px] xs:items-center xs:w-[90vw]'}>
|
|
97
|
+
<p className={'xs:pr-[11px] xs:text-center'}>
|
|
98
|
+
<span className="font-[800]">주소</span>{' '}
|
|
99
|
+
<span className={'inline-block max-2xs:text-[14px]'}>
|
|
100
|
+
서울특별시 영등포구 여의대로 108, 파크원타워1 35층
|
|
101
|
+
</span>
|
|
102
|
+
</p>
|
|
103
|
+
</div>
|
|
104
|
+
<div className={'xs:flex mb-[15px] max-3xl:mx-auto max-xl:justify-center max-md:text-[14px] max-xs:text-[16px] max-xs:mb-[24px] max-2xs:mb-[33px] xs:items-center w-full'}>
|
|
105
|
+
<p className={'xs:border-r border-solid xs:pr-[11px] xs:text-center'}>
|
|
106
|
+
<span className="font-[800]">사업자등록번호</span>{' '}
|
|
107
|
+
<span className={'inline-block'}>468-81-02178</span>
|
|
108
|
+
</p>
|
|
109
|
+
|
|
110
|
+
<p className={'xs:border-r border-solid xs:px-[11px] max-xs:my-[11px] xs:text-center'}>
|
|
111
|
+
<span className="font-[800]">법률상담접수</span>{' '}
|
|
112
|
+
<span className={'inline-block'}>{props.tel}</span>
|
|
113
|
+
</p>
|
|
114
|
+
<p className={'xs:pl-[11px] break-keep xs:text-center'}>
|
|
115
|
+
<span className="font-[800]">광고책임변호사</span>{' '}
|
|
116
|
+
<span className={'inline-block'}>정찬우</span>
|
|
117
|
+
</p>
|
|
118
|
+
</div>
|
|
119
|
+
|
|
120
|
+
<p className={'mb-[54px] flex max-xl:justify-center max-md:text-[14px] items-center max-xs:text-[16px] max-2xs:text-[14px] text-[#666666] max-xs:mb-[33px] max-2xs:mb-[18px] max-xs:justify-start '}>
|
|
121
|
+
Copyright 법무법인(유한) 대륜 all rights reserved
|
|
122
|
+
</p>
|
|
123
|
+
<div className={'flex max-xl:justify-center'}>
|
|
124
|
+
<Link href="https://www.scourt.go.kr/portal/information/events/search/search.jsp" target="_blank" rel="noopener noreferrer">
|
|
125
|
+
<Image draggable={false} src={SNS1} alt="나의 사건 조회" width={66} height={66} className={snsClass}/>
|
|
126
|
+
</Link>
|
|
127
|
+
|
|
128
|
+
<Link href="https://blog.naver.com/lawfirmdaeryun" target="_blank" rel="noopener noreferrer">
|
|
129
|
+
<Image draggable={false} src={SNS2} alt="법무법인(유한) 대륜 공식블로그" width={37} height={31} className={snsClass}/>
|
|
130
|
+
</Link>
|
|
131
|
+
|
|
132
|
+
<Link href="http://pf.kakao.com/_xgxoTlK/chat" target="_blank" rel="noopener noreferrer" onClick={() => {
|
|
133
|
+
insert('kakao', isMobile);
|
|
134
|
+
savePowerLinkConversion('kakao', isMobile);
|
|
135
|
+
mKakaoClick();
|
|
136
|
+
}}>
|
|
137
|
+
<Image draggable={false} src={SNS3} alt="법무법인(유한) 대륜 카카오톡채널" width={66} height={66} className={snsClass}/>
|
|
138
|
+
</Link>
|
|
139
|
+
|
|
140
|
+
<Link href="https://www.youtube.com/channel/UC3uX0o1sFLj5eHdvZp2T64g/featured" target="_blank" rel="noopener noreferrer">
|
|
141
|
+
<Image draggable={false} src={SNS4} alt="법무법인(유한) 대륜 유투브" width={66} height={66} className={snsClass}/>
|
|
142
|
+
</Link>
|
|
143
|
+
|
|
144
|
+
<Link href="https://www.instagram.com/daeryun_lawfirm/?utm_medium=copy_link" target="_blank" rel="noopener noreferrer">
|
|
145
|
+
<Image draggable={false} src={SNS5} alt="법무법인(유한) 대륜 인스타그램" width={66} height={66} className={snsClass}/>
|
|
146
|
+
</Link>
|
|
147
|
+
</div>
|
|
148
|
+
</div>
|
|
149
|
+
</footer>);
|
|
150
|
+
};
|
|
151
|
+
export default NewFooter;
|
|
152
|
+
const FooterLinkList = () => {
|
|
153
|
+
return (<>
|
|
154
|
+
<p className={'mr-[36px] max-md:mr-[17px] '}>
|
|
155
|
+
<Link href={'/common/disclaimer'}>면책공고</Link>
|
|
156
|
+
</p>
|
|
157
|
+
<p className={'mr-[36px] max-md:mr-[17px] max-xs:mr-0'}>
|
|
158
|
+
<Link href={'/common/limited-liability'}>유한책임</Link>
|
|
159
|
+
</p>
|
|
160
|
+
<p className={'mr-[36px] max-md:mr-[17px] '}>
|
|
161
|
+
<Link href={'/common/privacy-policy'}>개인정보처리방침</Link>
|
|
162
|
+
</p>
|
|
163
|
+
<p className={'mr-[36px] max-md:mr-[17px] max-xs:mr-0'}>
|
|
164
|
+
<Link href={'/common/collect'}>이메일무단수집거부</Link>
|
|
165
|
+
</p>
|
|
166
|
+
<p className={'text-[#285FA7]'}>
|
|
167
|
+
<Link href={'https://www.daeryunlaw.com/inquire'}>고객만족센터</Link>
|
|
168
|
+
</p>
|
|
169
|
+
</>);
|
|
170
|
+
};
|