@daeryun/dr_components 0.5.83 → 0.5.86
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/SearchBar/search.webp +0 -0
- package/dist/asset/images/faq/Ellipse.webp +0 -0
- package/dist/asset/images/faq/cal.webp +0 -0
- package/dist/asset/images/faq/check.webp +0 -0
- package/dist/asset/images/faq/down.webp +0 -0
- package/dist/asset/images/faq/eye.webp +0 -0
- package/dist/asset/images/faq/plus.webp +0 -0
- package/dist/asset/images/faq/right.webp +0 -0
- package/dist/asset/images/faq/vector_blu.svg +3 -0
- package/dist/asset/images/faq/vector_stroke.svg +3 -0
- package/dist/asset/images/fieldNew/field_mark.png +0 -0
- package/dist/asset/images/fieldNew/v_arrow.png +0 -0
- package/dist/asset/images/fieldNew/vector_blu.png +0 -0
- package/dist/asset/images/fieldNew/vector_stroke.png +0 -0
- package/dist/asset/images/seo/left.webp +0 -0
- package/dist/asset/images/seo/right.webp +0 -0
- package/dist/asset/images/seo/secConsulting/choice_call.webp +0 -0
- package/dist/asset/images/seo/secConsulting/choice_kakao.webp +0 -0
- package/dist/asset/images/seo/secConsulting/online.svg +36 -0
- package/dist/asset/images/seo/successCase/dia_dot.svg +3 -0
- package/dist/asset/images/seo/successCase/right_arrow.svg +4 -0
- package/dist/asset/images/seo/successCase/up_right.svg +3 -0
- package/dist/components/FieldNew/RelatedGroup.d.ts +6 -0
- package/dist/components/FieldNew/RelatedGroup.jsx +28 -0
- package/dist/components/FieldNew/RelatedGroup.stories.d.ts +12 -0
- package/dist/components/FieldNew/RelatedGroup.stories.jsx +15 -0
- package/dist/components/FieldNew/RelatedGroup.stories.tsx +23 -0
- package/dist/components/FieldNew/RelatedGroup.tsx +41 -0
- package/dist/components/SearchBar/SearchBar.d.ts +16 -0
- package/dist/components/SearchBar/SearchBar.jsx +90 -0
- package/dist/components/SearchBar/SearchBar.stories.d.ts +6 -0
- package/dist/components/SearchBar/SearchBar.stories.jsx +21 -0
- package/dist/components/SearchBar/SearchBar.stories.tsx +28 -0
- package/dist/components/SearchBar/SearchBar.tsx +173 -0
- package/dist/components/Seo/FieldCase.d.ts +5 -0
- package/dist/components/Seo/FieldCase.jsx +48 -0
- package/dist/components/Seo/FieldCase.tsx +85 -0
- package/dist/components/Seo/Lawyer.d.ts +5 -0
- package/dist/components/Seo/Lawyer.jsx +66 -0
- package/dist/components/Seo/Lawyer.tsx +148 -0
- package/dist/components/Seo/SeoConsulting.d.ts +6 -0
- package/dist/components/Seo/SeoConsulting.jsx +173 -0
- package/dist/components/Seo/SeoConsulting.tsx +272 -0
- package/dist/components/Seo/SuccessCase.d.ts +6 -0
- package/dist/components/Seo/SuccessCase.jsx +57 -0
- package/dist/components/Seo/SuccessCase.tsx +95 -0
- package/dist/components/Seo/right_arrow.svg +4 -0
- package/dist/components/TuiViewer/TuiViewer.d.ts +3 -0
- package/dist/components/TuiViewer/TuiViewer.jsx +7 -0
- package/dist/components/TuiViewer/TuiViewer.tsx +14 -0
- package/dist/components/common/strength/index.js +53 -34
- package/dist/components/common/strength/index.ts +53 -34
- package/dist/components/common/types/faq/index.d.ts +11 -0
- package/dist/components/common/types/faq/index.js +1 -0
- package/dist/components/common/types/faq/index.ts +11 -0
- package/dist/components/common/types/seo/index.d.ts +27 -0
- package/dist/components/common/types/seo/index.js +1 -0
- package/dist/components/common/types/seo/index.ts +29 -0
- package/dist/components/index.js +2 -0
- package/dist/components/index.ts +2 -3
- package/dist/components/page/Faq/Detail/FaqDetail.d.ts +22 -0
- package/dist/components/page/Faq/Detail/FaqDetail.jsx +136 -0
- package/dist/components/page/Faq/Detail/FaqDetail.tsx +277 -0
- package/dist/components/page/Faq/Detail/FaqList.stories.d.ts +6 -0
- package/dist/components/page/Faq/Detail/FaqList.stories.jsx +187 -0
- package/dist/components/page/Faq/Detail/FaqList.stories.tsx +208 -0
- package/dist/components/page/Faq/FaqList.d.ts +23 -0
- package/dist/components/page/Faq/FaqList.jsx +99 -0
- package/dist/components/page/Faq/FaqList.stories.d.ts +6 -0
- package/dist/components/page/Faq/FaqList.stories.jsx +76 -0
- package/dist/components/page/Faq/FaqList.stories.tsx +93 -0
- package/dist/components/page/Faq/FaqList.tsx +197 -0
- package/dist/components/page/Faq/GroupList.d.ts +9 -0
- package/dist/components/page/Faq/GroupList.jsx +30 -0
- package/dist/components/page/Faq/GroupList.tsx +57 -0
- package/dist/components/page/Faq/GroupSelectBox.d.ts +9 -0
- package/dist/components/page/Faq/GroupSelectBox.jsx +67 -0
- package/dist/components/page/Faq/GroupSelectBox.tsx +117 -0
- package/dist/components/page/Strength/StrengthIntro.jsx +5 -8
- package/dist/components/page/Strength/StrengthIntro.tsx +5 -8
- package/dist/components/page/index.d.ts +2 -0
- package/dist/components/page/index.js +2 -0
- package/dist/components/page/index.ts +2 -0
- package/dist/styles/globals.css +1148 -6
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="14" height="9" viewBox="0 0 14 9" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M12.4865 4.11562L8.81286 0.543598L9.37193 0L14 4.5L9.37193 9L8.81286 8.4564L12.4865 4.88438H0V4.11562H12.4865Z" fill="black"/>
|
|
3
|
+
</svg>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 53.589 49">
|
|
2
|
+
<defs>
|
|
3
|
+
<linearGradient id="linear-gradient" y1="1.117" x2="0.019" y2="1.117" gradientUnits="objectBoundingBox">
|
|
4
|
+
<stop offset="0" stop-color="#285ea7"/>
|
|
5
|
+
<stop offset="1" stop-color="#2880a7"/>
|
|
6
|
+
</linearGradient>
|
|
7
|
+
<clipPath id="clip-path">
|
|
8
|
+
<path id="패스_4050" data-name="패스 4050" d="M32.2,23.94a2.111,2.111,0,0,0-2.111,2.111V45.337A2.111,2.111,0,0,0,32.2,47.448H48.021L53.777,53.2V47.448h2.987a2.112,2.112,0,0,0,2.112-2.111V26.051a2.112,2.112,0,0,0-2.112-2.111Z" transform="translate(-30.092 -23.94)" fill="#c7c7c7"/>
|
|
9
|
+
</clipPath>
|
|
10
|
+
<clipPath id="clip-path-2">
|
|
11
|
+
<path id="패스_4051" data-name="패스 4051" d="M3.165,0A3.165,3.165,0,0,0,0,3.165V32.072a3.165,3.165,0,0,0,3.165,3.164H7.641v8.627l8.627-8.627H39.978a3.164,3.164,0,0,0,3.164-3.164V3.165A3.165,3.165,0,0,0,39.978,0Z" fill="url(#linear-gradient)"/>
|
|
12
|
+
</clipPath>
|
|
13
|
+
<clipPath id="clip-path-3">
|
|
14
|
+
<rect id="사각형_1535" data-name="사각형 1535" width="53.589" height="48.999" fill="none"/>
|
|
15
|
+
</clipPath>
|
|
16
|
+
</defs>
|
|
17
|
+
<g id="그룹_204790" data-name="그룹 204790" transform="translate(0 0)">
|
|
18
|
+
<g id="그룹_204777" data-name="그룹 204777" transform="translate(24.806 19.735)">
|
|
19
|
+
<g id="그룹_204776" data-name="그룹 204776" clip-path="url(#clip-path)">
|
|
20
|
+
<rect id="사각형_1533" data-name="사각형 1533" width="28.783" height="29.265" transform="translate(0 0)" fill="#c7c7c7"/>
|
|
21
|
+
</g>
|
|
22
|
+
</g>
|
|
23
|
+
<g id="그룹_204779" data-name="그룹 204779" transform="translate(0 0)">
|
|
24
|
+
<g id="그룹_204778" data-name="그룹 204778" clip-path="url(#clip-path-2)">
|
|
25
|
+
<rect id="사각형_1534" data-name="사각형 1534" width="43.142" height="43.863" transform="translate(0 0)" fill="url(#linear-gradient)"/>
|
|
26
|
+
</g>
|
|
27
|
+
</g>
|
|
28
|
+
<g id="그룹_204781" data-name="그룹 204781" transform="translate(0 0)">
|
|
29
|
+
<g id="그룹_204780" data-name="그룹 204780" clip-path="url(#clip-path-3)">
|
|
30
|
+
<path id="패스_4052" data-name="패스 4052" d="M16.321,20.616A3.214,3.214,0,1,1,13.107,17.4a3.214,3.214,0,0,1,3.214,3.214" transform="translate(-1.738 -3.057)" fill="#fff"/>
|
|
31
|
+
<path id="패스_4053" data-name="패스 4053" d="M29.8,20.616A3.214,3.214,0,1,1,26.581,17.4,3.214,3.214,0,0,1,29.8,20.616" transform="translate(-4.105 -3.057)" fill="#fff"/>
|
|
32
|
+
<path id="패스_4054" data-name="패스 4054" d="M43.268,20.616A3.214,3.214,0,1,1,40.054,17.4a3.214,3.214,0,0,1,3.214,3.214" transform="translate(-6.472 -3.057)" fill="#fff"/>
|
|
33
|
+
</g>
|
|
34
|
+
</g>
|
|
35
|
+
</g>
|
|
36
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="100%" height="100%" viewBox="0 0 14 13" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M7.81177 12.8C7.56035 12.8 7.32733 12.6897 7.16176 12.4996C6.8061 12.0764 6.8061 11.4632 7.16176 11.0401L11.0802 6.64956L7.16176 2.25899C6.8061 1.84201 6.8061 1.22267 7.16176 0.799561C7.46837 0.437769 8.00186 0.394844 8.36365 0.701448C8.40044 0.732108 8.4311 0.768901 8.46177 0.799561L13.0302 5.91984C13.392 6.33683 13.392 6.95616 13.0302 7.37928L8.45563 12.5057C8.29007 12.6958 8.05705 12.8062 7.80563 12.8062" fill="#fff"/>
|
|
3
|
+
<path d="M12.3801 7.67952H1.21976C0.680139 7.64886 0.26929 7.18895 0.29995 6.64933C0.26929 6.10971 0.680139 5.6498 1.21976 5.61914H12.374C12.9136 5.6498 13.3245 6.10971 13.2938 6.64933C13.3245 7.18895 12.9136 7.64886 12.374 7.67952" fill="#fff"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 7.821 7.821">
|
|
2
|
+
<path id="Icon_akar-arrow-up-right" data-name="Icon akar-arrow-up-right" d="M14.7,9,9,14.7M9.95,9H14.7v4.75" transform="translate(-7.939 -7.939)" fill="none" stroke="#5d5d5d" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Image from 'next/image';
|
|
3
|
+
import Link from 'next/link';
|
|
4
|
+
import bg from '../../asset/images/fieldNew/field_mark.png';
|
|
5
|
+
import arrow from '../../asset/images/fieldNew/v_arrow.png';
|
|
6
|
+
const RelatedGroup = ({ centerName, etc2 }) => {
|
|
7
|
+
return (<div className={'relative'}>
|
|
8
|
+
<Image src={bg} alt={''} width={200} height={130} className={'absolute bottom-0 left-0'}/>
|
|
9
|
+
<div className={'rounded-br-[30px] rounded-tl-[30px] bg-[#12263F] py-[36px] pr-[40px] max-sm:px-[20px] sm:pl-[40px] lg:pl-[86px]'}>
|
|
10
|
+
<div className={'flex flex-col justify-between lg:flex-row lg:items-center'}>
|
|
11
|
+
<div className={'text-[#fff]'}>
|
|
12
|
+
<p className={'text-[20px] max-sm:mb-2 sm:text-[24px]'}>관련 업무그룹</p>
|
|
13
|
+
<span className={'text-[24px] font-[800] max-sm:leading-7 sm:text-[28px]'}>
|
|
14
|
+
법무법인 대륜의 전문성을 <br className={'hidden max-sm:block'}/>더 살펴보세요
|
|
15
|
+
</span>
|
|
16
|
+
</div>
|
|
17
|
+
|
|
18
|
+
<Link href={etc2} target={'_blank'} className={'z-[99] w-fit max-lg:mt-5'}>
|
|
19
|
+
<button className={'flex h-[42px] min-w-[177px] items-center justify-between gap-2 rounded-[28px] bg-[#FFFFFF] px-[14px] text-[15px] font-[600] sm:h-[56px] sm:min-w-[210px] sm:px-[20px] sm:text-[18px]'}>
|
|
20
|
+
{centerName} 바로가기
|
|
21
|
+
<Image src={arrow} alt={''} width={18} height={10} className={'max-sm:w-[14px]'}/>
|
|
22
|
+
</button>
|
|
23
|
+
</Link>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
</div>);
|
|
27
|
+
};
|
|
28
|
+
export default RelatedGroup;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import RelatedGroup from './RelatedGroup';
|
|
2
|
+
import type { StoryObj } from '@storybook/react';
|
|
3
|
+
declare const fix: {
|
|
4
|
+
component: ({ centerName, etc2 }: {
|
|
5
|
+
centerName: string;
|
|
6
|
+
etc2: string;
|
|
7
|
+
}) => import("react").JSX.Element;
|
|
8
|
+
title: string;
|
|
9
|
+
};
|
|
10
|
+
export default fix;
|
|
11
|
+
type Story = StoryObj<typeof RelatedGroup>;
|
|
12
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import RelatedGroup from './RelatedGroup';
|
|
2
|
+
const fix = {
|
|
3
|
+
component: RelatedGroup, //컴포넌트
|
|
4
|
+
title: 'RelatedGroup' //스토리 이름
|
|
5
|
+
};
|
|
6
|
+
export default fix;
|
|
7
|
+
export const Default = {
|
|
8
|
+
render: args => (<div className={'h-[100vh] w-full pt-10'}>
|
|
9
|
+
<RelatedGroup {...args}/>
|
|
10
|
+
</div>),
|
|
11
|
+
args: {
|
|
12
|
+
centerName: '1800-7905',
|
|
13
|
+
etc2: 'https://www.daeryunlaw-divorce.com'
|
|
14
|
+
}
|
|
15
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import RelatedGroup from './RelatedGroup';
|
|
2
|
+
import { categoryListExample, centerListExample } from '../common';
|
|
3
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
4
|
+
|
|
5
|
+
const fix = {
|
|
6
|
+
component: RelatedGroup, //컴포넌트
|
|
7
|
+
title: 'RelatedGroup' //스토리 이름
|
|
8
|
+
} satisfies Meta<typeof RelatedGroup>;
|
|
9
|
+
|
|
10
|
+
export default fix;
|
|
11
|
+
type Story = StoryObj<typeof RelatedGroup>;
|
|
12
|
+
|
|
13
|
+
export const Default: Story = {
|
|
14
|
+
render: args => (
|
|
15
|
+
<div className={'h-[100vh] w-full pt-10'}>
|
|
16
|
+
<RelatedGroup {...args} />
|
|
17
|
+
</div>
|
|
18
|
+
),
|
|
19
|
+
args: {
|
|
20
|
+
centerName: '1800-7905',
|
|
21
|
+
etc2: 'https://www.daeryunlaw-divorce.com'
|
|
22
|
+
}
|
|
23
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Image from 'next/image';
|
|
3
|
+
import Link from 'next/link';
|
|
4
|
+
|
|
5
|
+
import bg from '../../asset/images/fieldNew/field_mark.png';
|
|
6
|
+
import arrow from '../../asset/images/fieldNew/v_arrow.png';
|
|
7
|
+
|
|
8
|
+
const RelatedGroup = ({ centerName, etc2 }: { centerName: string; etc2: string }) => {
|
|
9
|
+
return (
|
|
10
|
+
<div className={'relative'}>
|
|
11
|
+
<Image src={bg} alt={''} width={200} height={130} className={'absolute bottom-0 left-0'} />
|
|
12
|
+
<div
|
|
13
|
+
className={
|
|
14
|
+
'rounded-br-[30px] rounded-tl-[30px] bg-[#12263F] py-[36px] pr-[40px] max-sm:px-[20px] sm:pl-[40px] lg:pl-[86px]'
|
|
15
|
+
}
|
|
16
|
+
>
|
|
17
|
+
<div className={'flex flex-col justify-between lg:flex-row lg:items-center'}>
|
|
18
|
+
<div className={'text-[#fff]'}>
|
|
19
|
+
<p className={'text-[20px] max-sm:mb-2 sm:text-[24px]'}>관련 업무그룹</p>
|
|
20
|
+
<span className={'text-[24px] font-[800] max-sm:leading-7 sm:text-[28px]'}>
|
|
21
|
+
법무법인 대륜의 전문성을 <br className={'hidden max-sm:block'} />더 살펴보세요
|
|
22
|
+
</span>
|
|
23
|
+
</div>
|
|
24
|
+
|
|
25
|
+
<Link href={etc2} target={'_blank'} className={'z-[99] w-fit max-lg:mt-5'}>
|
|
26
|
+
<button
|
|
27
|
+
className={
|
|
28
|
+
'flex h-[42px] min-w-[177px] items-center justify-between gap-2 rounded-[28px] bg-[#FFFFFF] px-[14px] text-[15px] font-[600] sm:h-[56px] sm:min-w-[210px] sm:px-[20px] sm:text-[18px]'
|
|
29
|
+
}
|
|
30
|
+
>
|
|
31
|
+
{centerName} 바로가기
|
|
32
|
+
<Image src={arrow} alt={''} width={18} height={10} className={'max-sm:w-[14px]'} />
|
|
33
|
+
</button>
|
|
34
|
+
</Link>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
);
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export default RelatedGroup;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const SearchBar: (props: {
|
|
3
|
+
onChange: (e: React.FormEvent<HTMLInputElement>) => void;
|
|
4
|
+
onClick: () => void;
|
|
5
|
+
search: string;
|
|
6
|
+
label: string;
|
|
7
|
+
isKeyPress?: boolean;
|
|
8
|
+
placeholder: string;
|
|
9
|
+
maxLength?: number;
|
|
10
|
+
isIntegrate?: boolean;
|
|
11
|
+
isMarginNotAuto?: boolean;
|
|
12
|
+
marginTop?: [number, number, number];
|
|
13
|
+
marginBottom?: number;
|
|
14
|
+
btnLabel?: string;
|
|
15
|
+
}) => React.JSX.Element;
|
|
16
|
+
export default SearchBar;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import Image from 'next/image';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import SearchImg from '../../asset/images/SearchBar/search.webp';
|
|
5
|
+
import { usePathname } from 'next/navigation';
|
|
6
|
+
const SearchBar = (props) => {
|
|
7
|
+
const { search, placeholder, maxLength, label, isIntegrate, isMarginNotAuto, marginTop, marginBottom, btnLabel = '' } = props;
|
|
8
|
+
const pathname = usePathname();
|
|
9
|
+
const handleInputChange = (e) => {
|
|
10
|
+
props.onChange(e);
|
|
11
|
+
};
|
|
12
|
+
const handleOnKeyPress = (e) => {
|
|
13
|
+
if (props.isKeyPress) {
|
|
14
|
+
if (e.key === 'Enter') {
|
|
15
|
+
props.onClick();
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
const handleClick = () => {
|
|
20
|
+
props.onClick();
|
|
21
|
+
};
|
|
22
|
+
return (<>
|
|
23
|
+
{!isIntegrate ? (<style>{`
|
|
24
|
+
.search_box {
|
|
25
|
+
margin-top: ${marginTop ? marginTop[0] : 150}px;
|
|
26
|
+
margin-bottom: ${marginBottom ? marginBottom : 90}px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@media (max-width: 768px) {
|
|
30
|
+
.search_box {
|
|
31
|
+
margin-top: ${marginTop ? marginTop[1] : 80}px;
|
|
32
|
+
margin-bottom: 80px;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@media (max-width: 640px) {
|
|
37
|
+
.search_box {
|
|
38
|
+
margin-top: ${marginTop ? marginTop[2] : 50}px;
|
|
39
|
+
margin-bottom: 50px;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
`}</style>) : (<></>)}
|
|
44
|
+
<div className={isIntegrate ? 'h-auto w-full ' : 'search_box h-auto w-full '}>
|
|
45
|
+
<div className={'relative w-[100%] max-w-[855px] sm:w-[90%] lg:w-[80%] ' + `${isMarginNotAuto ? '' : 'm-auto'}`}>
|
|
46
|
+
<label style={{ cursor: 'pointer' }} className={'sr-only'}>
|
|
47
|
+
{label}
|
|
48
|
+
</label>
|
|
49
|
+
<input name="sear_txt" placeholder={placeholder} maxLength={maxLength ? maxLength : 20} value={search} onChange={handleInputChange} onKeyUp={handleOnKeyPress} type={'search'} aria-label={label} spellCheck={false} className={`bg-[${isIntegrate ? '#FFFFFF' : '#F7F7F7'}] w-[100%] rounded-full px-[40px] py-[24px] ` +
|
|
50
|
+
'text-2xl tracking-[-0.6px] text-[#333333] placeholder:text-[#575757] ' +
|
|
51
|
+
//1500px
|
|
52
|
+
'max-3xl:text-xl ' +
|
|
53
|
+
//768px
|
|
54
|
+
'max-md:py-[20px] max-md:pl-[40px] max-md:pr-[150px] max-md:text-lg max-sm:py-[18px] ' +
|
|
55
|
+
//640px
|
|
56
|
+
(pathname.includes('integrate')
|
|
57
|
+
? ' max-sm:pl-[20px] max-sm:pr-[60px] max-sm:text-sm '
|
|
58
|
+
: ' max-sm:pl-[25px] max-sm:pr-[65px] max-sm:text-base ') +
|
|
59
|
+
'max-sm:py-[18px] ' +
|
|
60
|
+
//325px
|
|
61
|
+
'max-3xs:py-[15px] max-3xs:pl-[20px] max-3xs:pr-[55px] max-3xs:text-sm '}/>
|
|
62
|
+
|
|
63
|
+
<button type={'button'} onClick={handleClick} className={'absolute right-[20px] top-[50%] z-10 translate-y-[-50%] ' +
|
|
64
|
+
'h-[65%] w-[140px] cursor-pointer rounded-full bg-[#2E2E2E] ' +
|
|
65
|
+
'flex items-center justify-center gap-[10px] ' +
|
|
66
|
+
//768px
|
|
67
|
+
'max-md:w-[120px] ' +
|
|
68
|
+
//640px
|
|
69
|
+
'max-sm:hidden '} aria-label={btnLabel}>
|
|
70
|
+
<Image src={SearchImg} alt="SearchBar input 검색 아이콘" width={30} height={30} className="h-auto w-[22px] max-md:w-[18px]"/>
|
|
71
|
+
<span className={'text-xl font-[800] tracking-[-0.5px] text-[#fff] ' +
|
|
72
|
+
//1500px
|
|
73
|
+
'max-3xl:text-lg ' +
|
|
74
|
+
//768px
|
|
75
|
+
'max-md:text-base '}>
|
|
76
|
+
검색
|
|
77
|
+
</span>
|
|
78
|
+
</button>
|
|
79
|
+
<button type={'button'} onClick={handleClick} className={'absolute right-[15px] top-[50%] z-10 flex translate-y-[-50%] cursor-pointer items-center justify-center rounded-[30px] bg-[#2E2E2E] sm:hidden ' +
|
|
80
|
+
//650px
|
|
81
|
+
'h-[40px] w-[40px] ' +
|
|
82
|
+
//325px
|
|
83
|
+
'max-3xs:h-[32px] max-3xs:w-[32px]'} aria-label={btnLabel}>
|
|
84
|
+
<Image src={SearchImg} alt="SearchBar input 검색 아이콘" width={26} height={26} className={'h-auto w-[18px] max-3xs:w-[16px]'}/>
|
|
85
|
+
</button>
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
</>);
|
|
89
|
+
};
|
|
90
|
+
export default SearchBar;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import SearchBar from './SearchBar';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
const meta = {
|
|
4
|
+
component: SearchBar,
|
|
5
|
+
title: 'SearchBar'
|
|
6
|
+
};
|
|
7
|
+
export default meta;
|
|
8
|
+
export const Default = {
|
|
9
|
+
render: args => {
|
|
10
|
+
return (<div className={'w-full'}>
|
|
11
|
+
<SearchBar {...args}/>
|
|
12
|
+
</div>);
|
|
13
|
+
},
|
|
14
|
+
args: {
|
|
15
|
+
onChange: () => { },
|
|
16
|
+
onClick: () => { },
|
|
17
|
+
search: '',
|
|
18
|
+
label: '',
|
|
19
|
+
placeholder: '검색어를 입력해주세요.'
|
|
20
|
+
}
|
|
21
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import SearchBar from './SearchBar';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
|
|
5
|
+
const meta: Meta<typeof SearchBar> = {
|
|
6
|
+
component: SearchBar,
|
|
7
|
+
title: 'SearchBar'
|
|
8
|
+
};
|
|
9
|
+
export default meta;
|
|
10
|
+
|
|
11
|
+
type Story = StoryObj<typeof meta>;
|
|
12
|
+
|
|
13
|
+
export const Default: Story = {
|
|
14
|
+
render: args => {
|
|
15
|
+
return (
|
|
16
|
+
<div className={'w-full'}>
|
|
17
|
+
<SearchBar {...args} />
|
|
18
|
+
</div>
|
|
19
|
+
);
|
|
20
|
+
},
|
|
21
|
+
args: {
|
|
22
|
+
onChange: () => {},
|
|
23
|
+
onClick: () => {},
|
|
24
|
+
search: '',
|
|
25
|
+
label: '',
|
|
26
|
+
placeholder: '검색어를 입력해주세요.'
|
|
27
|
+
}
|
|
28
|
+
};
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import Image from 'next/image';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
|
|
6
|
+
import SearchImg from '../../asset/images/SearchBar/search.webp';
|
|
7
|
+
import { usePathname } from 'next/navigation';
|
|
8
|
+
|
|
9
|
+
const SearchBar = (props: {
|
|
10
|
+
// pathname: string
|
|
11
|
+
onChange: (e: React.FormEvent<HTMLInputElement>) => void;
|
|
12
|
+
onClick: () => void;
|
|
13
|
+
search: string;
|
|
14
|
+
label: string;
|
|
15
|
+
isKeyPress?: boolean;
|
|
16
|
+
placeholder: string;
|
|
17
|
+
maxLength?: number;
|
|
18
|
+
isIntegrate?: boolean;
|
|
19
|
+
isMarginNotAuto?: boolean; //중앙정렬 아닐 시 true
|
|
20
|
+
marginTop?: [number, number, number]; //기본값 존재, 순서대로 all, 768px, 640px
|
|
21
|
+
marginBottom?: number; //기본값 존재
|
|
22
|
+
btnLabel?: string;
|
|
23
|
+
}) => {
|
|
24
|
+
const {
|
|
25
|
+
search,
|
|
26
|
+
placeholder,
|
|
27
|
+
maxLength,
|
|
28
|
+
label,
|
|
29
|
+
isIntegrate,
|
|
30
|
+
isMarginNotAuto,
|
|
31
|
+
marginTop,
|
|
32
|
+
marginBottom,
|
|
33
|
+
btnLabel = ''
|
|
34
|
+
} = props;
|
|
35
|
+
const pathname = usePathname();
|
|
36
|
+
|
|
37
|
+
const handleInputChange = (e: React.FormEvent<HTMLInputElement>) => {
|
|
38
|
+
props.onChange(e);
|
|
39
|
+
};
|
|
40
|
+
const handleOnKeyPress = (e: any) => {
|
|
41
|
+
if (props.isKeyPress) {
|
|
42
|
+
if (e.key === 'Enter') {
|
|
43
|
+
props.onClick();
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
const handleClick = () => {
|
|
48
|
+
props.onClick();
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
return (
|
|
52
|
+
<>
|
|
53
|
+
{!isIntegrate ? (
|
|
54
|
+
<style>{`
|
|
55
|
+
.search_box {
|
|
56
|
+
margin-top: ${marginTop ? marginTop[0] : 150}px;
|
|
57
|
+
margin-bottom: ${marginBottom ? marginBottom : 90}px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@media (max-width: 768px) {
|
|
61
|
+
.search_box {
|
|
62
|
+
margin-top: ${marginTop ? marginTop[1] : 80}px;
|
|
63
|
+
margin-bottom: 80px;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@media (max-width: 640px) {
|
|
68
|
+
.search_box {
|
|
69
|
+
margin-top: ${marginTop ? marginTop[2] : 50}px;
|
|
70
|
+
margin-bottom: 50px;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
`}</style>
|
|
75
|
+
) : (
|
|
76
|
+
<></>
|
|
77
|
+
)}
|
|
78
|
+
<div className={isIntegrate ? 'h-auto w-full ' : 'search_box h-auto w-full '}>
|
|
79
|
+
<div
|
|
80
|
+
className={
|
|
81
|
+
'relative w-[100%] max-w-[855px] sm:w-[90%] lg:w-[80%] ' + `${isMarginNotAuto ? '' : 'm-auto'}`
|
|
82
|
+
}
|
|
83
|
+
>
|
|
84
|
+
<label style={{ cursor: 'pointer' }} className={'sr-only'}>
|
|
85
|
+
{label}
|
|
86
|
+
</label>
|
|
87
|
+
<input
|
|
88
|
+
name="sear_txt"
|
|
89
|
+
placeholder={placeholder}
|
|
90
|
+
maxLength={maxLength ? maxLength : 20}
|
|
91
|
+
value={search}
|
|
92
|
+
onChange={handleInputChange}
|
|
93
|
+
onKeyUp={handleOnKeyPress}
|
|
94
|
+
type={'search'}
|
|
95
|
+
aria-label={label}
|
|
96
|
+
spellCheck={false}
|
|
97
|
+
className={
|
|
98
|
+
`bg-[${isIntegrate ? '#FFFFFF' : '#F7F7F7'}] w-[100%] rounded-full px-[40px] py-[24px] ` +
|
|
99
|
+
'text-2xl tracking-[-0.6px] text-[#333333] placeholder:text-[#575757] ' +
|
|
100
|
+
//1500px
|
|
101
|
+
'max-3xl:text-xl ' +
|
|
102
|
+
//768px
|
|
103
|
+
'max-md:py-[20px] max-md:pl-[40px] max-md:pr-[150px] max-md:text-lg max-sm:py-[18px] ' +
|
|
104
|
+
//640px
|
|
105
|
+
(pathname.includes('integrate')
|
|
106
|
+
? ' max-sm:pl-[20px] max-sm:pr-[60px] max-sm:text-sm '
|
|
107
|
+
: ' max-sm:pl-[25px] max-sm:pr-[65px] max-sm:text-base ') +
|
|
108
|
+
'max-sm:py-[18px] ' +
|
|
109
|
+
//325px
|
|
110
|
+
'max-3xs:py-[15px] max-3xs:pl-[20px] max-3xs:pr-[55px] max-3xs:text-sm '
|
|
111
|
+
}
|
|
112
|
+
/>
|
|
113
|
+
|
|
114
|
+
<button
|
|
115
|
+
type={'button'}
|
|
116
|
+
onClick={handleClick}
|
|
117
|
+
className={
|
|
118
|
+
'absolute right-[20px] top-[50%] z-10 translate-y-[-50%] ' +
|
|
119
|
+
'h-[65%] w-[140px] cursor-pointer rounded-full bg-[#2E2E2E] ' +
|
|
120
|
+
'flex items-center justify-center gap-[10px] ' +
|
|
121
|
+
//768px
|
|
122
|
+
'max-md:w-[120px] ' +
|
|
123
|
+
//640px
|
|
124
|
+
'max-sm:hidden '
|
|
125
|
+
}
|
|
126
|
+
aria-label={btnLabel}
|
|
127
|
+
>
|
|
128
|
+
<Image
|
|
129
|
+
src={SearchImg}
|
|
130
|
+
alt="SearchBar input 검색 아이콘"
|
|
131
|
+
width={30}
|
|
132
|
+
height={30}
|
|
133
|
+
className="h-auto w-[22px] max-md:w-[18px]"
|
|
134
|
+
/>
|
|
135
|
+
<span
|
|
136
|
+
className={
|
|
137
|
+
'text-xl font-[800] tracking-[-0.5px] text-[#fff] ' +
|
|
138
|
+
//1500px
|
|
139
|
+
'max-3xl:text-lg ' +
|
|
140
|
+
//768px
|
|
141
|
+
'max-md:text-base '
|
|
142
|
+
}
|
|
143
|
+
>
|
|
144
|
+
검색
|
|
145
|
+
</span>
|
|
146
|
+
</button>
|
|
147
|
+
<button
|
|
148
|
+
type={'button'}
|
|
149
|
+
onClick={handleClick}
|
|
150
|
+
className={
|
|
151
|
+
'absolute right-[15px] top-[50%] z-10 flex translate-y-[-50%] cursor-pointer items-center justify-center rounded-[30px] bg-[#2E2E2E] sm:hidden ' +
|
|
152
|
+
//650px
|
|
153
|
+
'h-[40px] w-[40px] ' +
|
|
154
|
+
//325px
|
|
155
|
+
'max-3xs:h-[32px] max-3xs:w-[32px]'
|
|
156
|
+
}
|
|
157
|
+
aria-label={btnLabel}
|
|
158
|
+
>
|
|
159
|
+
<Image
|
|
160
|
+
src={SearchImg}
|
|
161
|
+
alt="SearchBar input 검색 아이콘"
|
|
162
|
+
width={26}
|
|
163
|
+
height={26}
|
|
164
|
+
className={'h-auto w-[18px] max-3xs:w-[16px]'}
|
|
165
|
+
/>
|
|
166
|
+
</button>
|
|
167
|
+
</div>
|
|
168
|
+
</div>
|
|
169
|
+
</>
|
|
170
|
+
);
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
export default SearchBar;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import Link from 'next/link';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import IconArrow from '../../asset/images/seo/successCase/up_right.svg';
|
|
4
|
+
import IconRightArrow from '../../asset/images/seo/successCase/right_arrow.svg';
|
|
5
|
+
import IconDot from '../../asset/images/seo/successCase/dia_dot.svg';
|
|
6
|
+
export const FieldCase = ({ fieldData }) => {
|
|
7
|
+
return (<div className={'relative h-auto w-full border-l-[1px] border-t-[1px] border-solid border-[#B9B9B9] pb-[45px] pl-[26px] pt-[30px] ' +
|
|
8
|
+
'before:absolute before:left-0 before:top-0 before:block before:aspect-square before:w-[15px] before:bg-[#B9B9B9] before:content-[""] '}>
|
|
9
|
+
<span className={'flex h-fit w-full items-center justify-between'}>
|
|
10
|
+
<p className={'text-[26px] tracking-[-0.5px] max-3xl:text-[24px] max-xl:text-[26px] ' +
|
|
11
|
+
'font-[800] text-[#80377A] '}>
|
|
12
|
+
관련 업무분야
|
|
13
|
+
</p>
|
|
14
|
+
<Link href={'/field/area'} title={'업무분야 더보기'} className={'flex h-[35px] w-[100px] items-center justify-center gap-[4px] bg-[#5D5D5D] ' +
|
|
15
|
+
'hover:bg-[#722D6D] ' +
|
|
16
|
+
//1500px
|
|
17
|
+
'w-[100px] max-3xl:h-[30px] max-3xl:w-[90px] '}>
|
|
18
|
+
<p className={'w-fit text-[18px] font-[600] leading-none text-white max-3xl:text-[16px] '}>
|
|
19
|
+
더보기
|
|
20
|
+
</p>
|
|
21
|
+
<IconRightArrow className={'h-auto w-[14px] max-3xl:w-[12px] '}/>
|
|
22
|
+
</Link>
|
|
23
|
+
</span>
|
|
24
|
+
<span className={'mt-[30px] flex flex-col gap-3 '}>
|
|
25
|
+
{fieldData === null || fieldData === void 0 ? void 0 : fieldData.map(i => (<Link href={i.pathname + i.idx} key={i.pathname + i.idx} className={'flex w-fit items-start gap-[10px] text-[20px] font-medium tracking-[-0.4px] hover:text-[#285FA7] ' +
|
|
26
|
+
//1500px
|
|
27
|
+
'max-3xl:text-[18px] ' +
|
|
28
|
+
//1280px
|
|
29
|
+
'max-xl:text-[20px] ' +
|
|
30
|
+
//768px
|
|
31
|
+
'max-md:text-[18px]'}>
|
|
32
|
+
<IconDot className={'mt-3 inline shrink-0 ' +
|
|
33
|
+
//1500px
|
|
34
|
+
'max-3xl:mt-[9px]'}/>
|
|
35
|
+
<div>
|
|
36
|
+
{i.title_text}
|
|
37
|
+
<IconArrow className={'mb-[5px] ml-2 inline h-[10px] w-[10px] ' +
|
|
38
|
+
//1500px
|
|
39
|
+
'max-3xl:h-[9px] max-3xl:w-[9px] ' +
|
|
40
|
+
//1280px
|
|
41
|
+
'max-xl:mb-[3px] max-xl:h-[10px] max-xl:w-[10px] ' +
|
|
42
|
+
//1500px
|
|
43
|
+
'max-md:mb-[7px] max-md:h-[9px] max-md:w-[9px] '}/>
|
|
44
|
+
</div>
|
|
45
|
+
</Link>))}
|
|
46
|
+
</span>
|
|
47
|
+
</div>);
|
|
48
|
+
};
|