@daeryun/dr_components 0.2.2 → 0.2.4
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/viewMoreSection/arrow.svg +11 -0
- package/dist/asset/images/viewMoreSection/search.svg +15 -0
- package/dist/asset/images/viewMoreSection/searchIconSVG/section12_icon_01a.svg +18 -0
- package/dist/asset/images/viewMoreSection/searchIconSVG/section12_icon_02a.svg +23 -0
- package/dist/asset/images/viewMoreSection/searchIconSVG/section12_icon_03a.svg +25 -0
- package/dist/asset/images/viewMoreSection/searchIconSVG/section12_icon_04a.svg +24 -0
- package/dist/components/LogoSection/LogoSection.jsx +1 -1
- package/dist/components/LogoSection/LogoSection.tsx +1 -0
- package/dist/components/ViewMoreSection/SearchIcon.d.ts +7 -0
- package/dist/components/ViewMoreSection/SearchIcon.jsx +12 -0
- package/dist/components/ViewMoreSection/SearchIcon.tsx +25 -0
- package/dist/components/ViewMoreSection/ViewMoreSection.d.ts +20 -0
- package/dist/components/ViewMoreSection/ViewMoreSection.jsx +122 -0
- package/dist/components/ViewMoreSection/ViewMoreSection.stories.d.ts +8 -0
- package/dist/components/ViewMoreSection/ViewMoreSection.stories.jsx +50 -0
- package/dist/components/ViewMoreSection/ViewMoreSection.stories.tsx +60 -0
- package/dist/components/ViewMoreSection/ViewMoreSection.tsx +230 -0
- package/dist/components/index.js +1 -0
- package/dist/components/index.ts +1 -0
- package/dist/components/page/Strength/StrengthList.jsx +1 -1
- package/dist/components/page/Strength/StrengthList.tsx +1 -0
- package/dist/styles/globals.css +391 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import Image from 'next/image';
|
|
3
|
+
import Wrapper from '../Layout/Wrapper';
|
|
4
|
+
import Link from 'next/link';
|
|
5
|
+
import ArrowRightUp from '../../asset/images/viewMoreSection/arrow.svg';
|
|
6
|
+
import Search from '../../asset/images/viewMoreSection/search.svg';
|
|
7
|
+
import SearchIcon from './SearchIcon';
|
|
8
|
+
|
|
9
|
+
interface IViewMoreSectionTypes {
|
|
10
|
+
title: React.ReactNode;
|
|
11
|
+
keywords: string[];
|
|
12
|
+
moreViewList: {
|
|
13
|
+
title: string;
|
|
14
|
+
sub: string;
|
|
15
|
+
link: string;
|
|
16
|
+
}[];
|
|
17
|
+
tel: string;
|
|
18
|
+
inputColor: string;
|
|
19
|
+
arrowColor: string;
|
|
20
|
+
iconColor: string;
|
|
21
|
+
hoverColor: string;
|
|
22
|
+
|
|
23
|
+
keywordColor?: string;
|
|
24
|
+
bgColor?: string;
|
|
25
|
+
placeholder?: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const ViewMoreSection = (props: IViewMoreSectionTypes) => {
|
|
29
|
+
const [search, setSearch] = useState<string>('');
|
|
30
|
+
console.log(props.arrowColor);
|
|
31
|
+
|
|
32
|
+
const handleInputChange = (event: React.ChangeEvent<HTMLInputElement>) => {
|
|
33
|
+
setSearch(event.target.value);
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
const handleOnKeyPress = (event: React.KeyboardEvent<HTMLInputElement>) => {
|
|
37
|
+
if (event.key === 'Enter') {
|
|
38
|
+
window.open(`https://www.daeryunlaw.com/integrate?tab=전체&search=${search}`, '_blank');
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
return (
|
|
43
|
+
<section
|
|
44
|
+
className={
|
|
45
|
+
'relative pb-[100px] pt-[180px] ' +
|
|
46
|
+
'max-[1440px]:pb-[90px] max-[1440px]:pt-[170px] ' +
|
|
47
|
+
'max-lg:py-[140px] ' +
|
|
48
|
+
'max-md:py-[100px] ' +
|
|
49
|
+
'max-[425px]:py-[70px] '
|
|
50
|
+
}
|
|
51
|
+
>
|
|
52
|
+
<div
|
|
53
|
+
className={'absolute bottom-0 h-[32%] w-full max-md:h-[62.56%]'}
|
|
54
|
+
style={{ backgroundColor: props.bgColor ? props.bgColor : '#f0f0f0' }}
|
|
55
|
+
></div>
|
|
56
|
+
<Wrapper>
|
|
57
|
+
<p
|
|
58
|
+
className={
|
|
59
|
+
'break-keep text-center text-[56px] font-[800] tracking-[-1.4px] ' +
|
|
60
|
+
'max-[1440px]:text-[52px] ' +
|
|
61
|
+
'max-lg:text-[48px] ' +
|
|
62
|
+
'max-md2:text-[44px] ' +
|
|
63
|
+
'max-md:text-[36px] ' +
|
|
64
|
+
'max-sm:text-[32px] ' +
|
|
65
|
+
'max-xs:text-[30px] ' +
|
|
66
|
+
'max-2xs:text-[28px] '
|
|
67
|
+
}
|
|
68
|
+
>
|
|
69
|
+
{props.title}
|
|
70
|
+
</p>
|
|
71
|
+
|
|
72
|
+
{/*인풋*/}
|
|
73
|
+
<div className={'flex flex-col '}>
|
|
74
|
+
<div
|
|
75
|
+
className={
|
|
76
|
+
'relative mx-auto mb-[27px] mt-[50px] flex' +
|
|
77
|
+
// 타블렛
|
|
78
|
+
' max-lg:w-full max-md:mt-10 ' +
|
|
79
|
+
// 모바일
|
|
80
|
+
' max-xs:mb-[17px] max-xs:mt-[33px]'
|
|
81
|
+
}
|
|
82
|
+
>
|
|
83
|
+
<input
|
|
84
|
+
value={search}
|
|
85
|
+
spellCheck={false}
|
|
86
|
+
onChange={handleInputChange}
|
|
87
|
+
onKeyUp={handleOnKeyPress}
|
|
88
|
+
placeholder={
|
|
89
|
+
props.placeholder ? props.placeholder : '사건분야, 변호사, 법률정보 등을 검색해보세요'
|
|
90
|
+
}
|
|
91
|
+
style={{ borderColor: props.inputColor }}
|
|
92
|
+
className={
|
|
93
|
+
'h-[80px] w-[850px] rounded-full border-[2px] border-solid py-[26px] pl-[30px] pr-[72px] text-[22px] tracking-[-0.55px] text-[#5D5D5D] placeholder:text-[#777C83] ' +
|
|
94
|
+
' max-lg:w-full' +
|
|
95
|
+
' max-sm:text-[18px] ' +
|
|
96
|
+
' max-xs:h-[70px] max-xs:pl-[20px] max-xs:pr-[68px] max-xs:text-[14px] ' +
|
|
97
|
+
' max-2xs:text-[13px]'
|
|
98
|
+
}
|
|
99
|
+
/>
|
|
100
|
+
|
|
101
|
+
<Search
|
|
102
|
+
fill={props.inputColor}
|
|
103
|
+
className={
|
|
104
|
+
'absolute right-[30px] top-1/2 h-[26px] w-[26px] translate-y-[-50%] cursor-pointer'
|
|
105
|
+
}
|
|
106
|
+
onClick={() => {
|
|
107
|
+
window.open(`https://www.daeryunlaw.com/integrate?tab=전체&search=${search}`, '_blank');
|
|
108
|
+
}}
|
|
109
|
+
/>
|
|
110
|
+
</div>
|
|
111
|
+
<div
|
|
112
|
+
className={
|
|
113
|
+
'max-xs:gap- flex w-full flex-wrap justify-center gap-x-[25px] max-lg:gap-x-[15px] max-md:mx-auto max-md:w-[80%] max-md:gap-x-[12px] max-xs:gap-x-2'
|
|
114
|
+
}
|
|
115
|
+
>
|
|
116
|
+
{props.keywords.map((keyword, index) => {
|
|
117
|
+
return (
|
|
118
|
+
<Link
|
|
119
|
+
href={
|
|
120
|
+
'https://www.daeryunlaw.com/integrate?tab=전체&search=' +
|
|
121
|
+
(keyword === '가업승계·상속증여' ? '가업승계 상속증여' : keyword) +
|
|
122
|
+
'&recommend=true'
|
|
123
|
+
}
|
|
124
|
+
style={{ color: props.keywordColor ? props.keywordColor : '#4A4A4A' }}
|
|
125
|
+
target={'_blank'}
|
|
126
|
+
className={
|
|
127
|
+
'w-fit cursor-pointer text-[20px] font-medium tracking-[-0.5px] max-md:text-[18px] max-xs:px-1 max-xs:py-[2px] max-xs:text-[16px]'
|
|
128
|
+
}
|
|
129
|
+
key={index}
|
|
130
|
+
>
|
|
131
|
+
#{keyword}
|
|
132
|
+
</Link>
|
|
133
|
+
);
|
|
134
|
+
})}
|
|
135
|
+
</div>
|
|
136
|
+
</div>
|
|
137
|
+
<div
|
|
138
|
+
className={
|
|
139
|
+
'mx-auto mt-[68px] grid max-w-[1486px] grid-cols-4 gap-[42px] ' +
|
|
140
|
+
//1500px
|
|
141
|
+
' max-xxl:gap-[20px] ' +
|
|
142
|
+
//타블렛
|
|
143
|
+
' max-lg:mt-[48px] max-lg:w-[95%] max-lg:max-w-[800px] max-lg:grid-cols-2 max-lg:gap-[40px]' +
|
|
144
|
+
//모바일
|
|
145
|
+
' max-md:mt-[30px] max-md:w-full max-md:max-w-[unset] max-md:grid-cols-1 max-md:gap-[20px] '
|
|
146
|
+
}
|
|
147
|
+
>
|
|
148
|
+
<style>
|
|
149
|
+
{`
|
|
150
|
+
.moreView-box:hover {
|
|
151
|
+
background-color: ${props.hoverColor};
|
|
152
|
+
border-color: ${props.hoverColor};
|
|
153
|
+
}
|
|
154
|
+
`}
|
|
155
|
+
</style>
|
|
156
|
+
|
|
157
|
+
{props.moreViewList.map((list, index) => {
|
|
158
|
+
return (
|
|
159
|
+
<Link
|
|
160
|
+
href={list.link}
|
|
161
|
+
className={
|
|
162
|
+
'moreView-box group relative h-[340px] flex-1 cursor-pointer border border-solid border-[#E2E2E2] bg-white px-[39px] py-[50px] hover:text-white ' +
|
|
163
|
+
' transition-[background-color,color] ' +
|
|
164
|
+
//1400px
|
|
165
|
+
' max-xxl:h-[300px] max-xxl:px-[25px] max-xxl:py-[35px] ' +
|
|
166
|
+
//타블렛
|
|
167
|
+
' max-lg:aspect-square max-lg:h-[unset] max-lg:px-[32px] max-lg:py-[42px] ' +
|
|
168
|
+
//모바일
|
|
169
|
+
' max-md:h-[180px] max-md:w-full max-md:py-[30px] max-2xs:px-[25px] max-2xs:py-[35px]'
|
|
170
|
+
}
|
|
171
|
+
key={index}
|
|
172
|
+
>
|
|
173
|
+
<p
|
|
174
|
+
className={
|
|
175
|
+
'flex justify-between text-[34px] font-bold leading-tight tracking-[-1.7px] ' +
|
|
176
|
+
//1400px
|
|
177
|
+
' max-xxl:text-[26px] ' +
|
|
178
|
+
//타블렛
|
|
179
|
+
'max-lg:text-[32px] ' +
|
|
180
|
+
//모바일
|
|
181
|
+
'max-md:text-[26px]'
|
|
182
|
+
}
|
|
183
|
+
>
|
|
184
|
+
{list.title}
|
|
185
|
+
<ArrowRightUp
|
|
186
|
+
height="13px"
|
|
187
|
+
width="13px"
|
|
188
|
+
fill={props.arrowColor}
|
|
189
|
+
className={'transition-[fill] group-hover:fill-white '}
|
|
190
|
+
/>
|
|
191
|
+
</p>
|
|
192
|
+
<p
|
|
193
|
+
className={
|
|
194
|
+
'mt-[22px] whitespace-pre-wrap break-keep text-[20px] font-medium tracking-[-1px] text-[#5F656E] ' +
|
|
195
|
+
'transition-[color] group-hover:text-white ' +
|
|
196
|
+
//1500px
|
|
197
|
+
' max-xxl:mt-[20px] max-xxl:text-[16px] ' +
|
|
198
|
+
//타블렛
|
|
199
|
+
'max-lg:mt-[20px] max-lg:text-[20px] ' +
|
|
200
|
+
//모바일
|
|
201
|
+
'max-md:mt-[4px] max-md:text-[17px] max-2xs:w-[80%]'
|
|
202
|
+
}
|
|
203
|
+
>
|
|
204
|
+
{list.sub.replace('tel', props.tel)}
|
|
205
|
+
</p>
|
|
206
|
+
|
|
207
|
+
<SearchIcon
|
|
208
|
+
index={index}
|
|
209
|
+
hover
|
|
210
|
+
fillColor={props.iconColor}
|
|
211
|
+
className={
|
|
212
|
+
'absolute bottom-[36px] right-[40px] aspect-square w-[74px]' +
|
|
213
|
+
//1500px
|
|
214
|
+
' max-xxl:bottom-[29px] max-xxl:right-[30px] max-xxl:w-[50px] ' +
|
|
215
|
+
//타블렛
|
|
216
|
+
' max-lg:bottom-[36px] max-lg:right-[40px] max-lg:w-[17%] max-lg:max-w-[74px] ' +
|
|
217
|
+
//모바일
|
|
218
|
+
' max-md:bottom-[20px] max-md:right-[30px] max-md:w-[50px] '
|
|
219
|
+
}
|
|
220
|
+
/>
|
|
221
|
+
</Link>
|
|
222
|
+
);
|
|
223
|
+
})}
|
|
224
|
+
</div>
|
|
225
|
+
</Wrapper>
|
|
226
|
+
</section>
|
|
227
|
+
);
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
export default ViewMoreSection;
|
package/dist/components/index.js
CHANGED
|
@@ -6,6 +6,7 @@ export { default as MapFix } from './MapFix/MapFix';
|
|
|
6
6
|
export { default as CategoryView } from './categoryView/CategoryView';
|
|
7
7
|
export { default as CountingSection } from './CountingSection/CountingSection';
|
|
8
8
|
export { default as LogoSection } from './LogoSection/LogoSection';
|
|
9
|
+
export { default as ViewMoreSection } from './ViewMoreSection/ViewMoreSection';
|
|
9
10
|
export { default as MapSection } from './MapSection/MapSection';
|
|
10
11
|
export { default as Header } from './Header/Header';
|
|
11
12
|
export { default as Wrapper } from './Layout/Wrapper';
|
package/dist/components/index.ts
CHANGED
|
@@ -6,6 +6,7 @@ export { default as MapFix } from './MapFix/MapFix';
|
|
|
6
6
|
export { default as CategoryView } from './categoryView/CategoryView';
|
|
7
7
|
export { default as CountingSection } from './CountingSection/CountingSection';
|
|
8
8
|
export { default as LogoSection } from './LogoSection/LogoSection';
|
|
9
|
+
export { default as ViewMoreSection } from './ViewMoreSection/ViewMoreSection';
|
|
9
10
|
export { default as MapSection } from './MapSection/MapSection';
|
|
10
11
|
export { default as Header } from './Header/Header';
|
|
11
12
|
export { default as Wrapper } from './Layout/Wrapper';
|
|
@@ -47,7 +47,7 @@ const ImageSection = ({ index }) => {
|
|
|
47
47
|
: 'right-10 max-3xl:right-[28px] max-lg:right-10 max-md2:right-[28px] max-md:right-[24px] max-xs:right-4')}>
|
|
48
48
|
{index < 9 ? `0${index + 1}` : index + 1}
|
|
49
49
|
</span>
|
|
50
|
-
<Image id={`strength_${index}_img`} src={`https://d1tgonli21s4df.cloudfront.net/strength/0${index + 1}.webp`} alt={'강점 배경 ' + (index + 1)} fill className={'object-cover'}/>
|
|
50
|
+
<Image id={`strength_${index}_img`} src={`https://d1tgonli21s4df.cloudfront.net/strength/0${index + 1}.webp`} alt={'강점 배경 ' + (index + 1)} fill sizes={'(max-width: 1024px) 95vw, 45vw'} className={'object-cover'}/>
|
|
51
51
|
</div>
|
|
52
52
|
</>);
|
|
53
53
|
};
|
|
@@ -85,6 +85,7 @@ const ImageSection = ({ index }: { index: number }) => {
|
|
|
85
85
|
src={`https://d1tgonli21s4df.cloudfront.net/strength/0${index + 1}.webp`}
|
|
86
86
|
alt={'강점 배경 ' + (index + 1)}
|
|
87
87
|
fill
|
|
88
|
+
sizes={'(max-width: 1024px) 95vw, 45vw'}
|
|
88
89
|
className={'object-cover'}
|
|
89
90
|
/>
|
|
90
91
|
</div>
|