@daeryun/dr_components 0.0.12 → 0.1.1
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 +20 -28
- 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/Cat/index.d.ts +3 -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 +13 -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 +17 -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 +3 -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 +37 -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 +54 -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/dist/components/Button/Button.d.ts +0 -11
- package/dist/components/Button/Button.jsx +0 -19
- 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/components/Button/Button.tsx +0 -30
- package/src/lib/index.ts +0 -1
- package/styles/globals.css +0 -27
- package/tailwind.config.js +0 -37
- package/tsconfig.json +0 -35
|
@@ -0,0 +1,42 @@
|
|
|
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;
|
|
@@ -0,0 +1,54 @@
|
|
|
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;
|
|
@@ -0,0 +1,14 @@
|
|
|
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;
|
|
@@ -0,0 +1,73 @@
|
|
|
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;
|
|
@@ -0,0 +1,139 @@
|
|
|
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
|
|
@@ -0,0 +1,306 @@
|
|
|
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
|