@daeryun/dr_components 0.4.95 → 0.4.98
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/head_link.svg +3 -0
- package/dist/components/Header/HeaderWrapper.d.ts +8 -0
- package/dist/components/Header/HeaderWrapper.jsx +8 -0
- package/dist/components/Header/HeaderWrapper.tsx +22 -0
- package/dist/components/Header/MobileHeader.jsx +3 -3
- package/dist/components/Header/MobileHeader.tsx +3 -3
- package/dist/components/Header/PcHeader.jsx +6 -4
- package/dist/components/Header/PcHeader.tsx +13 -4
- package/dist/components/index.js +2 -0
- package/dist/components/index.ts +2 -0
- package/dist/components/page/LawyerDetail/BasicInfo.d.ts +8 -0
- package/dist/components/page/LawyerDetail/BasicInfo.jsx +127 -0
- package/dist/components/page/LawyerDetail/BasicInfo.tsx +265 -0
- package/dist/components/page/LawyerDetail/CareerList.d.ts +20 -0
- package/dist/components/page/LawyerDetail/CareerList.jsx +289 -0
- package/dist/components/page/LawyerDetail/CareerList.tsx +544 -0
- package/dist/components/page/LawyerDetail/ILawyerDetailTypes.d.ts +48 -0
- package/dist/components/page/LawyerDetail/ILawyerDetailTypes.jsx +1 -0
- package/dist/components/page/LawyerDetail/ILawyerDetailTypes.tsx +53 -0
- package/dist/components/page/LawyerDetail/Introduce.d.ts +7 -0
- package/dist/components/page/LawyerDetail/Introduce.jsx +25 -0
- package/dist/components/page/LawyerDetail/Introduce.tsx +41 -0
- package/dist/components/page/LawyerDetail/LawyerDetail.d.ts +11 -0
- package/dist/components/page/LawyerDetail/LawyerDetail.jsx +117 -0
- package/dist/components/page/LawyerDetail/LawyerDetail.stories.d.ts +6 -0
- package/dist/components/page/LawyerDetail/LawyerDetail.stories.jsx +2485 -0
- package/dist/components/page/LawyerDetail/LawyerDetail.stories.tsx +2495 -0
- package/dist/components/page/LawyerDetail/LawyerDetail.tsx +180 -0
- package/dist/components/page/LawyerDetail/MobileRelatedPage.d.ts +10 -0
- package/dist/components/page/LawyerDetail/MobileRelatedPage.jsx +45 -0
- package/dist/components/page/LawyerDetail/MobileRelatedPage.tsx +118 -0
- package/dist/components/page/LawyerDetail/MobileSpeciality.d.ts +9 -0
- package/dist/components/page/LawyerDetail/MobileSpeciality.jsx +59 -0
- package/dist/components/page/LawyerDetail/MobileSpeciality.tsx +113 -0
- package/dist/components/page/LawyerDetail/MobileTabButton.d.ts +5 -0
- package/dist/components/page/LawyerDetail/MobileTabButton.jsx +20 -0
- package/dist/components/page/LawyerDetail/MobileTabButton.tsx +35 -0
- package/dist/components/page/LawyerDetail/PcTabButton.d.ts +8 -0
- package/dist/components/page/LawyerDetail/PcTabButton.jsx +102 -0
- package/dist/components/page/LawyerDetail/PcTabButton.tsx +182 -0
- package/dist/components/page/LawyerDetail/detail.module.css +602 -0
- package/dist/styles/globals.css +692 -4
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 15.561 15.561">
|
|
2
|
+
<path id="Icon_akar-link-out" data-name="Icon akar-link-out" d="M12.521,10.229,18.25,4.5m-3.819,0H18.25V8.319m0,4.583v3.819a1.528,1.528,0,0,1-1.528,1.528H6.028A1.528,1.528,0,0,1,4.5,16.722V6.028A1.528,1.528,0,0,1,6.028,4.5H9.847" transform="translate(-3.75 -3.439)" fill="none" stroke="current" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
const HeaderWrapper = ({ children, className = '' }) => {
|
|
3
|
+
return (<div className={'relative mx-auto w-full max-w-[1920px] px-[40px] max-[2120px]:px-[140px] max-3xl:px-[80px] max-xl:w-[100%] max-lg:px-[60px] max-sm:px-5 ' +
|
|
4
|
+
(className ? className : '')}>
|
|
5
|
+
{children}
|
|
6
|
+
</div>);
|
|
7
|
+
};
|
|
8
|
+
export default HeaderWrapper;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
interface HeaderWrapperProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
noPaddingY?: boolean;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const HeaderWrapper: React.FC<HeaderWrapperProps> = ({ children, className = '' }) => {
|
|
10
|
+
return (
|
|
11
|
+
<div
|
|
12
|
+
className={
|
|
13
|
+
'relative mx-auto w-full max-w-[1920px] px-[40px] max-[2120px]:px-[140px] max-3xl:px-[80px] max-xl:w-[100%] max-lg:px-[60px] max-sm:px-5 ' +
|
|
14
|
+
(className ? className : '')
|
|
15
|
+
}
|
|
16
|
+
>
|
|
17
|
+
{children}
|
|
18
|
+
</div>
|
|
19
|
+
);
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export default HeaderWrapper;
|
|
@@ -12,7 +12,7 @@ import Link from 'next/link';
|
|
|
12
12
|
import Image from 'next/image';
|
|
13
13
|
import React from 'react';
|
|
14
14
|
import { useRouter } from 'next/navigation';
|
|
15
|
-
import
|
|
15
|
+
import HeaderWrapper from './HeaderWrapper';
|
|
16
16
|
import SearchWhite from '../../asset/images/header/search_white.webp';
|
|
17
17
|
import SearchBlack from '../../asset/images/header/search_black.webp';
|
|
18
18
|
import MenuWhite from '../../asset/images/header/h_menu.webp';
|
|
@@ -22,7 +22,7 @@ const MobileHeader = ({ isMain, isTop, handleMenuToggle, centerName }) => {
|
|
|
22
22
|
return (<header className={'relative h-[70px] w-full transition-colors duration-300 sm:hidden ' +
|
|
23
23
|
`${isMain && isTop ? '' : 'bg-white shadow-sm '}` +
|
|
24
24
|
`${isMain ? 'bg-opacity-90 ' : 'border-b-[2px] border-solid border-[#e5e7eb] '}`}>
|
|
25
|
-
<
|
|
25
|
+
<HeaderWrapper className={'flex h-full w-full items-center justify-between'}>
|
|
26
26
|
<Link href={`/`} className={'shrink-0'}>
|
|
27
27
|
<Image src={`${process.env.NEXT_PUBLIC_S3_URL}/logo/${centerName}${isTop && isMain ? '_w' : ''}.webp`} alt="법무법인(유한)대륜" width={isTop ? 216 : 432} priority height={isTop ? 33 : 67} className={'h-[25px] w-auto '}/>
|
|
28
28
|
{isMain && <h1 className={'hidden'}>변호사 | 법률상담은 법무법인(유한) 대륜</h1>}
|
|
@@ -41,7 +41,7 @@ const MobileHeader = ({ isMain, isTop, handleMenuToggle, centerName }) => {
|
|
|
41
41
|
<Image id={'menu'} src={isTop && isMain ? MenuWhite : MenuBlack} alt="전체메뉴 열기" width={38} height={20} className={'h-full w-full object-contain'}/>
|
|
42
42
|
</button>
|
|
43
43
|
</span>
|
|
44
|
-
</
|
|
44
|
+
</HeaderWrapper>
|
|
45
45
|
</header>);
|
|
46
46
|
};
|
|
47
47
|
export default MobileHeader;
|
|
@@ -4,7 +4,7 @@ import Link from 'next/link';
|
|
|
4
4
|
import Image from 'next/image';
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { useRouter } from 'next/navigation';
|
|
7
|
-
import
|
|
7
|
+
import HeaderWrapper from './HeaderWrapper';
|
|
8
8
|
|
|
9
9
|
import SearchWhite from '../../asset/images/header/search_white.webp';
|
|
10
10
|
import SearchBlack from '../../asset/images/header/search_black.webp';
|
|
@@ -32,7 +32,7 @@ const MobileHeader = ({
|
|
|
32
32
|
`${isMain ? 'bg-opacity-90 ' : 'border-b-[2px] border-solid border-[#e5e7eb] '}`
|
|
33
33
|
}
|
|
34
34
|
>
|
|
35
|
-
<
|
|
35
|
+
<HeaderWrapper className={'flex h-full w-full items-center justify-between'}>
|
|
36
36
|
<Link href={`/`} className={'shrink-0'}>
|
|
37
37
|
<Image
|
|
38
38
|
src={`${process.env.NEXT_PUBLIC_S3_URL}/logo/${centerName}${isTop && isMain ? '_w' : ''}.webp`}
|
|
@@ -78,7 +78,7 @@ const MobileHeader = ({
|
|
|
78
78
|
/>
|
|
79
79
|
</button>
|
|
80
80
|
</span>
|
|
81
|
-
</
|
|
81
|
+
</HeaderWrapper>
|
|
82
82
|
</header>
|
|
83
83
|
);
|
|
84
84
|
};
|
|
@@ -10,13 +10,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
import { usePathname, useRouter } from 'next/navigation';
|
|
12
12
|
import { useEffect, useRef, useState } from 'react';
|
|
13
|
-
import
|
|
13
|
+
import HeaderWrapper from './HeaderWrapper';
|
|
14
14
|
import Link from 'next/link';
|
|
15
15
|
import Image from 'next/image';
|
|
16
16
|
import SearchWhite from '../../asset/images/header/search_white.webp';
|
|
17
17
|
import SearchBlack from '../../asset/images/header/search_black.webp';
|
|
18
18
|
import MenuWhite from '../../asset/images/header/h_menu.webp';
|
|
19
19
|
import MenuBlack from '../../asset/images/header/h_menu_b.webp';
|
|
20
|
+
import IconNewLink from '../../asset/images/header/head_link.svg';
|
|
20
21
|
const PcHeader = ({ pcRoutes, isMain, isTop, menuToggle, handleMenuToggle, centerName }) => {
|
|
21
22
|
const router = useRouter();
|
|
22
23
|
const pathname = usePathname();
|
|
@@ -51,7 +52,7 @@ const PcHeader = ({ pcRoutes, isMain, isTop, menuToggle, handleMenuToggle, cente
|
|
|
51
52
|
{/*하단배경 (세부 nav)*/}
|
|
52
53
|
<div className={'z-1 absolute bottom-0 left-0 h-[calc(100%-80px)] w-full transition-colors duration-300 ' +
|
|
53
54
|
`${isHover ? 'bg-[#545454] bg-opacity-90 ' : ''}`}/>
|
|
54
|
-
<
|
|
55
|
+
<HeaderWrapper className={'flex min-h-[80px] items-start justify-between pt-[22px] ' +
|
|
55
56
|
//1024px
|
|
56
57
|
'max-lg:items-center max-lg:pt-0 '}>
|
|
57
58
|
<Link href={`/`} className={'shrink-0'}>
|
|
@@ -79,11 +80,12 @@ const PcHeader = ({ pcRoutes, isMain, isTop, menuToggle, handleMenuToggle, cente
|
|
|
79
80
|
{pcRoute.name}
|
|
80
81
|
</Link>
|
|
81
82
|
{pcRoute.routes.map(inRoute => (<Link key={'in_route_' + inRoute.name} href={inRoute.path} target={inRoute.newTab ? '_blank' : ''} className={'break-keep text-center text-[16px] font-[500] leading-[1.2] tracking-[-0.6px] text-[#C4C4C4] transition-opacity ' +
|
|
82
|
-
'hover:
|
|
83
|
+
'hover:text-white ' +
|
|
83
84
|
`${isHover ? '' : 'opacity-0 '}` +
|
|
84
85
|
//1280px
|
|
85
86
|
'max-xl:text-[14px] '}>
|
|
86
87
|
{inRoute.name}
|
|
88
|
+
{inRoute.newTab ? (<IconNewLink stroke={'#fff'} className={'mb-1 ml-1 inline aspect-square w-[12px]'}/>) : (<></>)}
|
|
87
89
|
</Link>))}
|
|
88
90
|
</span>))}
|
|
89
91
|
</span>
|
|
@@ -104,7 +106,7 @@ const PcHeader = ({ pcRoutes, isMain, isTop, menuToggle, handleMenuToggle, cente
|
|
|
104
106
|
<Image id={'menu'} src={isMain || isHover || menuToggle ? MenuWhite : MenuBlack} alt="전체메뉴 열기" width={38} height={20} className={'h-full w-full object-contain'}/>
|
|
105
107
|
</button>
|
|
106
108
|
</span>
|
|
107
|
-
</
|
|
109
|
+
</HeaderWrapper>
|
|
108
110
|
</header>);
|
|
109
111
|
};
|
|
110
112
|
export default PcHeader;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { IRoute } from '../common';
|
|
4
4
|
import { usePathname, useRouter } from 'next/navigation';
|
|
5
5
|
import { useEffect, useRef, useState } from 'react';
|
|
6
|
-
import
|
|
6
|
+
import HeaderWrapper from './HeaderWrapper';
|
|
7
7
|
import Link from 'next/link';
|
|
8
8
|
import Image from 'next/image';
|
|
9
9
|
|
|
@@ -11,6 +11,7 @@ import SearchWhite from '../../asset/images/header/search_white.webp';
|
|
|
11
11
|
import SearchBlack from '../../asset/images/header/search_black.webp';
|
|
12
12
|
import MenuWhite from '../../asset/images/header/h_menu.webp';
|
|
13
13
|
import MenuBlack from '../../asset/images/header/h_menu_b.webp';
|
|
14
|
+
import IconNewLink from '../../asset/images/header/head_link.svg';
|
|
14
15
|
|
|
15
16
|
const PcHeader = ({
|
|
16
17
|
pcRoutes,
|
|
@@ -77,7 +78,7 @@ const PcHeader = ({
|
|
|
77
78
|
`${isHover ? 'bg-[#545454] bg-opacity-90 ' : ''}`
|
|
78
79
|
}
|
|
79
80
|
/>
|
|
80
|
-
<
|
|
81
|
+
<HeaderWrapper
|
|
81
82
|
className={
|
|
82
83
|
'flex min-h-[80px] items-start justify-between pt-[22px] ' +
|
|
83
84
|
//1024px
|
|
@@ -142,13 +143,21 @@ const PcHeader = ({
|
|
|
142
143
|
target={inRoute.newTab ? '_blank' : ''}
|
|
143
144
|
className={
|
|
144
145
|
'break-keep text-center text-[16px] font-[500] leading-[1.2] tracking-[-0.6px] text-[#C4C4C4] transition-opacity ' +
|
|
145
|
-
'hover:
|
|
146
|
+
'hover:text-white ' +
|
|
146
147
|
`${isHover ? '' : 'opacity-0 '}` +
|
|
147
148
|
//1280px
|
|
148
149
|
'max-xl:text-[14px] '
|
|
149
150
|
}
|
|
150
151
|
>
|
|
151
152
|
{inRoute.name}
|
|
153
|
+
{inRoute.newTab ? (
|
|
154
|
+
<IconNewLink
|
|
155
|
+
stroke={'#fff'}
|
|
156
|
+
className={'mb-1 ml-1 inline aspect-square w-[12px]'}
|
|
157
|
+
/>
|
|
158
|
+
) : (
|
|
159
|
+
<></>
|
|
160
|
+
)}
|
|
152
161
|
</Link>
|
|
153
162
|
))}
|
|
154
163
|
</span>
|
|
@@ -195,7 +204,7 @@ const PcHeader = ({
|
|
|
195
204
|
/>
|
|
196
205
|
</button>
|
|
197
206
|
</span>
|
|
198
|
-
</
|
|
207
|
+
</HeaderWrapper>
|
|
199
208
|
</header>
|
|
200
209
|
);
|
|
201
210
|
};
|
package/dist/components/index.js
CHANGED
|
@@ -23,3 +23,5 @@ export { default as useAppLoginDetect } from './page/Login/_hooks/useAppLoginDet
|
|
|
23
23
|
export { default as checkThirdPartyCookie } from './page/Login/_api/checkThirdPartyCookie';
|
|
24
24
|
export { default as AppHeaderContainer } from './page/Login/AppHeaderContainer';
|
|
25
25
|
export { default as ChannelTalk } from './ChannelTalk/ChannelTalk';
|
|
26
|
+
export { default as PcHeader } from './Header/PcHeader';
|
|
27
|
+
export { default as MobileHeader } from './Header/MobileHeader';
|
package/dist/components/index.ts
CHANGED
|
@@ -26,3 +26,5 @@ export { default as useAppLoginDetect } from './page/Login/_hooks/useAppLoginDet
|
|
|
26
26
|
export { default as checkThirdPartyCookie } from './page/Login/_api/checkThirdPartyCookie';
|
|
27
27
|
export { default as AppHeaderContainer } from './page/Login/AppHeaderContainer';
|
|
28
28
|
export { default as ChannelTalk } from './ChannelTalk/ChannelTalk';
|
|
29
|
+
export { default as PcHeader } from './Header/PcHeader';
|
|
30
|
+
export { default as MobileHeader } from './Header/MobileHeader';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ILawyer } from './ILawyerDetailTypes';
|
|
3
|
+
declare const BasicInfo: ({ lawyerInfo, codeList, integrateSearch }: {
|
|
4
|
+
lawyerInfo: ILawyer;
|
|
5
|
+
codeList: any[];
|
|
6
|
+
integrateSearch: string;
|
|
7
|
+
}) => React.JSX.Element;
|
|
8
|
+
export default BasicInfo;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import Image from 'next/image';
|
|
2
|
+
import Link from 'next/link';
|
|
3
|
+
import React, { useEffect, useState } from 'react';
|
|
4
|
+
import { insert } from '../../../lib/conversion';
|
|
5
|
+
import * as gtag from '../../../lib/gtag';
|
|
6
|
+
import mobile from 'is-mobile';
|
|
7
|
+
import { searchColorLawyerText } from '../../common/integrate';
|
|
8
|
+
const BasicInfo = ({ lawyerInfo, codeList, integrateSearch }) => {
|
|
9
|
+
const imagePath = process.env.NEXT_PUBLIC_S3_URL + '';
|
|
10
|
+
const lawyerImagePath = imagePath + '/upload/lawyer';
|
|
11
|
+
const [isMobile, setIsMobile] = useState(false);
|
|
12
|
+
const handleOnClickLawyerTel = () => {
|
|
13
|
+
if (isMobile) {
|
|
14
|
+
insert('lawyer_tel', isMobile);
|
|
15
|
+
gtag.event({
|
|
16
|
+
action: 'lawyer_tel',
|
|
17
|
+
category: 'tel',
|
|
18
|
+
label: '변호사 전화버튼',
|
|
19
|
+
value: '1'
|
|
20
|
+
});
|
|
21
|
+
try {
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
AM_PL('/lawyer_tel');
|
|
24
|
+
}
|
|
25
|
+
catch (e) { }
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
useEffect(() => {
|
|
29
|
+
const is_mobile = mobile();
|
|
30
|
+
setIsMobile(is_mobile);
|
|
31
|
+
}, []);
|
|
32
|
+
return (<div className={'relative w-full pb-[120px] max-md:pb-0'}>
|
|
33
|
+
{/*#F8F8F8 배경 768px부터 hidden*/}
|
|
34
|
+
<div className={'absolute bottom-0 h-[386px] w-full bg-[#F8F8F8] max-md:hidden'}></div>
|
|
35
|
+
|
|
36
|
+
<div className={'relative mx-auto max-w-screen-2xl'}>
|
|
37
|
+
<div className={'relative mx-auto h-[630px] w-[90%] max-xl:h-[580px] max-lg:h-[500px] max-md2:h-[450px] max-md:w-full max-xs:h-[360px]'}>
|
|
38
|
+
<Image src={'https://d1tgonli21s4df.cloudfront.net/lawyer/bg_pc.webp'} alt={'변호사 리스트 배경'} fill className={'object-cover max-sm:hidden'}/>
|
|
39
|
+
<Image src={'https://d1tgonli21s4df.cloudfront.net/lawyer/bg_pc.webp'} alt={'변호사 리스트 배경'} fill className={'object-cover sm:hidden'}/>
|
|
40
|
+
{/*변호사 이미지*/}
|
|
41
|
+
<div className={'absolute bottom-0 left-[50px] h-[569px] w-[515px] overflow-hidden max-xl:h-[510px] max-lg:h-[450px] max-md:left-1/2 max-md:h-[400px] max-md:-translate-x-1/2 max-xs:h-[317px] max-xs:w-[286px]'}>
|
|
42
|
+
<Image src={`${lawyerImagePath}/${lawyerInfo.nukki}`} alt={lawyerInfo.l_name + ' 변호사'} title={lawyerInfo.l_name + ' 변호사'} unoptimized={true} priority={true} sizes="(max-width: 700px)" fill className={'translate-y-7 scale-110 object-contain max-xl:translate-y-5 max-md:object-center max-xs:translate-y-3'}/>
|
|
43
|
+
</div>
|
|
44
|
+
{/*h1 sr_only*/}
|
|
45
|
+
<h1 className={'sr-only'}>
|
|
46
|
+
{lawyerInfo.l_name}{' '}
|
|
47
|
+
{codeList.filter((item) => item.code === lawyerInfo.lawyer_code)[0].code_name}
|
|
48
|
+
</h1>
|
|
49
|
+
{/*이름 pc*/}
|
|
50
|
+
<p className={'absolute bottom-[128px] right-[100px] z-10 text-right max-xl:bottom-[100px] max-lg:bottom-20 max-lg:right-20 max-md2:bottom-[60px] max-md2:right-[60px] max-md:hidden'}>
|
|
51
|
+
<span className={'mb-1 block text-[70px] font-[800] leading-[1.14] tracking-[-0.9px] max-xl:text-[64px] max-lg:text-[60px] max-md2:mb-0 max-md2:text-[54px] max-xs:text-[40px] '}>
|
|
52
|
+
{searchColorLawyerText(lawyerInfo.l_name, integrateSearch)}
|
|
53
|
+
</span>
|
|
54
|
+
{lawyerInfo.l_position ? (<span className={'text-[28px] font-[500] leading-[1.42] tracking-[-0.7px] ' +
|
|
55
|
+
'max-xl:text-[26px] ' +
|
|
56
|
+
'max-lg:text-[24px] ' +
|
|
57
|
+
'max-md2:text-[22px] '}>
|
|
58
|
+
|
|
59
|
+
{lawyerInfo.l_position}
|
|
60
|
+
</span>) : (<></>)}
|
|
61
|
+
</p>
|
|
62
|
+
{/*lawyer_code, l_ability, tel pc*/}
|
|
63
|
+
<div className={'absolute bottom-[-50px] right-10 z-10 grid w-full grid-cols-3 place-items-center bg-[#1E395C] text-center text-[24px] leading-[1.25] tracking-[-0.9px] text-white ' +
|
|
64
|
+
'tracking-[-0.9px] ' +
|
|
65
|
+
(lawyerInfo.l_ability && lawyerInfo.l_ability.length > 30
|
|
66
|
+
? 'h-[100px] max-w-[1050px] max-xl:h-[110px] max-xl:max-w-[820px] max-lg:h-[100px] max-lg:max-w-[700px] max-md2:h-[90px] max-md2:max-w-[640px] '
|
|
67
|
+
: 'h-[100px] max-w-[900px] max-xl:h-[90px] max-xl:max-w-[800px] max-lg:h-[80px] max-lg:max-w-[700px] max-md2:h-[75px] max-md2:max-w-[640px] ') +
|
|
68
|
+
'max-xl:text-[22px] ' +
|
|
69
|
+
' max-lg:text-[20px] ' +
|
|
70
|
+
'max-md2:right-5 max-md2:text-[18px] ' +
|
|
71
|
+
'max-md:hidden'}>
|
|
72
|
+
<p className={'relative w-full font-[800]'}>
|
|
73
|
+
|
|
74
|
+
{searchColorLawyerText(codeList.filter((item) => item.code === lawyerInfo.lawyer_code)[0].code_name, integrateSearch)}
|
|
75
|
+
<span className={'absolute right-0 top-1/2 block h-[50px] w-[2px] -translate-y-1/2 bg-white bg-opacity-20'}></span>
|
|
76
|
+
</p>
|
|
77
|
+
<h2 className={(lawyerInfo.l_ability && lawyerInfo.l_ability.length > 30
|
|
78
|
+
? 'break-keep px-1 xl:whitespace-pre-wrap '
|
|
79
|
+
: 'whitespace-pre-wrap break-keep px-3 ') + 'relative w-full font-[500]'}>
|
|
80
|
+
{lawyerInfo.l_ability}
|
|
81
|
+
|
|
82
|
+
<span className={'absolute right-0 top-1/2 block h-[50px] w-[2px] -translate-y-1/2 bg-white bg-opacity-20'}></span>
|
|
83
|
+
</h2>
|
|
84
|
+
<p className={'flex w-full items-center justify-center gap-2 font-[700]'}>
|
|
85
|
+
{lawyerInfo.l_tel && (<Link href={'tel:' + lawyerInfo.l_tel} onClick={handleOnClickLawyerTel} aria-label={lawyerInfo.l_name + '변호사에게 전화하기 ' + lawyerInfo.l_tel}>
|
|
86
|
+
T. {searchColorLawyerText(lawyerInfo.l_tel, integrateSearch)}
|
|
87
|
+
</Link>)}
|
|
88
|
+
{lawyerInfo.l_email ? (<Link href={'/mail?lawyer=' + lawyerInfo.l_name} rel={'nofollow'} className={'block w-fit'} aria-label={lawyerInfo.l_name + '변호사에게 메일보내기 ' + lawyerInfo.l_email}>
|
|
89
|
+
<Image src={'https://d1tgonli21s4df.cloudfront.net/lawyer/email_icon.webp'} alt={'이메일'} width={64} height={64} className={'w-[38px] max-xl:w-[32px] max-lg:w-[30px] max-xs:w-[26px]'}/>
|
|
90
|
+
</Link>) : (<></>)}
|
|
91
|
+
</p>
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
|
|
96
|
+
{/*이름 mobile*/}
|
|
97
|
+
<p className={'mx-auto mt-4 w-[90%] md:hidden'}>
|
|
98
|
+
<span className={'text-[50px] font-[800] leading-[1.14] tracking-[-0.9px] max-md:text-[46px] max-xs:text-[40px] '}>
|
|
99
|
+
{searchColorLawyerText(lawyerInfo.l_name, integrateSearch)}
|
|
100
|
+
</span>
|
|
101
|
+
{lawyerInfo.l_position ? (<span className={'text-[22px] font-[600] leading-[1.42] tracking-[-0.7px] max-xs:text-[20px] '}>
|
|
102
|
+
|
|
103
|
+
{lawyerInfo.l_position}
|
|
104
|
+
</span>) : (<></>)}
|
|
105
|
+
</p>
|
|
106
|
+
|
|
107
|
+
{/*lawyer_code, l_ability, tel mobile*/}
|
|
108
|
+
<div className={'mt-[18px] flex h-[150px] w-[70%] min-w-[340px] flex-col justify-between bg-[#1E395C] px-5 py-[22px] text-[18px] leading-[1.25] tracking-[-0.9px] text-white md:hidden'}>
|
|
109
|
+
<p className={'font-[800]'}>
|
|
110
|
+
{searchColorLawyerText(codeList.filter((item) => item.code === lawyerInfo.lawyer_code)[0].code_name, integrateSearch)}
|
|
111
|
+
</p>
|
|
112
|
+
<p className={'font-[500] max-2sm:whitespace-pre-wrap'}>{lawyerInfo.l_ability}</p>
|
|
113
|
+
<p className={'flex items-center gap-2'}>
|
|
114
|
+
{lawyerInfo.l_tel && (<Link href={'tel:' + lawyerInfo.l_tel} onClick={handleOnClickLawyerTel} className={'text-[16px] '} aria-label={lawyerInfo.l_name + '변호사에게 전화하기 ' + lawyerInfo.l_tel}>
|
|
115
|
+
T.{' '}
|
|
116
|
+
<span className={'font-[600] underline underline-offset-[6px]'}>
|
|
117
|
+
{searchColorLawyerText(lawyerInfo.l_tel, integrateSearch)}
|
|
118
|
+
</span>
|
|
119
|
+
</Link>)}
|
|
120
|
+
{lawyerInfo.l_email ? (<Link href={'/mail?lawyer=' + lawyerInfo.l_name} rel={'nofollow'} className={'block w-fit'} aria-label={lawyerInfo.l_name + '변호사에게 메일보내기 ' + lawyerInfo.l_email}>
|
|
121
|
+
<Image src={'/images/lawyer/email_icon.webp'} alt={'이메일'} width={64} height={64} className={'w-[38px] max-xl:w-[32px] max-lg:w-[30px] max-xs:w-[26px]'}/>
|
|
122
|
+
</Link>) : (<></>)}
|
|
123
|
+
</p>
|
|
124
|
+
</div>
|
|
125
|
+
</div>);
|
|
126
|
+
};
|
|
127
|
+
export default BasicInfo;
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
import Image from 'next/image';
|
|
2
|
+
import Link from 'next/link';
|
|
3
|
+
import React, { useEffect, useState } from 'react';
|
|
4
|
+
import { insert } from '../../../lib/conversion';
|
|
5
|
+
import * as gtag from '../../../lib/gtag';
|
|
6
|
+
import mobile from 'is-mobile';
|
|
7
|
+
import { ILawyer } from './ILawyerDetailTypes';
|
|
8
|
+
import { searchColorLawyerText } from '../../common/integrate';
|
|
9
|
+
|
|
10
|
+
const BasicInfo = ({
|
|
11
|
+
lawyerInfo,
|
|
12
|
+
codeList,
|
|
13
|
+
integrateSearch
|
|
14
|
+
}: {
|
|
15
|
+
lawyerInfo: ILawyer;
|
|
16
|
+
codeList: any[];
|
|
17
|
+
integrateSearch: string;
|
|
18
|
+
}) => {
|
|
19
|
+
const imagePath: string = process.env.NEXT_PUBLIC_S3_URL + '';
|
|
20
|
+
const lawyerImagePath: string = imagePath + '/upload/lawyer';
|
|
21
|
+
const [isMobile, setIsMobile] = useState<boolean>(false);
|
|
22
|
+
|
|
23
|
+
const handleOnClickLawyerTel = () => {
|
|
24
|
+
if (isMobile) {
|
|
25
|
+
insert('lawyer_tel', isMobile);
|
|
26
|
+
|
|
27
|
+
gtag.event({
|
|
28
|
+
action: 'lawyer_tel',
|
|
29
|
+
category: 'tel',
|
|
30
|
+
label: '변호사 전화버튼',
|
|
31
|
+
value: '1'
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
try {
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
AM_PL('/lawyer_tel');
|
|
37
|
+
} catch (e) {}
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
useEffect(() => {
|
|
42
|
+
const is_mobile = mobile();
|
|
43
|
+
setIsMobile(is_mobile);
|
|
44
|
+
}, []);
|
|
45
|
+
|
|
46
|
+
return (
|
|
47
|
+
<div className={'relative w-full pb-[120px] max-md:pb-0'}>
|
|
48
|
+
{/*#F8F8F8 배경 768px부터 hidden*/}
|
|
49
|
+
<div className={'absolute bottom-0 h-[386px] w-full bg-[#F8F8F8] max-md:hidden'}></div>
|
|
50
|
+
|
|
51
|
+
<div className={'relative mx-auto max-w-screen-2xl'}>
|
|
52
|
+
<div
|
|
53
|
+
className={
|
|
54
|
+
'relative mx-auto h-[630px] w-[90%] max-xl:h-[580px] max-lg:h-[500px] max-md2:h-[450px] max-md:w-full max-xs:h-[360px]'
|
|
55
|
+
}
|
|
56
|
+
>
|
|
57
|
+
<Image
|
|
58
|
+
src={'https://d1tgonli21s4df.cloudfront.net/lawyer/bg_pc.webp'}
|
|
59
|
+
alt={'변호사 리스트 배경'}
|
|
60
|
+
fill
|
|
61
|
+
className={'object-cover max-sm:hidden'}
|
|
62
|
+
/>
|
|
63
|
+
<Image
|
|
64
|
+
src={'https://d1tgonli21s4df.cloudfront.net/lawyer/bg_pc.webp'}
|
|
65
|
+
alt={'변호사 리스트 배경'}
|
|
66
|
+
fill
|
|
67
|
+
className={'object-cover sm:hidden'}
|
|
68
|
+
/>
|
|
69
|
+
{/*변호사 이미지*/}
|
|
70
|
+
<div
|
|
71
|
+
className={
|
|
72
|
+
'absolute bottom-0 left-[50px] h-[569px] w-[515px] overflow-hidden max-xl:h-[510px] max-lg:h-[450px] max-md:left-1/2 max-md:h-[400px] max-md:-translate-x-1/2 max-xs:h-[317px] max-xs:w-[286px]'
|
|
73
|
+
}
|
|
74
|
+
>
|
|
75
|
+
<Image
|
|
76
|
+
src={`${lawyerImagePath}/${lawyerInfo.nukki}`}
|
|
77
|
+
alt={lawyerInfo.l_name + ' 변호사'}
|
|
78
|
+
title={lawyerInfo.l_name + ' 변호사'}
|
|
79
|
+
unoptimized={true}
|
|
80
|
+
priority={true}
|
|
81
|
+
sizes="(max-width: 700px)"
|
|
82
|
+
fill
|
|
83
|
+
className={
|
|
84
|
+
'translate-y-7 scale-110 object-contain max-xl:translate-y-5 max-md:object-center max-xs:translate-y-3'
|
|
85
|
+
}
|
|
86
|
+
/>
|
|
87
|
+
</div>
|
|
88
|
+
{/*h1 sr_only*/}
|
|
89
|
+
<h1 className={'sr-only'}>
|
|
90
|
+
{lawyerInfo.l_name}{' '}
|
|
91
|
+
{codeList.filter((item: any) => item.code === lawyerInfo.lawyer_code)[0].code_name}
|
|
92
|
+
</h1>
|
|
93
|
+
{/*이름 pc*/}
|
|
94
|
+
<p
|
|
95
|
+
className={
|
|
96
|
+
'absolute bottom-[128px] right-[100px] z-10 text-right max-xl:bottom-[100px] max-lg:bottom-20 max-lg:right-20 max-md2:bottom-[60px] max-md2:right-[60px] max-md:hidden'
|
|
97
|
+
}
|
|
98
|
+
>
|
|
99
|
+
<span
|
|
100
|
+
className={
|
|
101
|
+
'mb-1 block text-[70px] font-[800] leading-[1.14] tracking-[-0.9px] max-xl:text-[64px] max-lg:text-[60px] max-md2:mb-0 max-md2:text-[54px] max-xs:text-[40px] '
|
|
102
|
+
}
|
|
103
|
+
>
|
|
104
|
+
{searchColorLawyerText(lawyerInfo.l_name, integrateSearch)}
|
|
105
|
+
</span>
|
|
106
|
+
{lawyerInfo.l_position ? (
|
|
107
|
+
<span
|
|
108
|
+
className={
|
|
109
|
+
'text-[28px] font-[500] leading-[1.42] tracking-[-0.7px] ' +
|
|
110
|
+
'max-xl:text-[26px] ' +
|
|
111
|
+
'max-lg:text-[24px] ' +
|
|
112
|
+
'max-md2:text-[22px] '
|
|
113
|
+
}
|
|
114
|
+
>
|
|
115
|
+
|
|
116
|
+
{lawyerInfo.l_position}
|
|
117
|
+
</span>
|
|
118
|
+
) : (
|
|
119
|
+
<></>
|
|
120
|
+
)}
|
|
121
|
+
</p>
|
|
122
|
+
{/*lawyer_code, l_ability, tel pc*/}
|
|
123
|
+
<div
|
|
124
|
+
className={
|
|
125
|
+
'absolute bottom-[-50px] right-10 z-10 grid w-full grid-cols-3 place-items-center bg-[#1E395C] text-center text-[24px] leading-[1.25] tracking-[-0.9px] text-white ' +
|
|
126
|
+
'tracking-[-0.9px] ' +
|
|
127
|
+
(lawyerInfo.l_ability && lawyerInfo.l_ability.length > 30
|
|
128
|
+
? 'h-[100px] max-w-[1050px] max-xl:h-[110px] max-xl:max-w-[820px] max-lg:h-[100px] max-lg:max-w-[700px] max-md2:h-[90px] max-md2:max-w-[640px] '
|
|
129
|
+
: 'h-[100px] max-w-[900px] max-xl:h-[90px] max-xl:max-w-[800px] max-lg:h-[80px] max-lg:max-w-[700px] max-md2:h-[75px] max-md2:max-w-[640px] ') +
|
|
130
|
+
'max-xl:text-[22px] ' +
|
|
131
|
+
' max-lg:text-[20px] ' +
|
|
132
|
+
'max-md2:right-5 max-md2:text-[18px] ' +
|
|
133
|
+
'max-md:hidden'
|
|
134
|
+
}
|
|
135
|
+
>
|
|
136
|
+
<p className={'relative w-full font-[800]'}>
|
|
137
|
+
|
|
138
|
+
{searchColorLawyerText(
|
|
139
|
+
codeList.filter((item: any) => item.code === lawyerInfo.lawyer_code)[0].code_name,
|
|
140
|
+
integrateSearch
|
|
141
|
+
)}
|
|
142
|
+
<span
|
|
143
|
+
className={
|
|
144
|
+
'absolute right-0 top-1/2 block h-[50px] w-[2px] -translate-y-1/2 bg-white bg-opacity-20'
|
|
145
|
+
}
|
|
146
|
+
></span>
|
|
147
|
+
</p>
|
|
148
|
+
<h2
|
|
149
|
+
className={
|
|
150
|
+
(lawyerInfo.l_ability && lawyerInfo.l_ability.length > 30
|
|
151
|
+
? 'break-keep px-1 xl:whitespace-pre-wrap '
|
|
152
|
+
: 'whitespace-pre-wrap break-keep px-3 ') + 'relative w-full font-[500]'
|
|
153
|
+
}
|
|
154
|
+
>
|
|
155
|
+
{lawyerInfo.l_ability}
|
|
156
|
+
|
|
157
|
+
<span
|
|
158
|
+
className={
|
|
159
|
+
'absolute right-0 top-1/2 block h-[50px] w-[2px] -translate-y-1/2 bg-white bg-opacity-20'
|
|
160
|
+
}
|
|
161
|
+
></span>
|
|
162
|
+
</h2>
|
|
163
|
+
<p className={'flex w-full items-center justify-center gap-2 font-[700]'}>
|
|
164
|
+
{lawyerInfo.l_tel && (
|
|
165
|
+
<Link
|
|
166
|
+
href={'tel:' + lawyerInfo.l_tel}
|
|
167
|
+
onClick={handleOnClickLawyerTel}
|
|
168
|
+
aria-label={lawyerInfo.l_name + '변호사에게 전화하기 ' + lawyerInfo.l_tel}
|
|
169
|
+
>
|
|
170
|
+
T. {searchColorLawyerText(lawyerInfo.l_tel, integrateSearch)}
|
|
171
|
+
</Link>
|
|
172
|
+
)}
|
|
173
|
+
{lawyerInfo.l_email ? (
|
|
174
|
+
<Link
|
|
175
|
+
href={'/mail?lawyer=' + lawyerInfo.l_name}
|
|
176
|
+
rel={'nofollow'}
|
|
177
|
+
className={'block w-fit'}
|
|
178
|
+
aria-label={lawyerInfo.l_name + '변호사에게 메일보내기 ' + lawyerInfo.l_email}
|
|
179
|
+
>
|
|
180
|
+
<Image
|
|
181
|
+
src={'https://d1tgonli21s4df.cloudfront.net/lawyer/email_icon.webp'}
|
|
182
|
+
alt={'이메일'}
|
|
183
|
+
width={64}
|
|
184
|
+
height={64}
|
|
185
|
+
className={'w-[38px] max-xl:w-[32px] max-lg:w-[30px] max-xs:w-[26px]'}
|
|
186
|
+
/>
|
|
187
|
+
</Link>
|
|
188
|
+
) : (
|
|
189
|
+
<></>
|
|
190
|
+
)}
|
|
191
|
+
</p>
|
|
192
|
+
</div>
|
|
193
|
+
</div>
|
|
194
|
+
</div>
|
|
195
|
+
|
|
196
|
+
{/*이름 mobile*/}
|
|
197
|
+
<p className={'mx-auto mt-4 w-[90%] md:hidden'}>
|
|
198
|
+
<span
|
|
199
|
+
className={
|
|
200
|
+
'text-[50px] font-[800] leading-[1.14] tracking-[-0.9px] max-md:text-[46px] max-xs:text-[40px] '
|
|
201
|
+
}
|
|
202
|
+
>
|
|
203
|
+
{searchColorLawyerText(lawyerInfo.l_name, integrateSearch)}
|
|
204
|
+
</span>
|
|
205
|
+
{lawyerInfo.l_position ? (
|
|
206
|
+
<span className={'text-[22px] font-[600] leading-[1.42] tracking-[-0.7px] max-xs:text-[20px] '}>
|
|
207
|
+
|
|
208
|
+
{lawyerInfo.l_position}
|
|
209
|
+
</span>
|
|
210
|
+
) : (
|
|
211
|
+
<></>
|
|
212
|
+
)}
|
|
213
|
+
</p>
|
|
214
|
+
|
|
215
|
+
{/*lawyer_code, l_ability, tel mobile*/}
|
|
216
|
+
<div
|
|
217
|
+
className={
|
|
218
|
+
'mt-[18px] flex h-[150px] w-[70%] min-w-[340px] flex-col justify-between bg-[#1E395C] px-5 py-[22px] text-[18px] leading-[1.25] tracking-[-0.9px] text-white md:hidden'
|
|
219
|
+
}
|
|
220
|
+
>
|
|
221
|
+
<p className={'font-[800]'}>
|
|
222
|
+
{searchColorLawyerText(
|
|
223
|
+
codeList.filter((item: any) => item.code === lawyerInfo.lawyer_code)[0].code_name,
|
|
224
|
+
integrateSearch
|
|
225
|
+
)}
|
|
226
|
+
</p>
|
|
227
|
+
<p className={'font-[500] max-2sm:whitespace-pre-wrap'}>{lawyerInfo.l_ability}</p>
|
|
228
|
+
<p className={'flex items-center gap-2'}>
|
|
229
|
+
{lawyerInfo.l_tel && (
|
|
230
|
+
<Link
|
|
231
|
+
href={'tel:' + lawyerInfo.l_tel}
|
|
232
|
+
onClick={handleOnClickLawyerTel}
|
|
233
|
+
className={'text-[16px] '}
|
|
234
|
+
aria-label={lawyerInfo.l_name + '변호사에게 전화하기 ' + lawyerInfo.l_tel}
|
|
235
|
+
>
|
|
236
|
+
T.{' '}
|
|
237
|
+
<span className={'font-[600] underline underline-offset-[6px]'}>
|
|
238
|
+
{searchColorLawyerText(lawyerInfo.l_tel, integrateSearch)}
|
|
239
|
+
</span>
|
|
240
|
+
</Link>
|
|
241
|
+
)}
|
|
242
|
+
{lawyerInfo.l_email ? (
|
|
243
|
+
<Link
|
|
244
|
+
href={'/mail?lawyer=' + lawyerInfo.l_name}
|
|
245
|
+
rel={'nofollow'}
|
|
246
|
+
className={'block w-fit'}
|
|
247
|
+
aria-label={lawyerInfo.l_name + '변호사에게 메일보내기 ' + lawyerInfo.l_email}
|
|
248
|
+
>
|
|
249
|
+
<Image
|
|
250
|
+
src={'/images/lawyer/email_icon.webp'}
|
|
251
|
+
alt={'이메일'}
|
|
252
|
+
width={64}
|
|
253
|
+
height={64}
|
|
254
|
+
className={'w-[38px] max-xl:w-[32px] max-lg:w-[30px] max-xs:w-[26px]'}
|
|
255
|
+
/>
|
|
256
|
+
</Link>
|
|
257
|
+
) : (
|
|
258
|
+
<></>
|
|
259
|
+
)}
|
|
260
|
+
</p>
|
|
261
|
+
</div>
|
|
262
|
+
</div>
|
|
263
|
+
);
|
|
264
|
+
};
|
|
265
|
+
export default BasicInfo;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IBoard, ILawyer, ILawyerCareer, ISuccess } from './ILawyerDetailTypes';
|
|
3
|
+
declare const CareerList: ({ lawyerInfo, careerList, certiList, codeList, speciality, successList, broadcastList, reviewList, targetRefs, integrateSearch, targetTitleRefs }: {
|
|
4
|
+
lawyerInfo: ILawyer;
|
|
5
|
+
careerList: ILawyerCareer[];
|
|
6
|
+
certiList: {
|
|
7
|
+
idx: number;
|
|
8
|
+
l_id: string;
|
|
9
|
+
certi_code: string | null;
|
|
10
|
+
}[];
|
|
11
|
+
speciality: ILawyerCareer[];
|
|
12
|
+
codeList: any[];
|
|
13
|
+
targetRefs: any;
|
|
14
|
+
targetTitleRefs: any;
|
|
15
|
+
successList: ISuccess[];
|
|
16
|
+
broadcastList: IBoard[];
|
|
17
|
+
reviewList: IBoard[];
|
|
18
|
+
integrateSearch: string;
|
|
19
|
+
}) => React.JSX.Element;
|
|
20
|
+
export default CareerList;
|