@daeryun/dr_components 0.5.1 → 0.5.21
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/system/svg/Arrow_Right_LG.svg +3 -0
- package/dist/asset/images/system/svg/arrow_system.svg +3 -0
- package/dist/asset/images/system/system_allocation.webp +0 -0
- package/dist/asset/images/system/system_btn_1.webp +0 -0
- package/dist/asset/images/system/system_btn_2.webp +0 -0
- package/dist/asset/images/system/system_btn_3.webp +0 -0
- package/dist/asset/images/system/system_consult_now.webp +0 -0
- package/dist/asset/images/system/system_consult_now_m.webp +0 -0
- package/dist/asset/images/system/system_consult_now_t.webp +0 -0
- package/dist/asset/images/system/system_consultation.webp +0 -0
- package/dist/asset/images/system/system_consultation_img.webp +0 -0
- package/dist/asset/images/system/system_consultation_img_m.webp +0 -0
- package/dist/asset/images/system/system_consultation_img_t.webp +0 -0
- package/dist/asset/images/system/system_consultation_txt.webp +0 -0
- package/dist/asset/images/system/system_post.webp +0 -0
- package/dist/asset/images/system/system_sec1_bg.webp +0 -0
- package/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/components/common/system/index.d.ts +14 -0
- package/dist/components/common/system/index.jsx +37 -0
- package/dist/components/common/system/index.tsx +40 -0
- package/dist/components/index.js +1 -0
- package/dist/components/index.ts +1 -0
- package/dist/components/page/System/AllocationSystem.d.ts +2 -0
- package/dist/components/page/System/AllocationSystem.jsx +64 -0
- package/dist/components/page/System/AllocationSystem.tsx +94 -0
- package/dist/components/page/System/ConsultNow.d.ts +2 -0
- package/dist/components/page/System/ConsultNow.jsx +64 -0
- package/dist/components/page/System/ConsultNow.tsx +113 -0
- package/dist/components/page/System/ConsultationSystem.d.ts +2 -0
- package/dist/components/page/System/ConsultationSystem.jsx +96 -0
- package/dist/components/page/System/ConsultationSystem.tsx +163 -0
- package/dist/components/page/System/PostSystem.d.ts +2 -0
- package/dist/components/page/System/PostSystem.jsx +55 -0
- package/dist/components/page/System/PostSystem.tsx +79 -0
- package/dist/components/page/System/System.stories.d.ts +6 -0
- package/dist/components/page/System/System.stories.jsx +14 -0
- package/dist/components/page/System/System.stories.tsx +21 -0
- package/dist/components/page/System/SystemLayout.d.ts +7 -0
- package/dist/components/page/System/SystemLayout.jsx +49 -0
- package/dist/components/page/System/SystemLayout.tsx +89 -0
- package/dist/components/page/System/SystemPage.d.ts +1 -1
- package/dist/components/page/System/SystemPage.jsx +13 -1
- package/dist/components/page/System/SystemPage.tsx +17 -1
- package/dist/components/page/System/SystemTextBox.d.ts +7 -0
- package/dist/components/page/System/SystemTextBox.jsx +29 -0
- package/dist/components/page/System/SystemTextBox.tsx +35 -0
- package/dist/components/page/System/SystemTitle.d.ts +3 -0
- package/dist/components/page/System/SystemTitle.jsx +87 -0
- package/dist/components/page/System/SystemTitle.tsx +162 -0
- package/dist/components/page/System/SystemWrapper.d.ts +8 -0
- package/dist/components/page/System/SystemWrapper.jsx +31 -0
- package/dist/components/page/System/SystemWrapper.tsx +38 -0
- package/dist/styles/globals.css +680 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import SystemLayout from './SystemLayout';
|
|
4
|
+
import { postList } from '../../common/system';
|
|
5
|
+
import SystemTextBox from './SystemTextBox';
|
|
6
|
+
|
|
7
|
+
const PostSystem = () => {
|
|
8
|
+
return (
|
|
9
|
+
<SystemLayout id={'system_post'} classNames={'mt-[120px] max-lg:mt-[80px] max-md:mt-[60px]'}>
|
|
10
|
+
<SystemTextBox className={''}>
|
|
11
|
+
소송 종결 후에도 전문 변호사들이 <span className="font-[800]">법적 리스크를 점검</span>하고,{' '}
|
|
12
|
+
<br className="max-2xs:hidden" />
|
|
13
|
+
<span className="font-[800]">고객 맞춤형 사후 관리 서비스</span>를 통해 고객의 권익을 보호합니다.
|
|
14
|
+
</SystemTextBox>
|
|
15
|
+
<span className={'mt-[80px] flex flex-col text-[#58595B] max-xl:mt-[60px] max-md:mt-[40px]'}>
|
|
16
|
+
{postList.map((item, index) => (
|
|
17
|
+
<div
|
|
18
|
+
key={'postList_' + index}
|
|
19
|
+
className={
|
|
20
|
+
'border-t-[1px] border-solid border-black py-[53px] last:border-b-[1px] ' +
|
|
21
|
+
'group transition-colors duration-300 hover:lg:bg-[#F6F6F6] ' +
|
|
22
|
+
'max-lg:py-[40px] ' +
|
|
23
|
+
'max-md:py-[28px] '
|
|
24
|
+
}
|
|
25
|
+
>
|
|
26
|
+
<span
|
|
27
|
+
className={
|
|
28
|
+
'flex items-center gap-[100px] pr-[40px] transition-transform duration-300 group-hover:lg:translate-x-[40px] ' +
|
|
29
|
+
'max-3xl:gap-[60px] ' +
|
|
30
|
+
'max-lg:gap-[40px] max-lg:pr-0 ' +
|
|
31
|
+
'max-md:gap-[15px]'
|
|
32
|
+
}
|
|
33
|
+
>
|
|
34
|
+
<p
|
|
35
|
+
className={
|
|
36
|
+
'text-[24px] font-[400] tracking-[-0.96px] ' +
|
|
37
|
+
//1500px
|
|
38
|
+
'max-3xl:text-[22px] ' +
|
|
39
|
+
//1024px
|
|
40
|
+
'max-lg:text-[20px] ' +
|
|
41
|
+
//768px
|
|
42
|
+
'max-md:text-[18px] ' +
|
|
43
|
+
//520px
|
|
44
|
+
'max-2sm:text-[16px] '
|
|
45
|
+
}
|
|
46
|
+
>
|
|
47
|
+
/0{index + 1}
|
|
48
|
+
</p>
|
|
49
|
+
<p
|
|
50
|
+
className={
|
|
51
|
+
'text-[28px] font-[600] tracking-[-1.12px] ' +
|
|
52
|
+
//1500px
|
|
53
|
+
'max-3xl:text-[24px] ' +
|
|
54
|
+
//1024px
|
|
55
|
+
'max-lg:text-[22px] ' +
|
|
56
|
+
//768px
|
|
57
|
+
'max-md:text-[18px] ' +
|
|
58
|
+
//520px
|
|
59
|
+
'max-2sm:text-[16px] '
|
|
60
|
+
}
|
|
61
|
+
>
|
|
62
|
+
{item}
|
|
63
|
+
</p>
|
|
64
|
+
</span>
|
|
65
|
+
</div>
|
|
66
|
+
))}
|
|
67
|
+
</span>
|
|
68
|
+
<SystemTextBox className={'mt-[80px] max-xl:mt-[60px] max-md:mt-[40px]'}>
|
|
69
|
+
고객을 끝까지 책임지는 법률 서비스를 제공하고 있습니다.
|
|
70
|
+
<br />
|
|
71
|
+
<br />
|
|
72
|
+
대륜은 고객에게 <span className={'font-[800]'}>단기적인 해결이 아닌 장기적인 법률 파트너</span>가 되기를
|
|
73
|
+
원합니다.
|
|
74
|
+
</SystemTextBox>
|
|
75
|
+
</SystemLayout>
|
|
76
|
+
);
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
export default PostSystem;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import SystemPage from './SystemPage';
|
|
2
|
+
const meta = {
|
|
3
|
+
component: SystemPage,
|
|
4
|
+
title: 'SystemPage'
|
|
5
|
+
};
|
|
6
|
+
export default meta;
|
|
7
|
+
export const Default = {
|
|
8
|
+
render: args => {
|
|
9
|
+
return (<div className={'!font-[SUIT]'}>
|
|
10
|
+
<SystemPage {...args}/>
|
|
11
|
+
</div>);
|
|
12
|
+
},
|
|
13
|
+
args: {}
|
|
14
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import SystemPage from './SystemPage';
|
|
3
|
+
|
|
4
|
+
const meta: Meta<typeof SystemPage> = {
|
|
5
|
+
component: SystemPage,
|
|
6
|
+
title: 'SystemPage'
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
|
|
10
|
+
type Story = StoryObj<typeof meta>;
|
|
11
|
+
|
|
12
|
+
export const Default: Story = {
|
|
13
|
+
render: args => {
|
|
14
|
+
return (
|
|
15
|
+
<div className={'!font-[SUIT]'}>
|
|
16
|
+
<SystemPage {...args} />
|
|
17
|
+
</div>
|
|
18
|
+
);
|
|
19
|
+
},
|
|
20
|
+
args: {}
|
|
21
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import Image from 'next/image';
|
|
2
|
+
import SystemWrapper from './SystemWrapper';
|
|
3
|
+
import useBrowser from '../../hook/useBrowser';
|
|
4
|
+
import { btnList } from '../../common/system';
|
|
5
|
+
import ConsultationBgImg from '../../../asset/images/system/system_consultation.webp';
|
|
6
|
+
import AllocationBgImg from '../../../asset/images/system/system_allocation.webp';
|
|
7
|
+
import PostBgImg from '../../../asset/images/system/system_post.webp';
|
|
8
|
+
const SystemLayout = ({ id, children, classNames }) => {
|
|
9
|
+
var _a, _b;
|
|
10
|
+
const { width } = useBrowser(true);
|
|
11
|
+
return (<section id={id} className={'relative h-auto w-full ' + classNames}>
|
|
12
|
+
<div className={'relative h-[530px] w-full max-w-[calc(100%-((100%-1540px)/2))] ' +
|
|
13
|
+
'max-[1935px]:max-w-[calc(100%-190px)] ' +
|
|
14
|
+
//1500px
|
|
15
|
+
'max-3xl:max-w-[calc(100%-80px)] ' +
|
|
16
|
+
//1024px
|
|
17
|
+
'max-lg:h-[330px] max-lg:max-w-[calc(100%-40px)] ' +
|
|
18
|
+
//768px
|
|
19
|
+
'max-md:h-[200px] max-md:max-w-full ' +
|
|
20
|
+
//520px
|
|
21
|
+
'max-2sm:h-[140px] '}>
|
|
22
|
+
{id === 'system_consultation' ? (<Image src={ConsultationBgImg} alt={''} fill sizes={'100vw'} className={'h-full w-full object-cover'}/>) : id === 'system_allocation' ? (<Image src={AllocationBgImg} alt={''} fill sizes={'100vw'} className={'h-full w-full object-cover'}/>) : (<Image src={PostBgImg} alt={''} fill sizes={'100vw'} className={'h-full w-full object-cover'}/>)}
|
|
23
|
+
</div>
|
|
24
|
+
<SystemWrapper className={'flex justify-between ' +
|
|
25
|
+
//1024px
|
|
26
|
+
'max-md:flex-col max-md:bg-white'} noPaddingY>
|
|
27
|
+
<h2 className={'system_title mt-[60px] whitespace-pre-wrap text-[40px] font-[800] leading-[1.4] tracking-[-1.6px] text-[#04325A] ' +
|
|
28
|
+
//1500px
|
|
29
|
+
'max-3xl:text-[34px] ' +
|
|
30
|
+
//1024px
|
|
31
|
+
'max-lg:text-[30px] ' +
|
|
32
|
+
//768px
|
|
33
|
+
'max-md:mt-[40px] max-md:whitespace-normal max-md:text-center max-md:text-[26px] ' +
|
|
34
|
+
//520px
|
|
35
|
+
'max-2sm:text-[20px] '}>
|
|
36
|
+
{(_b = (_a = btnList.find(i => i.title === id)) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : ''}
|
|
37
|
+
</h2>
|
|
38
|
+
|
|
39
|
+
<div className={'mt-[-330px] w-[80%] max-w-[1150px] bg-white py-[64px] pl-[60px] ' +
|
|
40
|
+
//1024px
|
|
41
|
+
'max-lg:mt-[-210px] ' +
|
|
42
|
+
//768px
|
|
43
|
+
'max-md:mt-0 max-md:w-full max-md:py-[24px] max-md:pl-0'}>
|
|
44
|
+
{children}
|
|
45
|
+
</div>
|
|
46
|
+
</SystemWrapper>
|
|
47
|
+
</section>);
|
|
48
|
+
};
|
|
49
|
+
export default SystemLayout;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import Image from 'next/image';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import SystemWrapper from './SystemWrapper';
|
|
4
|
+
import useBrowser from '../../hook/useBrowser';
|
|
5
|
+
import { btnList } from '../../common/system';
|
|
6
|
+
|
|
7
|
+
import ConsultationBgImg from '../../../asset/images/system/system_consultation.webp';
|
|
8
|
+
import AllocationBgImg from '../../../asset/images/system/system_allocation.webp';
|
|
9
|
+
import PostBgImg from '../../../asset/images/system/system_post.webp';
|
|
10
|
+
|
|
11
|
+
const SystemLayout = ({ id, children, classNames }: { id: string; children: ReactNode; classNames?: string }) => {
|
|
12
|
+
const { width } = useBrowser(true);
|
|
13
|
+
|
|
14
|
+
return (
|
|
15
|
+
<section id={id} className={'relative h-auto w-full ' + classNames}>
|
|
16
|
+
<div
|
|
17
|
+
className={
|
|
18
|
+
'relative h-[530px] w-full max-w-[calc(100%-((100%-1540px)/2))] ' +
|
|
19
|
+
'max-[1935px]:max-w-[calc(100%-190px)] ' +
|
|
20
|
+
//1500px
|
|
21
|
+
'max-3xl:max-w-[calc(100%-80px)] ' +
|
|
22
|
+
//1024px
|
|
23
|
+
'max-lg:h-[330px] max-lg:max-w-[calc(100%-40px)] ' +
|
|
24
|
+
//768px
|
|
25
|
+
'max-md:h-[200px] max-md:max-w-full ' +
|
|
26
|
+
//520px
|
|
27
|
+
'max-2sm:h-[140px] '
|
|
28
|
+
}
|
|
29
|
+
>
|
|
30
|
+
{id === 'system_consultation' ? (
|
|
31
|
+
<Image
|
|
32
|
+
src={ConsultationBgImg}
|
|
33
|
+
alt={''}
|
|
34
|
+
fill
|
|
35
|
+
sizes={'100vw'}
|
|
36
|
+
className={'h-full w-full object-cover'}
|
|
37
|
+
/>
|
|
38
|
+
) : id === 'system_allocation' ? (
|
|
39
|
+
<Image
|
|
40
|
+
src={AllocationBgImg}
|
|
41
|
+
alt={''}
|
|
42
|
+
fill
|
|
43
|
+
sizes={'100vw'}
|
|
44
|
+
className={'h-full w-full object-cover'}
|
|
45
|
+
/>
|
|
46
|
+
) : (
|
|
47
|
+
<Image src={PostBgImg} alt={''} fill sizes={'100vw'} className={'h-full w-full object-cover'} />
|
|
48
|
+
)}
|
|
49
|
+
</div>
|
|
50
|
+
<SystemWrapper
|
|
51
|
+
className={
|
|
52
|
+
'flex justify-between ' +
|
|
53
|
+
//1024px
|
|
54
|
+
'max-md:flex-col max-md:bg-white'
|
|
55
|
+
}
|
|
56
|
+
noPaddingY
|
|
57
|
+
>
|
|
58
|
+
<h2
|
|
59
|
+
className={
|
|
60
|
+
'system_title mt-[60px] whitespace-pre-wrap text-[40px] font-[800] leading-[1.4] tracking-[-1.6px] text-[#04325A] ' +
|
|
61
|
+
//1500px
|
|
62
|
+
'max-3xl:text-[34px] ' +
|
|
63
|
+
//1024px
|
|
64
|
+
'max-lg:text-[30px] ' +
|
|
65
|
+
//768px
|
|
66
|
+
'max-md:mt-[40px] max-md:whitespace-normal max-md:text-center max-md:text-[26px] ' +
|
|
67
|
+
//520px
|
|
68
|
+
'max-2sm:text-[20px] '
|
|
69
|
+
}
|
|
70
|
+
>
|
|
71
|
+
{btnList.find(i => i.title === id)?.name ?? ''}
|
|
72
|
+
</h2>
|
|
73
|
+
|
|
74
|
+
<div
|
|
75
|
+
className={
|
|
76
|
+
'mt-[-330px] w-[80%] max-w-[1150px] bg-white py-[64px] pl-[60px] ' +
|
|
77
|
+
//1024px
|
|
78
|
+
'max-lg:mt-[-210px] ' +
|
|
79
|
+
//768px
|
|
80
|
+
'max-md:mt-0 max-md:w-full max-md:py-[24px] max-md:pl-0'
|
|
81
|
+
}
|
|
82
|
+
>
|
|
83
|
+
{children}
|
|
84
|
+
</div>
|
|
85
|
+
</SystemWrapper>
|
|
86
|
+
</section>
|
|
87
|
+
);
|
|
88
|
+
};
|
|
89
|
+
export default SystemLayout;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const SystemPage: () =>
|
|
1
|
+
declare const SystemPage: () => import("react").JSX.Element;
|
|
2
2
|
export default SystemPage;
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
+
'use ';
|
|
2
|
+
import SystemTitle from './SystemTitle';
|
|
3
|
+
import ConsultationSystem from './ConsultationSystem';
|
|
4
|
+
import AllocationSystem from './AllocationSystem';
|
|
5
|
+
import PostSystem from './PostSystem';
|
|
6
|
+
import ConsultNow from './ConsultNow';
|
|
1
7
|
const SystemPage = () => {
|
|
2
|
-
return
|
|
8
|
+
return (<>
|
|
9
|
+
<SystemTitle />
|
|
10
|
+
<ConsultationSystem />
|
|
11
|
+
<AllocationSystem />
|
|
12
|
+
<PostSystem />
|
|
13
|
+
<ConsultNow />
|
|
14
|
+
</>);
|
|
3
15
|
};
|
|
4
16
|
export default SystemPage;
|
|
@@ -1,4 +1,20 @@
|
|
|
1
|
+
'use ';
|
|
2
|
+
|
|
3
|
+
import SystemTitle from './SystemTitle';
|
|
4
|
+
import ConsultationSystem from './ConsultationSystem';
|
|
5
|
+
import AllocationSystem from './AllocationSystem';
|
|
6
|
+
import PostSystem from './PostSystem';
|
|
7
|
+
import ConsultNow from './ConsultNow';
|
|
8
|
+
|
|
1
9
|
const SystemPage = () => {
|
|
2
|
-
return
|
|
10
|
+
return (
|
|
11
|
+
<>
|
|
12
|
+
<SystemTitle />
|
|
13
|
+
<ConsultationSystem />
|
|
14
|
+
<AllocationSystem />
|
|
15
|
+
<PostSystem />
|
|
16
|
+
<ConsultNow />
|
|
17
|
+
</>
|
|
18
|
+
);
|
|
3
19
|
};
|
|
4
20
|
export default SystemPage;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
interface SystemTextBoxProps extends React.HTMLAttributes<HTMLParagraphElement> {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const SystemTextBox: React.ForwardRefExoticComponent<SystemTextBoxProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
7
|
+
export default SystemTextBox;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import React, { forwardRef } from 'react';
|
|
13
|
+
const SystemTextBox = forwardRef((_a, ref) => {
|
|
14
|
+
var { children, className = '' } = _a, others = __rest(_a, ["children", "className"]);
|
|
15
|
+
return (<p className={'text-[24px] leading-[1.7] tracking-[-0.96px] text-[#58595B] ' +
|
|
16
|
+
//1500px
|
|
17
|
+
'max-3xl:text-[22px] ' +
|
|
18
|
+
//1024px
|
|
19
|
+
'max-lg:text-[20px] max-lg:leading-[1.8] ' +
|
|
20
|
+
//768px
|
|
21
|
+
'max-md:text-[18px] ' +
|
|
22
|
+
//520px
|
|
23
|
+
'max-2sm:text-[16px] ' +
|
|
24
|
+
className} ref={ref} {...others}>
|
|
25
|
+
{children ? children : null}
|
|
26
|
+
</p>);
|
|
27
|
+
});
|
|
28
|
+
SystemTextBox.displayName = 'SystemTextBox';
|
|
29
|
+
export default SystemTextBox;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React, { forwardRef, ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
interface SystemTextBoxProps extends React.HTMLAttributes<HTMLParagraphElement> {
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
const SystemTextBox = forwardRef<HTMLParagraphElement, SystemTextBoxProps>(
|
|
9
|
+
({ children, className = '', ...others }, ref) => {
|
|
10
|
+
return (
|
|
11
|
+
<p
|
|
12
|
+
className={
|
|
13
|
+
'text-[24px] leading-[1.7] tracking-[-0.96px] text-[#58595B] ' +
|
|
14
|
+
//1500px
|
|
15
|
+
'max-3xl:text-[22px] ' +
|
|
16
|
+
//1024px
|
|
17
|
+
'max-lg:text-[20px] max-lg:leading-[1.8] ' +
|
|
18
|
+
//768px
|
|
19
|
+
'max-md:text-[18px] ' +
|
|
20
|
+
//520px
|
|
21
|
+
'max-2sm:text-[16px] ' +
|
|
22
|
+
className
|
|
23
|
+
}
|
|
24
|
+
ref={ref}
|
|
25
|
+
{...others}
|
|
26
|
+
>
|
|
27
|
+
{children ? children : null}
|
|
28
|
+
</p>
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
SystemTextBox.displayName = 'SystemTextBox';
|
|
34
|
+
|
|
35
|
+
export default SystemTextBox;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import Image from 'next/image';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { btnList } from '../../common/system';
|
|
5
|
+
import IconArrow from '../../../asset/images/system/svg/arrow_system.svg';
|
|
6
|
+
import SystemWrapper from './SystemWrapper';
|
|
7
|
+
import CategoryMenu from '../MyCase/_component/_breadCrumble/CategoryMenu';
|
|
8
|
+
import BgImg from '../../../asset/images/system/system_sec1_bg.webp';
|
|
9
|
+
import ConsultationBtnImg from '../../../asset/images/system/system_btn_1.webp';
|
|
10
|
+
import AllocationBtnImg from '../../../asset/images/system/system_btn_1.webp';
|
|
11
|
+
import PostBtnImg from '../../../asset/images/system/system_btn_1.webp';
|
|
12
|
+
const SystemTitle = () => {
|
|
13
|
+
const [hoverNum, setHoverNum] = React.useState(0);
|
|
14
|
+
const handelOnClick = (id) => {
|
|
15
|
+
var _a, _b;
|
|
16
|
+
const location = (_b = (_a = document.getElementById(id)) === null || _a === void 0 ? void 0 : _a.offsetTop) !== null && _b !== void 0 ? _b : 0;
|
|
17
|
+
window.scrollTo({ top: location - 50, behavior: 'smooth' });
|
|
18
|
+
};
|
|
19
|
+
return (<section className={'relative h-auto w-full'}>
|
|
20
|
+
<div className={'absolute left-0 top-0 h-[72%] w-full ' + 'max-lg:h-[82%] '}>
|
|
21
|
+
<Image src={BgImg} alt={''} fill className={'h-full w-full object-cover'}/>
|
|
22
|
+
</div>
|
|
23
|
+
<SystemWrapper className={'pb-[120px] pt-[170px] max-lg:pb-[52px] max-md:pb-[40px] max-sm:pt-[110px] '}>
|
|
24
|
+
<div className={'mb-[46px] lg:flex lg:flex-row lg:items-center lg:justify-center'}>
|
|
25
|
+
<CategoryMenu isMargin={false}/>
|
|
26
|
+
</div>
|
|
27
|
+
<h1 className={'text-[60px] font-[800] tracking-[-2.4px] ' +
|
|
28
|
+
//1500px
|
|
29
|
+
'max-3xl:text-[54px] ' +
|
|
30
|
+
//1024px
|
|
31
|
+
'max-lg:text-[48px] ' +
|
|
32
|
+
//768px
|
|
33
|
+
'max-md:text-[34px] ' +
|
|
34
|
+
//520px
|
|
35
|
+
'max-2sm:text-[28px] '}>
|
|
36
|
+
대륜만의 조력 시스템
|
|
37
|
+
</h1>
|
|
38
|
+
<span className={'relative mt-[100px] block h-[216px] w-full ' +
|
|
39
|
+
//1500px
|
|
40
|
+
'max-3xl:h-[160px] ' +
|
|
41
|
+
//1024px
|
|
42
|
+
'max-lg:mt-[72px] max-lg:h-[110px] ' +
|
|
43
|
+
//768px
|
|
44
|
+
'max-md:mt-[40px] max-md:h-auto '}>
|
|
45
|
+
{/*링크*/}
|
|
46
|
+
<span className={'absolute left-0 top-0 z-[1] flex h-full w-full gap-[14px]'}>
|
|
47
|
+
{btnList.map(item => (<button key={'system_btn_' + item.index} onMouseEnter={() => setHoverNum(item.index)} onMouseLeave={() => setHoverNum(0)} onClick={() => {
|
|
48
|
+
handelOnClick(item.title);
|
|
49
|
+
}} id={'system_btn_' + item.index} className={'h-full flex-1'}/>))}
|
|
50
|
+
</span>
|
|
51
|
+
<span className={'flex h-full w-full gap-[14px] max-lg:gap-[8px] max-md:gap-[4px]'}>
|
|
52
|
+
{btnList.map(item => (<div key={'system_btn_bg_' + item.index} id={'system_btn_bg_' + item.index} className={'relative z-0 flex h-full flex-1 items-center justify-between overflow-hidden px-[48px] transition-[flex,border-radius] duration-300 ' +
|
|
53
|
+
`${hoverNum === item.index ? 'md:flex-[0.72] md:rounded-tr-[100px] ' : ''}` +
|
|
54
|
+
'max-xl:px-[28px] ' +
|
|
55
|
+
'max-lg:px-[22px] ' +
|
|
56
|
+
'max-md:flex-col max-md:gap-[8px] max-md:px-[10px] max-md:py-[16px] max-md:text-center '}>
|
|
57
|
+
<div className={'absolute left-0 top-0 h-full w-full opacity-80 mix-blend-multiply transition-colors duration-300 ' +
|
|
58
|
+
`${hoverNum === item.index ? 'max-md:bg-[#58595B] md:bg-[#04325A] ' : 'bg-[#58595B] '}`}/>
|
|
59
|
+
{item.title === 'system_consultation' ? (<Image src={ConsultationBtnImg} alt={''} fill className={'absolute left-0 top-0 z-[-1] h-full w-full object-cover object-right'}/>) : item.title === 'system_allocation' ? (<Image src={AllocationBtnImg} alt={''} fill className={'absolute left-0 top-0 z-[-1] h-full w-full object-cover object-right'}/>) : (<Image src={PostBtnImg} alt={''} fill className={'absolute left-0 top-0 z-[-1] h-full w-full object-cover object-right'}/>)}
|
|
60
|
+
|
|
61
|
+
<p className={'relative z-[1] whitespace-pre-wrap text-[32px] font-[800] leading-[1.3] tracking-[-0.96px] text-white ' +
|
|
62
|
+
//1500px
|
|
63
|
+
'max-3xl:text-[26px] ' +
|
|
64
|
+
//1024px
|
|
65
|
+
'max-lg:text-[20px] ' +
|
|
66
|
+
//768px
|
|
67
|
+
'max-md:text-[16px] '}>
|
|
68
|
+
{item.name}
|
|
69
|
+
</p>
|
|
70
|
+
<div className={'z-[1] flex aspect-square w-[48px] items-center justify-center rounded-full bg-white transition-colors duration-300 ' +
|
|
71
|
+
'max-3xl:w-[38px] ' +
|
|
72
|
+
'max-lg:w-[28px] ' +
|
|
73
|
+
'max-md:w-[22px] ' +
|
|
74
|
+
'max-2sm:w-[16px] ' +
|
|
75
|
+
`${hoverNum === item.index ? 'bg-opacity-100 ' : 'bg-opacity-70 '}`}>
|
|
76
|
+
<IconArrow className={'block aspect-square h-[16px] object-contain pl-[8%] ' +
|
|
77
|
+
'max-3xl:h-[12px] ' +
|
|
78
|
+
'max-lg:h-[9px] ' +
|
|
79
|
+
'max-2sm:h-[5px]'}/>
|
|
80
|
+
</div>
|
|
81
|
+
</div>))}
|
|
82
|
+
</span>
|
|
83
|
+
</span>
|
|
84
|
+
</SystemWrapper>
|
|
85
|
+
</section>);
|
|
86
|
+
};
|
|
87
|
+
export default SystemTitle;
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import Image from 'next/image';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { btnList } from '../../common/system';
|
|
6
|
+
|
|
7
|
+
import IconArrow from '../../../asset/images/system/svg/arrow_system.svg';
|
|
8
|
+
import SystemWrapper from './SystemWrapper';
|
|
9
|
+
import CategoryMenu from '../MyCase/_component/_breadCrumble/CategoryMenu';
|
|
10
|
+
import BgImg from '../../../asset/images/system/system_sec1_bg.webp';
|
|
11
|
+
import ConsultationBtnImg from '../../../asset/images/system/system_btn_1.webp';
|
|
12
|
+
import AllocationBtnImg from '../../../asset/images/system/system_btn_1.webp';
|
|
13
|
+
import PostBtnImg from '../../../asset/images/system/system_btn_1.webp';
|
|
14
|
+
|
|
15
|
+
const SystemTitle = () => {
|
|
16
|
+
const [hoverNum, setHoverNum] = React.useState(0);
|
|
17
|
+
|
|
18
|
+
const handelOnClick = (id: string) => {
|
|
19
|
+
const location = document.getElementById(id)?.offsetTop ?? 0;
|
|
20
|
+
window.scrollTo({ top: location - 50, behavior: 'smooth' });
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
return (
|
|
24
|
+
<section className={'relative h-auto w-full'}>
|
|
25
|
+
<div className={'absolute left-0 top-0 h-[72%] w-full ' + 'max-lg:h-[82%] '}>
|
|
26
|
+
<Image src={BgImg} alt={''} fill className={'h-full w-full object-cover'} />
|
|
27
|
+
</div>
|
|
28
|
+
<SystemWrapper className={'pb-[120px] pt-[170px] max-lg:pb-[52px] max-md:pb-[40px] max-sm:pt-[110px] '}>
|
|
29
|
+
<div className={'mb-[46px] lg:flex lg:flex-row lg:items-center lg:justify-center'}>
|
|
30
|
+
<CategoryMenu isMargin={false} />
|
|
31
|
+
</div>
|
|
32
|
+
<h1
|
|
33
|
+
className={
|
|
34
|
+
'text-[60px] font-[800] tracking-[-2.4px] ' +
|
|
35
|
+
//1500px
|
|
36
|
+
'max-3xl:text-[54px] ' +
|
|
37
|
+
//1024px
|
|
38
|
+
'max-lg:text-[48px] ' +
|
|
39
|
+
//768px
|
|
40
|
+
'max-md:text-[34px] ' +
|
|
41
|
+
//520px
|
|
42
|
+
'max-2sm:text-[28px] '
|
|
43
|
+
}
|
|
44
|
+
>
|
|
45
|
+
대륜만의 조력 시스템
|
|
46
|
+
</h1>
|
|
47
|
+
<span
|
|
48
|
+
className={
|
|
49
|
+
'relative mt-[100px] block h-[216px] w-full ' +
|
|
50
|
+
//1500px
|
|
51
|
+
'max-3xl:h-[160px] ' +
|
|
52
|
+
//1024px
|
|
53
|
+
'max-lg:mt-[72px] max-lg:h-[110px] ' +
|
|
54
|
+
//768px
|
|
55
|
+
'max-md:mt-[40px] max-md:h-auto '
|
|
56
|
+
}
|
|
57
|
+
>
|
|
58
|
+
{/*링크*/}
|
|
59
|
+
<span className={'absolute left-0 top-0 z-[1] flex h-full w-full gap-[14px]'}>
|
|
60
|
+
{btnList.map(item => (
|
|
61
|
+
<button
|
|
62
|
+
key={'system_btn_' + item.index}
|
|
63
|
+
onMouseEnter={() => setHoverNum(item.index)}
|
|
64
|
+
onMouseLeave={() => setHoverNum(0)}
|
|
65
|
+
onClick={() => {
|
|
66
|
+
handelOnClick(item.title);
|
|
67
|
+
}}
|
|
68
|
+
id={'system_btn_' + item.index}
|
|
69
|
+
className={'h-full flex-1'}
|
|
70
|
+
/>
|
|
71
|
+
))}
|
|
72
|
+
</span>
|
|
73
|
+
<span className={'flex h-full w-full gap-[14px] max-lg:gap-[8px] max-md:gap-[4px]'}>
|
|
74
|
+
{btnList.map(item => (
|
|
75
|
+
<div
|
|
76
|
+
key={'system_btn_bg_' + item.index}
|
|
77
|
+
id={'system_btn_bg_' + item.index}
|
|
78
|
+
className={
|
|
79
|
+
'relative z-0 flex h-full flex-1 items-center justify-between overflow-hidden px-[48px] transition-[flex,border-radius] duration-300 ' +
|
|
80
|
+
`${hoverNum === item.index ? 'md:flex-[0.72] md:rounded-tr-[100px] ' : ''}` +
|
|
81
|
+
'max-xl:px-[28px] ' +
|
|
82
|
+
'max-lg:px-[22px] ' +
|
|
83
|
+
'max-md:flex-col max-md:gap-[8px] max-md:px-[10px] max-md:py-[16px] max-md:text-center '
|
|
84
|
+
}
|
|
85
|
+
>
|
|
86
|
+
<div
|
|
87
|
+
className={
|
|
88
|
+
'absolute left-0 top-0 h-full w-full opacity-80 mix-blend-multiply transition-colors duration-300 ' +
|
|
89
|
+
`${hoverNum === item.index ? 'max-md:bg-[#58595B] md:bg-[#04325A] ' : 'bg-[#58595B] '}`
|
|
90
|
+
}
|
|
91
|
+
/>
|
|
92
|
+
{item.title === 'system_consultation' ? (
|
|
93
|
+
<Image
|
|
94
|
+
src={ConsultationBtnImg}
|
|
95
|
+
alt={''}
|
|
96
|
+
fill
|
|
97
|
+
className={
|
|
98
|
+
'absolute left-0 top-0 z-[-1] h-full w-full object-cover object-right'
|
|
99
|
+
}
|
|
100
|
+
/>
|
|
101
|
+
) : item.title === 'system_allocation' ? (
|
|
102
|
+
<Image
|
|
103
|
+
src={AllocationBtnImg}
|
|
104
|
+
alt={''}
|
|
105
|
+
fill
|
|
106
|
+
className={
|
|
107
|
+
'absolute left-0 top-0 z-[-1] h-full w-full object-cover object-right'
|
|
108
|
+
}
|
|
109
|
+
/>
|
|
110
|
+
) : (
|
|
111
|
+
<Image
|
|
112
|
+
src={PostBtnImg}
|
|
113
|
+
alt={''}
|
|
114
|
+
fill
|
|
115
|
+
className={
|
|
116
|
+
'absolute left-0 top-0 z-[-1] h-full w-full object-cover object-right'
|
|
117
|
+
}
|
|
118
|
+
/>
|
|
119
|
+
)}
|
|
120
|
+
|
|
121
|
+
<p
|
|
122
|
+
className={
|
|
123
|
+
'relative z-[1] whitespace-pre-wrap text-[32px] font-[800] leading-[1.3] tracking-[-0.96px] text-white ' +
|
|
124
|
+
//1500px
|
|
125
|
+
'max-3xl:text-[26px] ' +
|
|
126
|
+
//1024px
|
|
127
|
+
'max-lg:text-[20px] ' +
|
|
128
|
+
//768px
|
|
129
|
+
'max-md:text-[16px] '
|
|
130
|
+
}
|
|
131
|
+
>
|
|
132
|
+
{item.name}
|
|
133
|
+
</p>
|
|
134
|
+
<div
|
|
135
|
+
className={
|
|
136
|
+
'z-[1] flex aspect-square w-[48px] items-center justify-center rounded-full bg-white transition-colors duration-300 ' +
|
|
137
|
+
'max-3xl:w-[38px] ' +
|
|
138
|
+
'max-lg:w-[28px] ' +
|
|
139
|
+
'max-md:w-[22px] ' +
|
|
140
|
+
'max-2sm:w-[16px] ' +
|
|
141
|
+
`${hoverNum === item.index ? 'bg-opacity-100 ' : 'bg-opacity-70 '}`
|
|
142
|
+
}
|
|
143
|
+
>
|
|
144
|
+
<IconArrow
|
|
145
|
+
className={
|
|
146
|
+
'block aspect-square h-[16px] object-contain pl-[8%] ' +
|
|
147
|
+
'max-3xl:h-[12px] ' +
|
|
148
|
+
'max-lg:h-[9px] ' +
|
|
149
|
+
'max-2sm:h-[5px]'
|
|
150
|
+
}
|
|
151
|
+
/>
|
|
152
|
+
</div>
|
|
153
|
+
</div>
|
|
154
|
+
))}
|
|
155
|
+
</span>
|
|
156
|
+
</span>
|
|
157
|
+
</SystemWrapper>
|
|
158
|
+
</section>
|
|
159
|
+
);
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
export default SystemTitle;
|