@daeryun/dr_components 0.0.3 → 0.0.4
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/dist/components/Input/index.jsx +5 -0
- package/dist/components/Input/index.tsx +6 -0
- package/dist/components/index.js +1 -6
- package/dist/components/index.ts +1 -6
- package/dist/lib/catagoryMenuName.js +2 -1
- package/dist/lib/conversion.js +2 -2
- package/dist/lib/gtag.js +25 -14
- package/dist/lib/powerlink.js +83 -38
- package/dist/lib/utils.js +35 -33
- package/dist/styles/globals.css +35 -2222
- package/package.json +9 -5
- package/dist/cjs/cn/common.json +0 -156
- package/dist/cjs/en/common.json +0 -156
- package/dist/cjs/index.js +0 -14
- package/dist/cjs/jp/common.json +0 -156
- package/dist/cjs/ko/common.json +0 -156
- package/dist/cjs/package.json +0 -3
- package/dist/cjs/tsconfig-cjs.tsbuildinfo +0 -1
- package/dist/components/Cat/index.d.ts +0 -3
- package/dist/components/Cat/index.jsx +0 -9
- package/dist/components/Cat/index.tsx +0 -20
- package/dist/components/Fix/Fix.stories.d.ts +0 -13
- package/dist/components/Fix/Fix.stories.jsx +0 -12
- package/dist/components/Fix/Fix.stories.tsx +0 -20
- package/dist/components/Fix/index.d.ts +0 -5
- package/dist/components/Fix/index.jsx +0 -254
- package/dist/components/Fix/index.module.css +0 -316
- package/dist/components/Fix/index.tsx +0 -383
- package/dist/components/Footer/Footer.stories.d.ts +0 -17
- package/dist/components/Footer/Footer.stories.jsx +0 -14
- package/dist/components/Footer/Footer.stories.tsx +0 -20
- package/dist/components/Footer/index.d.ts +0 -10
- package/dist/components/Footer/index.jsx +0 -170
- package/dist/components/Footer/index.tsx +0 -313
- 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/Layout/Wrapper.d.ts +0 -10
- package/dist/components/Layout/Wrapper.jsx +0 -42
- package/dist/components/Layout/Wrapper.tsx +0 -54
- 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/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
- package/dist/components/common/hook/useBrowser.d.ts +0 -5
- package/dist/components/common/hook/useBrowser.js +0 -45
- package/dist/components/common/hook/useBrowser.ts +0 -52
- package/dist/components/common/index.d.ts +0 -37
- package/dist/components/common/index.js +0 -2041
- package/dist/components/common/index.ts +0 -2061
- package/dist/components/common/types/index.d.ts +0 -20
- package/dist/components/common/types/index.js +0 -1
- package/dist/components/common/types/index.ts +0 -22
- package/dist/index.d.ts +0 -2
- package/dist/lib/catagoryMenuName.d.ts +0 -8
- package/dist/lib/conversion.d.ts +0 -1
- package/dist/lib/gtag.d.ts +0 -8
- package/dist/lib/powerlink.d.ts +0 -2
- package/dist/lib/utils.d.ts +0 -35
- package/dist/tsconfig.tsbuildinfo +0 -1
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
const Wrapper = ({ children, className = '', paddingX = 40, paddingY = 70, id }) => {
|
|
3
|
-
const paddingClass = `wrapper-${id}`;
|
|
4
|
-
return (<>
|
|
5
|
-
<style>
|
|
6
|
-
{`
|
|
7
|
-
.${paddingClass} {
|
|
8
|
-
padding-left: ${paddingX}px;
|
|
9
|
-
padding-right: ${paddingX}px;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
@media (max-width: 2120px) {
|
|
13
|
-
.${paddingClass} {
|
|
14
|
-
padding-left: ${paddingX + 100}px;
|
|
15
|
-
padding-right: ${paddingX + 100}px;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@media (max-width: 1500px) {
|
|
20
|
-
.${paddingClass} {
|
|
21
|
-
padding-left: ${paddingX + 40}px;
|
|
22
|
-
padding-right: ${paddingX + 40}px;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
@media (max-width: 1024px) {
|
|
26
|
-
.${paddingClass} {
|
|
27
|
-
padding-left: ${paddingX + 20}px;
|
|
28
|
-
padding-right: ${paddingX + 20}px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@media (max-width: 640px) {
|
|
32
|
-
.${paddingClass} {
|
|
33
|
-
padding-left: 20px;
|
|
34
|
-
padding-right: 20px;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
`}
|
|
38
|
-
</style>
|
|
39
|
-
<div className={`${paddingClass} w-full max-w-[1920px] mx-auto relative ${className} `}>{children}</div>
|
|
40
|
-
</>);
|
|
41
|
-
};
|
|
42
|
-
export default Wrapper;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
interface WrapperProps {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
className?: string; // 스타일 추가
|
|
6
|
-
paddingX?: number; // 패딩x 값
|
|
7
|
-
paddingY?: number;
|
|
8
|
-
id: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
const Wrapper: React.FC<WrapperProps> = ({ children, className = '', paddingX = 40, paddingY = 70, id }) => {
|
|
12
|
-
const paddingClass = `wrapper-${id}`;
|
|
13
|
-
return (
|
|
14
|
-
<>
|
|
15
|
-
<style>
|
|
16
|
-
{`
|
|
17
|
-
.${paddingClass} {
|
|
18
|
-
padding-left: ${paddingX}px;
|
|
19
|
-
padding-right: ${paddingX}px;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
@media (max-width: 2120px) {
|
|
23
|
-
.${paddingClass} {
|
|
24
|
-
padding-left: ${paddingX + 100}px;
|
|
25
|
-
padding-right: ${paddingX + 100}px;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
@media (max-width: 1500px) {
|
|
30
|
-
.${paddingClass} {
|
|
31
|
-
padding-left: ${paddingX + 40}px;
|
|
32
|
-
padding-right: ${paddingX + 40}px;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
@media (max-width: 1024px) {
|
|
36
|
-
.${paddingClass} {
|
|
37
|
-
padding-left: ${paddingX + 20}px;
|
|
38
|
-
padding-right: ${paddingX + 20}px;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
@media (max-width: 640px) {
|
|
42
|
-
.${paddingClass} {
|
|
43
|
-
padding-left: 20px;
|
|
44
|
-
padding-right: 20px;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
`}
|
|
48
|
-
</style>
|
|
49
|
-
<div className={`${paddingClass} w-full max-w-[1920px] mx-auto relative ${className} `}>{children}</div>
|
|
50
|
-
</>
|
|
51
|
-
);
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
export default Wrapper;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const SearchBar: (props: {
|
|
3
|
-
onChange: (e: React.FormEvent<HTMLInputElement>) => void;
|
|
4
|
-
onClick: () => void;
|
|
5
|
-
search: string;
|
|
6
|
-
isKeyPress?: boolean | undefined;
|
|
7
|
-
placeholder: string;
|
|
8
|
-
maxLength?: number | undefined;
|
|
9
|
-
isIntegrate?: boolean | undefined;
|
|
10
|
-
isMarginNotAuto?: boolean | undefined;
|
|
11
|
-
marginTop?: [number, number, number] | undefined;
|
|
12
|
-
marginBottom?: number | undefined;
|
|
13
|
-
}) => React.JSX.Element;
|
|
14
|
-
export default SearchBar;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import style from '../../pages/broadcast/index.module.css';
|
|
2
|
-
import Image from 'next/image';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { useTranslation } from 'next-i18next';
|
|
5
|
-
import { useRouter } from 'next/router';
|
|
6
|
-
const SearchBar = (props) => {
|
|
7
|
-
const { search, placeholder, maxLength, isIntegrate, isMarginNotAuto, marginTop, marginBottom } = props;
|
|
8
|
-
const router = useRouter();
|
|
9
|
-
const { t } = useTranslation('common');
|
|
10
|
-
const handleInputChange = (e) => {
|
|
11
|
-
props.onChange(e);
|
|
12
|
-
};
|
|
13
|
-
const handleOnKeyPress = (e) => {
|
|
14
|
-
if (props.isKeyPress) {
|
|
15
|
-
if (e.key === 'Enter') {
|
|
16
|
-
props.onClick();
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
const handleClick = () => {
|
|
21
|
-
props.onClick();
|
|
22
|
-
};
|
|
23
|
-
return (<div className={isIntegrate
|
|
24
|
-
? 'w-full h-auto '
|
|
25
|
-
: 'w-full h-auto ' +
|
|
26
|
-
`${marginTop
|
|
27
|
-
? 'mt-[' +
|
|
28
|
-
marginTop[0] +
|
|
29
|
-
'px] max-md:mt-[' +
|
|
30
|
-
marginTop[1] +
|
|
31
|
-
'px] max-sm:mt-[' +
|
|
32
|
-
marginTop[2] +
|
|
33
|
-
'px]'
|
|
34
|
-
: 'mt-[150px] max-md:mt-[80px] max-sm:mt-[50px]'}` +
|
|
35
|
-
`${marginBottom ? 'mb-[' + marginBottom + 'px]' : 'mb-[90px]'}`}>
|
|
36
|
-
<div className={'relative lg:w-[80%] sm:w-[90%] w-[100%] max-w-[855px] ' + `${isMarginNotAuto ? '' : 'm-auto'}`}>
|
|
37
|
-
<input name="sear_txt" id={style.sear_txt} placeholder={placeholder} maxLength={maxLength ? maxLength : 20} value={search} onChange={handleInputChange} onKeyUp={handleOnKeyPress} spellCheck={false} className={`bg-[${isIntegrate ? '#FFFFFF' : '#F7F7F7'}] w-[100%] px-[40px] py-[24px] rounded-full ` +
|
|
38
|
-
'text-2xl text-[#333333] tracking-[-0.6px] placeholder:text-[#adadad] ' +
|
|
39
|
-
//1500px
|
|
40
|
-
'max-3xl:text-xl ' +
|
|
41
|
-
//768px
|
|
42
|
-
'max-md:text-lg max-md:py-[20px] max-md:pl-[40px] max-md:pr-[150px] ' +
|
|
43
|
-
//640px
|
|
44
|
-
'max-sm:text-base max-sm:py-[18px] max-sm:pl-[25px] max-sm:pr-[65px] ' +
|
|
45
|
-
//325px
|
|
46
|
-
'max-3xs:text-sm max-3xs:py-[15px] max-3xs:pl-[20px] max-3xs:pr-[55px] '}/>
|
|
47
|
-
<div onClick={handleClick} className={'absolute top-[50%] translate-y-[-50%] right-[20px] z-10 ' +
|
|
48
|
-
'w-[140px] h-[65%] bg-[#2E2E2E] rounded-full cursor-pointer ' +
|
|
49
|
-
'flex justify-center items-center gap-[10px] ' +
|
|
50
|
-
//768px
|
|
51
|
-
'max-md:w-[120px] ' +
|
|
52
|
-
//640px
|
|
53
|
-
'max-sm:hidden '}>
|
|
54
|
-
<Image src="/images/integrate/search.webp" alt="로고" width={30} height={30} className="w-[22px] h-auto max-md:w-[18px]"/>
|
|
55
|
-
<span className={'text-[#fff] text-xl font-[800] tracking-[-0.5px] ' +
|
|
56
|
-
//1500px
|
|
57
|
-
'max-3xl:text-lg ' +
|
|
58
|
-
//768px
|
|
59
|
-
'max-md:text-base '}>
|
|
60
|
-
검색
|
|
61
|
-
</span>
|
|
62
|
-
</div>
|
|
63
|
-
<div onClick={handleClick} className={'bg-[#2E2E2E] cursor-pointer absolute z-10 right-[15px] top-[50%] translate-y-[-50%] rounded-[30px] flex justify-center items-center sm:hidden ' +
|
|
64
|
-
//650px
|
|
65
|
-
'w-[40px] h-[40px] ' +
|
|
66
|
-
//325px
|
|
67
|
-
'max-3xs:w-[32px] max-3xs:h-[32px]'}>
|
|
68
|
-
<Image src="/images/integrate/search.webp" alt="로고" width={26} height={26} className={'w-[18px] h-auto max-3xs:w-[16px]'}/>
|
|
69
|
-
</div>
|
|
70
|
-
</div>
|
|
71
|
-
</div>);
|
|
72
|
-
};
|
|
73
|
-
export default SearchBar;
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
import style from '../../pages/broadcast/index.module.css'
|
|
2
|
-
import Image from 'next/image'
|
|
3
|
-
import React, { useState } from 'react'
|
|
4
|
-
import { useTranslation } from 'next-i18next'
|
|
5
|
-
import { useRouter } from 'next/router'
|
|
6
|
-
|
|
7
|
-
const SearchBar = (props: {
|
|
8
|
-
// pathname: string
|
|
9
|
-
onChange: (e: React.FormEvent<HTMLInputElement>) => void
|
|
10
|
-
onClick: () => void
|
|
11
|
-
search: string
|
|
12
|
-
isKeyPress?: boolean
|
|
13
|
-
placeholder: string
|
|
14
|
-
maxLength?: number
|
|
15
|
-
isIntegrate?: boolean
|
|
16
|
-
isMarginNotAuto?: boolean //중앙정렬 아닐 시 true
|
|
17
|
-
marginTop?: [number, number, number] //기본값 존재, 순서대로 all, 768px, 640px
|
|
18
|
-
marginBottom?: number //기본값 존재
|
|
19
|
-
}) => {
|
|
20
|
-
const { search, placeholder, maxLength, isIntegrate, isMarginNotAuto, marginTop, marginBottom } = props
|
|
21
|
-
const router = useRouter()
|
|
22
|
-
const { t } = useTranslation('common')
|
|
23
|
-
|
|
24
|
-
const handleInputChange = (e: React.FormEvent<HTMLInputElement>) => {
|
|
25
|
-
props.onChange(e)
|
|
26
|
-
}
|
|
27
|
-
const handleOnKeyPress = (e: any) => {
|
|
28
|
-
if (props.isKeyPress) {
|
|
29
|
-
if (e.key === 'Enter') {
|
|
30
|
-
props.onClick()
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
const handleClick = () => {
|
|
35
|
-
props.onClick()
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
return (
|
|
39
|
-
<div
|
|
40
|
-
className={
|
|
41
|
-
isIntegrate
|
|
42
|
-
? 'w-full h-auto '
|
|
43
|
-
: 'w-full h-auto ' +
|
|
44
|
-
`${
|
|
45
|
-
marginTop
|
|
46
|
-
? 'mt-[' +
|
|
47
|
-
marginTop[0] +
|
|
48
|
-
'px] max-md:mt-[' +
|
|
49
|
-
marginTop[1] +
|
|
50
|
-
'px] max-sm:mt-[' +
|
|
51
|
-
marginTop[2] +
|
|
52
|
-
'px]'
|
|
53
|
-
: 'mt-[150px] max-md:mt-[80px] max-sm:mt-[50px]'
|
|
54
|
-
}` +
|
|
55
|
-
`${marginBottom ? 'mb-[' + marginBottom + 'px]' : 'mb-[90px]'}`
|
|
56
|
-
}
|
|
57
|
-
>
|
|
58
|
-
<div
|
|
59
|
-
className={
|
|
60
|
-
'relative lg:w-[80%] sm:w-[90%] w-[100%] max-w-[855px] ' + `${isMarginNotAuto ? '' : 'm-auto'}`
|
|
61
|
-
}
|
|
62
|
-
>
|
|
63
|
-
<input
|
|
64
|
-
name="sear_txt"
|
|
65
|
-
id={style.sear_txt}
|
|
66
|
-
placeholder={placeholder}
|
|
67
|
-
maxLength={maxLength ? maxLength : 20}
|
|
68
|
-
value={search}
|
|
69
|
-
onChange={handleInputChange}
|
|
70
|
-
onKeyUp={handleOnKeyPress}
|
|
71
|
-
spellCheck={false}
|
|
72
|
-
className={
|
|
73
|
-
`bg-[${isIntegrate ? '#FFFFFF' : '#F7F7F7'}] w-[100%] px-[40px] py-[24px] rounded-full ` +
|
|
74
|
-
'text-2xl text-[#333333] tracking-[-0.6px] placeholder:text-[#adadad] ' +
|
|
75
|
-
//1500px
|
|
76
|
-
'max-3xl:text-xl ' +
|
|
77
|
-
//768px
|
|
78
|
-
'max-md:text-lg max-md:py-[20px] max-md:pl-[40px] max-md:pr-[150px] ' +
|
|
79
|
-
//640px
|
|
80
|
-
'max-sm:text-base max-sm:py-[18px] max-sm:pl-[25px] max-sm:pr-[65px] ' +
|
|
81
|
-
//325px
|
|
82
|
-
'max-3xs:text-sm max-3xs:py-[15px] max-3xs:pl-[20px] max-3xs:pr-[55px] '
|
|
83
|
-
}
|
|
84
|
-
/>
|
|
85
|
-
<div
|
|
86
|
-
onClick={handleClick}
|
|
87
|
-
className={
|
|
88
|
-
'absolute top-[50%] translate-y-[-50%] right-[20px] z-10 ' +
|
|
89
|
-
'w-[140px] h-[65%] bg-[#2E2E2E] rounded-full cursor-pointer ' +
|
|
90
|
-
'flex justify-center items-center gap-[10px] ' +
|
|
91
|
-
//768px
|
|
92
|
-
'max-md:w-[120px] ' +
|
|
93
|
-
//640px
|
|
94
|
-
'max-sm:hidden '
|
|
95
|
-
}
|
|
96
|
-
>
|
|
97
|
-
<Image
|
|
98
|
-
src="/images/integrate/search.webp"
|
|
99
|
-
alt="로고"
|
|
100
|
-
width={30}
|
|
101
|
-
height={30}
|
|
102
|
-
className="w-[22px] h-auto max-md:w-[18px]"
|
|
103
|
-
/>
|
|
104
|
-
<span
|
|
105
|
-
className={
|
|
106
|
-
'text-[#fff] text-xl font-[800] tracking-[-0.5px] ' +
|
|
107
|
-
//1500px
|
|
108
|
-
'max-3xl:text-lg ' +
|
|
109
|
-
//768px
|
|
110
|
-
'max-md:text-base '
|
|
111
|
-
}
|
|
112
|
-
>
|
|
113
|
-
검색
|
|
114
|
-
</span>
|
|
115
|
-
</div>
|
|
116
|
-
<div
|
|
117
|
-
onClick={handleClick}
|
|
118
|
-
className={
|
|
119
|
-
'bg-[#2E2E2E] cursor-pointer absolute z-10 right-[15px] top-[50%] translate-y-[-50%] rounded-[30px] flex justify-center items-center sm:hidden ' +
|
|
120
|
-
//650px
|
|
121
|
-
'w-[40px] h-[40px] ' +
|
|
122
|
-
//325px
|
|
123
|
-
'max-3xs:w-[32px] max-3xs:h-[32px]'
|
|
124
|
-
}
|
|
125
|
-
>
|
|
126
|
-
<Image
|
|
127
|
-
src="/images/integrate/search.webp"
|
|
128
|
-
alt="로고"
|
|
129
|
-
width={26}
|
|
130
|
-
height={26}
|
|
131
|
-
className={'w-[18px] h-auto max-3xs:w-[16px]'}
|
|
132
|
-
/>
|
|
133
|
-
</div>
|
|
134
|
-
</div>
|
|
135
|
-
</div>
|
|
136
|
-
)
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
export default SearchBar
|
|
File without changes
|
|
@@ -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
|