@daeryun/dr_components 0.1.28 → 0.1.29
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/asset/images/header/h_call_line.webp +0 -0
- package/dist/asset/images/header/h_call_line_b.webp +0 -0
- package/dist/asset/images/header/h_menu.webp +0 -0
- package/dist/asset/images/header/h_menu_b.webp +0 -0
- package/dist/asset/images/header/image_b.webp +0 -0
- package/dist/asset/images/header/logo_b.webp +0 -0
- package/dist/asset/images/header/logo_w.webp +0 -0
- package/dist/asset/images/header/m_right.webp +0 -0
- package/dist/asset/images/header/m_sr.webp +0 -0
- package/dist/asset/images/header/search_black.webp +0 -0
- package/dist/asset/images/header/search_white.webp +0 -0
- package/dist/components/CountingSection/CountingSection.jsx +5 -9
- package/dist/components/CountingSection/CountingSection.tsx +5 -21
- package/dist/components/LogoSection/LogoSection.d.ts +6 -0
- package/dist/components/LogoSection/LogoSection.jsx +51 -0
- package/dist/components/LogoSection/LogoSection.stories.d.ts +8 -0
- package/dist/components/LogoSection/LogoSection.stories.jsx +15 -0
- package/dist/components/LogoSection/LogoSection.stories.tsx +23 -0
- package/dist/components/LogoSection/LogoSection.tsx +106 -0
- package/dist/components/Menu/IMenuTypes.d.ts +17 -0
- package/dist/components/Menu/IMenuTypes.js +1 -0
- package/dist/components/Menu/IMenuTypes.ts +13 -0
- package/dist/components/Menu/Menu.d.ts +4 -0
- package/dist/components/Menu/Menu.jsx +10 -0
- package/dist/components/Menu/Menu.stories.d.ts +7 -0
- package/dist/components/Menu/Menu.stories.jsx +162 -0
- package/dist/components/Menu/Menu.stories.tsx +170 -0
- package/dist/components/Menu/Menu.tsx +15 -0
- package/dist/components/Menu/MobileMenu.d.ts +4 -0
- package/dist/components/Menu/MobileMenu.jsx +174 -0
- package/dist/components/Menu/MobileMenu.tsx +286 -0
- package/dist/components/Menu/MyCase.d.ts +5 -0
- package/dist/components/Menu/MyCase.jsx +26 -0
- package/dist/components/Menu/MyCase.tsx +47 -0
- package/dist/components/Menu/PCMenu.d.ts +4 -0
- package/dist/components/Menu/PCMenu.jsx +130 -0
- package/dist/components/Menu/PCMenu.tsx +238 -0
- package/dist/components/common/data/index.d.ts +7 -0
- package/dist/components/common/data/index.js +41 -0
- package/dist/components/common/data/index.ts +42 -0
- package/dist/components/index.js +1 -1
- package/dist/components/index.ts +1 -1
- package/dist/styles/globals.css +673 -30
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React, { useEffect } from 'react';
|
|
2
|
+
const MyCase = (props) => {
|
|
3
|
+
//전체 body 스크롤 잠금
|
|
4
|
+
useEffect(() => {
|
|
5
|
+
document.body.style.overflow = 'hidden';
|
|
6
|
+
return () => {
|
|
7
|
+
document.body.style.overflow = 'visible';
|
|
8
|
+
};
|
|
9
|
+
}, []);
|
|
10
|
+
return (<>
|
|
11
|
+
<div className={'w-full h-[100vh] top-0 left-0 z-[900] fixed'}>
|
|
12
|
+
<div className={'w-full h-full bg-black bg-opacity-80 absolute top-0 left-0 z-[1]'}></div>
|
|
13
|
+
<div className={'w-[80%] h-[80%] px-[20px] max-w-[1000px] max-h-[1200px] bg-white z-[2] absolute bottom-[50%] translate-y-[50%] left-[50%] translate-x-[-50%] ' +
|
|
14
|
+
//1024px
|
|
15
|
+
'max-lg:w-full max-lg:h-[calc(100%-60px)] max-lg:bottom-0 max-lg:translate-y-0 max-lg:px-[10px] max-lg:pt-[10px] max-lg:pb-[100px]'}>
|
|
16
|
+
<button type={'button'} className={'text-[35px] text-white absolute top-[-50px] right-[-40px] ' +
|
|
17
|
+
//1024px
|
|
18
|
+
' max-lg:text-[25px] max-lg:right-[10px] max-lg:top-[-45px]'} onClick={props.onClick}>
|
|
19
|
+
✕
|
|
20
|
+
</button>
|
|
21
|
+
<iframe width="100%" height="100%" title="나의 사건검색" src="https://safind.scourt.go.kr/sf/mysafind.jsp?sch_sa_gbn=&sch_bub_nm=&sa_year=&sa_gubun=&sa_serial=&x=&y=&saveCookie="></iframe>
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
</>);
|
|
25
|
+
};
|
|
26
|
+
export default MyCase;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React, { useEffect } from 'react';
|
|
2
|
+
|
|
3
|
+
const MyCase = (props: { onClick: () => void }) => {
|
|
4
|
+
//전체 body 스크롤 잠금
|
|
5
|
+
useEffect(() => {
|
|
6
|
+
document.body.style.overflow = 'hidden';
|
|
7
|
+
|
|
8
|
+
return () => {
|
|
9
|
+
document.body.style.overflow = 'visible';
|
|
10
|
+
};
|
|
11
|
+
}, []);
|
|
12
|
+
|
|
13
|
+
return (
|
|
14
|
+
<>
|
|
15
|
+
<div className={'w-full h-[100vh] top-0 left-0 z-[900] fixed'}>
|
|
16
|
+
<div className={'w-full h-full bg-black bg-opacity-80 absolute top-0 left-0 z-[1]'}></div>
|
|
17
|
+
<div
|
|
18
|
+
className={
|
|
19
|
+
'w-[80%] h-[80%] px-[20px] max-w-[1000px] max-h-[1200px] bg-white z-[2] absolute bottom-[50%] translate-y-[50%] left-[50%] translate-x-[-50%] ' +
|
|
20
|
+
//1024px
|
|
21
|
+
'max-lg:w-full max-lg:h-[calc(100%-60px)] max-lg:bottom-0 max-lg:translate-y-0 max-lg:px-[10px] max-lg:pt-[10px] max-lg:pb-[100px]'
|
|
22
|
+
}
|
|
23
|
+
>
|
|
24
|
+
<button
|
|
25
|
+
type={'button'}
|
|
26
|
+
className={
|
|
27
|
+
'text-[35px] text-white absolute top-[-50px] right-[-40px] ' +
|
|
28
|
+
//1024px
|
|
29
|
+
' max-lg:text-[25px] max-lg:right-[10px] max-lg:top-[-45px]'
|
|
30
|
+
}
|
|
31
|
+
onClick={props.onClick}
|
|
32
|
+
>
|
|
33
|
+
✕
|
|
34
|
+
</button>
|
|
35
|
+
<iframe
|
|
36
|
+
width="100%"
|
|
37
|
+
height="100%"
|
|
38
|
+
title="나의 사건검색"
|
|
39
|
+
src="https://safind.scourt.go.kr/sf/mysafind.jsp?sch_sa_gbn=&sch_bub_nm=&sa_year=&sa_gubun=&sa_serial=&x=&y=&saveCookie="
|
|
40
|
+
></iframe>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</>
|
|
44
|
+
);
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export default MyCase;
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import Link from 'next/link';
|
|
2
|
+
import React, { useEffect, 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 MyCase from './MyCase';
|
|
8
|
+
import { useRouter } from 'next/router';
|
|
9
|
+
import menuXIcon from '../../asset/images/header/menu_x.webp'; // 수정된 부분
|
|
10
|
+
import callLineIcon from '../../asset/images/header/h_call_line_b.webp'; // 수정된 부분
|
|
11
|
+
import newWindowIcon from '../../asset/images/header/image_b.webp'; // 수정된 부분
|
|
12
|
+
const PCMenu = ({ handleMenuToggle, opacity, menuToggle, tel, routes }) => {
|
|
13
|
+
const mobile = require('is-mobile');
|
|
14
|
+
const [isMobile, setIsMobile] = useState(false);
|
|
15
|
+
const router = useRouter();
|
|
16
|
+
//나의사건검색
|
|
17
|
+
const [isMyCaseOn, setIsMyCaseOn] = useState(false);
|
|
18
|
+
// GA 클릭이벤트
|
|
19
|
+
const menuTelClickPC = () => {
|
|
20
|
+
gtag.event({
|
|
21
|
+
action: 'menu_tel',
|
|
22
|
+
category: 'menutel',
|
|
23
|
+
label: 'PC메뉴내전화버튼',
|
|
24
|
+
value: '1'
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
//나의사건검샛
|
|
28
|
+
const onClickMyCase = () => {
|
|
29
|
+
setIsMyCaseOn(false);
|
|
30
|
+
};
|
|
31
|
+
const handleKeyPress = (e) => {
|
|
32
|
+
if (e.key === 'Enter') {
|
|
33
|
+
handleMenuToggle();
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
useEffect(() => {
|
|
37
|
+
setIsMobile(mobile());
|
|
38
|
+
}, []);
|
|
39
|
+
//페이지 내부에서 쿼리 파라미터 없이 루트 경로로 돌아갈 때 새로고침
|
|
40
|
+
const reloadUrl = (url) => {
|
|
41
|
+
if (router.pathname === url) {
|
|
42
|
+
router.push(url).then(() => {
|
|
43
|
+
router.reload();
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
return (<>
|
|
48
|
+
{isMyCaseOn ? <MyCase onClick={onClickMyCase}/> : <></>}
|
|
49
|
+
|
|
50
|
+
{/*pc 메뉴*/}
|
|
51
|
+
<div style={{ opacity, zIndex: menuToggle ? 50 : -9999, pointerEvents: menuToggle ? 'auto' : 'none' }} className={`relative max-lg:hidden`}>
|
|
52
|
+
<Image onKeyDown={handleKeyPress} tabIndex={0} src={menuXIcon} // 수정된 부분
|
|
53
|
+
width={54} height={54} alt={'메뉴'} className={`fixed right-[7.5%] top-[5%] z-[101] w-[16px] cursor-pointer max-lg:right-[3.5%] max-lg:top-[2.8%] sm:w-[18px] md:w-[20px]`} onClick={() => handleMenuToggle()}/>
|
|
54
|
+
<div className={`fixed inset-0 z-50 block bg-black bg-opacity-[55%]`} onClick={() => handleMenuToggle()}></div>
|
|
55
|
+
<div className={'fixed right-0 top-0 z-[50] h-full w-[68.5%] min-w-[320px] overflow-hidden bg-white pt-[100px]'}>
|
|
56
|
+
<div className={'flex h-full max-h-[800px] flex-col justify-between overflow-y-auto pb-[30px] text-center xl:ml-[75px] xl:w-[80%]'}>
|
|
57
|
+
{[...Array(2)].map((_, index) => {
|
|
58
|
+
return (<ul key={index} className={`flex ${index === 0 ? 'pb-[30px]' : 'mt-0'}`}>
|
|
59
|
+
{[...Array(4)].map((_, index2) => {
|
|
60
|
+
var _a;
|
|
61
|
+
return (<li key={index2} className={'mt-[11.14px] lg:float-left lg:mt-0 lg:w-3/5 '}>
|
|
62
|
+
<ul className={'inline-block w-full text-black'}>
|
|
63
|
+
<li>
|
|
64
|
+
<span className={'inline-block w-full cursor-pointer text-[1.2rem] font-[800] max-lg:pb-2 sm:text-[1.4em] md:text-[24px] lg:cursor-auto'}>
|
|
65
|
+
{routes[index2 + index * 4].name}
|
|
66
|
+
</span>
|
|
67
|
+
<div className={`mx-auto max-lg:ml-3`}>
|
|
68
|
+
<ul className={'mt-2 flex w-4/5 flex-col gap-y-3 text-sm md:mt-2 md:text-2xl lg:block lg:w-full'}>
|
|
69
|
+
{(_a = routes[index2 + index * 4].routes) === null || _a === void 0 ? void 0 : _a.map((item, index) => {
|
|
70
|
+
return (<li key={index} className={'relative'}>
|
|
71
|
+
{item.name != '나의 사건검색' ? (<Link href={item.path ? item.path : ''} onClick={() => {
|
|
72
|
+
handleMenuToggle(item.path);
|
|
73
|
+
reloadUrl(item.path
|
|
74
|
+
? item.path
|
|
75
|
+
: '');
|
|
76
|
+
}} className={'block w-1/2 pt-1 text-[18px] hover:text-[#285FA7] lg:w-full lg:py-2'} target={item.name === '통합검색' ||
|
|
77
|
+
item.name === '판결분석' ||
|
|
78
|
+
item.name ===
|
|
79
|
+
'만화로 보는 사례' ||
|
|
80
|
+
item.name === '인재채용'
|
|
81
|
+
? '_blank'
|
|
82
|
+
: '_self'}>
|
|
83
|
+
<span className={'relative w-[10em]'}>
|
|
84
|
+
{item.name}
|
|
85
|
+
{item.name === '통합검색' ||
|
|
86
|
+
item.name === '판결분석' ||
|
|
87
|
+
item.name ===
|
|
88
|
+
'만화로 보는 사례' ||
|
|
89
|
+
item.name === '인재채용' ? (<Image src={newWindowIcon} // 수정된 부분
|
|
90
|
+
alt="새창이미지" width={13} height={13} className="absolute left-[4em] top-[6px] sm:top-[5px] md:left-auto md:right-[-1.2em] md:top-[5px]"/>) : null}
|
|
91
|
+
</span>
|
|
92
|
+
</Link>) : (<span onClick={() => setIsMyCaseOn(true)} className={'block w-1/2 cursor-pointer pt-1 text-[18px] hover:text-[#285FA7] lg:w-full lg:py-2'}>
|
|
93
|
+
<span className={'relative w-[10em]'}>
|
|
94
|
+
{item.name}
|
|
95
|
+
</span>
|
|
96
|
+
</span>)}
|
|
97
|
+
</li>);
|
|
98
|
+
})}
|
|
99
|
+
</ul>
|
|
100
|
+
</div>
|
|
101
|
+
</li>
|
|
102
|
+
</ul>
|
|
103
|
+
</li>);
|
|
104
|
+
})}
|
|
105
|
+
</ul>);
|
|
106
|
+
})}
|
|
107
|
+
|
|
108
|
+
{/*전화번호*/}
|
|
109
|
+
<div className={'mt-[30px] text-left text-black max-lg:mr-4 max-lg:text-right lg:ml-[4vw] xl:ml-[2vw] 2xl:ml-[3vw] ' +
|
|
110
|
+
'flex items-center justify-start'}>
|
|
111
|
+
<Link href={`tel:${tel}`} onClick={() => {
|
|
112
|
+
insert('call', isMobile);
|
|
113
|
+
savePowerLinkConversion('call', isMobile);
|
|
114
|
+
menuTelClickPC();
|
|
115
|
+
}} className={'inline-block'}>
|
|
116
|
+
<div className={'flex items-center justify-center'}>
|
|
117
|
+
<Image src={callLineIcon} // 수정된 부분
|
|
118
|
+
width={57} height={57} alt={'전화상담'} className={'aspect-square w-[35px] lg:w-[49px] '}/>
|
|
119
|
+
<span className={'whitespace-nowrap pl-[12px] text-[24px] font-[800] lg:pl-[18px] lg:text-[32px] '}>
|
|
120
|
+
{tel}
|
|
121
|
+
</span>
|
|
122
|
+
</div>
|
|
123
|
+
</Link>
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
</div>
|
|
127
|
+
</div>
|
|
128
|
+
</>);
|
|
129
|
+
};
|
|
130
|
+
export default PCMenu;
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
import Link from 'next/link';
|
|
2
|
+
import React, { useEffect, 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
|
+
|
|
8
|
+
import MyCase from './MyCase';
|
|
9
|
+
import { useRouter } from 'next/router';
|
|
10
|
+
import { IMenuTypes } from './IMenuTypes';
|
|
11
|
+
|
|
12
|
+
import menuXIcon from '../../asset/images/header/menu_x.webp'; // 수정된 부분
|
|
13
|
+
import callLineIcon from '../../asset/images/header/h_call_line_b.webp'; // 수정된 부분
|
|
14
|
+
import newWindowIcon from '../../asset/images/header/image_b.webp'; // 수정된 부분
|
|
15
|
+
|
|
16
|
+
const PCMenu = ({ handleMenuToggle, opacity, menuToggle, tel, routes }: IMenuTypes) => {
|
|
17
|
+
const mobile = require('is-mobile');
|
|
18
|
+
const [isMobile, setIsMobile] = useState<boolean>(false);
|
|
19
|
+
|
|
20
|
+
const router = useRouter();
|
|
21
|
+
|
|
22
|
+
//나의사건검색
|
|
23
|
+
const [isMyCaseOn, setIsMyCaseOn] = useState<boolean>(false);
|
|
24
|
+
|
|
25
|
+
// GA 클릭이벤트
|
|
26
|
+
const menuTelClickPC = () => {
|
|
27
|
+
gtag.event({
|
|
28
|
+
action: 'menu_tel',
|
|
29
|
+
category: 'menutel',
|
|
30
|
+
label: 'PC메뉴내전화버튼',
|
|
31
|
+
value: '1'
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
//나의사건검샛
|
|
36
|
+
const onClickMyCase = () => {
|
|
37
|
+
setIsMyCaseOn(false);
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
const handleKeyPress = (e: any) => {
|
|
41
|
+
if (e.key === 'Enter') {
|
|
42
|
+
handleMenuToggle();
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
useEffect(() => {
|
|
47
|
+
setIsMobile(mobile());
|
|
48
|
+
}, []);
|
|
49
|
+
|
|
50
|
+
//페이지 내부에서 쿼리 파라미터 없이 루트 경로로 돌아갈 때 새로고침
|
|
51
|
+
const reloadUrl = (url: string) => {
|
|
52
|
+
if (router.pathname === url) {
|
|
53
|
+
router.push(url).then(() => {
|
|
54
|
+
router.reload();
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
return (
|
|
60
|
+
<>
|
|
61
|
+
{isMyCaseOn ? <MyCase onClick={onClickMyCase} /> : <></>}
|
|
62
|
+
|
|
63
|
+
{/*pc 메뉴*/}
|
|
64
|
+
<div
|
|
65
|
+
style={{ opacity, zIndex: menuToggle ? 50 : -9999, pointerEvents: menuToggle ? 'auto' : 'none' }}
|
|
66
|
+
className={`relative max-lg:hidden`}
|
|
67
|
+
>
|
|
68
|
+
<Image
|
|
69
|
+
onKeyDown={handleKeyPress}
|
|
70
|
+
tabIndex={0}
|
|
71
|
+
src={menuXIcon} // 수정된 부분
|
|
72
|
+
width={54}
|
|
73
|
+
height={54}
|
|
74
|
+
alt={'메뉴'}
|
|
75
|
+
className={`fixed right-[7.5%] top-[5%] z-[101] w-[16px] cursor-pointer max-lg:right-[3.5%] max-lg:top-[2.8%] sm:w-[18px] md:w-[20px]`}
|
|
76
|
+
onClick={() => handleMenuToggle()}
|
|
77
|
+
/>
|
|
78
|
+
<div
|
|
79
|
+
className={`fixed inset-0 z-50 block bg-black bg-opacity-[55%]`}
|
|
80
|
+
onClick={() => handleMenuToggle()}
|
|
81
|
+
></div>
|
|
82
|
+
<div
|
|
83
|
+
className={
|
|
84
|
+
'fixed right-0 top-0 z-[50] h-full w-[68.5%] min-w-[320px] overflow-hidden bg-white pt-[100px]'
|
|
85
|
+
}
|
|
86
|
+
>
|
|
87
|
+
<div
|
|
88
|
+
className={
|
|
89
|
+
'flex h-full max-h-[800px] flex-col justify-between overflow-y-auto pb-[30px] text-center xl:ml-[75px] xl:w-[80%]'
|
|
90
|
+
}
|
|
91
|
+
>
|
|
92
|
+
{[...Array(2)].map((_, index) => {
|
|
93
|
+
return (
|
|
94
|
+
<ul key={index} className={`flex ${index === 0 ? 'pb-[30px]' : 'mt-0'}`}>
|
|
95
|
+
{[...Array(4)].map((_, index2) => {
|
|
96
|
+
return (
|
|
97
|
+
<li key={index2} className={'mt-[11.14px] lg:float-left lg:mt-0 lg:w-3/5 '}>
|
|
98
|
+
<ul className={'inline-block w-full text-black'}>
|
|
99
|
+
<li>
|
|
100
|
+
<span
|
|
101
|
+
className={
|
|
102
|
+
'inline-block w-full cursor-pointer text-[1.2rem] font-[800] max-lg:pb-2 sm:text-[1.4em] md:text-[24px] lg:cursor-auto'
|
|
103
|
+
}
|
|
104
|
+
>
|
|
105
|
+
{routes[index2 + index * 4].name}
|
|
106
|
+
</span>
|
|
107
|
+
<div className={`mx-auto max-lg:ml-3`}>
|
|
108
|
+
<ul
|
|
109
|
+
className={
|
|
110
|
+
'mt-2 flex w-4/5 flex-col gap-y-3 text-sm md:mt-2 md:text-2xl lg:block lg:w-full'
|
|
111
|
+
}
|
|
112
|
+
>
|
|
113
|
+
{routes[index2 + index * 4].routes?.map(
|
|
114
|
+
(item, index) => {
|
|
115
|
+
return (
|
|
116
|
+
<li key={index} className={'relative'}>
|
|
117
|
+
{item.name != '나의 사건검색' ? (
|
|
118
|
+
<Link
|
|
119
|
+
href={
|
|
120
|
+
item.path ? item.path : ''
|
|
121
|
+
}
|
|
122
|
+
onClick={() => {
|
|
123
|
+
handleMenuToggle(item.path);
|
|
124
|
+
reloadUrl(
|
|
125
|
+
item.path
|
|
126
|
+
? item.path
|
|
127
|
+
: ''
|
|
128
|
+
);
|
|
129
|
+
}}
|
|
130
|
+
className={
|
|
131
|
+
'block w-1/2 pt-1 text-[18px] hover:text-[#285FA7] lg:w-full lg:py-2'
|
|
132
|
+
}
|
|
133
|
+
target={
|
|
134
|
+
item.name === '통합검색' ||
|
|
135
|
+
item.name === '판결분석' ||
|
|
136
|
+
item.name ===
|
|
137
|
+
'만화로 보는 사례' ||
|
|
138
|
+
item.name === '인재채용'
|
|
139
|
+
? '_blank'
|
|
140
|
+
: '_self'
|
|
141
|
+
}
|
|
142
|
+
>
|
|
143
|
+
<span
|
|
144
|
+
className={
|
|
145
|
+
'relative w-[10em]'
|
|
146
|
+
}
|
|
147
|
+
>
|
|
148
|
+
{item.name}
|
|
149
|
+
{item.name === '통합검색' ||
|
|
150
|
+
item.name === '판결분석' ||
|
|
151
|
+
item.name ===
|
|
152
|
+
'만화로 보는 사례' ||
|
|
153
|
+
item.name === '인재채용' ? (
|
|
154
|
+
<Image
|
|
155
|
+
src={newWindowIcon} // 수정된 부분
|
|
156
|
+
alt="새창이미지"
|
|
157
|
+
width={13}
|
|
158
|
+
height={13}
|
|
159
|
+
className="absolute left-[4em] top-[6px] sm:top-[5px] md:left-auto md:right-[-1.2em] md:top-[5px]"
|
|
160
|
+
/>
|
|
161
|
+
) : null}
|
|
162
|
+
</span>
|
|
163
|
+
</Link>
|
|
164
|
+
) : (
|
|
165
|
+
<span
|
|
166
|
+
onClick={() =>
|
|
167
|
+
setIsMyCaseOn(true)
|
|
168
|
+
}
|
|
169
|
+
className={
|
|
170
|
+
'block w-1/2 cursor-pointer pt-1 text-[18px] hover:text-[#285FA7] lg:w-full lg:py-2'
|
|
171
|
+
}
|
|
172
|
+
>
|
|
173
|
+
<span
|
|
174
|
+
className={
|
|
175
|
+
'relative w-[10em]'
|
|
176
|
+
}
|
|
177
|
+
>
|
|
178
|
+
{item.name}
|
|
179
|
+
</span>
|
|
180
|
+
</span>
|
|
181
|
+
)}
|
|
182
|
+
</li>
|
|
183
|
+
);
|
|
184
|
+
}
|
|
185
|
+
)}
|
|
186
|
+
</ul>
|
|
187
|
+
</div>
|
|
188
|
+
</li>
|
|
189
|
+
</ul>
|
|
190
|
+
</li>
|
|
191
|
+
);
|
|
192
|
+
})}
|
|
193
|
+
</ul>
|
|
194
|
+
);
|
|
195
|
+
})}
|
|
196
|
+
|
|
197
|
+
{/*전화번호*/}
|
|
198
|
+
<div
|
|
199
|
+
className={
|
|
200
|
+
'mt-[30px] text-left text-black max-lg:mr-4 max-lg:text-right lg:ml-[4vw] xl:ml-[2vw] 2xl:ml-[3vw] ' +
|
|
201
|
+
'flex items-center justify-start'
|
|
202
|
+
}
|
|
203
|
+
>
|
|
204
|
+
<Link
|
|
205
|
+
href={`tel:${tel}`}
|
|
206
|
+
onClick={() => {
|
|
207
|
+
insert('call', isMobile);
|
|
208
|
+
savePowerLinkConversion('call', isMobile);
|
|
209
|
+
menuTelClickPC();
|
|
210
|
+
}}
|
|
211
|
+
className={'inline-block'}
|
|
212
|
+
>
|
|
213
|
+
<div className={'flex items-center justify-center'}>
|
|
214
|
+
<Image
|
|
215
|
+
src={callLineIcon} // 수정된 부분
|
|
216
|
+
width={57}
|
|
217
|
+
height={57}
|
|
218
|
+
alt={'전화상담'}
|
|
219
|
+
className={'aspect-square w-[35px] lg:w-[49px] '}
|
|
220
|
+
/>
|
|
221
|
+
<span
|
|
222
|
+
className={
|
|
223
|
+
'whitespace-nowrap pl-[12px] text-[24px] font-[800] lg:pl-[18px] lg:text-[32px] '
|
|
224
|
+
}
|
|
225
|
+
>
|
|
226
|
+
{tel}
|
|
227
|
+
</span>
|
|
228
|
+
</div>
|
|
229
|
+
</Link>
|
|
230
|
+
</div>
|
|
231
|
+
</div>
|
|
232
|
+
</div>
|
|
233
|
+
</div>
|
|
234
|
+
</>
|
|
235
|
+
);
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
export default PCMenu;
|
|
@@ -1992,3 +1992,44 @@ export const categoryListExample = [
|
|
|
1992
1992
|
title: '손해배상'
|
|
1993
1993
|
}
|
|
1994
1994
|
];
|
|
1995
|
+
export const imageLogoData = [
|
|
1996
|
+
{
|
|
1997
|
+
logo: 'rol_logo_01.webp',
|
|
1998
|
+
style: '!w-[86px] ',
|
|
1999
|
+
url: 'https://www.ccourt.go.kr',
|
|
2000
|
+
name: '헌법재판소',
|
|
2001
|
+
sizes: '86px'
|
|
2002
|
+
},
|
|
2003
|
+
{ logo: 'rol_logo_02.webp', style: '!w-[56px] ', url: 'https://www.kipo.go.kr', name: '특허청', sizes: '86px' },
|
|
2004
|
+
{ logo: 'rol_logo_03.webp', style: '!w-[83px] ', url: 'https://www.police.go.kr', name: '경찰청', sizes: '86px' },
|
|
2005
|
+
{ logo: 'rol_logo_04.webp', style: '!w-[86px] ', url: 'https://www.spo.go.kr', name: '검찰', sizes: '86px' },
|
|
2006
|
+
{ logo: 'rol_logo_05.webp', style: '!w-[57px] ', url: 'https://moj.go.kr', name: '법무부', sizes: '86px' },
|
|
2007
|
+
{
|
|
2008
|
+
logo: 'rol_logo_06.webp',
|
|
2009
|
+
style: '!w-[82px] ',
|
|
2010
|
+
url: 'https://www.scourt.go.kr',
|
|
2011
|
+
name: '대힌민국법원',
|
|
2012
|
+
sizes: '86px'
|
|
2013
|
+
},
|
|
2014
|
+
{
|
|
2015
|
+
logo: 'rol_logo_07.webp',
|
|
2016
|
+
style: '!w-[55px] ',
|
|
2017
|
+
url: 'https://www.mofa.go.kr',
|
|
2018
|
+
name: '대한민국외교부',
|
|
2019
|
+
sizes: '86px'
|
|
2020
|
+
},
|
|
2021
|
+
{
|
|
2022
|
+
logo: 'rol_logo_08.webp',
|
|
2023
|
+
style: '!w-[116px] ',
|
|
2024
|
+
url: 'https://www.law.go.kr',
|
|
2025
|
+
name: '국가법령정보센터',
|
|
2026
|
+
sizes: '86px'
|
|
2027
|
+
},
|
|
2028
|
+
{
|
|
2029
|
+
logo: 'rol_logo_09.webp',
|
|
2030
|
+
style: '!w-[58px] !h-[83px]',
|
|
2031
|
+
url: 'https://www.gov.kr/yearend_main.html',
|
|
2032
|
+
name: '법무부',
|
|
2033
|
+
sizes: '86px'
|
|
2034
|
+
}
|
|
2035
|
+
];
|
|
@@ -1997,3 +1997,45 @@ export const categoryListExample = [
|
|
|
1997
1997
|
title: '손해배상'
|
|
1998
1998
|
}
|
|
1999
1999
|
];
|
|
2000
|
+
|
|
2001
|
+
export const imageLogoData = [
|
|
2002
|
+
{
|
|
2003
|
+
logo: 'rol_logo_01.webp',
|
|
2004
|
+
style: '!w-[86px] ',
|
|
2005
|
+
url: 'https://www.ccourt.go.kr',
|
|
2006
|
+
name: '헌법재판소',
|
|
2007
|
+
sizes: '86px'
|
|
2008
|
+
},
|
|
2009
|
+
{ logo: 'rol_logo_02.webp', style: '!w-[56px] ', url: 'https://www.kipo.go.kr', name: '특허청', sizes: '86px' },
|
|
2010
|
+
{ logo: 'rol_logo_03.webp', style: '!w-[83px] ', url: 'https://www.police.go.kr', name: '경찰청', sizes: '86px' },
|
|
2011
|
+
{ logo: 'rol_logo_04.webp', style: '!w-[86px] ', url: 'https://www.spo.go.kr', name: '검찰', sizes: '86px' },
|
|
2012
|
+
{ logo: 'rol_logo_05.webp', style: '!w-[57px] ', url: 'https://moj.go.kr', name: '법무부', sizes: '86px' },
|
|
2013
|
+
{
|
|
2014
|
+
logo: 'rol_logo_06.webp',
|
|
2015
|
+
style: '!w-[82px] ',
|
|
2016
|
+
url: 'https://www.scourt.go.kr',
|
|
2017
|
+
name: '대힌민국법원',
|
|
2018
|
+
sizes: '86px'
|
|
2019
|
+
},
|
|
2020
|
+
{
|
|
2021
|
+
logo: 'rol_logo_07.webp',
|
|
2022
|
+
style: '!w-[55px] ',
|
|
2023
|
+
url: 'https://www.mofa.go.kr',
|
|
2024
|
+
name: '대한민국외교부',
|
|
2025
|
+
sizes: '86px'
|
|
2026
|
+
},
|
|
2027
|
+
{
|
|
2028
|
+
logo: 'rol_logo_08.webp',
|
|
2029
|
+
style: '!w-[116px] ',
|
|
2030
|
+
url: 'https://www.law.go.kr',
|
|
2031
|
+
name: '국가법령정보센터',
|
|
2032
|
+
sizes: '86px'
|
|
2033
|
+
},
|
|
2034
|
+
{
|
|
2035
|
+
logo: 'rol_logo_09.webp',
|
|
2036
|
+
style: '!w-[58px] !h-[83px]',
|
|
2037
|
+
url: 'https://www.gov.kr/yearend_main.html',
|
|
2038
|
+
name: '법무부',
|
|
2039
|
+
sizes: '86px'
|
|
2040
|
+
}
|
|
2041
|
+
];
|
package/dist/components/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
// import '../styles/globals.css'
|
|
2
1
|
export { default as Footer } from './Footer';
|
|
3
2
|
export { default as Fix } from './Fix';
|
|
4
3
|
export { default as TopBanner } from './banner/TopBanner';
|
|
5
4
|
export { default as MapFix } from './MapFix/MapFix';
|
|
6
5
|
export { default as CategoryView } from './categoryView/CategoryView';
|
|
7
6
|
export { default as CountingSection } from './CountingSection/CountingSection';
|
|
7
|
+
export { default as LogoSection } from './LogoSection/LogoSection';
|
package/dist/components/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
// import '../styles/globals.css'
|
|
2
1
|
export { default as Footer } from './Footer';
|
|
3
2
|
export { default as Fix } from './Fix';
|
|
4
3
|
export { default as TopBanner } from './banner/TopBanner';
|
|
5
4
|
export { default as MapFix } from './MapFix/MapFix';
|
|
6
5
|
export { default as CategoryView } from './categoryView/CategoryView';
|
|
7
6
|
export { default as CountingSection } from './CountingSection/CountingSection';
|
|
7
|
+
export { default as LogoSection } from './LogoSection/LogoSection';
|