@daeryun/dr_components 0.1.2 → 0.1.5

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.
Files changed (42) hide show
  1. package/custom.d.ts +1 -0
  2. package/dist/asset/images/footer/logo_b.webp +0 -0
  3. package/dist/asset/images/footer/top.svg +13 -0
  4. package/dist/components/Cat/index.jsx +1 -1
  5. package/dist/components/Cat/index.tsx +1 -2
  6. package/dist/components/Fix/Fix.stories.jsx +2 -1
  7. package/dist/components/Fix/Fix.stories.tsx +2 -1
  8. package/dist/components/Footer/Footer.stories.d.ts +5 -15
  9. package/dist/components/Footer/Footer.stories.jsx +15 -7
  10. package/dist/components/Footer/Footer.stories.tsx +20 -10
  11. package/dist/components/Footer/TopBtn.d.ts +5 -0
  12. package/dist/components/Footer/TopBtn.jsx +18 -0
  13. package/dist/components/Footer/TopBtn.tsx +29 -0
  14. package/dist/components/Footer/index.d.ts +5 -7
  15. package/dist/components/Footer/index.jsx +204 -106
  16. package/dist/components/Footer/index.tsx +381 -256
  17. package/dist/components/Layout/Wrapper.d.ts +2 -4
  18. package/dist/components/Layout/Wrapper.jsx +27 -39
  19. package/dist/components/Layout/Wrapper.tsx +29 -49
  20. package/dist/components/index.js +2 -2
  21. package/dist/components/index.ts +2 -2
  22. package/dist/styles/globals.css +127 -945
  23. package/dist/tsconfig.tsbuildinfo +1 -1
  24. package/package.json +9 -1
  25. package/dist/asset/images/logo.webp +0 -0
  26. package/dist/components/FooterKeywd/index.d.ts +0 -3
  27. package/dist/components/FooterKeywd/index.jsx +0 -88
  28. package/dist/components/FooterKeywd/index.module.css +0 -123
  29. package/dist/components/FooterKeywd/index.tsx +0 -92
  30. package/dist/components/Top/Fix.d.ts +0 -0
  31. package/dist/components/Top/Fix.jsx +0 -306
  32. package/dist/components/Top/Fix.module.css +0 -54
  33. package/dist/components/Top/Fix.tsx +0 -305
  34. package/dist/components/Top/Gnb.d.ts +0 -0
  35. package/dist/components/Top/Gnb.jsx +0 -212
  36. package/dist/components/Top/Gnb.tsx +0 -211
  37. package/dist/components/Top/Hamburger.d.ts +0 -0
  38. package/dist/components/Top/Hamburger.jsx +0 -743
  39. package/dist/components/Top/Hamburger.tsx +0 -742
  40. package/dist/components/Top/index.d.ts +0 -0
  41. package/dist/components/Top/index.jsx +0 -62
  42. package/dist/components/Top/index.tsx +0 -61
@@ -1,306 +0,0 @@
1
- "use strict";
2
- // import React, { useEffect, useState } from 'react'
3
- // import Image from 'next/image'
4
- // import { insert } from '../../lib/conversion'
5
- // import * as gtag from '../../lib/gtag'
6
- // import Link from 'next/link'
7
- // import { useTranslation } from 'next-i18next'
8
- // import { useRouter } from 'next/router'
9
- // import DOMPurify from 'isomorphic-dompurify'
10
- // import { saveNaverPowerLinkConversion } from '../../lib/powerlink'
11
- // import top1 from '../../asset/images/header/top_icon_01.webp'
12
- // import top2 from '../../asset/images/header/top_icon_02.webp'
13
- // import top3 from '../../asset/images/header/top_icon_03.webp'
14
- // import top4 from '../../asset/images/header/top_icon_04.webp'
15
- // import online from '../../asset/images/header/online.png'
16
- // import talk from '../../asset/images/header/talk.png'
17
- // import phone from '../../asset/images/header/phone.png'
18
- //
19
- // const Fix = () => {
20
- // const mobile = require('is-mobile')
21
- // const [isMobile, setIsMobile] = useState<boolean>(false)
22
- // const router = useRouter()
23
- // const [isTop, setIsTop] = useState(true)
24
- // const { t } = useTranslation('common')
25
- //
26
- // useEffect(() => {
27
- // const handleScroll = () => {
28
- // setIsTop(window.scrollY <= window.innerHeight * 0.5)
29
- // }
30
- //
31
- // const is_mobile = mobile()
32
- // setIsMobile(is_mobile)
33
- //
34
- // // Add scroll event listener
35
- // window.addEventListener('scroll', handleScroll)
36
- //
37
- // // Remove scroll event listener on component unmount
38
- // return () => {
39
- // window.removeEventListener('scroll', handleScroll)
40
- // }
41
- // }, [])
42
- //
43
- // // GA 클릭이벤트
44
- // const mTelClick = () => {
45
- // gtag.event({
46
- // action: 'mobile_tel',
47
- // category: 'tel',
48
- // label: '모바일전화버튼',
49
- // value: '1'
50
- // })
51
- // }
52
- //
53
- // // GA 클릭이벤트
54
- // const pcTelClick = () => {
55
- // gtag.event({
56
- // action: 'pc_tel',
57
- // category: 'tel',
58
- // label: '피씨전화버튼',
59
- // value: '1'
60
- // })
61
- // }
62
- //
63
- // // GA 클릭이벤트
64
- // const mKakaoClick = () => {
65
- // gtag.event({
66
- // action: 'mobile_kakao',
67
- // category: 'kakao',
68
- // label: '모바일카카오버튼',
69
- // value: '1'
70
- // })
71
- // }
72
- //
73
- // // GA 클릭이벤트
74
- // const pcKakaoClick = () => {
75
- // gtag.event({
76
- // action: 'pc_kakao',
77
- // category: 'kakao',
78
- // label: '피씨카카오버튼',
79
- // value: '1'
80
- // })
81
- // }
82
- //
83
- // // 에이스카운터 전환태그
84
- // const ace_mTelClick = () => {
85
- // try {
86
- // // @ts-ignore
87
- // AM_PL('/m_tel')
88
- // } catch (e) {}
89
- // }
90
- //
91
- // const ace_pcTelClick = () => {
92
- // try {
93
- // // @ts-ignore
94
- // _PL('www.daeryunlaw-assault.com/tel')
95
- // } catch (e) {}
96
- // }
97
- //
98
- // const ace_mKakaoClick = () => {
99
- // try {
100
- // // @ts-ignore
101
- // AM_PL('/m_kakao')
102
- // } catch (e) {}
103
- // }
104
- //
105
- // const ace_pcKakaoClick = () => {
106
- // try {
107
- // // @ts-ignore
108
- // _PL('www.daeryunlaw-assault.com/kakao')
109
- // } catch (e) {}
110
- // }
111
- //
112
- // return (
113
- // <>
114
- // <section id={'fix_pc'} className={`hidden ${isTop ? '' : 'lg:block relative z-50'}`}>
115
- // <div
116
- // className={
117
- // 'w-[166px] h-[312.px] fixed bottom-[5%] right-0.5 z-1000 bg-white border border-[#B57C1E] border-solid rounded-bl-[55px]'
118
- // }
119
- // >
120
- // <ul className={'mt-6'}>
121
- // <li className={'mx-6 text-center'}>
122
- // <div>
123
- // {t('fix_easy and fast')}
124
- // <br />
125
- // <p className={'text-[#897046] text-[18px]'}>
126
- // {t('fix_Online consultation reservation')}
127
- // </p>
128
- // </div>
129
- // </li>
130
- // <li>
131
- // <Link href="/choice">
132
- // <div className={'mx-[68px] mt-[15.32px] mb-[25.88px]'}>
133
- // <Image src={top1} alt="온라인상담예약" width={29.59} height={28.1} />
134
- // </div>
135
- // </Link>
136
- // </li>
137
- // <hr className={'w-[139px] h-1 border-[#D8D8D8] border-solid mx-auto'} />
138
- // <li className={'mt-[19px] ml-[22px] mr-[31px] mb-[18.81px] '}>
139
- // <Link
140
- // href="http://pf.kakao.com/_xgxoTlK/chat"
141
- // target={'_blank'}
142
- // rel={'noreferrer noopener'}
143
- // className="flex items-center justify-center"
144
- // onClick={() => {
145
- // insert('kakao', isMobile)
146
- // saveNaverPowerLinkConversion('kakao', isMobile)
147
- // }}
148
- // onMouseDown={() => {
149
- // // ace_pcKakaoClick();
150
- // // pcKakaoClick();
151
- // }}
152
- // >
153
- // <Image
154
- // src={top2}
155
- // alt="카톡상담예약"
156
- // width={22.24}
157
- // height={20.54}
158
- // className={'mr-[10px]'}
159
- // />
160
- // <p className={`text-[15px] text-center ${router.locale === 'en' ? '' : ''} `}>
161
- // <span
162
- // dangerouslySetInnerHTML={{
163
- // __html: DOMPurify.sanitize(t('fix_Kakaotalk consultation reservation'))
164
- // }}
165
- // />
166
- // </p>
167
- // </Link>
168
- // </li>
169
- // <hr className={'w-[139px] h-1 border-[#D8D8D8] border-solid mx-auto'} />
170
- // <li className={'mt-[19px] ml-[22px] mr-[31px] mb-[18.81px]'}>
171
- // <Link
172
- // href={`tel:1234`}
173
- // className="flex items-center justify-center"
174
- // onClick={() => {
175
- // insert('call', isMobile)
176
- // saveNaverPowerLinkConversion('call', isMobile)
177
- // ace_pcTelClick()
178
- // pcTelClick()
179
- // }}
180
- // >
181
- // <div className={'mr-[10px]'}>
182
- // <Image src={top3} alt="전화상담예약" width={22.08} height={22.08} />
183
- // </div>
184
- // <p className={'text-[15px] text-center'}>
185
- // <span
186
- // dangerouslySetInnerHTML={{
187
- // __html: DOMPurify.sanitize(t('fix_Telephone consultation reservation'))
188
- // }}
189
- // />
190
- // </p>
191
- // </Link>
192
- // </li>
193
- // <li
194
- // className={
195
- // 'h-[58.36px] text-center bg-[#B57C1E] bg-origin-padding bg-no-repeat rounded-bl-[55px]'
196
- // }
197
- // >
198
- // {/* 맨위로올라가기 이벤트 */}
199
- // <a href="#" className={'text-white'} id="back-top">
200
- // <div className={'pt-[12.96px] ml-[76.24px] mb-[4px]'}>
201
- // <Image src={top4} alt="화살표" width={14} height={9} />
202
- // </div>
203
- // <div className={'mx-[69.04px] text-[15px]'}>TOP</div>
204
- // </a>
205
- // </li>
206
- // </ul>
207
- // </div>
208
- // </section>
209
- //
210
- // <section id={'fix_mobile'} className={'lg:hidden'}>
211
- // <div
212
- // className={
213
- // 'w-full fixed flex items-center align-baseline bottom-0 left-0 z-50 bg-[#ab0634] border-solid border-t border-b border-[#ab0634]'
214
- // }
215
- // >
216
- // <div className={'w-1/3 text-center float-left py-[8px] px-0 bg-[#ab0634] text-[#fff]'}>
217
- // <Link href="/choice" className={'text-[#000] w-full inline-block'}>
218
- // <Image
219
- // src={online}
220
- // alt="온라인상담예약"
221
- // width={41}
222
- // height={41}
223
- // className={'inline-block w-[22px] h-[22px] text-[#000]'}
224
- // />
225
- // <p
226
- // className={`text-[#fff] text-[14px] sm:text-[16px] font-[500] pt-[7px] ${
227
- // router.locale == 'cn' || router.locale == 'jp' ? ' !text-[10px]' : ''
228
- // } mb-1.5}`}
229
- // >
230
- // {t('fix_Online consultation reservation')}
231
- // </p>
232
- // </Link>
233
- // </div>
234
- // <div
235
- // className={
236
- // 'w-1/3 text-center float-left py-[8px] px-0 bg-gray-200 border-solid border-r border-[#bdbdbd] h-[100%] '
237
- // }
238
- // >
239
- // <Link
240
- // href="http://pf.kakao.com/_xgxoTlK/chat"
241
- // onClick={() => {
242
- // insert('kakao', isMobile)
243
- // saveNaverPowerLinkConversion('kakao', isMobile)
244
- // ace_mKakaoClick()
245
- // mKakaoClick()
246
- // }}
247
- // className={'text-[#000] w-full inline-block'}
248
- // >
249
- // <Image
250
- // src={talk}
251
- // alt="법무법인(유한) 대륜 카톡상담예약"
252
- // width={41}
253
- // height={41}
254
- // className={'inline-block w-[22px] h-[22px]'}
255
- // />
256
- // <p
257
- // className={`text-[14px] sm:text-[16px] font-[500] pt-[7px] ${
258
- // router.locale == 'cn' || router.locale == 'jp' ? '!text-[12px]' : ''
259
- // } mb-1.5}`}
260
- // >
261
- // <span
262
- // dangerouslySetInnerHTML={{
263
- // __html: DOMPurify.sanitize(t('fix_Kakaotalk consultation reservation'))
264
- // }}
265
- // />
266
- // </p>
267
- // </Link>
268
- // </div>
269
- // <div className={'w-1/3 text-center float-left py-[8px] px-0 bg-gray-200'}>
270
- // <Link
271
- // href={`tel:1234`}
272
- // onClick={() => {
273
- // insert('call', isMobile)
274
- // saveNaverPowerLinkConversion('call', isMobile)
275
- // ace_mTelClick()
276
- // mTelClick()
277
- // }}
278
- // className={'text-[#000] w-full inline-block'}
279
- // >
280
- // <Image
281
- // src={phone}
282
- // alt="법무법인(유한) 대륜 전화연결"
283
- // width={41}
284
- // height={41}
285
- // className={'inline-block w-[22px] h-[22px]'}
286
- // />
287
- // <p
288
- // className={`text-[14px] sm:text-[16px] font-[500] pt-[7px] ${
289
- // router.locale == 'cn' || router.locale == 'jp' ? '!text-[12px]' : ''
290
- // } mb-1.5}`}
291
- // >
292
- // <span
293
- // dangerouslySetInnerHTML={{
294
- // __html: DOMPurify.sanitize(t('fix_Telephone consultation reservation'))
295
- // }}
296
- // />
297
- // </p>
298
- // </Link>
299
- // </div>
300
- // </div>
301
- // </section>
302
- // </>
303
- // )
304
- // }
305
- //
306
- // export default Fix
@@ -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
- }