@daeryun/dr_components 0.2.57 → 0.2.59
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/myCaseManage/arrow_2.webp +0 -0
- package/dist/asset/images/myCaseManage/arrow_right.svg +3 -0
- package/dist/asset/images/myCaseManage/background.svg +8 -0
- package/dist/asset/images/myCaseManage/header_arrow.svg +3 -0
- package/dist/asset/images/myCaseManage/home.svg +16 -0
- package/dist/asset/images/myCaseManage/home.webp +0 -0
- package/dist/asset/images/myCaseManage/icon/case_icon1.svg +4 -0
- package/dist/asset/images/myCaseManage/icon/case_icon2.svg +6 -0
- package/dist/asset/images/myCaseManage/icon/case_icon3.svg +3 -0
- package/dist/asset/images/myCaseManage/icon/case_lookup_linkout.svg +5 -0
- package/dist/asset/images/myCaseManage/icon/check_circle.svg +3 -0
- package/dist/asset/images/myCaseManage/icon/check_circle2.svg +3 -0
- package/dist/asset/images/myCaseManage/icon/client.svg +14 -0
- package/dist/asset/images/myCaseManage/icon/daeryun.svg +7 -0
- package/dist/asset/images/myCaseManage/icon/download.svg +3 -0
- package/dist/asset/images/myCaseManage/icon/jpg.svg +15 -0
- package/dist/asset/images/myCaseManage/icon/pdf.svg +9 -0
- package/dist/asset/images/myCaseManage/icon/png.svg +25 -0
- package/dist/asset/images/myCaseManage/icon/word.svg +11 -0
- package/dist/asset/images/myCaseManage/icon/xls.svg +18 -0
- package/dist/asset/images/myCaseManage/nav_arr.webp +0 -0
- package/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/components/BrochureBtn/BrochureBtn.d.ts +1 -0
- package/dist/components/BrochureBtn/BrochureBtn.stories.d.ts +6 -5
- package/dist/components/BrochureBtn/MedicalBrochureBtn.d.ts +1 -0
- package/dist/components/Fix/Fix.stories.d.ts +3 -2
- package/dist/components/Footer/TopBtn.d.ts +1 -0
- package/dist/components/MapSection/Map.d.ts +1 -0
- package/dist/components/MapSection/MapSection.d.ts +1 -1
- package/dist/components/Mark/Mark.d.ts +1 -0
- package/dist/components/SelectBox/SelectBox.d.ts +8 -8
- package/dist/components/Seo/SeoStrength.stories.d.ts +1 -0
- package/dist/components/ViewMoreSection/SearchIcon.d.ts +1 -0
- package/dist/components/banner/TopBanner.d.ts +1 -0
- package/dist/components/banner/TopBanner.stories.d.ts +1 -0
- package/dist/components/categoryView/CategoryComponent.d.ts +1 -1
- package/dist/components/common/strength/index.js +2 -2
- package/dist/components/common/strength/index.ts +2 -2
- package/dist/components/hook/useElementObserve.d.ts +2 -2
- package/dist/components/myCaseManage/[id]/_component/ContactInfo.d.ts +3 -0
- package/dist/components/myCaseManage/[id]/_component/ContactInfo.jsx +65 -0
- package/dist/components/myCaseManage/[id]/_component/ContactInfo.tsx +76 -0
- package/dist/components/myCaseManage/[id]/_component/DetailInfo.d.ts +7 -0
- package/dist/components/myCaseManage/[id]/_component/DetailInfo.jsx +33 -0
- package/dist/components/myCaseManage/[id]/_component/DetailInfo.tsx +50 -0
- package/dist/components/myCaseManage/[id]/_component/TimeLine.d.ts +7 -0
- package/dist/components/myCaseManage/[id]/_component/TimeLine.jsx +41 -0
- package/dist/components/myCaseManage/[id]/_component/TimeLine.tsx +55 -0
- package/dist/components/myCaseManage/[id]/_component/_caseInquiry/CaseInquiry.d.ts +3 -0
- package/dist/components/myCaseManage/[id]/_component/_caseInquiry/CaseInquiry.jsx +90 -0
- package/dist/components/myCaseManage/[id]/_component/_caseInquiry/CaseInquiry.tsx +143 -0
- package/dist/components/myCaseManage/[id]/_component/_document/Document.d.ts +6 -0
- package/dist/components/myCaseManage/[id]/_component/_document/Document.jsx +41 -0
- package/dist/components/myCaseManage/[id]/_component/_document/Document.tsx +59 -0
- package/dist/components/myCaseManage/[id]/_component/_document/DocumentLine.d.ts +7 -0
- package/dist/components/myCaseManage/[id]/_component/_document/DocumentLine.jsx +55 -0
- package/dist/components/myCaseManage/[id]/_component/_document/DocumentLine.tsx +72 -0
- package/dist/components/myCaseManage/[id]/index.d.ts +3 -0
- package/dist/components/myCaseManage/[id]/index.jsx +44 -0
- package/dist/components/myCaseManage/[id]/index.tsx +85 -0
- package/dist/components/myCaseManage/_actions/action.d.ts +13 -0
- package/dist/components/myCaseManage/_actions/action.js +56 -0
- package/dist/components/myCaseManage/_actions/action.ts +65 -0
- package/dist/components/myCaseManage/_component/CaseContainer.d.ts +3 -0
- package/dist/components/myCaseManage/_component/CaseContainer.jsx +99 -0
- package/dist/components/myCaseManage/_component/CaseContainer.tsx +177 -0
- package/dist/components/myCaseManage/_component/_breadCrumble/CategoryMenu.d.ts +8 -0
- package/dist/components/myCaseManage/_component/_breadCrumble/CategoryMenu.jsx +47 -0
- package/dist/components/myCaseManage/_component/_breadCrumble/CategoryMenu.tsx +76 -0
- package/dist/components/myCaseManage/_component/_button/Badge.d.ts +15 -0
- package/dist/components/myCaseManage/_component/_button/Badge.jsx +16 -0
- package/dist/components/myCaseManage/_component/_button/Badge.tsx +22 -0
- package/dist/components/myCaseManage/_component/_button/SubColor1Button.d.ts +7 -0
- package/dist/components/myCaseManage/_component/_button/SubColor1Button.jsx +6 -0
- package/dist/components/myCaseManage/_component/_button/SubColor1Button.tsx +20 -0
- package/dist/components/myCaseManage/_component/_button/SubMenuButton.d.ts +7 -0
- package/dist/components/myCaseManage/_component/_button/SubMenuButton.jsx +6 -0
- package/dist/components/myCaseManage/_component/_button/SubMenuButton.tsx +12 -0
- package/dist/components/myCaseManage/_component/_empty/EmptyTable.d.ts +6 -0
- package/dist/components/myCaseManage/_component/_empty/EmptyTable.jsx +53 -0
- package/dist/components/myCaseManage/_component/_empty/EmptyTable.tsx +59 -0
- package/dist/components/myCaseManage/_component/_layout/CaseLayout.d.ts +7 -0
- package/dist/components/myCaseManage/_component/_layout/CaseLayout.jsx +8 -0
- package/dist/components/myCaseManage/_component/_layout/CaseLayout.tsx +20 -0
- package/dist/components/myCaseManage/_component/_layout/CaseWrapper.d.ts +11 -0
- package/dist/components/myCaseManage/_component/_layout/CaseWrapper.jsx +24 -0
- package/dist/components/myCaseManage/_component/_layout/CaseWrapper.tsx +36 -0
- package/dist/components/myCaseManage/_component/_layout/HeaderLayout.d.ts +5 -0
- package/dist/components/myCaseManage/_component/_layout/HeaderLayout.jsx +4 -0
- package/dist/components/myCaseManage/_component/_layout/HeaderLayout.tsx +5 -0
- package/dist/components/myCaseManage/_component/_layout/IntroWrapper.d.ts +8 -0
- package/dist/components/myCaseManage/_component/_layout/IntroWrapper.jsx +24 -0
- package/dist/components/myCaseManage/_component/_layout/IntroWrapper.tsx +43 -0
- package/dist/components/myCaseManage/_component/_loading/Loading.d.ts +3 -0
- package/dist/components/myCaseManage/_component/_loading/Loading.jsx +90 -0
- package/dist/components/myCaseManage/_component/_loading/Loading.tsx +94 -0
- package/dist/components/myCaseManage/_component/_pagination/PaginationComponent.d.ts +10 -0
- package/dist/components/myCaseManage/_component/_pagination/PaginationComponent.jsx +75 -0
- package/dist/components/myCaseManage/_component/_pagination/PaginationComponent.tsx +163 -0
- package/dist/components/myCaseManage/_component/_table/CaseTable.d.ts +10 -0
- package/dist/components/myCaseManage/_component/_table/CaseTable.jsx +37 -0
- package/dist/components/myCaseManage/_component/_table/CaseTable.tsx +62 -0
- package/dist/components/myCaseManage/_fetchers/getCase.d.ts +5 -0
- package/dist/components/myCaseManage/_fetchers/getCase.js +30 -0
- package/dist/components/myCaseManage/_fetchers/getCase.ts +21 -0
- package/dist/components/myCaseManage/_fetchers/getCaseList.d.ts +7 -0
- package/dist/components/myCaseManage/_fetchers/getCaseList.js +30 -0
- package/dist/components/myCaseManage/_fetchers/getCaseList.ts +24 -0
- package/dist/components/myCaseManage/_fetchers/getCourtFileList.d.ts +5 -0
- package/dist/components/myCaseManage/_fetchers/getCourtFileList.js +30 -0
- package/dist/components/myCaseManage/_fetchers/getCourtFileList.ts +21 -0
- package/dist/components/myCaseManage/_fetchers/getTimeLine.d.ts +5 -0
- package/dist/components/myCaseManage/_fetchers/getTimeLine.js +30 -0
- package/dist/components/myCaseManage/_fetchers/getTimeLine.ts +21 -0
- package/dist/components/myCaseManage/_lib/catagoryMenuName.d.ts +8 -0
- package/dist/components/myCaseManage/_lib/catagoryMenuName.js +8 -0
- package/dist/components/myCaseManage/_lib/catagoryMenuName.ts +11 -0
- package/dist/components/myCaseManage/_lib/pagination/locale/ko_KR.d.ts +15 -0
- package/dist/components/myCaseManage/_lib/pagination/locale/ko_KR.js +21 -0
- package/dist/components/myCaseManage/_type/type.d.ts +64 -0
- package/dist/components/myCaseManage/_type/type.js +1 -0
- package/dist/components/myCaseManage/_type/type.ts +73 -0
- package/dist/components/myCaseManage/index.d.ts +3 -0
- package/dist/components/myCaseManage/index.jsx +20 -0
- package/dist/components/myCaseManage/index.tsx +30 -0
- package/dist/components/page/Choice/Choice.d.ts +1 -1
- package/dist/components/page/Strength/Strength.d.ts +1 -0
- package/dist/components/page/Strength/StrengthIntro.jsx +1 -1
- package/dist/components/page/Strength/StrengthIntro.tsx +1 -1
- package/dist/lib/utils.js +4 -4
- package/dist/styles/globals.css +548 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +93 -91
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import Image from 'next/image';
|
|
2
|
+
import caseIcon1 from '../../../../asset/images/mycaseManage/icon/case_icon1.svg';
|
|
3
|
+
import caseIcon2 from '../../../../asset/images/mycaseManage/icon/case_icon2.svg';
|
|
4
|
+
import caseIcon3 from '../../../../asset/images/mycaseManage/icon/case_icon3.svg';
|
|
5
|
+
const titleList = {
|
|
6
|
+
ongoing: {
|
|
7
|
+
0: {
|
|
8
|
+
title: '아직 의뢰한 사건이 없어요.',
|
|
9
|
+
subTitle: '상담을 접수하시면 법률 상담을 도와드릴게요!',
|
|
10
|
+
img: caseIcon1,
|
|
11
|
+
width: 60,
|
|
12
|
+
height: 66,
|
|
13
|
+
marginTop: '85px'
|
|
14
|
+
},
|
|
15
|
+
1: {
|
|
16
|
+
title: '해당 사건이 없어요.',
|
|
17
|
+
subTitle: '',
|
|
18
|
+
img: caseIcon2,
|
|
19
|
+
width: 66,
|
|
20
|
+
height: 66,
|
|
21
|
+
marginTop: '105px'
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
closed: {
|
|
25
|
+
0: {
|
|
26
|
+
title: '종결된 사건이 없어요.',
|
|
27
|
+
subTitle: '',
|
|
28
|
+
img: caseIcon3,
|
|
29
|
+
width: 59.4,
|
|
30
|
+
height: 66,
|
|
31
|
+
marginTop: '103px'
|
|
32
|
+
},
|
|
33
|
+
1: {
|
|
34
|
+
title: '종결된 사건이 없어요.',
|
|
35
|
+
subTitle: '',
|
|
36
|
+
img: caseIcon3,
|
|
37
|
+
width: 59.4,
|
|
38
|
+
height: 66,
|
|
39
|
+
marginTop: '103px'
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
const EmptyTable = ({ tap, subTap }) => {
|
|
44
|
+
const { title, subTitle, img, width, height, marginTop } = titleList[tap][subTap];
|
|
45
|
+
return (<div className="flex min-h-[350px] w-full flex-col items-center gap-[40px]" style={{ paddingTop: marginTop }}>
|
|
46
|
+
<Image src={img} alt="case_icon" width={width} height={height}/>
|
|
47
|
+
<div className="flex flex-col items-center justify-center ">
|
|
48
|
+
<p className="lg:body_medium1">{title}</p>
|
|
49
|
+
{subTitle && <p className="lg:body_medium1">{subTitle}</p>}
|
|
50
|
+
</div>
|
|
51
|
+
</div>);
|
|
52
|
+
};
|
|
53
|
+
export default EmptyTable;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import Image from 'next/image';
|
|
2
|
+
import caseIcon1 from '../../../../asset/images/mycaseManage/icon/case_icon1.svg';
|
|
3
|
+
import caseIcon2 from '../../../../asset/images/mycaseManage/icon/case_icon2.svg';
|
|
4
|
+
import caseIcon3 from '../../../../asset/images/mycaseManage/icon/case_icon3.svg';
|
|
5
|
+
|
|
6
|
+
const titleList = {
|
|
7
|
+
ongoing: {
|
|
8
|
+
0: {
|
|
9
|
+
title: '아직 의뢰한 사건이 없어요.',
|
|
10
|
+
subTitle: '상담을 접수하시면 법률 상담을 도와드릴게요!',
|
|
11
|
+
img: caseIcon1,
|
|
12
|
+
width: 60,
|
|
13
|
+
height: 66,
|
|
14
|
+
marginTop: '85px'
|
|
15
|
+
},
|
|
16
|
+
1: {
|
|
17
|
+
title: '해당 사건이 없어요.',
|
|
18
|
+
subTitle: '',
|
|
19
|
+
img: caseIcon2,
|
|
20
|
+
width: 66,
|
|
21
|
+
height: 66,
|
|
22
|
+
marginTop: '105px'
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
closed: {
|
|
26
|
+
0: {
|
|
27
|
+
title: '종결된 사건이 없어요.',
|
|
28
|
+
subTitle: '',
|
|
29
|
+
img: caseIcon3,
|
|
30
|
+
width: 59.4,
|
|
31
|
+
height: 66,
|
|
32
|
+
marginTop: '103px'
|
|
33
|
+
},
|
|
34
|
+
1: {
|
|
35
|
+
title: '종결된 사건이 없어요.',
|
|
36
|
+
subTitle: '',
|
|
37
|
+
img: caseIcon3,
|
|
38
|
+
width: 59.4,
|
|
39
|
+
height: 66,
|
|
40
|
+
marginTop: '103px'
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
const EmptyTable = ({ tap, subTap }: { tap: string; subTap: number }) => {
|
|
46
|
+
const { title, subTitle, img, width, height, marginTop } =
|
|
47
|
+
titleList[tap as keyof typeof titleList][subTap as keyof (typeof titleList)[keyof typeof titleList]];
|
|
48
|
+
return (
|
|
49
|
+
<div className="flex min-h-[350px] w-full flex-col items-center gap-[40px]" style={{ paddingTop: marginTop }}>
|
|
50
|
+
<Image src={img} alt="case_icon" width={width} height={height} />
|
|
51
|
+
<div className="flex flex-col items-center justify-center ">
|
|
52
|
+
<p className="lg:body_medium1">{title}</p>
|
|
53
|
+
{subTitle && <p className="lg:body_medium1">{subTitle}</p>}
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
);
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export default EmptyTable;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const CaseLayout: ({ outerClassName, innerClassName, children }: {
|
|
3
|
+
outerClassName?: string | undefined;
|
|
4
|
+
innerClassName?: string | undefined;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
}) => import("react").JSX.Element;
|
|
7
|
+
export default CaseLayout;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { twMerge } from 'tailwind-merge';
|
|
2
|
+
import CaseWrapper from './CaseWrapper';
|
|
3
|
+
const CaseLayout = ({ outerClassName, innerClassName, children }) => {
|
|
4
|
+
return (<CaseWrapper className={outerClassName}>
|
|
5
|
+
<div className={twMerge('bg-grayScale8 z-[1] w-full rounded-[36px] ' + innerClassName)}>{children}</div>
|
|
6
|
+
</CaseWrapper>);
|
|
7
|
+
};
|
|
8
|
+
export default CaseLayout;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { twMerge } from 'tailwind-merge';
|
|
2
|
+
import CaseWrapper from './CaseWrapper';
|
|
3
|
+
import HeaderLayout from './HeaderLayout';
|
|
4
|
+
const CaseLayout = ({
|
|
5
|
+
outerClassName,
|
|
6
|
+
innerClassName,
|
|
7
|
+
children
|
|
8
|
+
}: {
|
|
9
|
+
outerClassName?: string;
|
|
10
|
+
innerClassName?: string;
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
}) => {
|
|
13
|
+
return (
|
|
14
|
+
<CaseWrapper className={outerClassName}>
|
|
15
|
+
<div className={twMerge('bg-grayScale8 z-[1] w-full rounded-[36px] ' + innerClassName)}>{children}</div>
|
|
16
|
+
</CaseWrapper>
|
|
17
|
+
);
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export default CaseLayout;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
interface WrapperProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
innerClassName?: string;
|
|
6
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
7
|
+
isLine?: boolean;
|
|
8
|
+
isLinePadding?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const CaseWrapper: React.FC<WrapperProps>;
|
|
11
|
+
export default CaseWrapper;
|
|
@@ -0,0 +1,24 @@
|
|
|
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, { useRef } from 'react';
|
|
13
|
+
const CaseWrapper = (_a) => {
|
|
14
|
+
var { children, className = '', ref = null,
|
|
15
|
+
// isLine,
|
|
16
|
+
// isLinePadding = true,
|
|
17
|
+
innerClassName } = _a, others = __rest(_a, ["children", "className", "ref", "innerClassName"]);
|
|
18
|
+
const lineRef = useRef(null);
|
|
19
|
+
// const { flagStandardBoolean } = useElementObserve(lineRef, 0.2);
|
|
20
|
+
return (<div className={' mx-auto h-full w-full max-w-[1520px] lg:px-[80px] 3xl:px-[140px] 6xl:px-0 ' + className} ref={ref} {...others}>
|
|
21
|
+
{children}
|
|
22
|
+
</div>);
|
|
23
|
+
};
|
|
24
|
+
export default CaseWrapper;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React, { ReactNode, useRef } from 'react';
|
|
2
|
+
// import useElementObserve from '../../../hook/useElementObserve';
|
|
3
|
+
|
|
4
|
+
interface WrapperProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
className?: string; // 스타일 추가
|
|
7
|
+
innerClassName?: string; // 스타일 추가
|
|
8
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
9
|
+
isLine?: boolean;
|
|
10
|
+
isLinePadding?: boolean;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const CaseWrapper: React.FC<WrapperProps> = ({
|
|
14
|
+
children,
|
|
15
|
+
className = '',
|
|
16
|
+
ref = null,
|
|
17
|
+
// isLine,
|
|
18
|
+
// isLinePadding = true,
|
|
19
|
+
innerClassName,
|
|
20
|
+
...others
|
|
21
|
+
}) => {
|
|
22
|
+
const lineRef = useRef(null);
|
|
23
|
+
// const { flagStandardBoolean } = useElementObserve(lineRef, 0.2);
|
|
24
|
+
|
|
25
|
+
return (
|
|
26
|
+
<div
|
|
27
|
+
className={' mx-auto h-full w-full max-w-[1520px] lg:px-[80px] 3xl:px-[140px] 6xl:px-0 ' + className}
|
|
28
|
+
ref={ref}
|
|
29
|
+
{...others}
|
|
30
|
+
>
|
|
31
|
+
{children}
|
|
32
|
+
</div>
|
|
33
|
+
);
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export default CaseWrapper;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const IntroWrapper: ({ backgroundImage, outerClassName, title, subTitle }: {
|
|
3
|
+
backgroundImage?: string | undefined;
|
|
4
|
+
outerClassName?: string | undefined;
|
|
5
|
+
title?: string | undefined;
|
|
6
|
+
subTitle?: string | undefined;
|
|
7
|
+
}) => import("react").JSX.Element;
|
|
8
|
+
export default IntroWrapper;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import Image from 'next/image';
|
|
2
|
+
import CategoryMenu from '../_breadCrumble/CategoryMenu';
|
|
3
|
+
import { useTranslation } from 'next-i18next';
|
|
4
|
+
import CaseWrapper from './CaseWrapper';
|
|
5
|
+
import Wrapper from '../../../Layout/Wrapper';
|
|
6
|
+
const IntroWrapper = ({ backgroundImage, outerClassName, title, subTitle }) => {
|
|
7
|
+
const { t } = useTranslation('common');
|
|
8
|
+
return (<div className={'absolute top-[70px] w-full md:top-[78px] md2:top-[88px] ' + outerClassName}>
|
|
9
|
+
{backgroundImage ? (<Image unoptimized src={backgroundImage} alt="background" fill className="object-cover"/>) : (<></>)}
|
|
10
|
+
|
|
11
|
+
<Wrapper>
|
|
12
|
+
<div className={'w-full lg:flex lg:flex-row lg:items-center lg:justify-center'}>
|
|
13
|
+
<CategoryMenu t={t}/>
|
|
14
|
+
</div>
|
|
15
|
+
</Wrapper>
|
|
16
|
+
<CaseWrapper>
|
|
17
|
+
<div className={'relative w-full '}>
|
|
18
|
+
<p className={'lg:title_large '}>{title}</p>
|
|
19
|
+
<p className={'lg:title_small lg:mt-[12px] '}>{subTitle}</p>
|
|
20
|
+
</div>
|
|
21
|
+
</CaseWrapper>
|
|
22
|
+
</div>);
|
|
23
|
+
};
|
|
24
|
+
export default IntroWrapper;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import Image from 'next/image';
|
|
2
|
+
|
|
3
|
+
import CategoryMenu from '../_breadCrumble/CategoryMenu';
|
|
4
|
+
import { useTranslation } from 'next-i18next';
|
|
5
|
+
import CaseWrapper from './CaseWrapper';
|
|
6
|
+
import Wrapper from '../../../Layout/Wrapper';
|
|
7
|
+
|
|
8
|
+
const IntroWrapper = ({
|
|
9
|
+
backgroundImage,
|
|
10
|
+
outerClassName,
|
|
11
|
+
title,
|
|
12
|
+
subTitle
|
|
13
|
+
}: {
|
|
14
|
+
backgroundImage?: string;
|
|
15
|
+
outerClassName?: string;
|
|
16
|
+
title?: string;
|
|
17
|
+
subTitle?: string;
|
|
18
|
+
}) => {
|
|
19
|
+
const { t } = useTranslation('common');
|
|
20
|
+
return (
|
|
21
|
+
<div className={'absolute top-[70px] w-full md:top-[78px] md2:top-[88px] ' + outerClassName}>
|
|
22
|
+
{backgroundImage ? (
|
|
23
|
+
<Image unoptimized src={backgroundImage} alt="background" fill className="object-cover" />
|
|
24
|
+
) : (
|
|
25
|
+
<></>
|
|
26
|
+
)}
|
|
27
|
+
|
|
28
|
+
<Wrapper>
|
|
29
|
+
<div className={'w-full lg:flex lg:flex-row lg:items-center lg:justify-center'}>
|
|
30
|
+
<CategoryMenu t={t} />
|
|
31
|
+
</div>
|
|
32
|
+
</Wrapper>
|
|
33
|
+
<CaseWrapper>
|
|
34
|
+
<div className={'relative w-full '}>
|
|
35
|
+
<p className={'lg:title_large '}>{title}</p>
|
|
36
|
+
<p className={'lg:title_small lg:mt-[12px] '}>{subTitle}</p>
|
|
37
|
+
</div>
|
|
38
|
+
</CaseWrapper>
|
|
39
|
+
</div>
|
|
40
|
+
);
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export default IntroWrapper;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/// <reference types="next/types/global" />
|
|
2
|
+
const Loading = () => {
|
|
3
|
+
return (<>
|
|
4
|
+
<style>{`
|
|
5
|
+
.loader {
|
|
6
|
+
display: flex;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
align-items: center;
|
|
9
|
+
width: 48px; /* 전체 너비 */
|
|
10
|
+
height: 48px; /* 전체 높이 */
|
|
11
|
+
position: relative;
|
|
12
|
+
animation: rotate 10s linear infinite; /* 전체 회전 애니메이션 */
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.loader-circle {
|
|
16
|
+
width: 9.12px; /* 원의 너비 */
|
|
17
|
+
height: 9.12px; /* 원의 높이 */
|
|
18
|
+
border-radius: 50%;
|
|
19
|
+
position: absolute;
|
|
20
|
+
animation: move 1.6s linear infinite; /* 개별 원의 애니메이션 */
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.loader-circle:nth-child(1) {
|
|
24
|
+
background: #ffffff;
|
|
25
|
+
animation-delay: -1.4s;
|
|
26
|
+
}
|
|
27
|
+
.loader-circle:nth-child(2) {
|
|
28
|
+
background: #f5f5f5;
|
|
29
|
+
animation-delay: -1.2s;
|
|
30
|
+
}
|
|
31
|
+
.loader-circle:nth-child(3) {
|
|
32
|
+
background: #ededed;
|
|
33
|
+
animation-delay: -1s;
|
|
34
|
+
}
|
|
35
|
+
.loader-circle:nth-child(4) {
|
|
36
|
+
background: #dbdbdb;
|
|
37
|
+
animation-delay: -0.8s;
|
|
38
|
+
}
|
|
39
|
+
.loader-circle:nth-child(5) {
|
|
40
|
+
background: #b9b9b9;
|
|
41
|
+
animation-delay: -0.6s;
|
|
42
|
+
}
|
|
43
|
+
.loader-circle:nth-child(6) {
|
|
44
|
+
background: #909090;
|
|
45
|
+
animation-delay: -0.4s;
|
|
46
|
+
}
|
|
47
|
+
.loader-circle:nth-child(7) {
|
|
48
|
+
background: #606060;
|
|
49
|
+
animation-delay: -0.2s;
|
|
50
|
+
}
|
|
51
|
+
.loader-circle:nth-child(8) {
|
|
52
|
+
background: #3d3d3d;
|
|
53
|
+
animation-delay: 0s;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@keyframes rotate {
|
|
57
|
+
0% {
|
|
58
|
+
transform: rotate(0deg);
|
|
59
|
+
}
|
|
60
|
+
100% {
|
|
61
|
+
transform: rotate(360deg);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@keyframes move {
|
|
66
|
+
0% {
|
|
67
|
+
transform: rotate(0deg) translate(20px) rotate(0deg);
|
|
68
|
+
opacity: 1;
|
|
69
|
+
}
|
|
70
|
+
100% {
|
|
71
|
+
transform: rotate(360deg) translate(20px) rotate(-360deg);
|
|
72
|
+
opacity: 1;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
`}</style>
|
|
76
|
+
<div className="mx-auto flex h-[200px] items-center justify-center">
|
|
77
|
+
<div className="loader ">
|
|
78
|
+
<div className="loader-circle"></div>
|
|
79
|
+
<div className="loader-circle"></div>
|
|
80
|
+
<div className="loader-circle"></div>
|
|
81
|
+
<div className="loader-circle"></div>
|
|
82
|
+
<div className="loader-circle"></div>
|
|
83
|
+
<div className="loader-circle"></div>
|
|
84
|
+
<div className="loader-circle"></div>
|
|
85
|
+
<div className="loader-circle"></div>
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
</>);
|
|
89
|
+
};
|
|
90
|
+
export default Loading;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/// <reference types="next/types/global" />
|
|
2
|
+
|
|
3
|
+
const Loading = () => {
|
|
4
|
+
return (
|
|
5
|
+
<>
|
|
6
|
+
<style>{`
|
|
7
|
+
.loader {
|
|
8
|
+
display: flex;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
align-items: center;
|
|
11
|
+
width: 48px; /* 전체 너비 */
|
|
12
|
+
height: 48px; /* 전체 높이 */
|
|
13
|
+
position: relative;
|
|
14
|
+
animation: rotate 10s linear infinite; /* 전체 회전 애니메이션 */
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.loader-circle {
|
|
18
|
+
width: 9.12px; /* 원의 너비 */
|
|
19
|
+
height: 9.12px; /* 원의 높이 */
|
|
20
|
+
border-radius: 50%;
|
|
21
|
+
position: absolute;
|
|
22
|
+
animation: move 1.6s linear infinite; /* 개별 원의 애니메이션 */
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.loader-circle:nth-child(1) {
|
|
26
|
+
background: #ffffff;
|
|
27
|
+
animation-delay: -1.4s;
|
|
28
|
+
}
|
|
29
|
+
.loader-circle:nth-child(2) {
|
|
30
|
+
background: #f5f5f5;
|
|
31
|
+
animation-delay: -1.2s;
|
|
32
|
+
}
|
|
33
|
+
.loader-circle:nth-child(3) {
|
|
34
|
+
background: #ededed;
|
|
35
|
+
animation-delay: -1s;
|
|
36
|
+
}
|
|
37
|
+
.loader-circle:nth-child(4) {
|
|
38
|
+
background: #dbdbdb;
|
|
39
|
+
animation-delay: -0.8s;
|
|
40
|
+
}
|
|
41
|
+
.loader-circle:nth-child(5) {
|
|
42
|
+
background: #b9b9b9;
|
|
43
|
+
animation-delay: -0.6s;
|
|
44
|
+
}
|
|
45
|
+
.loader-circle:nth-child(6) {
|
|
46
|
+
background: #909090;
|
|
47
|
+
animation-delay: -0.4s;
|
|
48
|
+
}
|
|
49
|
+
.loader-circle:nth-child(7) {
|
|
50
|
+
background: #606060;
|
|
51
|
+
animation-delay: -0.2s;
|
|
52
|
+
}
|
|
53
|
+
.loader-circle:nth-child(8) {
|
|
54
|
+
background: #3d3d3d;
|
|
55
|
+
animation-delay: 0s;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@keyframes rotate {
|
|
59
|
+
0% {
|
|
60
|
+
transform: rotate(0deg);
|
|
61
|
+
}
|
|
62
|
+
100% {
|
|
63
|
+
transform: rotate(360deg);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@keyframes move {
|
|
68
|
+
0% {
|
|
69
|
+
transform: rotate(0deg) translate(20px) rotate(0deg);
|
|
70
|
+
opacity: 1;
|
|
71
|
+
}
|
|
72
|
+
100% {
|
|
73
|
+
transform: rotate(360deg) translate(20px) rotate(-360deg);
|
|
74
|
+
opacity: 1;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
`}</style>
|
|
78
|
+
<div className="mx-auto flex h-[200px] items-center justify-center">
|
|
79
|
+
<div className="loader ">
|
|
80
|
+
<div className="loader-circle"></div>
|
|
81
|
+
<div className="loader-circle"></div>
|
|
82
|
+
<div className="loader-circle"></div>
|
|
83
|
+
<div className="loader-circle"></div>
|
|
84
|
+
<div className="loader-circle"></div>
|
|
85
|
+
<div className="loader-circle"></div>
|
|
86
|
+
<div className="loader-circle"></div>
|
|
87
|
+
<div className="loader-circle"></div>
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
90
|
+
</>
|
|
91
|
+
);
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export default Loading;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import 'rc-pagination/assets/index.css';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare const PaginationComponent: (props: {
|
|
4
|
+
onChange: (pageNum: number) => void;
|
|
5
|
+
current: number;
|
|
6
|
+
total: number;
|
|
7
|
+
pageSize: number;
|
|
8
|
+
marginY?: number | undefined;
|
|
9
|
+
}) => React.JSX.Element;
|
|
10
|
+
export default PaginationComponent;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import Pagination from 'rc-pagination';
|
|
2
|
+
import 'rc-pagination/assets/index.css';
|
|
3
|
+
import localeInfo from '../../_lib/pagination/locale/ko_KR';
|
|
4
|
+
import Image from 'next/image';
|
|
5
|
+
import React, { useCallback, useEffect, useState } from 'react';
|
|
6
|
+
import { useRouter } from 'next/router';
|
|
7
|
+
import Link from 'next/link';
|
|
8
|
+
const PaginationComponent = (props) => {
|
|
9
|
+
const { onChange, current, total, pageSize, marginY } = props;
|
|
10
|
+
// useEffect(() => {
|
|
11
|
+
// const prevElement = document.querySelector('.rc-pagination-prev')
|
|
12
|
+
// if (prevElement) {
|
|
13
|
+
// prevElement.setAttribute('rel', 'prev')
|
|
14
|
+
// }
|
|
15
|
+
//
|
|
16
|
+
// const nextElement = document.querySelector('.rc-pagination-next')
|
|
17
|
+
// if (nextElement) {
|
|
18
|
+
// nextElement.setAttribute('rel', 'next')
|
|
19
|
+
// }
|
|
20
|
+
// }, [current, total, pageSize, localeInfo])
|
|
21
|
+
useEffect(() => {
|
|
22
|
+
const rcPageCon = document.querySelectorAll('.rc-pagination-item');
|
|
23
|
+
rcPageCon.forEach(i => {
|
|
24
|
+
i.removeAttribute('tabindex');
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
const router = useRouter();
|
|
28
|
+
const [query, setQuery] = useState({});
|
|
29
|
+
useEffect(() => {
|
|
30
|
+
const filteredQuery = Object.assign({}, Object.fromEntries(Object.entries(router.query).filter(([key, value]) => !(key === 'search' && value === '') && !(key === 'page'))));
|
|
31
|
+
setQuery(filteredQuery);
|
|
32
|
+
}, [router.asPath]);
|
|
33
|
+
//페이징 렌더링
|
|
34
|
+
const itemRender = useCallback((page, type, element) => {
|
|
35
|
+
if (type === 'page') {
|
|
36
|
+
if (router.pathname === '/blog') {
|
|
37
|
+
return (<span className={`text-lg max-sm:text-base ${current === page ? 'font-[800]' : ''} `}>
|
|
38
|
+
{page}
|
|
39
|
+
</span>);
|
|
40
|
+
}
|
|
41
|
+
return (<Link href={{
|
|
42
|
+
pathname: router.pathname,
|
|
43
|
+
query: Object.assign({ page }, query)
|
|
44
|
+
}} className={`text-lg max-sm:text-base ${current === page ? 'font-[800]' : ''}`} aria-label={current === page ? `${page} 페이지, 현재 페이지 입니다.` : `${page} 페이지로 이동`} style={{ color: current === page ? 'inherit' : 'initial' }} // 폰트 색상 고정
|
|
45
|
+
>
|
|
46
|
+
{page}
|
|
47
|
+
</Link>);
|
|
48
|
+
}
|
|
49
|
+
else if (type === 'prev') {
|
|
50
|
+
if (current === 1) {
|
|
51
|
+
return (<Image src={'/images/pagination/arrow_l_off.webp'} width={26} height={26} alt={''} className={'max-sm:scale-[0.8]'}/>);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
else if (type === 'next') {
|
|
55
|
+
if (current === 1) {
|
|
56
|
+
return (<Image src={'/images/pagination/arrow_r_on.webp'} width={26} height={26} alt={''} className={'max-sm:scale-[0.8]'}/>);
|
|
57
|
+
}
|
|
58
|
+
else if (current >= total / pageSize) {
|
|
59
|
+
return (<Image src={'/images/pagination/arrow_r_off.webp'} width={26} height={26} alt={''} className={'max-sm:scale-[0.8]'}/>);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return element;
|
|
63
|
+
}, [current, query]);
|
|
64
|
+
// @ts-ignore
|
|
65
|
+
return (<div className={'flex items-center justify-center'} style={{
|
|
66
|
+
marginBlock: (marginY ? marginY : 100) + 'px'
|
|
67
|
+
}}>
|
|
68
|
+
<Pagination onChange={onChange} current={current} total={total} pageSize={pageSize} locale={localeInfo} prevIcon={<Image src={'/images/pagination/arrow_l_on.webp'} width={26} height={26} alt={''} className={'max-sm:scale-[0.8]'}/>} nextIcon={<Image src={'/images/pagination/arrow_r_on.webp'} width={26} height={26} alt={''} className={'max-sm:scale-[0.8]'}/>} jumpPrevIcon={<span className={'mr-[9px] hidden text-lg tracking-[-5px] text-[#aaa] max-sm:text-base'}>
|
|
69
|
+
ㆍㆍㆍ
|
|
70
|
+
</span>} jumpNextIcon={<span className={'mr-[9px] hidden text-lg tracking-[-5px] text-[#aaa] max-sm:text-base'}>
|
|
71
|
+
ㆍㆍㆍ
|
|
72
|
+
</span>} className={'pagination-data'} itemRender={itemRender}/>
|
|
73
|
+
</div>);
|
|
74
|
+
};
|
|
75
|
+
export default PaginationComponent;
|