@daeryun/dr_components 0.5.21 → 0.5.23
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/cjs/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/components/ViewMoreSection/SearchIcon.d.ts +2 -1
- package/dist/components/ViewMoreSection/SearchIcon.jsx +6 -3
- package/dist/components/ViewMoreSection/SearchIcon.tsx +18 -14
- package/dist/components/ViewMoreSection/ViewMoreSection.d.ts +2 -0
- package/dist/components/ViewMoreSection/ViewMoreSection.jsx +33 -14
- package/dist/components/ViewMoreSection/ViewMoreSection.stories.tsx +1 -0
- package/dist/components/ViewMoreSection/ViewMoreSection.tsx +54 -20
- package/dist/components/page/LawyerDetail/LawyerDetail.jsx +1 -1
- package/dist/components/page/LawyerDetail/LawyerDetail.tsx +1 -4
- package/dist/styles/globals.css +4 -12
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import React, { useState } from 'react';
|
|
4
|
-
import Image from 'next/image';
|
|
5
4
|
import Wrapper from '../Layout/Wrapper';
|
|
6
5
|
import Link from 'next/link';
|
|
7
6
|
import ArrowRightUp from '../../asset/images/viewMoreSection/arrow.svg';
|
|
8
7
|
import Search from '../../asset/images/viewMoreSection/search.svg';
|
|
9
8
|
import SearchIcon from './SearchIcon';
|
|
10
9
|
|
|
11
|
-
import { useRouter } from 'next/navigation';
|
|
10
|
+
import { usePathname, useRouter } from 'next/navigation';
|
|
12
11
|
interface IViewMoreSectionTypes {
|
|
13
12
|
title: React.ReactNode;
|
|
14
13
|
keywords: string[];
|
|
@@ -20,7 +19,9 @@ interface IViewMoreSectionTypes {
|
|
|
20
19
|
tel: string;
|
|
21
20
|
inputColor: string;
|
|
22
21
|
arrowColor: string;
|
|
22
|
+
arrowHoverColor?: string;
|
|
23
23
|
iconColor: string;
|
|
24
|
+
iconHoverColor?: string;
|
|
24
25
|
hoverColor: string;
|
|
25
26
|
isGroupSearch?: boolean;
|
|
26
27
|
keywordColor?: string;
|
|
@@ -31,7 +32,8 @@ interface IViewMoreSectionTypes {
|
|
|
31
32
|
const ViewMoreSection = (props: IViewMoreSectionTypes) => {
|
|
32
33
|
const router = useRouter();
|
|
33
34
|
const [search, setSearch] = useState<string>('');
|
|
34
|
-
|
|
35
|
+
const pathname = usePathname();
|
|
36
|
+
const [hoverIndex, setHoverIndex] = useState<number>(-1);
|
|
35
37
|
const handleInputChange = (event: React.ChangeEvent<HTMLInputElement>) => {
|
|
36
38
|
setSearch(event.target.value);
|
|
37
39
|
};
|
|
@@ -61,20 +63,37 @@ const ViewMoreSection = (props: IViewMoreSectionTypes) => {
|
|
|
61
63
|
style={{ backgroundColor: props.bgColor ? props.bgColor : '#f0f0f0' }}
|
|
62
64
|
></div>
|
|
63
65
|
<Wrapper>
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
66
|
+
{pathname !== '/' ? (
|
|
67
|
+
<p
|
|
68
|
+
className={
|
|
69
|
+
'break-keep text-center text-[56px] font-[800] tracking-[-1.4px] ' +
|
|
70
|
+
'max-[1440px]:text-[52px] ' +
|
|
71
|
+
'max-lg:text-[48px] ' +
|
|
72
|
+
'max-md2:text-[44px] ' +
|
|
73
|
+
'max-md:text-[36px] ' +
|
|
74
|
+
'max-sm:text-[32px] ' +
|
|
75
|
+
'max-xs:text-[30px] ' +
|
|
76
|
+
'max-2xs:text-[28px] '
|
|
77
|
+
}
|
|
78
|
+
>
|
|
79
|
+
{props.title}
|
|
80
|
+
</p>
|
|
81
|
+
) : (
|
|
82
|
+
<h2
|
|
83
|
+
className={
|
|
84
|
+
'break-keep text-center text-[56px] font-[800] tracking-[-1.4px] ' +
|
|
85
|
+
'max-[1440px]:text-[52px] ' +
|
|
86
|
+
'max-lg:text-[48px] ' +
|
|
87
|
+
'max-md2:text-[44px] ' +
|
|
88
|
+
'max-md:text-[36px] ' +
|
|
89
|
+
'max-sm:text-[32px] ' +
|
|
90
|
+
'max-xs:text-[30px] ' +
|
|
91
|
+
'max-2xs:text-[28px] '
|
|
92
|
+
}
|
|
93
|
+
>
|
|
94
|
+
{props.title}
|
|
95
|
+
</h2>
|
|
96
|
+
)}
|
|
78
97
|
|
|
79
98
|
{/*인풋*/}
|
|
80
99
|
<div className={'flex flex-col '}>
|
|
@@ -176,6 +195,12 @@ const ViewMoreSection = (props: IViewMoreSectionTypes) => {
|
|
|
176
195
|
return (
|
|
177
196
|
<Link
|
|
178
197
|
href={list.link}
|
|
198
|
+
onMouseOver={() => {
|
|
199
|
+
setHoverIndex(index);
|
|
200
|
+
}}
|
|
201
|
+
onMouseOut={() => {
|
|
202
|
+
setHoverIndex(-1);
|
|
203
|
+
}}
|
|
179
204
|
className={
|
|
180
205
|
'moreView-box group relative h-[340px] flex-1 cursor-pointer border border-solid border-[#E2E2E2] bg-white px-[39px] py-[50px] hover:text-white ' +
|
|
181
206
|
' transition-[background-color,color,border-color] ' +
|
|
@@ -200,11 +225,19 @@ const ViewMoreSection = (props: IViewMoreSectionTypes) => {
|
|
|
200
225
|
}
|
|
201
226
|
>
|
|
202
227
|
{list.title}
|
|
228
|
+
|
|
203
229
|
<ArrowRightUp
|
|
204
230
|
height="13px"
|
|
205
231
|
width="13px"
|
|
206
|
-
fill={
|
|
207
|
-
|
|
232
|
+
fill={
|
|
233
|
+
props.arrowHoverColor && hoverIndex === index
|
|
234
|
+
? props.arrowHoverColor
|
|
235
|
+
: props.arrowColor
|
|
236
|
+
}
|
|
237
|
+
className={
|
|
238
|
+
'transition-[fill] ' +
|
|
239
|
+
(!props.arrowHoverColor ? 'group-hover:fill-white ' : '')
|
|
240
|
+
}
|
|
208
241
|
/>
|
|
209
242
|
</p>
|
|
210
243
|
<p
|
|
@@ -224,7 +257,8 @@ const ViewMoreSection = (props: IViewMoreSectionTypes) => {
|
|
|
224
257
|
|
|
225
258
|
<SearchIcon
|
|
226
259
|
index={index}
|
|
227
|
-
|
|
260
|
+
hoverColor={props.iconHoverColor}
|
|
261
|
+
hover={hoverIndex === index}
|
|
228
262
|
fillColor={props.iconColor}
|
|
229
263
|
className={
|
|
230
264
|
'absolute bottom-[36px] right-[40px] aspect-square w-[74px]' +
|
|
@@ -95,7 +95,7 @@ const Detail = ({ lawyerInfo, careerList, certiList, codeList, speciality }) =>
|
|
|
95
95
|
}
|
|
96
96
|
setIntegrateSearch(integrate_search ? String(integrate_search) : '');
|
|
97
97
|
}, [searchParams]);
|
|
98
|
-
return lawyerInfo ? (<section id={'sub_contents'} className={'
|
|
98
|
+
return lawyerInfo ? (<section id={'sub_contents'} className={'pt-[200px] max-lg:pt-[180px] max-md:pt-[120px] max-sm:pt-[68px]'}>
|
|
99
99
|
<BasicInfo codeList={codeList} lawyerInfo={lawyerInfo} integrateSearch={integrateSearch}/>
|
|
100
100
|
|
|
101
101
|
{/*변호사 설명*/}
|
|
@@ -110,10 +110,7 @@ const Detail = ({ lawyerInfo, careerList, certiList, codeList, speciality }: IDe
|
|
|
110
110
|
}, [searchParams]);
|
|
111
111
|
|
|
112
112
|
return lawyerInfo ? (
|
|
113
|
-
<section
|
|
114
|
-
id={'sub_contents'}
|
|
115
|
-
className={' pt-[310px] max-xl:pt-[260px] max-lg:pt-[180px] max-md:pt-[120px] max-sm:pt-[68px]'}
|
|
116
|
-
>
|
|
113
|
+
<section id={'sub_contents'} className={'pt-[200px] max-lg:pt-[180px] max-md:pt-[120px] max-sm:pt-[68px]'}>
|
|
117
114
|
<BasicInfo codeList={codeList} lawyerInfo={lawyerInfo} integrateSearch={integrateSearch} />
|
|
118
115
|
|
|
119
116
|
{/*변호사 설명*/}
|
package/dist/styles/globals.css
CHANGED
|
@@ -4419,6 +4419,10 @@ video {
|
|
|
4419
4419
|
padding-top: 180px;
|
|
4420
4420
|
}
|
|
4421
4421
|
|
|
4422
|
+
.pt-\[200px\] {
|
|
4423
|
+
padding-top: 200px;
|
|
4424
|
+
}
|
|
4425
|
+
|
|
4422
4426
|
.pt-\[22px\] {
|
|
4423
4427
|
padding-top: 22px;
|
|
4424
4428
|
}
|
|
@@ -4439,10 +4443,6 @@ video {
|
|
|
4439
4443
|
padding-top: 30px;
|
|
4440
4444
|
}
|
|
4441
4445
|
|
|
4442
|
-
.pt-\[310px\] {
|
|
4443
|
-
padding-top: 310px;
|
|
4444
|
-
}
|
|
4445
|
-
|
|
4446
4446
|
.pt-\[315px\] {
|
|
4447
4447
|
padding-top: 315px;
|
|
4448
4448
|
}
|
|
@@ -6511,10 +6511,6 @@ body {
|
|
|
6511
6511
|
background-color: rgb(245 245 245 / var(--tw-bg-opacity));
|
|
6512
6512
|
}
|
|
6513
6513
|
|
|
6514
|
-
.group:hover .group-hover\:fill-\[\#c3c3c3\] {
|
|
6515
|
-
fill: #c3c3c3;
|
|
6516
|
-
}
|
|
6517
|
-
|
|
6518
6514
|
.group:hover .group-hover\:fill-white {
|
|
6519
6515
|
fill: #fff;
|
|
6520
6516
|
}
|
|
@@ -7532,10 +7528,6 @@ body {
|
|
|
7532
7528
|
padding-left: 30px;
|
|
7533
7529
|
}
|
|
7534
7530
|
|
|
7535
|
-
.max-xl\:pt-\[260px\] {
|
|
7536
|
-
padding-top: 260px;
|
|
7537
|
-
}
|
|
7538
|
-
|
|
7539
7531
|
.max-xl\:pt-\[50px\] {
|
|
7540
7532
|
padding-top: 50px;
|
|
7541
7533
|
}
|