@daeryun/dr_components 0.2.3 → 0.2.5
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/cjs/tsconfig-cjs.tsbuildinfo +1 -1
- 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 +121 -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 +229 -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,121 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import Wrapper from '../Layout/Wrapper';
|
|
3
|
+
import Link from 'next/link';
|
|
4
|
+
import ArrowRightUp from '../../asset/images/viewMoreSection/arrow.svg';
|
|
5
|
+
import Search from '../../asset/images/viewMoreSection/search.svg';
|
|
6
|
+
import SearchIcon from './SearchIcon';
|
|
7
|
+
const ViewMoreSection = (props) => {
|
|
8
|
+
const [search, setSearch] = useState('');
|
|
9
|
+
const handleInputChange = (event) => {
|
|
10
|
+
setSearch(event.target.value);
|
|
11
|
+
};
|
|
12
|
+
const handleOnKeyPress = (event) => {
|
|
13
|
+
if (event.key === 'Enter') {
|
|
14
|
+
window.open(`https://www.daeryunlaw.com/integrate?tab=전체&search=${search}`, '_blank');
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
return (<section className={'relative pb-[100px] pt-[180px] ' +
|
|
18
|
+
'max-[1440px]:pb-[90px] max-[1440px]:pt-[170px] ' +
|
|
19
|
+
'max-lg:py-[140px] ' +
|
|
20
|
+
'max-md:py-[100px] ' +
|
|
21
|
+
'max-[425px]:py-[70px] '}>
|
|
22
|
+
<div className={'absolute bottom-0 h-[32%] w-full max-md:h-[62.56%]'} style={{ backgroundColor: props.bgColor ? props.bgColor : '#f0f0f0' }}></div>
|
|
23
|
+
<Wrapper>
|
|
24
|
+
<p className={'break-keep text-center text-[56px] font-[800] tracking-[-1.4px] ' +
|
|
25
|
+
'max-[1440px]:text-[52px] ' +
|
|
26
|
+
'max-lg:text-[48px] ' +
|
|
27
|
+
'max-md2:text-[44px] ' +
|
|
28
|
+
'max-md:text-[36px] ' +
|
|
29
|
+
'max-sm:text-[32px] ' +
|
|
30
|
+
'max-xs:text-[30px] ' +
|
|
31
|
+
'max-2xs:text-[28px] '}>
|
|
32
|
+
{props.title}
|
|
33
|
+
</p>
|
|
34
|
+
|
|
35
|
+
{/*인풋*/}
|
|
36
|
+
<div className={'flex flex-col '}>
|
|
37
|
+
<div className={'relative mx-auto mb-[27px] mt-[50px] flex' +
|
|
38
|
+
// 타블렛
|
|
39
|
+
' max-lg:w-full max-md:mt-10 ' +
|
|
40
|
+
// 모바일
|
|
41
|
+
' max-xs:mb-[17px] max-xs:mt-[33px]'}>
|
|
42
|
+
<input value={search} spellCheck={false} onChange={handleInputChange} onKeyUp={handleOnKeyPress} placeholder={props.placeholder ? props.placeholder : '사건분야, 변호사, 법률정보 등을 검색해보세요'} style={{ borderColor: props.inputColor }} className={'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] ' +
|
|
43
|
+
' max-lg:w-full' +
|
|
44
|
+
' max-sm:text-[18px] ' +
|
|
45
|
+
' max-xs:h-[70px] max-xs:pl-[20px] max-xs:pr-[68px] max-xs:text-[14px] ' +
|
|
46
|
+
' max-2xs:text-[13px]'}/>
|
|
47
|
+
|
|
48
|
+
<Search fill={props.inputColor} className={'absolute right-[30px] top-1/2 h-[26px] w-[26px] translate-y-[-50%] cursor-pointer'} onClick={() => {
|
|
49
|
+
window.open(`https://www.daeryunlaw.com/integrate?tab=전체&search=${search}`, '_blank');
|
|
50
|
+
}}/>
|
|
51
|
+
</div>
|
|
52
|
+
<div className={'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'}>
|
|
53
|
+
{props.keywords.map((keyword, index) => {
|
|
54
|
+
return (<Link href={'https://www.daeryunlaw.com/integrate?tab=전체&search=' +
|
|
55
|
+
(keyword === '가업승계·상속증여' ? '가업승계 상속증여' : keyword) +
|
|
56
|
+
'&recommend=true'} style={{ color: props.keywordColor ? props.keywordColor : '#4A4A4A' }} target={'_blank'} className={'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]'} key={index}>
|
|
57
|
+
#{keyword}
|
|
58
|
+
</Link>);
|
|
59
|
+
})}
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
<div className={'mx-auto mt-[68px] grid max-w-[1486px] grid-cols-4 gap-[42px] ' +
|
|
63
|
+
//1500px
|
|
64
|
+
' max-xxl:gap-[20px] ' +
|
|
65
|
+
//타블렛
|
|
66
|
+
' max-lg:mt-[48px] max-lg:w-[95%] max-lg:max-w-[800px] max-lg:grid-cols-2 max-lg:gap-[40px]' +
|
|
67
|
+
//모바일
|
|
68
|
+
' max-md:mt-[30px] max-md:w-full max-md:max-w-[unset] max-md:grid-cols-1 max-md:gap-[20px] '}>
|
|
69
|
+
<style>
|
|
70
|
+
{`
|
|
71
|
+
.moreView-box:hover {
|
|
72
|
+
background-color: ${props.hoverColor};
|
|
73
|
+
border-color: ${props.hoverColor};
|
|
74
|
+
}
|
|
75
|
+
`}
|
|
76
|
+
</style>
|
|
77
|
+
|
|
78
|
+
{props.moreViewList.map((list, index) => {
|
|
79
|
+
return (<Link href={list.link} className={'moreView-box group relative h-[340px] flex-1 cursor-pointer border border-solid border-[#E2E2E2] bg-white px-[39px] py-[50px] hover:text-white ' +
|
|
80
|
+
' transition-[background-color,color] ' +
|
|
81
|
+
//1400px
|
|
82
|
+
' max-xxl:h-[300px] max-xxl:px-[25px] max-xxl:py-[35px] ' +
|
|
83
|
+
//타블렛
|
|
84
|
+
' max-lg:aspect-square max-lg:h-[unset] max-lg:px-[32px] max-lg:py-[42px] ' +
|
|
85
|
+
//모바일
|
|
86
|
+
' max-md:h-[180px] max-md:w-full max-md:py-[30px] max-2xs:px-[25px] max-2xs:py-[35px]'} key={index}>
|
|
87
|
+
<p className={'flex justify-between text-[34px] font-bold leading-tight tracking-[-1.7px] ' +
|
|
88
|
+
//1400px
|
|
89
|
+
' max-xxl:text-[26px] ' +
|
|
90
|
+
//타블렛
|
|
91
|
+
'max-lg:text-[32px] ' +
|
|
92
|
+
//모바일
|
|
93
|
+
'max-md:text-[26px]'}>
|
|
94
|
+
{list.title}
|
|
95
|
+
<ArrowRightUp height="13px" width="13px" fill={props.arrowColor} className={'transition-[fill] group-hover:fill-white '}/>
|
|
96
|
+
</p>
|
|
97
|
+
<p className={'mt-[22px] whitespace-pre-wrap break-keep text-[20px] font-medium tracking-[-1px] text-[#5F656E] ' +
|
|
98
|
+
'transition-[color] group-hover:text-white ' +
|
|
99
|
+
//1500px
|
|
100
|
+
' max-xxl:mt-[20px] max-xxl:text-[16px] ' +
|
|
101
|
+
//타블렛
|
|
102
|
+
'max-lg:mt-[20px] max-lg:text-[20px] ' +
|
|
103
|
+
//모바일
|
|
104
|
+
'max-md:mt-[4px] max-md:text-[17px] max-2xs:w-[80%]'}>
|
|
105
|
+
{list.sub.replace('tel', props.tel)}
|
|
106
|
+
</p>
|
|
107
|
+
|
|
108
|
+
<SearchIcon index={index} hover fillColor={props.iconColor} className={'absolute bottom-[36px] right-[40px] aspect-square w-[74px]' +
|
|
109
|
+
//1500px
|
|
110
|
+
' max-xxl:bottom-[29px] max-xxl:right-[30px] max-xxl:w-[50px] ' +
|
|
111
|
+
//타블렛
|
|
112
|
+
' max-lg:bottom-[36px] max-lg:right-[40px] max-lg:w-[17%] max-lg:max-w-[74px] ' +
|
|
113
|
+
//모바일
|
|
114
|
+
' max-md:bottom-[20px] max-md:right-[30px] max-md:w-[50px] '}/>
|
|
115
|
+
</Link>);
|
|
116
|
+
})}
|
|
117
|
+
</div>
|
|
118
|
+
</Wrapper>
|
|
119
|
+
</section>);
|
|
120
|
+
};
|
|
121
|
+
export default ViewMoreSection;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import ViewMoreSection from './ViewMoreSection';
|
|
2
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
import '../../styles/globals.css';
|
|
4
|
+
import '../../styles/font_style.css';
|
|
5
|
+
declare const meta: Meta<typeof ViewMoreSection>;
|
|
6
|
+
export default meta;
|
|
7
|
+
type Story = StoryObj<typeof meta>;
|
|
8
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import ViewMoreSection from './ViewMoreSection';
|
|
2
|
+
import '../../styles/globals.css';
|
|
3
|
+
import '../../styles/font_style.css';
|
|
4
|
+
const meta = {
|
|
5
|
+
component: ViewMoreSection,
|
|
6
|
+
title: 'ViewMoreSection'
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
export const Default = {
|
|
10
|
+
render: args => {
|
|
11
|
+
return (<div className={'font-[SUIT]'}>
|
|
12
|
+
<ViewMoreSection {...args}/>
|
|
13
|
+
</div>);
|
|
14
|
+
},
|
|
15
|
+
args: {
|
|
16
|
+
title: (<>
|
|
17
|
+
관세변호사와 <br className={'sm:hidden'}/>더 많은 정보를 알아보세요
|
|
18
|
+
</>),
|
|
19
|
+
keywords: ['관세', '국제소송', '국제계약', '이민', '무역'],
|
|
20
|
+
tel: '0000-0000',
|
|
21
|
+
inputColor: 'pink',
|
|
22
|
+
keywordColor: 'green',
|
|
23
|
+
moreViewList: [
|
|
24
|
+
{
|
|
25
|
+
title: '대륜법률 상담',
|
|
26
|
+
sub: '365일 24시간\n관세전문변호사\n직접상담 tel',
|
|
27
|
+
link: '/choice'
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
title: '업무사례',
|
|
31
|
+
sub: '국경을 넘나드는\n관세변호사의\n맞춤형 솔루션',
|
|
32
|
+
link: '/success'
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
title: '변호사소개',
|
|
36
|
+
sub: '법원·검찰 출신,\n글로벌로펌 출신\n관세전문변호사',
|
|
37
|
+
link: '/lawyer'
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
title: '고객후기',
|
|
41
|
+
sub: '기업의 신뢰를\n한몸에 받고 있는\n관세변호사',
|
|
42
|
+
link: '/reply'
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
arrowColor: 'yellow',
|
|
46
|
+
hoverColor: 'pink',
|
|
47
|
+
bgColor: '#ffe9ed',
|
|
48
|
+
iconColor: 'pink'
|
|
49
|
+
}
|
|
50
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import ViewMoreSection from './ViewMoreSection';
|
|
2
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
import '../../styles/globals.css';
|
|
4
|
+
import '../../styles/font_style.css';
|
|
5
|
+
|
|
6
|
+
const meta: Meta<typeof ViewMoreSection> = {
|
|
7
|
+
component: ViewMoreSection,
|
|
8
|
+
title: 'ViewMoreSection'
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export default meta;
|
|
12
|
+
|
|
13
|
+
type Story = StoryObj<typeof meta>;
|
|
14
|
+
|
|
15
|
+
export const Default: Story = {
|
|
16
|
+
render: args => {
|
|
17
|
+
return (
|
|
18
|
+
<div className={'font-[SUIT]'}>
|
|
19
|
+
<ViewMoreSection {...args} />
|
|
20
|
+
</div>
|
|
21
|
+
);
|
|
22
|
+
},
|
|
23
|
+
args: {
|
|
24
|
+
title: (
|
|
25
|
+
<>
|
|
26
|
+
관세변호사와 <br className={'sm:hidden'} />더 많은 정보를 알아보세요
|
|
27
|
+
</>
|
|
28
|
+
),
|
|
29
|
+
keywords: ['관세', '국제소송', '국제계약', '이민', '무역'],
|
|
30
|
+
tel: '0000-0000',
|
|
31
|
+
inputColor: 'pink',
|
|
32
|
+
keywordColor: 'green',
|
|
33
|
+
moreViewList: [
|
|
34
|
+
{
|
|
35
|
+
title: '대륜법률 상담',
|
|
36
|
+
sub: '365일 24시간\n관세전문변호사\n직접상담 tel',
|
|
37
|
+
link: '/choice'
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
title: '업무사례',
|
|
41
|
+
sub: '국경을 넘나드는\n관세변호사의\n맞춤형 솔루션',
|
|
42
|
+
link: '/success'
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
title: '변호사소개',
|
|
46
|
+
sub: '법원·검찰 출신,\n글로벌로펌 출신\n관세전문변호사',
|
|
47
|
+
link: '/lawyer'
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
title: '고객후기',
|
|
51
|
+
sub: '기업의 신뢰를\n한몸에 받고 있는\n관세변호사',
|
|
52
|
+
link: '/reply'
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
arrowColor: 'yellow',
|
|
56
|
+
hoverColor: 'pink',
|
|
57
|
+
bgColor: '#ffe9ed',
|
|
58
|
+
iconColor: 'pink'
|
|
59
|
+
}
|
|
60
|
+
};
|
|
@@ -0,0 +1,229 @@
|
|
|
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
|
+
|
|
31
|
+
const handleInputChange = (event: React.ChangeEvent<HTMLInputElement>) => {
|
|
32
|
+
setSearch(event.target.value);
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
const handleOnKeyPress = (event: React.KeyboardEvent<HTMLInputElement>) => {
|
|
36
|
+
if (event.key === 'Enter') {
|
|
37
|
+
window.open(`https://www.daeryunlaw.com/integrate?tab=전체&search=${search}`, '_blank');
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
return (
|
|
42
|
+
<section
|
|
43
|
+
className={
|
|
44
|
+
'relative pb-[100px] pt-[180px] ' +
|
|
45
|
+
'max-[1440px]:pb-[90px] max-[1440px]:pt-[170px] ' +
|
|
46
|
+
'max-lg:py-[140px] ' +
|
|
47
|
+
'max-md:py-[100px] ' +
|
|
48
|
+
'max-[425px]:py-[70px] '
|
|
49
|
+
}
|
|
50
|
+
>
|
|
51
|
+
<div
|
|
52
|
+
className={'absolute bottom-0 h-[32%] w-full max-md:h-[62.56%]'}
|
|
53
|
+
style={{ backgroundColor: props.bgColor ? props.bgColor : '#f0f0f0' }}
|
|
54
|
+
></div>
|
|
55
|
+
<Wrapper>
|
|
56
|
+
<p
|
|
57
|
+
className={
|
|
58
|
+
'break-keep text-center text-[56px] font-[800] tracking-[-1.4px] ' +
|
|
59
|
+
'max-[1440px]:text-[52px] ' +
|
|
60
|
+
'max-lg:text-[48px] ' +
|
|
61
|
+
'max-md2:text-[44px] ' +
|
|
62
|
+
'max-md:text-[36px] ' +
|
|
63
|
+
'max-sm:text-[32px] ' +
|
|
64
|
+
'max-xs:text-[30px] ' +
|
|
65
|
+
'max-2xs:text-[28px] '
|
|
66
|
+
}
|
|
67
|
+
>
|
|
68
|
+
{props.title}
|
|
69
|
+
</p>
|
|
70
|
+
|
|
71
|
+
{/*인풋*/}
|
|
72
|
+
<div className={'flex flex-col '}>
|
|
73
|
+
<div
|
|
74
|
+
className={
|
|
75
|
+
'relative mx-auto mb-[27px] mt-[50px] flex' +
|
|
76
|
+
// 타블렛
|
|
77
|
+
' max-lg:w-full max-md:mt-10 ' +
|
|
78
|
+
// 모바일
|
|
79
|
+
' max-xs:mb-[17px] max-xs:mt-[33px]'
|
|
80
|
+
}
|
|
81
|
+
>
|
|
82
|
+
<input
|
|
83
|
+
value={search}
|
|
84
|
+
spellCheck={false}
|
|
85
|
+
onChange={handleInputChange}
|
|
86
|
+
onKeyUp={handleOnKeyPress}
|
|
87
|
+
placeholder={
|
|
88
|
+
props.placeholder ? props.placeholder : '사건분야, 변호사, 법률정보 등을 검색해보세요'
|
|
89
|
+
}
|
|
90
|
+
style={{ borderColor: props.inputColor }}
|
|
91
|
+
className={
|
|
92
|
+
'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] ' +
|
|
93
|
+
' max-lg:w-full' +
|
|
94
|
+
' max-sm:text-[18px] ' +
|
|
95
|
+
' max-xs:h-[70px] max-xs:pl-[20px] max-xs:pr-[68px] max-xs:text-[14px] ' +
|
|
96
|
+
' max-2xs:text-[13px]'
|
|
97
|
+
}
|
|
98
|
+
/>
|
|
99
|
+
|
|
100
|
+
<Search
|
|
101
|
+
fill={props.inputColor}
|
|
102
|
+
className={
|
|
103
|
+
'absolute right-[30px] top-1/2 h-[26px] w-[26px] translate-y-[-50%] cursor-pointer'
|
|
104
|
+
}
|
|
105
|
+
onClick={() => {
|
|
106
|
+
window.open(`https://www.daeryunlaw.com/integrate?tab=전체&search=${search}`, '_blank');
|
|
107
|
+
}}
|
|
108
|
+
/>
|
|
109
|
+
</div>
|
|
110
|
+
<div
|
|
111
|
+
className={
|
|
112
|
+
'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'
|
|
113
|
+
}
|
|
114
|
+
>
|
|
115
|
+
{props.keywords.map((keyword, index) => {
|
|
116
|
+
return (
|
|
117
|
+
<Link
|
|
118
|
+
href={
|
|
119
|
+
'https://www.daeryunlaw.com/integrate?tab=전체&search=' +
|
|
120
|
+
(keyword === '가업승계·상속증여' ? '가업승계 상속증여' : keyword) +
|
|
121
|
+
'&recommend=true'
|
|
122
|
+
}
|
|
123
|
+
style={{ color: props.keywordColor ? props.keywordColor : '#4A4A4A' }}
|
|
124
|
+
target={'_blank'}
|
|
125
|
+
className={
|
|
126
|
+
'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]'
|
|
127
|
+
}
|
|
128
|
+
key={index}
|
|
129
|
+
>
|
|
130
|
+
#{keyword}
|
|
131
|
+
</Link>
|
|
132
|
+
);
|
|
133
|
+
})}
|
|
134
|
+
</div>
|
|
135
|
+
</div>
|
|
136
|
+
<div
|
|
137
|
+
className={
|
|
138
|
+
'mx-auto mt-[68px] grid max-w-[1486px] grid-cols-4 gap-[42px] ' +
|
|
139
|
+
//1500px
|
|
140
|
+
' max-xxl:gap-[20px] ' +
|
|
141
|
+
//타블렛
|
|
142
|
+
' max-lg:mt-[48px] max-lg:w-[95%] max-lg:max-w-[800px] max-lg:grid-cols-2 max-lg:gap-[40px]' +
|
|
143
|
+
//모바일
|
|
144
|
+
' max-md:mt-[30px] max-md:w-full max-md:max-w-[unset] max-md:grid-cols-1 max-md:gap-[20px] '
|
|
145
|
+
}
|
|
146
|
+
>
|
|
147
|
+
<style>
|
|
148
|
+
{`
|
|
149
|
+
.moreView-box:hover {
|
|
150
|
+
background-color: ${props.hoverColor};
|
|
151
|
+
border-color: ${props.hoverColor};
|
|
152
|
+
}
|
|
153
|
+
`}
|
|
154
|
+
</style>
|
|
155
|
+
|
|
156
|
+
{props.moreViewList.map((list, index) => {
|
|
157
|
+
return (
|
|
158
|
+
<Link
|
|
159
|
+
href={list.link}
|
|
160
|
+
className={
|
|
161
|
+
'moreView-box group relative h-[340px] flex-1 cursor-pointer border border-solid border-[#E2E2E2] bg-white px-[39px] py-[50px] hover:text-white ' +
|
|
162
|
+
' transition-[background-color,color] ' +
|
|
163
|
+
//1400px
|
|
164
|
+
' max-xxl:h-[300px] max-xxl:px-[25px] max-xxl:py-[35px] ' +
|
|
165
|
+
//타블렛
|
|
166
|
+
' max-lg:aspect-square max-lg:h-[unset] max-lg:px-[32px] max-lg:py-[42px] ' +
|
|
167
|
+
//모바일
|
|
168
|
+
' max-md:h-[180px] max-md:w-full max-md:py-[30px] max-2xs:px-[25px] max-2xs:py-[35px]'
|
|
169
|
+
}
|
|
170
|
+
key={index}
|
|
171
|
+
>
|
|
172
|
+
<p
|
|
173
|
+
className={
|
|
174
|
+
'flex justify-between text-[34px] font-bold leading-tight tracking-[-1.7px] ' +
|
|
175
|
+
//1400px
|
|
176
|
+
' max-xxl:text-[26px] ' +
|
|
177
|
+
//타블렛
|
|
178
|
+
'max-lg:text-[32px] ' +
|
|
179
|
+
//모바일
|
|
180
|
+
'max-md:text-[26px]'
|
|
181
|
+
}
|
|
182
|
+
>
|
|
183
|
+
{list.title}
|
|
184
|
+
<ArrowRightUp
|
|
185
|
+
height="13px"
|
|
186
|
+
width="13px"
|
|
187
|
+
fill={props.arrowColor}
|
|
188
|
+
className={'transition-[fill] group-hover:fill-white '}
|
|
189
|
+
/>
|
|
190
|
+
</p>
|
|
191
|
+
<p
|
|
192
|
+
className={
|
|
193
|
+
'mt-[22px] whitespace-pre-wrap break-keep text-[20px] font-medium tracking-[-1px] text-[#5F656E] ' +
|
|
194
|
+
'transition-[color] group-hover:text-white ' +
|
|
195
|
+
//1500px
|
|
196
|
+
' max-xxl:mt-[20px] max-xxl:text-[16px] ' +
|
|
197
|
+
//타블렛
|
|
198
|
+
'max-lg:mt-[20px] max-lg:text-[20px] ' +
|
|
199
|
+
//모바일
|
|
200
|
+
'max-md:mt-[4px] max-md:text-[17px] max-2xs:w-[80%]'
|
|
201
|
+
}
|
|
202
|
+
>
|
|
203
|
+
{list.sub.replace('tel', props.tel)}
|
|
204
|
+
</p>
|
|
205
|
+
|
|
206
|
+
<SearchIcon
|
|
207
|
+
index={index}
|
|
208
|
+
hover
|
|
209
|
+
fillColor={props.iconColor}
|
|
210
|
+
className={
|
|
211
|
+
'absolute bottom-[36px] right-[40px] aspect-square w-[74px]' +
|
|
212
|
+
//1500px
|
|
213
|
+
' max-xxl:bottom-[29px] max-xxl:right-[30px] max-xxl:w-[50px] ' +
|
|
214
|
+
//타블렛
|
|
215
|
+
' max-lg:bottom-[36px] max-lg:right-[40px] max-lg:w-[17%] max-lg:max-w-[74px] ' +
|
|
216
|
+
//모바일
|
|
217
|
+
' max-md:bottom-[20px] max-md:right-[30px] max-md:w-[50px] '
|
|
218
|
+
}
|
|
219
|
+
/>
|
|
220
|
+
</Link>
|
|
221
|
+
);
|
|
222
|
+
})}
|
|
223
|
+
</div>
|
|
224
|
+
</Wrapper>
|
|
225
|
+
</section>
|
|
226
|
+
);
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
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>
|