@daeryun/dr_components 0.5.85 → 0.5.87
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/SearchBar/search.webp +0 -0
- package/dist/asset/images/faq/Ellipse.webp +0 -0
- package/dist/asset/images/faq/cal.webp +0 -0
- package/dist/asset/images/faq/check.webp +0 -0
- package/dist/asset/images/faq/down.webp +0 -0
- package/dist/asset/images/faq/eye.webp +0 -0
- package/dist/asset/images/faq/plus.webp +0 -0
- package/dist/asset/images/faq/right.webp +0 -0
- package/dist/asset/images/faq/vector_blu.svg +3 -0
- package/dist/asset/images/faq/vector_stroke.svg +3 -0
- package/dist/asset/images/seo/left.webp +0 -0
- package/dist/asset/images/seo/right.webp +0 -0
- package/dist/asset/images/seo/secConsulting/choice_call.webp +0 -0
- package/dist/asset/images/seo/secConsulting/choice_kakao.webp +0 -0
- package/dist/asset/images/seo/secConsulting/online.svg +36 -0
- package/dist/asset/images/seo/successCase/dia_dot.svg +3 -0
- package/dist/asset/images/seo/successCase/right_arrow.svg +4 -0
- package/dist/asset/images/seo/successCase/up_right.svg +3 -0
- package/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/components/SearchBar/SearchBar.d.ts +16 -0
- package/dist/components/SearchBar/SearchBar.jsx +90 -0
- package/dist/components/SearchBar/SearchBar.stories.d.ts +6 -0
- package/dist/components/SearchBar/SearchBar.stories.jsx +21 -0
- package/dist/components/SearchBar/SearchBar.stories.tsx +28 -0
- package/dist/components/SearchBar/SearchBar.tsx +173 -0
- package/dist/components/Seo/FieldCase.d.ts +5 -0
- package/dist/components/Seo/FieldCase.jsx +48 -0
- package/dist/components/Seo/FieldCase.tsx +85 -0
- package/dist/components/Seo/Lawyer.d.ts +5 -0
- package/dist/components/Seo/Lawyer.jsx +66 -0
- package/dist/components/Seo/Lawyer.tsx +148 -0
- package/dist/components/Seo/SeoConsulting.d.ts +6 -0
- package/dist/components/Seo/SeoConsulting.jsx +173 -0
- package/dist/components/Seo/SeoConsulting.tsx +272 -0
- package/dist/components/Seo/SuccessCase.d.ts +6 -0
- package/dist/components/Seo/SuccessCase.jsx +57 -0
- package/dist/components/Seo/SuccessCase.tsx +95 -0
- package/dist/components/Seo/right_arrow.svg +4 -0
- package/dist/components/TuiViewer/TuiViewer.d.ts +3 -0
- package/dist/components/TuiViewer/TuiViewer.jsx +7 -0
- package/dist/components/TuiViewer/TuiViewer.tsx +14 -0
- package/dist/components/common/types/faq/index.d.ts +11 -0
- package/dist/components/common/types/faq/index.js +1 -0
- package/dist/components/common/types/faq/index.ts +11 -0
- package/dist/components/common/types/seo/index.d.ts +27 -0
- package/dist/components/common/types/seo/index.js +1 -0
- package/dist/components/common/types/seo/index.ts +29 -0
- package/dist/components/index.js +1 -0
- package/dist/components/index.ts +1 -3
- package/dist/components/page/Faq/Detail/FaqDetail.d.ts +22 -0
- package/dist/components/page/Faq/Detail/FaqDetail.jsx +136 -0
- package/dist/components/page/Faq/Detail/FaqDetail.tsx +277 -0
- package/dist/components/page/Faq/Detail/FaqList.stories.d.ts +6 -0
- package/dist/components/page/Faq/Detail/FaqList.stories.jsx +187 -0
- package/dist/components/page/Faq/Detail/FaqList.stories.tsx +208 -0
- package/dist/components/page/Faq/FaqList.d.ts +23 -0
- package/dist/components/page/Faq/FaqList.jsx +99 -0
- package/dist/components/page/Faq/FaqList.stories.d.ts +6 -0
- package/dist/components/page/Faq/FaqList.stories.jsx +76 -0
- package/dist/components/page/Faq/FaqList.stories.tsx +93 -0
- package/dist/components/page/Faq/FaqList.tsx +197 -0
- package/dist/components/page/Faq/GroupList.d.ts +9 -0
- package/dist/components/page/Faq/GroupList.jsx +30 -0
- package/dist/components/page/Faq/GroupList.tsx +57 -0
- package/dist/components/page/Faq/GroupSelectBox.d.ts +9 -0
- package/dist/components/page/Faq/GroupSelectBox.jsx +67 -0
- package/dist/components/page/Faq/GroupSelectBox.tsx +117 -0
- package/dist/components/page/index.d.ts +2 -0
- package/dist/components/page/index.js +2 -0
- package/dist/components/page/index.ts +2 -0
- package/dist/lib/categoryMenuName.js +7 -1
- package/dist/lib/categoryMenuName.ts +5 -1
- package/dist/styles/globals.css +1080 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import Image from 'next/image';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
|
|
6
|
+
import SearchImg from '../../asset/images/SearchBar/search.webp';
|
|
7
|
+
import { usePathname } from 'next/navigation';
|
|
8
|
+
|
|
9
|
+
const SearchBar = (props: {
|
|
10
|
+
// pathname: string
|
|
11
|
+
onChange: (e: React.FormEvent<HTMLInputElement>) => void;
|
|
12
|
+
onClick: () => void;
|
|
13
|
+
search: string;
|
|
14
|
+
label: string;
|
|
15
|
+
isKeyPress?: boolean;
|
|
16
|
+
placeholder: string;
|
|
17
|
+
maxLength?: number;
|
|
18
|
+
isIntegrate?: boolean;
|
|
19
|
+
isMarginNotAuto?: boolean; //중앙정렬 아닐 시 true
|
|
20
|
+
marginTop?: [number, number, number]; //기본값 존재, 순서대로 all, 768px, 640px
|
|
21
|
+
marginBottom?: number; //기본값 존재
|
|
22
|
+
btnLabel?: string;
|
|
23
|
+
}) => {
|
|
24
|
+
const {
|
|
25
|
+
search,
|
|
26
|
+
placeholder,
|
|
27
|
+
maxLength,
|
|
28
|
+
label,
|
|
29
|
+
isIntegrate,
|
|
30
|
+
isMarginNotAuto,
|
|
31
|
+
marginTop,
|
|
32
|
+
marginBottom,
|
|
33
|
+
btnLabel = ''
|
|
34
|
+
} = props;
|
|
35
|
+
const pathname = usePathname();
|
|
36
|
+
|
|
37
|
+
const handleInputChange = (e: React.FormEvent<HTMLInputElement>) => {
|
|
38
|
+
props.onChange(e);
|
|
39
|
+
};
|
|
40
|
+
const handleOnKeyPress = (e: any) => {
|
|
41
|
+
if (props.isKeyPress) {
|
|
42
|
+
if (e.key === 'Enter') {
|
|
43
|
+
props.onClick();
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
const handleClick = () => {
|
|
48
|
+
props.onClick();
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
return (
|
|
52
|
+
<>
|
|
53
|
+
{!isIntegrate ? (
|
|
54
|
+
<style>{`
|
|
55
|
+
.search_box {
|
|
56
|
+
margin-top: ${marginTop ? marginTop[0] : 150}px;
|
|
57
|
+
margin-bottom: ${marginBottom ? marginBottom : 90}px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@media (max-width: 768px) {
|
|
61
|
+
.search_box {
|
|
62
|
+
margin-top: ${marginTop ? marginTop[1] : 80}px;
|
|
63
|
+
margin-bottom: 80px;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@media (max-width: 640px) {
|
|
68
|
+
.search_box {
|
|
69
|
+
margin-top: ${marginTop ? marginTop[2] : 50}px;
|
|
70
|
+
margin-bottom: 50px;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
`}</style>
|
|
75
|
+
) : (
|
|
76
|
+
<></>
|
|
77
|
+
)}
|
|
78
|
+
<div className={isIntegrate ? 'h-auto w-full ' : 'search_box h-auto w-full '}>
|
|
79
|
+
<div
|
|
80
|
+
className={
|
|
81
|
+
'relative w-[100%] max-w-[855px] sm:w-[90%] lg:w-[80%] ' + `${isMarginNotAuto ? '' : 'm-auto'}`
|
|
82
|
+
}
|
|
83
|
+
>
|
|
84
|
+
<label style={{ cursor: 'pointer' }} className={'sr-only'}>
|
|
85
|
+
{label}
|
|
86
|
+
</label>
|
|
87
|
+
<input
|
|
88
|
+
name="sear_txt"
|
|
89
|
+
placeholder={placeholder}
|
|
90
|
+
maxLength={maxLength ? maxLength : 20}
|
|
91
|
+
value={search}
|
|
92
|
+
onChange={handleInputChange}
|
|
93
|
+
onKeyUp={handleOnKeyPress}
|
|
94
|
+
type={'search'}
|
|
95
|
+
aria-label={label}
|
|
96
|
+
spellCheck={false}
|
|
97
|
+
className={
|
|
98
|
+
`bg-[${isIntegrate ? '#FFFFFF' : '#F7F7F7'}] w-[100%] rounded-full px-[40px] py-[24px] ` +
|
|
99
|
+
'text-2xl tracking-[-0.6px] text-[#333333] placeholder:text-[#575757] ' +
|
|
100
|
+
//1500px
|
|
101
|
+
'max-3xl:text-xl ' +
|
|
102
|
+
//768px
|
|
103
|
+
'max-md:py-[20px] max-md:pl-[40px] max-md:pr-[150px] max-md:text-lg max-sm:py-[18px] ' +
|
|
104
|
+
//640px
|
|
105
|
+
(pathname.includes('integrate')
|
|
106
|
+
? ' max-sm:pl-[20px] max-sm:pr-[60px] max-sm:text-sm '
|
|
107
|
+
: ' max-sm:pl-[25px] max-sm:pr-[65px] max-sm:text-base ') +
|
|
108
|
+
'max-sm:py-[18px] ' +
|
|
109
|
+
//325px
|
|
110
|
+
'max-3xs:py-[15px] max-3xs:pl-[20px] max-3xs:pr-[55px] max-3xs:text-sm '
|
|
111
|
+
}
|
|
112
|
+
/>
|
|
113
|
+
|
|
114
|
+
<button
|
|
115
|
+
type={'button'}
|
|
116
|
+
onClick={handleClick}
|
|
117
|
+
className={
|
|
118
|
+
'absolute right-[20px] top-[50%] z-10 translate-y-[-50%] ' +
|
|
119
|
+
'h-[65%] w-[140px] cursor-pointer rounded-full bg-[#2E2E2E] ' +
|
|
120
|
+
'flex items-center justify-center gap-[10px] ' +
|
|
121
|
+
//768px
|
|
122
|
+
'max-md:w-[120px] ' +
|
|
123
|
+
//640px
|
|
124
|
+
'max-sm:hidden '
|
|
125
|
+
}
|
|
126
|
+
aria-label={btnLabel}
|
|
127
|
+
>
|
|
128
|
+
<Image
|
|
129
|
+
src={SearchImg}
|
|
130
|
+
alt="SearchBar input 검색 아이콘"
|
|
131
|
+
width={30}
|
|
132
|
+
height={30}
|
|
133
|
+
className="h-auto w-[22px] max-md:w-[18px]"
|
|
134
|
+
/>
|
|
135
|
+
<span
|
|
136
|
+
className={
|
|
137
|
+
'text-xl font-[800] tracking-[-0.5px] text-[#fff] ' +
|
|
138
|
+
//1500px
|
|
139
|
+
'max-3xl:text-lg ' +
|
|
140
|
+
//768px
|
|
141
|
+
'max-md:text-base '
|
|
142
|
+
}
|
|
143
|
+
>
|
|
144
|
+
검색
|
|
145
|
+
</span>
|
|
146
|
+
</button>
|
|
147
|
+
<button
|
|
148
|
+
type={'button'}
|
|
149
|
+
onClick={handleClick}
|
|
150
|
+
className={
|
|
151
|
+
'absolute right-[15px] top-[50%] z-10 flex translate-y-[-50%] cursor-pointer items-center justify-center rounded-[30px] bg-[#2E2E2E] sm:hidden ' +
|
|
152
|
+
//650px
|
|
153
|
+
'h-[40px] w-[40px] ' +
|
|
154
|
+
//325px
|
|
155
|
+
'max-3xs:h-[32px] max-3xs:w-[32px]'
|
|
156
|
+
}
|
|
157
|
+
aria-label={btnLabel}
|
|
158
|
+
>
|
|
159
|
+
<Image
|
|
160
|
+
src={SearchImg}
|
|
161
|
+
alt="SearchBar input 검색 아이콘"
|
|
162
|
+
width={26}
|
|
163
|
+
height={26}
|
|
164
|
+
className={'h-auto w-[18px] max-3xs:w-[16px]'}
|
|
165
|
+
/>
|
|
166
|
+
</button>
|
|
167
|
+
</div>
|
|
168
|
+
</div>
|
|
169
|
+
</>
|
|
170
|
+
);
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
export default SearchBar;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import Link from 'next/link';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import IconArrow from '../../asset/images/seo/successCase/up_right.svg';
|
|
4
|
+
import IconRightArrow from '../../asset/images/seo/successCase/right_arrow.svg';
|
|
5
|
+
import IconDot from '../../asset/images/seo/successCase/dia_dot.svg';
|
|
6
|
+
export const FieldCase = ({ fieldData }) => {
|
|
7
|
+
return (<div className={'relative h-auto w-full border-l-[1px] border-t-[1px] border-solid border-[#B9B9B9] pb-[45px] pl-[26px] pt-[30px] ' +
|
|
8
|
+
'before:absolute before:left-0 before:top-0 before:block before:aspect-square before:w-[15px] before:bg-[#B9B9B9] before:content-[""] '}>
|
|
9
|
+
<span className={'flex h-fit w-full items-center justify-between'}>
|
|
10
|
+
<p className={'text-[26px] tracking-[-0.5px] max-3xl:text-[24px] max-xl:text-[26px] ' +
|
|
11
|
+
'font-[800] text-[#80377A] '}>
|
|
12
|
+
관련 업무분야
|
|
13
|
+
</p>
|
|
14
|
+
<Link href={'/field/area'} title={'업무분야 더보기'} className={'flex h-[35px] w-[100px] items-center justify-center gap-[4px] bg-[#5D5D5D] ' +
|
|
15
|
+
'hover:bg-[#722D6D] ' +
|
|
16
|
+
//1500px
|
|
17
|
+
'w-[100px] max-3xl:h-[30px] max-3xl:w-[90px] '}>
|
|
18
|
+
<p className={'w-fit text-[18px] font-[600] leading-none text-white max-3xl:text-[16px] '}>
|
|
19
|
+
더보기
|
|
20
|
+
</p>
|
|
21
|
+
<IconRightArrow className={'h-auto w-[14px] max-3xl:w-[12px] '}/>
|
|
22
|
+
</Link>
|
|
23
|
+
</span>
|
|
24
|
+
<span className={'mt-[30px] flex flex-col gap-3 '}>
|
|
25
|
+
{fieldData === null || fieldData === void 0 ? void 0 : fieldData.map(i => (<Link href={i.pathname + i.idx} key={i.pathname + i.idx} className={'flex w-fit items-start gap-[10px] text-[20px] font-medium tracking-[-0.4px] hover:text-[#285FA7] ' +
|
|
26
|
+
//1500px
|
|
27
|
+
'max-3xl:text-[18px] ' +
|
|
28
|
+
//1280px
|
|
29
|
+
'max-xl:text-[20px] ' +
|
|
30
|
+
//768px
|
|
31
|
+
'max-md:text-[18px]'}>
|
|
32
|
+
<IconDot className={'mt-3 inline shrink-0 ' +
|
|
33
|
+
//1500px
|
|
34
|
+
'max-3xl:mt-[9px]'}/>
|
|
35
|
+
<div>
|
|
36
|
+
{i.title_text}
|
|
37
|
+
<IconArrow className={'mb-[5px] ml-2 inline h-[10px] w-[10px] ' +
|
|
38
|
+
//1500px
|
|
39
|
+
'max-3xl:h-[9px] max-3xl:w-[9px] ' +
|
|
40
|
+
//1280px
|
|
41
|
+
'max-xl:mb-[3px] max-xl:h-[10px] max-xl:w-[10px] ' +
|
|
42
|
+
//1500px
|
|
43
|
+
'max-md:mb-[7px] max-md:h-[9px] max-md:w-[9px] '}/>
|
|
44
|
+
</div>
|
|
45
|
+
</Link>))}
|
|
46
|
+
</span>
|
|
47
|
+
</div>);
|
|
48
|
+
};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import Link from 'next/link';
|
|
2
|
+
import Image from 'next/image';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
|
|
5
|
+
import { IFieldTypes } from '../common/types/seo';
|
|
6
|
+
|
|
7
|
+
import IconArrow from '../../asset/images/seo/successCase/up_right.svg';
|
|
8
|
+
import IconRightArrow from '../../asset/images/seo/successCase/right_arrow.svg';
|
|
9
|
+
import IconDot from '../../asset/images/seo/successCase/dia_dot.svg';
|
|
10
|
+
|
|
11
|
+
export const FieldCase = ({ fieldData }: { fieldData: IFieldTypes[] }) => {
|
|
12
|
+
return (
|
|
13
|
+
<div
|
|
14
|
+
className={
|
|
15
|
+
'relative h-auto w-full border-l-[1px] border-t-[1px] border-solid border-[#B9B9B9] pb-[45px] pl-[26px] pt-[30px] ' +
|
|
16
|
+
'before:absolute before:left-0 before:top-0 before:block before:aspect-square before:w-[15px] before:bg-[#B9B9B9] before:content-[""] '
|
|
17
|
+
}
|
|
18
|
+
>
|
|
19
|
+
<span className={'flex h-fit w-full items-center justify-between'}>
|
|
20
|
+
<p
|
|
21
|
+
className={
|
|
22
|
+
'text-[26px] tracking-[-0.5px] max-3xl:text-[24px] max-xl:text-[26px] ' +
|
|
23
|
+
'font-[800] text-[#80377A] '
|
|
24
|
+
}
|
|
25
|
+
>
|
|
26
|
+
관련 업무분야
|
|
27
|
+
</p>
|
|
28
|
+
<Link
|
|
29
|
+
href={'/field/area'}
|
|
30
|
+
title={'업무분야 더보기'}
|
|
31
|
+
className={
|
|
32
|
+
'flex h-[35px] w-[100px] items-center justify-center gap-[4px] bg-[#5D5D5D] ' +
|
|
33
|
+
'hover:bg-[#722D6D] ' +
|
|
34
|
+
//1500px
|
|
35
|
+
'w-[100px] max-3xl:h-[30px] max-3xl:w-[90px] '
|
|
36
|
+
}
|
|
37
|
+
>
|
|
38
|
+
<p className={'w-fit text-[18px] font-[600] leading-none text-white max-3xl:text-[16px] '}>
|
|
39
|
+
더보기
|
|
40
|
+
</p>
|
|
41
|
+
<IconRightArrow className={'h-auto w-[14px] max-3xl:w-[12px] '} />
|
|
42
|
+
</Link>
|
|
43
|
+
</span>
|
|
44
|
+
<span className={'mt-[30px] flex flex-col gap-3 '}>
|
|
45
|
+
{fieldData?.map(i => (
|
|
46
|
+
<Link
|
|
47
|
+
href={i.pathname + i.idx}
|
|
48
|
+
key={i.pathname + i.idx}
|
|
49
|
+
className={
|
|
50
|
+
'flex w-fit items-start gap-[10px] text-[20px] font-medium tracking-[-0.4px] hover:text-[#285FA7] ' +
|
|
51
|
+
//1500px
|
|
52
|
+
'max-3xl:text-[18px] ' +
|
|
53
|
+
//1280px
|
|
54
|
+
'max-xl:text-[20px] ' +
|
|
55
|
+
//768px
|
|
56
|
+
'max-md:text-[18px]'
|
|
57
|
+
}
|
|
58
|
+
>
|
|
59
|
+
<IconDot
|
|
60
|
+
className={
|
|
61
|
+
'mt-3 inline shrink-0 ' +
|
|
62
|
+
//1500px
|
|
63
|
+
'max-3xl:mt-[9px]'
|
|
64
|
+
}
|
|
65
|
+
/>
|
|
66
|
+
<div>
|
|
67
|
+
{i.title_text}
|
|
68
|
+
<IconArrow
|
|
69
|
+
className={
|
|
70
|
+
'mb-[5px] ml-2 inline h-[10px] w-[10px] ' +
|
|
71
|
+
//1500px
|
|
72
|
+
'max-3xl:h-[9px] max-3xl:w-[9px] ' +
|
|
73
|
+
//1280px
|
|
74
|
+
'max-xl:mb-[3px] max-xl:h-[10px] max-xl:w-[10px] ' +
|
|
75
|
+
//1500px
|
|
76
|
+
'max-md:mb-[7px] max-md:h-[9px] max-md:w-[9px] '
|
|
77
|
+
}
|
|
78
|
+
/>
|
|
79
|
+
</div>
|
|
80
|
+
</Link>
|
|
81
|
+
))}
|
|
82
|
+
</span>
|
|
83
|
+
</div>
|
|
84
|
+
);
|
|
85
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import Link from 'next/link';
|
|
2
|
+
import Image from 'next/image';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import Mark from '../Mark/Mark';
|
|
5
|
+
import { lawyerCode } from '../../lib';
|
|
6
|
+
import IconRightArrow from '../../asset/images/seo/successCase/right_arrow.svg';
|
|
7
|
+
export const Lawyer = ({ lawyerData, isSuccess }) => {
|
|
8
|
+
const imagePath = process.env.NEXT_PUBLIC_S3_URL + '';
|
|
9
|
+
const lawyerImagePath = imagePath + '/upload/lawyer';
|
|
10
|
+
return (<div className={'relative h-auto w-full border-l-[1px] border-t-[1px] border-solid border-[#B9B9B9] pb-[45px] pl-[26px] pt-[30px] ' +
|
|
11
|
+
'before:absolute before:left-0 before:top-0 before:block before:aspect-square before:w-[15px] before:bg-[#B9B9B9] before:content-[""] '}>
|
|
12
|
+
<span className={'flex h-fit w-full items-center justify-between'}>
|
|
13
|
+
<p className={'text-[26px] tracking-[-0.5px] max-3xl:text-[24px] max-xl:text-[26px] ' +
|
|
14
|
+
'font-[800] text-[#80377A] '}>
|
|
15
|
+
관련 구성원
|
|
16
|
+
</p>
|
|
17
|
+
<Link href={'/lawyer'} title={'구성원 더보기'} className={'flex h-[35px] w-[100px] items-center justify-center gap-[4px] bg-[#5D5D5D] ' +
|
|
18
|
+
'hover:bg-[#722D6D] ' +
|
|
19
|
+
//1500px
|
|
20
|
+
'w-[100px] max-3xl:h-[30px] max-3xl:w-[90px] '}>
|
|
21
|
+
<p className={'w-fit text-[18px] font-[600] leading-none text-white max-3xl:text-[16px] '}>
|
|
22
|
+
더보기
|
|
23
|
+
</p>
|
|
24
|
+
<IconRightArrow className={'h-auto w-[14px] max-3xl:w-[12px] '}/>
|
|
25
|
+
</Link>
|
|
26
|
+
</span>
|
|
27
|
+
<span className={'mt-[46px] flex flex-col gap-[40px] ' +
|
|
28
|
+
//1280px
|
|
29
|
+
'max-xl:grid max-xl:grid-cols-2 max-xl:gap-x-[10px] ' +
|
|
30
|
+
//768px
|
|
31
|
+
'max-md:grid-cols-1'} itemScope itemType="https://schema.org/ItemList" data-item-list-order="https://schema.org/ItemListUnordered" data-number-of-items={lawyerData.length}>
|
|
32
|
+
{lawyerData === null || lawyerData === void 0 ? void 0 : lawyerData.map((i, idx) => (<div className={'relative flex min-h-[125px] w-full gap-[12px]'} key={'lawyer_name_' + i.lawyer_name} itemScope itemProp="itemListElement" itemType="https://schema.org/ListItem">
|
|
33
|
+
<meta itemProp="position" content={String(idx + 1)}/>
|
|
34
|
+
<Link href={'/lawyer/' + i.l_id} title={`${i.lawyer_name} 변호사 프로필 페이지 바로가기`} className={'absolute z-10 h-full w-full'} itemProp="url"/>
|
|
35
|
+
<div className={'relative h-[125px] w-[110px] shrink-0 overflow-hidden bg-[#F8F8F8]'} itemScope itemType="https://schema.org/Person">
|
|
36
|
+
<Image src={lawyerImagePath + '/' + i.img_url} alt={i.lawyer_name + '변호사님'} fill className={'h-full w-full translate-y-[5%] scale-95 object-contain'} itemProp="image"/>
|
|
37
|
+
<Mark type={i.mark} color={'#e8bb71'} className={'absolute bottom-[5px] right-[5px] h-auto w-[25%]'}/>
|
|
38
|
+
</div>
|
|
39
|
+
<span className={'flex flex-1 flex-col justify-between gap-[5px]'}>
|
|
40
|
+
<span className={'relative flex w-full flex-col gap-[5px]'}>
|
|
41
|
+
<meta itemProp="name" content={`${i.lawyer_name} 변호사`}/>
|
|
42
|
+
<p className={'text-[23px] font-bold leading-none tracking-[-0.46px] text-[#434343]'}>
|
|
43
|
+
{i.lawyer_name}
|
|
44
|
+
</p>
|
|
45
|
+
<p className={'text-[14px] font-medium leading-none tracking-[-0.4px] text-[#818181]'} itemProp="jobTitle">
|
|
46
|
+
{i.lawyer_position}
|
|
47
|
+
</p>
|
|
48
|
+
{lawyerCode.find(code => code === i.lawyer_code) ? (<Link href={'/mail?lawyer=' + i.lawyer_name} rel={'nofollow'} className={'absolute right-0 top-0 z-[11] block h-fit w-fit max-xl:right-[20px]'} aria-label={i.lawyer_name + '변호사에게 메일보내기'}>
|
|
49
|
+
<Image src={'https://d1tgonli21s4df.cloudfront.net/lawyer/email_icon.webp'} alt={'이메일'} width={64} height={64} className={'w-[32px] max-lg:w-[28px] max-xs:w-[25px]'}/>
|
|
50
|
+
</Link>) : (<></>)}
|
|
51
|
+
</span>
|
|
52
|
+
<p className={'whitespace-pre-line text-[17px] font-[600] leading-[1.3] tracking-[-0.34px] text-[#285FA7] ' +
|
|
53
|
+
//1500px
|
|
54
|
+
'max-3xl:text-[15px] ' +
|
|
55
|
+
//1280px
|
|
56
|
+
'max-xl:text-[17px]'}>
|
|
57
|
+
{isSuccess ? (i.center_ability ? i.center_ability : i.l_ability) : i.l_ability}
|
|
58
|
+
</p>
|
|
59
|
+
{i.l_tel ? (<p className={'text-[15px] font-[600] tracking-[-0.3px] text-[#434343]'}>
|
|
60
|
+
T. {i.l_tel}
|
|
61
|
+
</p>) : ('')}
|
|
62
|
+
</span>
|
|
63
|
+
</div>))}
|
|
64
|
+
</span>
|
|
65
|
+
</div>);
|
|
66
|
+
};
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import Link from 'next/link';
|
|
2
|
+
import Image from 'next/image';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import Mark from '../Mark/Mark';
|
|
5
|
+
import { lawyerCode } from '../../lib';
|
|
6
|
+
|
|
7
|
+
import IconRightArrow from '../../asset/images/seo/successCase/right_arrow.svg';
|
|
8
|
+
|
|
9
|
+
export const Lawyer = ({ lawyerData, isSuccess }: { lawyerData: any[]; isSuccess?: boolean }) => {
|
|
10
|
+
const imagePath: string = process.env.NEXT_PUBLIC_S3_URL + '';
|
|
11
|
+
const lawyerImagePath: string = imagePath + '/upload/lawyer';
|
|
12
|
+
|
|
13
|
+
return (
|
|
14
|
+
<div
|
|
15
|
+
className={
|
|
16
|
+
'relative h-auto w-full border-l-[1px] border-t-[1px] border-solid border-[#B9B9B9] pb-[45px] pl-[26px] pt-[30px] ' +
|
|
17
|
+
'before:absolute before:left-0 before:top-0 before:block before:aspect-square before:w-[15px] before:bg-[#B9B9B9] before:content-[""] '
|
|
18
|
+
}
|
|
19
|
+
>
|
|
20
|
+
<span className={'flex h-fit w-full items-center justify-between'}>
|
|
21
|
+
<p
|
|
22
|
+
className={
|
|
23
|
+
'text-[26px] tracking-[-0.5px] max-3xl:text-[24px] max-xl:text-[26px] ' +
|
|
24
|
+
'font-[800] text-[#80377A] '
|
|
25
|
+
}
|
|
26
|
+
>
|
|
27
|
+
관련 구성원
|
|
28
|
+
</p>
|
|
29
|
+
<Link
|
|
30
|
+
href={'/lawyer'}
|
|
31
|
+
title={'구성원 더보기'}
|
|
32
|
+
className={
|
|
33
|
+
'flex h-[35px] w-[100px] items-center justify-center gap-[4px] bg-[#5D5D5D] ' +
|
|
34
|
+
'hover:bg-[#722D6D] ' +
|
|
35
|
+
//1500px
|
|
36
|
+
'w-[100px] max-3xl:h-[30px] max-3xl:w-[90px] '
|
|
37
|
+
}
|
|
38
|
+
>
|
|
39
|
+
<p className={'w-fit text-[18px] font-[600] leading-none text-white max-3xl:text-[16px] '}>
|
|
40
|
+
더보기
|
|
41
|
+
</p>
|
|
42
|
+
<IconRightArrow className={'h-auto w-[14px] max-3xl:w-[12px] '} />
|
|
43
|
+
</Link>
|
|
44
|
+
</span>
|
|
45
|
+
<span
|
|
46
|
+
className={
|
|
47
|
+
'mt-[46px] flex flex-col gap-[40px] ' +
|
|
48
|
+
//1280px
|
|
49
|
+
'max-xl:grid max-xl:grid-cols-2 max-xl:gap-x-[10px] ' +
|
|
50
|
+
//768px
|
|
51
|
+
'max-md:grid-cols-1'
|
|
52
|
+
}
|
|
53
|
+
itemScope
|
|
54
|
+
itemType="https://schema.org/ItemList"
|
|
55
|
+
data-item-list-order="https://schema.org/ItemListUnordered"
|
|
56
|
+
data-number-of-items={lawyerData.length}
|
|
57
|
+
>
|
|
58
|
+
{lawyerData?.map((i, idx: number) => (
|
|
59
|
+
<div
|
|
60
|
+
className={'relative flex min-h-[125px] w-full gap-[12px]'}
|
|
61
|
+
key={'lawyer_name_' + i.lawyer_name}
|
|
62
|
+
itemScope
|
|
63
|
+
itemProp="itemListElement"
|
|
64
|
+
itemType="https://schema.org/ListItem"
|
|
65
|
+
>
|
|
66
|
+
<meta itemProp="position" content={String(idx + 1)} />
|
|
67
|
+
<Link
|
|
68
|
+
href={'/lawyer/' + i.l_id}
|
|
69
|
+
title={`${i.lawyer_name} 변호사 프로필 페이지 바로가기`}
|
|
70
|
+
className={'absolute z-10 h-full w-full'}
|
|
71
|
+
itemProp="url"
|
|
72
|
+
/>
|
|
73
|
+
<div
|
|
74
|
+
className={'relative h-[125px] w-[110px] shrink-0 overflow-hidden bg-[#F8F8F8]'}
|
|
75
|
+
itemScope
|
|
76
|
+
itemType="https://schema.org/Person"
|
|
77
|
+
>
|
|
78
|
+
<Image
|
|
79
|
+
src={lawyerImagePath + '/' + i.img_url}
|
|
80
|
+
alt={i.lawyer_name + '변호사님'}
|
|
81
|
+
fill
|
|
82
|
+
className={'h-full w-full translate-y-[5%] scale-95 object-contain'}
|
|
83
|
+
itemProp="image"
|
|
84
|
+
/>
|
|
85
|
+
<Mark
|
|
86
|
+
type={i.mark}
|
|
87
|
+
color={'#e8bb71'}
|
|
88
|
+
className={'absolute bottom-[5px] right-[5px] h-auto w-[25%]'}
|
|
89
|
+
/>
|
|
90
|
+
</div>
|
|
91
|
+
<span className={'flex flex-1 flex-col justify-between gap-[5px]'}>
|
|
92
|
+
<span className={'relative flex w-full flex-col gap-[5px]'}>
|
|
93
|
+
<meta itemProp="name" content={`${i.lawyer_name} 변호사`} />
|
|
94
|
+
<p className={'text-[23px] font-bold leading-none tracking-[-0.46px] text-[#434343]'}>
|
|
95
|
+
{i.lawyer_name}
|
|
96
|
+
</p>
|
|
97
|
+
<p
|
|
98
|
+
className={'text-[14px] font-medium leading-none tracking-[-0.4px] text-[#818181]'}
|
|
99
|
+
itemProp="jobTitle"
|
|
100
|
+
>
|
|
101
|
+
{i.lawyer_position}
|
|
102
|
+
</p>
|
|
103
|
+
{lawyerCode.find(code => code === i.lawyer_code) ? (
|
|
104
|
+
<Link
|
|
105
|
+
href={'/mail?lawyer=' + i.lawyer_name}
|
|
106
|
+
rel={'nofollow'}
|
|
107
|
+
className={
|
|
108
|
+
'absolute right-0 top-0 z-[11] block h-fit w-fit max-xl:right-[20px]'
|
|
109
|
+
}
|
|
110
|
+
aria-label={i.lawyer_name + '변호사에게 메일보내기'}
|
|
111
|
+
>
|
|
112
|
+
<Image
|
|
113
|
+
src={'https://d1tgonli21s4df.cloudfront.net/lawyer/email_icon.webp'}
|
|
114
|
+
alt={'이메일'}
|
|
115
|
+
width={64}
|
|
116
|
+
height={64}
|
|
117
|
+
className={'w-[32px] max-lg:w-[28px] max-xs:w-[25px]'}
|
|
118
|
+
/>
|
|
119
|
+
</Link>
|
|
120
|
+
) : (
|
|
121
|
+
<></>
|
|
122
|
+
)}
|
|
123
|
+
</span>
|
|
124
|
+
<p
|
|
125
|
+
className={
|
|
126
|
+
'whitespace-pre-line text-[17px] font-[600] leading-[1.3] tracking-[-0.34px] text-[#285FA7] ' +
|
|
127
|
+
//1500px
|
|
128
|
+
'max-3xl:text-[15px] ' +
|
|
129
|
+
//1280px
|
|
130
|
+
'max-xl:text-[17px]'
|
|
131
|
+
}
|
|
132
|
+
>
|
|
133
|
+
{isSuccess ? (i.center_ability ? i.center_ability : i.l_ability) : i.l_ability}
|
|
134
|
+
</p>
|
|
135
|
+
{i.l_tel ? (
|
|
136
|
+
<p className={'text-[15px] font-[600] tracking-[-0.3px] text-[#434343]'}>
|
|
137
|
+
T. {i.l_tel}
|
|
138
|
+
</p>
|
|
139
|
+
) : (
|
|
140
|
+
''
|
|
141
|
+
)}
|
|
142
|
+
</span>
|
|
143
|
+
</div>
|
|
144
|
+
))}
|
|
145
|
+
</span>
|
|
146
|
+
</div>
|
|
147
|
+
);
|
|
148
|
+
};
|