@daeryun/dr_components 1.0.77 → 1.0.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/common/types/strength_new/index.d.ts +2 -2
- package/dist/components/common/types/strength_new/index.ts +2 -2
- package/dist/components/page/MyCase/[id]/_component/DetailInfo.jsx +3 -2
- package/dist/components/page/MyCase/[id]/_component/DetailInfo.tsx +3 -2
- package/dist/components/page/StrengthNew/components/common/ViewMoreSection.jsx +66 -31
- package/dist/components/page/StrengthNew/components/common/ViewMoreSection.tsx +133 -57
- package/dist/styles/globals.css +121 -7
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -84,7 +84,7 @@ export interface ICommonTypes {
|
|
|
84
84
|
view_more_list: {
|
|
85
85
|
title: string;
|
|
86
86
|
subTitle: string;
|
|
87
|
-
description: string;
|
|
87
|
+
description: string[];
|
|
88
88
|
url: string;
|
|
89
89
|
color: string;
|
|
90
90
|
view_more_text: string;
|
|
@@ -93,7 +93,7 @@ export interface ICommonTypes {
|
|
|
93
93
|
export interface IViewMoreListTypes {
|
|
94
94
|
title: string;
|
|
95
95
|
subTitle: string;
|
|
96
|
-
description: string;
|
|
96
|
+
description: string[];
|
|
97
97
|
url: string;
|
|
98
98
|
color: string;
|
|
99
99
|
view_more_text: string;
|
|
@@ -87,7 +87,7 @@ export interface ICommonTypes {
|
|
|
87
87
|
view_more_list: {
|
|
88
88
|
title: string;
|
|
89
89
|
subTitle: string;
|
|
90
|
-
description: string;
|
|
90
|
+
description: string[];
|
|
91
91
|
url: string;
|
|
92
92
|
color: string;
|
|
93
93
|
view_more_text: string;
|
|
@@ -98,7 +98,7 @@ export interface ICommonTypes {
|
|
|
98
98
|
export interface IViewMoreListTypes {
|
|
99
99
|
title: string;
|
|
100
100
|
subTitle: string;
|
|
101
|
-
description: string;
|
|
101
|
+
description: string[];
|
|
102
102
|
url: string;
|
|
103
103
|
color: string;
|
|
104
104
|
view_more_text: string;
|
|
@@ -3,6 +3,7 @@ import Link from 'next/link';
|
|
|
3
3
|
import CaseLayout from '../../_component/_layout/CaseLayout';
|
|
4
4
|
import Loading from '../../_component/_loading/Loading';
|
|
5
5
|
import caseLookupLinkout from '../../../../../asset/images/myCase/icon/case_lookup_linkout.webp';
|
|
6
|
+
import { dateFomat } from '../../../../../lib';
|
|
6
7
|
const Line = ({ title, content, isFirst = false }) => {
|
|
7
8
|
return (<div className={`lg;py-[28px] flex flex-row border-solid border-grayScale5 py-[20px] sm-top:py-[20px] ${isFirst ? 'border-y-[1px]' : 'border-b-[1px]'}`}>
|
|
8
9
|
<div className="body_medium2_mo sm-top:body_medium2_tb lg:body_medium2 w-[30%]">{title}</div>
|
|
@@ -23,8 +24,8 @@ const DetailInfo = ({ detailList, isLoading }) => {
|
|
|
23
24
|
<Line title="법원명" content={detailList === null || detailList === void 0 ? void 0 : detailList.agency_name}/>
|
|
24
25
|
<Line title="사건명" content={detailList === null || detailList === void 0 ? void 0 : detailList.title}/>
|
|
25
26
|
<Line title="진행단계" content={detailList === null || detailList === void 0 ? void 0 : detailList.state}/>
|
|
26
|
-
<Line title="사건 시작일" content={detailList === null || detailList === void 0 ? void 0 : detailList.accept_date}/>
|
|
27
|
-
<Line title="사건 종료일" content={detailList === null || detailList === void 0 ? void 0 : detailList.end_date}/>
|
|
27
|
+
<Line title="사건 시작일" content={(detailList === null || detailList === void 0 ? void 0 : detailList.accept_date) ? dateFomat(detailList === null || detailList === void 0 ? void 0 : detailList.accept_date, 'YYYY-MM-DD') : '-'}/>
|
|
28
|
+
<Line title="사건 종료일" content={(detailList === null || detailList === void 0 ? void 0 : detailList.end_date) ? dateFomat(detailList === null || detailList === void 0 ? void 0 : detailList.end_date, 'YYYY-MM-DD') : '-'}/>
|
|
28
29
|
{/* <Line title="담당 변호사" content={detailList?.lawyer} /> */}
|
|
29
30
|
{/* <Line title="담당 전문가" content={detailList?.specialists?.map(item => item).join(', ')} /> */}
|
|
30
31
|
{/* <Line title="담당 비서" content={detailList?.assistants?.map(item => item).join(', ')} /> */}
|
|
@@ -4,6 +4,7 @@ import Link from 'next/link';
|
|
|
4
4
|
import CaseLayout from '../../_component/_layout/CaseLayout';
|
|
5
5
|
import Loading from '../../_component/_loading/Loading';
|
|
6
6
|
import caseLookupLinkout from '../../../../../asset/images/myCase/icon/case_lookup_linkout.webp';
|
|
7
|
+
import { dateFomat } from '../../../../../lib';
|
|
7
8
|
|
|
8
9
|
const Line = ({
|
|
9
10
|
title,
|
|
@@ -48,8 +49,8 @@ const DetailInfo = ({ detailList, isLoading }: { detailList: DetailList; isLoadi
|
|
|
48
49
|
<Line title="법원명" content={detailList?.agency_name} />
|
|
49
50
|
<Line title="사건명" content={detailList?.title} />
|
|
50
51
|
<Line title="진행단계" content={detailList?.state} />
|
|
51
|
-
<Line title="사건 시작일" content={detailList?.accept_date} />
|
|
52
|
-
<Line title="사건 종료일" content={detailList?.end_date} />
|
|
52
|
+
<Line title="사건 시작일" content={detailList?.accept_date ? dateFomat(detailList?.accept_date, 'YYYY-MM-DD') :'-'} />
|
|
53
|
+
<Line title="사건 종료일" content={detailList?.end_date ? dateFomat(detailList?.end_date, 'YYYY-MM-DD'):'-'} />
|
|
53
54
|
{/* <Line title="담당 변호사" content={detailList?.lawyer} /> */}
|
|
54
55
|
{/* <Line title="담당 전문가" content={detailList?.specialists?.map(item => item).join(', ')} /> */}
|
|
55
56
|
{/* <Line title="담당 비서" content={detailList?.assistants?.map(item => item).join(', ')} /> */}
|
|
@@ -9,7 +9,7 @@ const ViewMoreSection = ({ view_more_section_title, view_more_list, initialData
|
|
|
9
9
|
const pathname = usePathname();
|
|
10
10
|
const isMain = pathname === '/strength';
|
|
11
11
|
const { width } = useBrowser(false); // 디바운스 적용
|
|
12
|
-
const isPC = width >=
|
|
12
|
+
const isPC = width >= 1400;
|
|
13
13
|
return (<section className={'relative w-full pb-[180px] tracking-[-0.04em] ' +
|
|
14
14
|
(isMain
|
|
15
15
|
? 'pt-[100px] max-xl:py-20 max-[700px]:py-[60px]'
|
|
@@ -22,9 +22,9 @@ const ViewMoreSection = ({ view_more_section_title, view_more_list, initialData
|
|
|
22
22
|
'max-xl:text-[28px]'}>
|
|
23
23
|
{view_more_section_title}
|
|
24
24
|
</h2>
|
|
25
|
-
{isPC ? (<div className={(isMain ? 'grid-cols-4' : 'grid-cols-3 ') + ' mt-10 grid gap-5'}>
|
|
25
|
+
{isPC ? (<div className={(isMain ? 'grid-cols-4' : 'grid-cols-3 ') + ' mt-10 grid gap-5 max-3xl:gap-3'}>
|
|
26
26
|
{view_more_list.map((item, index) => (<ViewMorePCItem key={index} item={item} index={index} initialData={initialData}/>))}
|
|
27
|
-
</div>) : (<div className={'mt-[20px] grid max-xl:grid-cols-1 max-[700px]:mt-0'}>
|
|
27
|
+
</div>) : (<div className={'mx-auto mt-[20px] grid w-[90%] max-xl:w-full max-xl:grid-cols-1 max-[700px]:mt-0'}>
|
|
28
28
|
{view_more_list.map((item, index) => (<ViewMoreTabItem key={index} item={item} index={index} initialData={initialData}/>))}
|
|
29
29
|
</div>)}
|
|
30
30
|
</Wrapper>
|
|
@@ -36,7 +36,7 @@ const ViewMorePCItem = ({ item, index, initialData }) => {
|
|
|
36
36
|
const pathname = usePathname();
|
|
37
37
|
const router = useRouter();
|
|
38
38
|
const hidden = pathname.includes(item.url); //이미지 순서 밀림때문에 히든으로 처리
|
|
39
|
-
return (<Link href={`/strength/${item.url}`} className={`view_more_${index} group flex h-[530px] w-full flex-col border-b border-solid border-black pb-10 tracking-[-0.04em] max-
|
|
39
|
+
return (<Link href={`/strength/${item.url}`} className={`view_more_${index} group flex h-[530px] w-full flex-col border-b border-solid border-black pb-10 tracking-[-0.04em] max-5xl:h-[510px] max-3xl:h-[510px] max-xxl:hidden ` +
|
|
40
40
|
(hidden ? '!hidden' : '')}>
|
|
41
41
|
<style>
|
|
42
42
|
{`
|
|
@@ -65,7 +65,6 @@ const ViewMorePCItem = ({ item, index, initialData }) => {
|
|
|
65
65
|
}
|
|
66
66
|
`}
|
|
67
67
|
</style>
|
|
68
|
-
|
|
69
68
|
<span className={'group relative h-fit w-full'}>
|
|
70
69
|
<span className={'absolute left-0 top-0 z-[1] block h-full w-full bg-[#57000F] opacity-0 mix-blend-color transition-opacity duration-500 group-hover:opacity-100'}/>
|
|
71
70
|
<span className={'absolute left-[50%] top-[50%] z-[1] block h-[60px] w-[94px] -translate-x-1/2 -translate-y-1/2 opacity-0 ' +
|
|
@@ -78,56 +77,70 @@ const ViewMorePCItem = ({ item, index, initialData }) => {
|
|
|
78
77
|
<Image src={`${imagePath}/strength_new/viewmore_${index + 1}.webp`} alt={'강점'} fill sizes="(max-width: 700px) 95vw, (max-width: 1280px) 260px, 33vw" className={'object-cover transition-transform duration-500 group-hover:scale-[120%]'}/>
|
|
79
78
|
</div>
|
|
80
79
|
</span>
|
|
81
|
-
{hidden ? (<p className={'mt-8 text-[30px] font-[800] leading-none transition-colors duration-500 '}>
|
|
80
|
+
{hidden ? (<p className={'mt-8 text-[30px] font-[800] leading-none transition-colors duration-500 max-5xl:text-[28px] max-3xl:mt-7 '}>
|
|
82
81
|
{item.title}
|
|
83
|
-
</p>) : (<h3 className={'mt-8 text-[30px] font-[800] leading-none transition-colors duration-500 '}>
|
|
82
|
+
</p>) : (<h3 className={'mt-8 text-[30px] font-[800] leading-none transition-colors duration-500 max-5xl:text-[28px] max-3xl:mt-7 '}>
|
|
84
83
|
{item.title}
|
|
85
84
|
</h3>)}
|
|
86
|
-
<p className={'mt-4 line-clamp-2 min-h-[62px] text-[
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
<
|
|
91
|
-
<
|
|
92
|
-
{item.
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
85
|
+
<p className={'mt-4 line-clamp-2 min-h-[62px] text-[24px] font-[600] leading-[1.3] max-5xl:text-[22px]'}>
|
|
86
|
+
{item.subTitle}
|
|
87
|
+
</p>
|
|
88
|
+
|
|
89
|
+
<span className={'flex justify-between'}>
|
|
90
|
+
<ul className={'mt-5 pl-3 max-5xl:mt-4 max-5xl:pl-2'}>
|
|
91
|
+
{item.description.map((desc, index) => {
|
|
92
|
+
return (<li key={index} className={'relative flex gap-[10px] break-all pb-[1px] text-[18px] leading-[1.4] tracking-[-0.04em] max-5xl:text-[16px]'}>
|
|
93
|
+
<span className={'mt-[10px] block h-[5px] w-[5px] !rounded-full bg-black max-5xl:h-1 max-5xl:w-1'}></span>
|
|
94
|
+
|
|
95
|
+
{replaceInitialData(desc.replace('*consult_date*', ''), initialData)}
|
|
96
|
+
|
|
97
|
+
{desc.includes('*consult_date*') ? (<span className={'absolute bottom-[-15px] left-3 text-[12px] text-[#A3A3A3]'}>
|
|
98
|
+
* {initialData.consult_date}
|
|
99
|
+
</span>) : (<></>)}
|
|
100
|
+
</li>);
|
|
101
|
+
})}
|
|
102
|
+
</ul>
|
|
103
|
+
<div className={'mt-auto flex shrink-0 justify-end'}>
|
|
104
|
+
<span className={'view_more_text flex items-center gap-[10px] text-[18px] leading-[1] transition-[color,font-weight] duration-500 max-5xl:gap-2 max-5xl:text-[16px]'}>
|
|
105
|
+
{item.view_more_text}
|
|
106
|
+
<span className={'circle flex h-7 w-7 items-center justify-center rounded-full transition-[background-color] duration-500 max-5xl:h-6 max-5xl:w-6'}>
|
|
107
|
+
<span className={'relative block h-[12px] w-[15px] opacity-0 transition-opacity duration-500 group-hover:opacity-100 max-5xl:h-[10px] max-5xl:w-[13px]'}>
|
|
108
|
+
<Image src={imagePath + `/strength_new/arrow.webp`} alt={'강점'} fill sizes={'(max-width: 1500px) 15px, 17px'} className={'object-contain'} quality={100}/>
|
|
109
|
+
</span>
|
|
96
110
|
</span>
|
|
97
111
|
</span>
|
|
98
|
-
</
|
|
99
|
-
</
|
|
112
|
+
</div>
|
|
113
|
+
</span>
|
|
100
114
|
</Link>);
|
|
101
115
|
};
|
|
102
116
|
const ViewMoreTabItem = ({ item, index, initialData }) => {
|
|
103
117
|
const imagePath = process.env.NEXT_PUBLIC_S3_URL + '';
|
|
104
118
|
const pathname = usePathname();
|
|
105
119
|
const hidden = pathname.includes(item.url); //이미지 순서 밀림때문에 히든으로 처리
|
|
106
|
-
return (<Link href={`/strength/${item.url}`} className={'group flex w-full
|
|
120
|
+
return (<Link href={`/strength/${item.url}`} className={'group flex w-full gap-10 border-b border-solid border-black py-10 tracking-[-0.04em] ' +
|
|
107
121
|
'max-md:gap-8 ' +
|
|
108
122
|
'max-[700px]:flex-col max-[700px]:gap-6 max-[700px]:pb-5 ' +
|
|
109
|
-
'
|
|
123
|
+
'xxl:hidden ' +
|
|
110
124
|
(hidden ? '!hidden' : '')}>
|
|
111
|
-
<div className={'relative h-
|
|
125
|
+
<div className={'relative h-[150px] w-[260px] max-[700px]:h-[100px] max-[700px]:w-full'}>
|
|
112
126
|
<div className={'absolute right-1/2 top-1/2 z-20 h-[40px] w-[62px] -translate-y-1/2 translate-x-1/2 opacity-70 mix-blend-overlay '}>
|
|
113
127
|
<Image src={`${imagePath}/strength_new/logo_white.webp`} alt={'강점'} fill sizes="62px" className={'object-cover'}/>
|
|
114
128
|
</div>
|
|
115
129
|
<div className={'relative h-[150px] w-[260px] shrink-0 ' +
|
|
116
|
-
'max-xl:h-full ' +
|
|
117
130
|
'max-md:w-[220px] ' +
|
|
118
131
|
'max-[700px]:h-[100px] max-[700px]:w-full'}>
|
|
119
132
|
<Image src={`${imagePath}/strength_new/viewmore_tab_${index + 1}.webp`} alt={'강점'} fill quality={100} sizes="(max-width: 700px) 95vw, (max-width: 1280px) 260px, 33vw" className={'object-cover max-[700px]:hidden '}/>
|
|
120
133
|
<Image src={`${imagePath}/strength_new/viewmore_mo_${index + 1}.webp`} alt={'강점'} fill quality={100} sizes="(max-width: 700px) 95vw, (max-width: 1280px) 260px, 33vw" className={'[700px]:hidden object-cover'}/>
|
|
121
134
|
</div>
|
|
122
135
|
</div>
|
|
123
|
-
<div className={'flex flex-col gap-4 max-[700px]:gap-[10px]'}>
|
|
136
|
+
<div className={'flex w-full flex-col gap-4 max-[700px]:gap-[10px]'}>
|
|
124
137
|
<div className={'flex justify-between'}>
|
|
125
|
-
{hidden ? (<p className={'text-[
|
|
138
|
+
{hidden ? (<p className={'text-[28px] font-[800] leading-none max-xl:text-[24px] max-md:text-[22px] max-[700px]:text-[20px]'} style={{ color: item.color }}>
|
|
126
139
|
{item.title}
|
|
127
|
-
</p>) : (<h3 className={'text-[
|
|
140
|
+
</p>) : (<h3 className={'text-[28px] font-[800] leading-none max-xl:text-[24px] max-md:text-[22px] max-[700px]:text-[20px]'} style={{ color: item.color }}>
|
|
128
141
|
{item.title}
|
|
129
142
|
</h3>)}
|
|
130
|
-
<div className={'mt-auto
|
|
143
|
+
<div className={'mt-auto hidden justify-end max-[700px]:flex'}>
|
|
131
144
|
<span className={'flex items-center gap-[10px] text-[16px] leading-[1] '}>
|
|
132
145
|
{item.view_more_text}
|
|
133
146
|
<span style={{ backgroundColor: item.color }} className={'flex h-6 w-6 items-center justify-center rounded-full '}>
|
|
@@ -138,10 +151,32 @@ const ViewMoreTabItem = ({ item, index, initialData }) => {
|
|
|
138
151
|
</span>
|
|
139
152
|
</div>
|
|
140
153
|
</div>
|
|
141
|
-
<p className={'text-[
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
154
|
+
<p className={'text-[22px] font-[600] leading-[1.3] max-xl:text-[20px] max-[700px]:mt-[10px]'}>
|
|
155
|
+
{item.subTitle}
|
|
156
|
+
</p>
|
|
157
|
+
<span className={'flex w-full justify-between'}>
|
|
158
|
+
<ul className={'pl-[10px]'}>
|
|
159
|
+
{item.description.map((desc, index) => {
|
|
160
|
+
return (<li key={index} className={'relative flex gap-2 text-[16px] leading-[1.4] tracking-[-0.04em] max-[700px]:items-center '}>
|
|
161
|
+
<span className={'mt-[10px] block h-[5px] w-[5px] !rounded-full bg-black max-3xl:h-1 max-3xl:w-1 max-[700px]:mt-0'}></span>
|
|
162
|
+
{replaceInitialData(desc.replace('*consult_date*', ''), initialData)}
|
|
163
|
+
{desc.includes('*consult_date*') ? (<span className={'absolute bottom-[-15px] left-3 text-[12px] text-[#A3A3A3] max-[700px]:relative max-[700px]:bottom-0 max-[700px]:left-0'}>
|
|
164
|
+
* {initialData.consult_date}
|
|
165
|
+
</span>) : (<></>)}
|
|
166
|
+
</li>);
|
|
167
|
+
})}
|
|
168
|
+
</ul>
|
|
169
|
+
<div className={'mt-auto flex shrink-0 justify-end max-[700px]:hidden'}>
|
|
170
|
+
<span className={'flex items-center gap-[10px] text-[16px] leading-[1] '}>
|
|
171
|
+
{item.view_more_text}
|
|
172
|
+
<span style={{ backgroundColor: item.color }} className={'flex h-6 w-6 items-center justify-center rounded-full '}>
|
|
173
|
+
<span className={'relative block h-[12px] w-[16px]'}>
|
|
174
|
+
<Image src={imagePath + `/strength_new/arrow.webp`} alt={'강점'} fill sizes="16px" className={'object-contain'} quality={100}/>
|
|
175
|
+
</span>
|
|
176
|
+
</span>
|
|
177
|
+
</span>
|
|
178
|
+
</div>
|
|
179
|
+
</span>
|
|
145
180
|
</div>
|
|
146
181
|
</Link>);
|
|
147
182
|
};
|
|
@@ -20,7 +20,7 @@ const ViewMoreSection = ({
|
|
|
20
20
|
const pathname = usePathname();
|
|
21
21
|
const isMain = pathname === '/strength';
|
|
22
22
|
const { width } = useBrowser(false); // 디바운스 적용
|
|
23
|
-
const isPC = width >=
|
|
23
|
+
const isPC = width >= 1400;
|
|
24
24
|
|
|
25
25
|
return (
|
|
26
26
|
<section
|
|
@@ -44,13 +44,13 @@ const ViewMoreSection = ({
|
|
|
44
44
|
{view_more_section_title}
|
|
45
45
|
</h2>
|
|
46
46
|
{isPC ? (
|
|
47
|
-
<div className={(isMain ? 'grid-cols-4' : 'grid-cols-3 ') + ' mt-10 grid gap-5'}>
|
|
47
|
+
<div className={(isMain ? 'grid-cols-4' : 'grid-cols-3 ') + ' mt-10 grid gap-5 max-3xl:gap-3'}>
|
|
48
48
|
{view_more_list.map((item, index) => (
|
|
49
49
|
<ViewMorePCItem key={index} item={item} index={index} initialData={initialData} />
|
|
50
50
|
))}
|
|
51
51
|
</div>
|
|
52
52
|
) : (
|
|
53
|
-
<div className={'mt-[20px] grid max-xl:grid-cols-1 max-[700px]:mt-0'}>
|
|
53
|
+
<div className={'mx-auto mt-[20px] grid w-[90%] max-xl:w-full max-xl:grid-cols-1 max-[700px]:mt-0'}>
|
|
54
54
|
{view_more_list.map((item, index) => (
|
|
55
55
|
<ViewMoreTabItem key={index} item={item} index={index} initialData={initialData} />
|
|
56
56
|
))}
|
|
@@ -81,7 +81,7 @@ const ViewMorePCItem = ({
|
|
|
81
81
|
<Link
|
|
82
82
|
href={`/strength/${item.url}`}
|
|
83
83
|
className={
|
|
84
|
-
`view_more_${index} group flex h-[530px] w-full flex-col border-b border-solid border-black pb-10 tracking-[-0.04em] max-
|
|
84
|
+
`view_more_${index} group flex h-[530px] w-full flex-col border-b border-solid border-black pb-10 tracking-[-0.04em] max-5xl:h-[510px] max-3xl:h-[510px] max-xxl:hidden ` +
|
|
85
85
|
(hidden ? '!hidden' : '')
|
|
86
86
|
}
|
|
87
87
|
>
|
|
@@ -112,7 +112,6 @@ const ViewMorePCItem = ({
|
|
|
112
112
|
}
|
|
113
113
|
`}
|
|
114
114
|
</style>
|
|
115
|
-
|
|
116
115
|
<span className={'group relative h-fit w-full'}>
|
|
117
116
|
<span
|
|
118
117
|
className={
|
|
@@ -149,53 +148,85 @@ const ViewMorePCItem = ({
|
|
|
149
148
|
</div>
|
|
150
149
|
</span>
|
|
151
150
|
{hidden ? (
|
|
152
|
-
<p
|
|
151
|
+
<p
|
|
152
|
+
className={
|
|
153
|
+
'mt-8 text-[30px] font-[800] leading-none transition-colors duration-500 max-5xl:text-[28px] max-3xl:mt-7 '
|
|
154
|
+
}
|
|
155
|
+
>
|
|
153
156
|
{item.title}
|
|
154
157
|
</p>
|
|
155
158
|
) : (
|
|
156
|
-
<h3
|
|
157
|
-
{item.title}
|
|
158
|
-
</h3>
|
|
159
|
-
)}
|
|
160
|
-
<p className={'mt-4 line-clamp-2 min-h-[62px] text-[22px] font-[600] leading-[1.3]'}>{item.subTitle}</p>
|
|
161
|
-
<p
|
|
162
|
-
className={'mt-4 line-clamp-4 text-[18px] font-[400] leading-[1.4] '}
|
|
163
|
-
dangerouslySetInnerHTML={{
|
|
164
|
-
__html: replaceInitialData(
|
|
165
|
-
item.description.replace('*consult_date*', `<span class='text-[16px]'>*consult_date*</span>`),
|
|
166
|
-
initialData
|
|
167
|
-
)
|
|
168
|
-
}}
|
|
169
|
-
></p>
|
|
170
|
-
<div className={'mt-auto flex justify-end'}>
|
|
171
|
-
<span
|
|
159
|
+
<h3
|
|
172
160
|
className={
|
|
173
|
-
'
|
|
161
|
+
'mt-8 text-[30px] font-[800] leading-none transition-colors duration-500 max-5xl:text-[28px] max-3xl:mt-7 '
|
|
174
162
|
}
|
|
175
163
|
>
|
|
176
|
-
{item.
|
|
164
|
+
{item.title}
|
|
165
|
+
</h3>
|
|
166
|
+
)}
|
|
167
|
+
<p className={'mt-4 line-clamp-2 min-h-[62px] text-[24px] font-[600] leading-[1.3] max-5xl:text-[22px]'}>
|
|
168
|
+
{item.subTitle}
|
|
169
|
+
</p>
|
|
170
|
+
|
|
171
|
+
<span className={'flex justify-between'}>
|
|
172
|
+
<ul className={'mt-5 pl-3 max-5xl:mt-4 max-5xl:pl-2'}>
|
|
173
|
+
{item.description.map((desc, index) => {
|
|
174
|
+
return (
|
|
175
|
+
<li
|
|
176
|
+
key={index}
|
|
177
|
+
className={
|
|
178
|
+
'relative flex gap-[10px] break-all pb-[1px] text-[18px] leading-[1.4] tracking-[-0.04em] max-5xl:text-[16px]'
|
|
179
|
+
}
|
|
180
|
+
>
|
|
181
|
+
<span
|
|
182
|
+
className={
|
|
183
|
+
'mt-[10px] block h-[5px] w-[5px] !rounded-full bg-black max-5xl:h-1 max-5xl:w-1'
|
|
184
|
+
}
|
|
185
|
+
></span>
|
|
186
|
+
|
|
187
|
+
{replaceInitialData(desc.replace('*consult_date*', ''), initialData)}
|
|
188
|
+
|
|
189
|
+
{desc.includes('*consult_date*') ? (
|
|
190
|
+
<span className={'absolute bottom-[-15px] left-3 text-[12px] text-[#A3A3A3]'}>
|
|
191
|
+
* {initialData.consult_date}
|
|
192
|
+
</span>
|
|
193
|
+
) : (
|
|
194
|
+
<></>
|
|
195
|
+
)}
|
|
196
|
+
</li>
|
|
197
|
+
);
|
|
198
|
+
})}
|
|
199
|
+
</ul>
|
|
200
|
+
<div className={'mt-auto flex shrink-0 justify-end'}>
|
|
177
201
|
<span
|
|
178
202
|
className={
|
|
179
|
-
'
|
|
203
|
+
'view_more_text flex items-center gap-[10px] text-[18px] leading-[1] transition-[color,font-weight] duration-500 max-5xl:gap-2 max-5xl:text-[16px]'
|
|
180
204
|
}
|
|
181
205
|
>
|
|
206
|
+
{item.view_more_text}
|
|
182
207
|
<span
|
|
183
208
|
className={
|
|
184
|
-
'
|
|
209
|
+
'circle flex h-7 w-7 items-center justify-center rounded-full transition-[background-color] duration-500 max-5xl:h-6 max-5xl:w-6'
|
|
185
210
|
}
|
|
186
211
|
>
|
|
187
|
-
<
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
212
|
+
<span
|
|
213
|
+
className={
|
|
214
|
+
'relative block h-[12px] w-[15px] opacity-0 transition-opacity duration-500 group-hover:opacity-100 max-5xl:h-[10px] max-5xl:w-[13px]'
|
|
215
|
+
}
|
|
216
|
+
>
|
|
217
|
+
<Image
|
|
218
|
+
src={imagePath + `/strength_new/arrow.webp`}
|
|
219
|
+
alt={'강점'}
|
|
220
|
+
fill
|
|
221
|
+
sizes={'(max-width: 1500px) 15px, 17px'}
|
|
222
|
+
className={'object-contain'}
|
|
223
|
+
quality={100}
|
|
224
|
+
/>
|
|
225
|
+
</span>
|
|
195
226
|
</span>
|
|
196
227
|
</span>
|
|
197
|
-
</
|
|
198
|
-
</
|
|
228
|
+
</div>
|
|
229
|
+
</span>
|
|
199
230
|
</Link>
|
|
200
231
|
);
|
|
201
232
|
};
|
|
@@ -216,14 +247,14 @@ const ViewMoreTabItem = ({
|
|
|
216
247
|
<Link
|
|
217
248
|
href={`/strength/${item.url}`}
|
|
218
249
|
className={
|
|
219
|
-
'group flex w-full
|
|
250
|
+
'group flex w-full gap-10 border-b border-solid border-black py-10 tracking-[-0.04em] ' +
|
|
220
251
|
'max-md:gap-8 ' +
|
|
221
252
|
'max-[700px]:flex-col max-[700px]:gap-6 max-[700px]:pb-5 ' +
|
|
222
|
-
'
|
|
253
|
+
'xxl:hidden ' +
|
|
223
254
|
(hidden ? '!hidden' : '')
|
|
224
255
|
}
|
|
225
256
|
>
|
|
226
|
-
<div className={'relative h-
|
|
257
|
+
<div className={'relative h-[150px] w-[260px] max-[700px]:h-[100px] max-[700px]:w-full'}>
|
|
227
258
|
<div
|
|
228
259
|
className={
|
|
229
260
|
'absolute right-1/2 top-1/2 z-20 h-[40px] w-[62px] -translate-y-1/2 translate-x-1/2 opacity-70 mix-blend-overlay '
|
|
@@ -240,7 +271,6 @@ const ViewMoreTabItem = ({
|
|
|
240
271
|
<div
|
|
241
272
|
className={
|
|
242
273
|
'relative h-[150px] w-[260px] shrink-0 ' +
|
|
243
|
-
'max-xl:h-full ' +
|
|
244
274
|
'max-md:w-[220px] ' +
|
|
245
275
|
'max-[700px]:h-[100px] max-[700px]:w-full'
|
|
246
276
|
}
|
|
@@ -263,24 +293,28 @@ const ViewMoreTabItem = ({
|
|
|
263
293
|
/>
|
|
264
294
|
</div>
|
|
265
295
|
</div>
|
|
266
|
-
<div className={'flex flex-col gap-4 max-[700px]:gap-[10px]'}>
|
|
296
|
+
<div className={'flex w-full flex-col gap-4 max-[700px]:gap-[10px]'}>
|
|
267
297
|
<div className={'flex justify-between'}>
|
|
268
298
|
{hidden ? (
|
|
269
299
|
<p
|
|
270
|
-
className={
|
|
300
|
+
className={
|
|
301
|
+
'text-[28px] font-[800] leading-none max-xl:text-[24px] max-md:text-[22px] max-[700px]:text-[20px]'
|
|
302
|
+
}
|
|
271
303
|
style={{ color: item.color }}
|
|
272
304
|
>
|
|
273
305
|
{item.title}
|
|
274
306
|
</p>
|
|
275
307
|
) : (
|
|
276
308
|
<h3
|
|
277
|
-
className={
|
|
309
|
+
className={
|
|
310
|
+
'text-[28px] font-[800] leading-none max-xl:text-[24px] max-md:text-[22px] max-[700px]:text-[20px]'
|
|
311
|
+
}
|
|
278
312
|
style={{ color: item.color }}
|
|
279
313
|
>
|
|
280
314
|
{item.title}
|
|
281
315
|
</h3>
|
|
282
316
|
)}
|
|
283
|
-
<div className={'mt-auto
|
|
317
|
+
<div className={'mt-auto hidden justify-end max-[700px]:flex'}>
|
|
284
318
|
<span className={'flex items-center gap-[10px] text-[16px] leading-[1] '}>
|
|
285
319
|
{item.view_more_text}
|
|
286
320
|
<span
|
|
@@ -301,19 +335,61 @@ const ViewMoreTabItem = ({
|
|
|
301
335
|
</span>
|
|
302
336
|
</div>
|
|
303
337
|
</div>
|
|
304
|
-
<p className={'text-[
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
338
|
+
<p className={'text-[22px] font-[600] leading-[1.3] max-xl:text-[20px] max-[700px]:mt-[10px]'}>
|
|
339
|
+
{item.subTitle}
|
|
340
|
+
</p>
|
|
341
|
+
<span className={'flex w-full justify-between'}>
|
|
342
|
+
<ul className={'pl-[10px]'}>
|
|
343
|
+
{item.description.map((desc, index) => {
|
|
344
|
+
return (
|
|
345
|
+
<li
|
|
346
|
+
key={index}
|
|
347
|
+
className={
|
|
348
|
+
'relative flex gap-2 text-[16px] leading-[1.4] tracking-[-0.04em] max-[700px]:items-center '
|
|
349
|
+
}
|
|
350
|
+
>
|
|
351
|
+
<span
|
|
352
|
+
className={
|
|
353
|
+
'mt-[10px] block h-[5px] w-[5px] !rounded-full bg-black max-3xl:h-1 max-3xl:w-1 max-[700px]:mt-0'
|
|
354
|
+
}
|
|
355
|
+
></span>
|
|
356
|
+
{replaceInitialData(desc.replace('*consult_date*', ''), initialData)}
|
|
357
|
+
{desc.includes('*consult_date*') ? (
|
|
358
|
+
<span
|
|
359
|
+
className={
|
|
360
|
+
'absolute bottom-[-15px] left-3 text-[12px] text-[#A3A3A3] max-[700px]:relative max-[700px]:bottom-0 max-[700px]:left-0'
|
|
361
|
+
}
|
|
362
|
+
>
|
|
363
|
+
* {initialData.consult_date}
|
|
364
|
+
</span>
|
|
365
|
+
) : (
|
|
366
|
+
<></>
|
|
367
|
+
)}
|
|
368
|
+
</li>
|
|
369
|
+
);
|
|
370
|
+
})}
|
|
371
|
+
</ul>
|
|
372
|
+
<div className={'mt-auto flex shrink-0 justify-end max-[700px]:hidden'}>
|
|
373
|
+
<span className={'flex items-center gap-[10px] text-[16px] leading-[1] '}>
|
|
374
|
+
{item.view_more_text}
|
|
375
|
+
<span
|
|
376
|
+
style={{ backgroundColor: item.color }}
|
|
377
|
+
className={'flex h-6 w-6 items-center justify-center rounded-full '}
|
|
378
|
+
>
|
|
379
|
+
<span className={'relative block h-[12px] w-[16px]'}>
|
|
380
|
+
<Image
|
|
381
|
+
src={imagePath + `/strength_new/arrow.webp`}
|
|
382
|
+
alt={'강점'}
|
|
383
|
+
fill
|
|
384
|
+
sizes="16px"
|
|
385
|
+
className={'object-contain'}
|
|
386
|
+
quality={100}
|
|
387
|
+
/>
|
|
388
|
+
</span>
|
|
389
|
+
</span>
|
|
390
|
+
</span>
|
|
391
|
+
</div>
|
|
392
|
+
</span>
|
|
317
393
|
</div>
|
|
318
394
|
</Link>
|
|
319
395
|
);
|