@daeryun/dr_components 0.2.99 → 0.3.0
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/components/banner/TopBanner.jsx +14 -11
- package/dist/components/banner/TopBanner.tsx +15 -12
- package/dist/components/myCase/MyCase.d.ts +5 -0
- package/dist/components/myCase/MyCase.jsx +27 -0
- package/dist/components/myCase/MyCase.tsx +48 -0
- package/dist/components/page/MyCase/MyCase.stories.d.ts +6 -0
- package/dist/components/page/MyCase/MyCase.stories.jsx +17 -0
- package/dist/components/page/MyCase/MyCase.stories.tsx +25 -0
- package/dist/components/page/MyCase/MyCaseApp.d.ts +2 -0
- package/dist/components/page/MyCase/MyCaseApp.jsx +19 -0
- package/dist/components/page/MyCase/MyCaseApp.tsx +32 -0
- package/dist/components/page/MyCase/MyCasePage.d.ts +3 -0
- package/dist/components/page/MyCase/MyCasePage.jsx +21 -0
- package/dist/components/page/MyCase/MyCasePage.tsx +32 -0
- package/dist/components/page/MyCase/[id]/MyCaseDetail.stories.d.ts +6 -0
- package/dist/components/page/MyCase/[id]/MyCaseDetail.stories.jsx +17 -0
- package/dist/components/page/MyCase/[id]/MyCaseDetail.stories.tsx +25 -0
- package/dist/components/page/MyCase/[id]/MyCaseDetailApp.d.ts +3 -0
- package/dist/components/page/MyCase/[id]/MyCaseDetailApp.jsx +66 -0
- package/dist/components/page/MyCase/[id]/MyCaseDetailApp.tsx +159 -0
- package/dist/components/page/MyCase/[id]/MyCaseDetailPage.d.ts +3 -0
- package/dist/components/page/MyCase/[id]/MyCaseDetailPage.jsx +65 -0
- package/dist/components/page/MyCase/[id]/MyCaseDetailPage.tsx +157 -0
- package/dist/components/page/MyCase/[id]/_component/ContactInfo.d.ts +2 -0
- package/dist/components/page/MyCase/[id]/_component/ContactInfo.jsx +79 -0
- package/dist/components/page/MyCase/[id]/_component/ContactInfo.tsx +102 -0
- package/dist/components/page/MyCase/[id]/_component/DetailInfo.d.ts +6 -0
- package/dist/components/page/MyCase/[id]/_component/DetailInfo.jsx +44 -0
- package/dist/components/page/MyCase/[id]/_component/DetailInfo.tsx +94 -0
- package/dist/components/page/MyCase/[id]/_component/TimeLine.d.ts +6 -0
- package/dist/components/page/MyCase/[id]/_component/TimeLine.jsx +46 -0
- package/dist/components/page/MyCase/[id]/_component/TimeLine.tsx +72 -0
- package/dist/components/page/MyCase/[id]/_component/_caseInquiry/CaseInquiry.d.ts +11 -0
- package/dist/components/page/MyCase/[id]/_component/_caseInquiry/CaseInquiry.jsx +80 -0
- package/dist/components/page/MyCase/[id]/_component/_caseInquiry/CaseInquiry.tsx +188 -0
- package/dist/components/page/MyCase/[id]/_component/_document/Document.d.ts +6 -0
- package/dist/components/page/MyCase/[id]/_component/_document/Document.jsx +35 -0
- package/dist/components/page/MyCase/[id]/_component/_document/Document.tsx +59 -0
- package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.d.ts +6 -0
- package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.jsx +76 -0
- package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.tsx +94 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryAddModal.d.ts +7 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryAddModal.jsx +107 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryAddModal.tsx +150 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryConfirmModal.d.ts +7 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryConfirmModal.jsx +25 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryConfirmModal.tsx +55 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/ModalCotainer.d.ts +7 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/ModalCotainer.jsx +26 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/ModalCotainer.tsx +39 -0
- package/dist/components/page/MyCase/[id]/_component/_textarea/TextArea.d.ts +7 -0
- package/dist/components/page/MyCase/[id]/_component/_textarea/TextArea.jsx +4 -0
- package/dist/components/page/MyCase/[id]/_component/_textarea/TextArea.tsx +24 -0
- package/dist/components/page/MyCase/_actions/action.d.ts +35 -0
- package/dist/components/page/MyCase/_actions/action.js +145 -0
- package/dist/components/page/MyCase/_actions/action.ts +165 -0
- package/dist/components/page/MyCase/_component/CaseAppContainer.d.ts +2 -0
- package/dist/components/page/MyCase/_component/CaseAppContainer.jsx +117 -0
- package/dist/components/page/MyCase/_component/CaseAppContainer.tsx +255 -0
- package/dist/components/page/MyCase/_component/CasePageContainer.d.ts +2 -0
- package/dist/components/page/MyCase/_component/CasePageContainer.jsx +106 -0
- package/dist/components/page/MyCase/_component/CasePageContainer.tsx +244 -0
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuApp.d.ts +7 -0
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuApp.jsx +47 -0
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuApp.tsx +77 -0
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuPage.d.ts +8 -0
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuPage.jsx +47 -0
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuPage.tsx +77 -0
- package/dist/components/page/MyCase/_component/_button/Badge.d.ts +14 -0
- package/dist/components/page/MyCase/_component/_button/Badge.jsx +16 -0
- package/dist/components/page/MyCase/_component/_button/Badge.tsx +22 -0
- package/dist/components/page/MyCase/_component/_button/SubColor1Button.d.ts +7 -0
- package/dist/components/page/MyCase/_component/_button/SubColor1Button.jsx +9 -0
- package/dist/components/page/MyCase/_component/_button/SubColor1Button.tsx +33 -0
- package/dist/components/page/MyCase/_component/_button/SubMenuButton.d.ts +7 -0
- package/dist/components/page/MyCase/_component/_button/SubMenuButton.jsx +9 -0
- package/dist/components/page/MyCase/_component/_button/SubMenuButton.tsx +31 -0
- package/dist/components/page/MyCase/_component/_empty/EmptyTable.d.ts +6 -0
- package/dist/components/page/MyCase/_component/_empty/EmptyTable.jsx +75 -0
- package/dist/components/page/MyCase/_component/_empty/EmptyTable.tsx +85 -0
- package/dist/components/page/MyCase/_component/_layout/CaseLayout.d.ts +7 -0
- package/dist/components/page/MyCase/_component/_layout/CaseLayout.jsx +11 -0
- package/dist/components/page/MyCase/_component/_layout/CaseLayout.tsx +29 -0
- package/dist/components/page/MyCase/_component/_layout/CaseWrapper.d.ts +12 -0
- package/dist/components/page/MyCase/_component/_layout/CaseWrapper.jsx +25 -0
- package/dist/components/page/MyCase/_component/_layout/CaseWrapper.tsx +41 -0
- package/dist/components/page/MyCase/_component/_layout/HeaderLayout.d.ts +4 -0
- package/dist/components/page/MyCase/_component/_layout/HeaderLayout.jsx +4 -0
- package/dist/components/page/MyCase/_component/_layout/HeaderLayout.tsx +5 -0
- package/dist/components/page/MyCase/_component/_layout/IntroAppWrapper.d.ts +10 -0
- package/dist/components/page/MyCase/_component/_layout/IntroAppWrapper.jsx +29 -0
- package/dist/components/page/MyCase/_component/_layout/IntroAppWrapper.tsx +80 -0
- package/dist/components/page/MyCase/_component/_layout/IntroPageWrapper.d.ts +10 -0
- package/dist/components/page/MyCase/_component/_layout/IntroPageWrapper.jsx +31 -0
- package/dist/components/page/MyCase/_component/_layout/IntroPageWrapper.tsx +81 -0
- package/dist/components/page/MyCase/_component/_loading/Loading.d.ts +2 -0
- package/dist/components/page/MyCase/_component/_loading/Loading.jsx +89 -0
- package/dist/components/page/MyCase/_component/_loading/Loading.tsx +92 -0
- package/dist/components/page/MyCase/_component/_pagination/PaginationComponentApp.d.ts +10 -0
- package/dist/components/page/MyCase/_component/_pagination/PaginationComponentApp.jsx +82 -0
- package/dist/components/page/MyCase/_component/_pagination/PaginationComponentApp.tsx +137 -0
- package/dist/components/page/MyCase/_component/_pagination/PaginationComponentPage.d.ts +10 -0
- package/dist/components/page/MyCase/_component/_pagination/PaginationComponentPage.jsx +81 -0
- package/dist/components/page/MyCase/_component/_pagination/PaginationComponentPage.tsx +135 -0
- package/dist/components/page/MyCase/_component/_table/CaseTabSwiper.d.ts +9 -0
- package/dist/components/page/MyCase/_component/_table/CaseTabSwiper.jsx +65 -0
- package/dist/components/page/MyCase/_component/_table/CaseTabSwiper.tsx +79 -0
- package/dist/components/page/MyCase/_component/_table/CaseTable.d.ts +9 -0
- package/dist/components/page/MyCase/_component/_table/CaseTable.jsx +63 -0
- package/dist/components/page/MyCase/_component/_table/CaseTable.tsx +94 -0
- package/dist/components/page/MyCase/_component/_table/CaseTableMo.d.ts +9 -0
- package/dist/components/page/MyCase/_component/_table/CaseTableMo.jsx +11 -0
- package/dist/components/page/MyCase/_component/_table/CaseTableMo.tsx +28 -0
- package/dist/components/page/MyCase/_component/_table/CaseTableMoBox.d.ts +5 -0
- package/dist/components/page/MyCase/_component/_table/CaseTableMoBox.jsx +35 -0
- package/dist/components/page/MyCase/_component/_table/CaseTableMoBox.tsx +43 -0
- package/dist/components/page/MyCase/_component/_table/CaseTableMoPage.d.ts +9 -0
- package/dist/components/page/MyCase/_component/_table/CaseTableMoPage.jsx +11 -0
- package/dist/components/page/MyCase/_component/_table/CaseTableMoPage.tsx +28 -0
- package/dist/components/page/MyCase/_fetchers/addMyCaseQuestion.d.ts +6 -0
- package/dist/components/page/MyCase/_fetchers/addMyCaseQuestion.js +31 -0
- package/dist/components/page/MyCase/_fetchers/addMyCaseQuestion.ts +22 -0
- package/dist/components/page/MyCase/_fetchers/getCase.d.ts +5 -0
- package/dist/components/page/MyCase/_fetchers/getCase.js +30 -0
- package/dist/components/page/MyCase/_fetchers/getCase.ts +21 -0
- package/dist/components/page/MyCase/_fetchers/getCaseList.d.ts +7 -0
- package/dist/components/page/MyCase/_fetchers/getCaseList.js +30 -0
- package/dist/components/page/MyCase/_fetchers/getCaseList.ts +24 -0
- package/dist/components/page/MyCase/_fetchers/getCourtFileList.d.ts +5 -0
- package/dist/components/page/MyCase/_fetchers/getCourtFileList.js +30 -0
- package/dist/components/page/MyCase/_fetchers/getCourtFileList.ts +21 -0
- package/dist/components/page/MyCase/_fetchers/getMyCaseQuestion.d.ts +7 -0
- package/dist/components/page/MyCase/_fetchers/getMyCaseQuestion.js +30 -0
- package/dist/components/page/MyCase/_fetchers/getMyCaseQuestion.ts +24 -0
- package/dist/components/page/MyCase/_fetchers/getMyFileList.d.ts +5 -0
- package/dist/components/page/MyCase/_fetchers/getMyFileList.js +30 -0
- package/dist/components/page/MyCase/_fetchers/getMyFileList.ts +21 -0
- package/dist/components/page/MyCase/_fetchers/getTimeLine.d.ts +5 -0
- package/dist/components/page/MyCase/_fetchers/getTimeLine.js +30 -0
- package/dist/components/page/MyCase/_fetchers/getTimeLine.ts +21 -0
- package/dist/components/page/MyCase/_lib/catagoryMenuName.d.ts +8 -0
- package/dist/components/page/MyCase/_lib/catagoryMenuName.js +8 -0
- package/dist/components/page/MyCase/_lib/catagoryMenuName.ts +11 -0
- package/dist/components/page/MyCase/_lib/catagoryMenuNameApp.d.ts +7 -0
- package/dist/components/page/MyCase/_lib/catagoryMenuNameApp.js +8 -0
- package/dist/components/page/MyCase/_lib/catagoryMenuNameApp.ts +11 -0
- package/dist/components/page/MyCase/_lib/pagination/locale/ko_KR.d.ts +15 -0
- package/dist/components/page/MyCase/_lib/pagination/locale/ko_KR.js +21 -0
- package/dist/components/page/MyCase/_type/type.d.ts +73 -0
- package/dist/components/page/MyCase/_type/type.js +1 -0
- package/dist/components/page/MyCase/_type/type.ts +81 -0
- package/dist/components/page/index.d.ts +4 -0
- package/dist/components/page/index.js +4 -0
- package/dist/components/page/index.ts +4 -0
- package/dist/styles/globals.css +2080 -118
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,25 @@
|
|
|
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, isMobilePadding = true } = _a, others = __rest(_a, ["children", "className", "ref", "innerClassName", "isMobilePadding"]);
|
|
18
|
+
const lineRef = useRef(null);
|
|
19
|
+
// const { flagStandardBoolean } = useElementObserve(lineRef, 0.2);
|
|
20
|
+
return (<div className={` ${isMobilePadding ? 'px-[20px] 2sm:px-[40px]' : ''} sm-top:px-[60px] mx-auto h-full w-full max-w-[1520px] lg:px-[80px] 3xl:px-[140px] 6xl:px-0 ` +
|
|
21
|
+
className} ref={ref} {...others}>
|
|
22
|
+
{children}
|
|
23
|
+
</div>);
|
|
24
|
+
};
|
|
25
|
+
export default CaseWrapper;
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
isMobilePadding?: boolean;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const CaseWrapper: React.FC<WrapperProps> = ({
|
|
15
|
+
children,
|
|
16
|
+
className = '',
|
|
17
|
+
ref = null,
|
|
18
|
+
// isLine,
|
|
19
|
+
// isLinePadding = true,
|
|
20
|
+
innerClassName,
|
|
21
|
+
isMobilePadding = true,
|
|
22
|
+
...others
|
|
23
|
+
}) => {
|
|
24
|
+
const lineRef = useRef(null);
|
|
25
|
+
// const { flagStandardBoolean } = useElementObserve(lineRef, 0.2);
|
|
26
|
+
|
|
27
|
+
return (
|
|
28
|
+
<div
|
|
29
|
+
className={
|
|
30
|
+
` ${isMobilePadding ? 'px-[20px] 2sm:px-[40px]' : ''} sm-top:px-[60px] mx-auto h-full w-full max-w-[1520px] lg:px-[80px] 3xl:px-[140px] 6xl:px-0 ` +
|
|
31
|
+
className
|
|
32
|
+
}
|
|
33
|
+
ref={ref}
|
|
34
|
+
{...others}
|
|
35
|
+
>
|
|
36
|
+
{children}
|
|
37
|
+
</div>
|
|
38
|
+
);
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export default CaseWrapper;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { StaticImageData } from 'next/image';
|
|
2
|
+
declare const IntroWrapper: ({ backgroundImage, backgroundImageTb, backgroundImageMo, outerClassName, title, subTitle }: {
|
|
3
|
+
backgroundImage?: string | StaticImageData;
|
|
4
|
+
backgroundImageTb?: string | StaticImageData;
|
|
5
|
+
backgroundImageMo?: string | StaticImageData;
|
|
6
|
+
outerClassName?: string;
|
|
7
|
+
title?: string;
|
|
8
|
+
subTitle?: string;
|
|
9
|
+
}) => import("react").JSX.Element;
|
|
10
|
+
export default IntroWrapper;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import Image from 'next/image';
|
|
3
|
+
import Wrapper from '../../../../Layout/Wrapper';
|
|
4
|
+
import CaseWrapper from './CaseWrapper';
|
|
5
|
+
import CategoryMenuApp from '../_breadCrumble/CategoryMenuApp';
|
|
6
|
+
const IntroWrapper = ({ backgroundImage, backgroundImageTb, backgroundImageMo, outerClassName, title, subTitle }) => {
|
|
7
|
+
return (<div className={'absolute top-[70px] w-screen min-w-[360px] md:top-[78px] md2:top-[88px] ' + outerClassName}>
|
|
8
|
+
{backgroundImage ? (<>
|
|
9
|
+
{backgroundImageTb && (<Image unoptimized src={backgroundImageTb} alt="background" fill className="object-cover max-sm:hidden lg:hidden"/>)}
|
|
10
|
+
{backgroundImageMo && (<Image unoptimized src={backgroundImageMo} alt="background" fill className="sm-top:hidden object-cover"/>)}
|
|
11
|
+
<Image unoptimized src={backgroundImage} alt="background" fill className="hidden object-cover lg:block"/>
|
|
12
|
+
</>) : (<></>)}
|
|
13
|
+
|
|
14
|
+
<Wrapper>
|
|
15
|
+
<div className={'w-full lg:flex lg:flex-row lg:items-center lg:justify-center'}>
|
|
16
|
+
<CategoryMenuApp />
|
|
17
|
+
</div>
|
|
18
|
+
</Wrapper>
|
|
19
|
+
<CaseWrapper>
|
|
20
|
+
<div className={'relative w-full '}>
|
|
21
|
+
<p className={'title_large_mo sm-top:title_large_tb lg:title_large '}>{title}</p>
|
|
22
|
+
<p className={'title_small_mo sm-top:title_small_tb lg:title_small max-sm-top:mt-[8px] sm-top:mt-[12px] mt-[8px] '}>
|
|
23
|
+
{subTitle}
|
|
24
|
+
</p>
|
|
25
|
+
</div>
|
|
26
|
+
</CaseWrapper>
|
|
27
|
+
</div>);
|
|
28
|
+
};
|
|
29
|
+
export default IntroWrapper;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import Image, { StaticImageData } from 'next/image';
|
|
3
|
+
import Wrapper from '../../../../Layout/Wrapper';
|
|
4
|
+
|
|
5
|
+
import CaseWrapper from './CaseWrapper';
|
|
6
|
+
import CategoryMenuApp from '../_breadCrumble/CategoryMenuApp';
|
|
7
|
+
|
|
8
|
+
const IntroWrapper = ({
|
|
9
|
+
backgroundImage,
|
|
10
|
+
backgroundImageTb,
|
|
11
|
+
backgroundImageMo,
|
|
12
|
+
outerClassName,
|
|
13
|
+
title,
|
|
14
|
+
subTitle
|
|
15
|
+
}: {
|
|
16
|
+
backgroundImage?: string | StaticImageData;
|
|
17
|
+
backgroundImageTb?: string | StaticImageData;
|
|
18
|
+
backgroundImageMo?: string | StaticImageData;
|
|
19
|
+
outerClassName?: string;
|
|
20
|
+
title?: string;
|
|
21
|
+
subTitle?: string;
|
|
22
|
+
}) => {
|
|
23
|
+
return (
|
|
24
|
+
<div
|
|
25
|
+
className={'absolute top-[70px] w-screen min-w-[360px] md:top-[78px] md2:top-[88px] ' + outerClassName}
|
|
26
|
+
>
|
|
27
|
+
{backgroundImage ? (
|
|
28
|
+
<>
|
|
29
|
+
{backgroundImageTb && (
|
|
30
|
+
<Image
|
|
31
|
+
unoptimized
|
|
32
|
+
src={backgroundImageTb}
|
|
33
|
+
alt="background"
|
|
34
|
+
fill
|
|
35
|
+
className="object-cover max-sm:hidden lg:hidden"
|
|
36
|
+
/>
|
|
37
|
+
)}
|
|
38
|
+
{backgroundImageMo && (
|
|
39
|
+
<Image
|
|
40
|
+
unoptimized
|
|
41
|
+
src={backgroundImageMo}
|
|
42
|
+
alt="background"
|
|
43
|
+
fill
|
|
44
|
+
className="sm-top:hidden object-cover"
|
|
45
|
+
/>
|
|
46
|
+
)}
|
|
47
|
+
<Image
|
|
48
|
+
unoptimized
|
|
49
|
+
src={backgroundImage}
|
|
50
|
+
alt="background"
|
|
51
|
+
fill
|
|
52
|
+
className="hidden object-cover lg:block"
|
|
53
|
+
/>
|
|
54
|
+
</>
|
|
55
|
+
) : (
|
|
56
|
+
<></>
|
|
57
|
+
)}
|
|
58
|
+
|
|
59
|
+
<Wrapper>
|
|
60
|
+
<div className={'w-full lg:flex lg:flex-row lg:items-center lg:justify-center'}>
|
|
61
|
+
<CategoryMenuApp />
|
|
62
|
+
</div>
|
|
63
|
+
</Wrapper>
|
|
64
|
+
<CaseWrapper>
|
|
65
|
+
<div className={'relative w-full '}>
|
|
66
|
+
<p className={'title_large_mo sm-top:title_large_tb lg:title_large '}>{title}</p>
|
|
67
|
+
<p
|
|
68
|
+
className={
|
|
69
|
+
'title_small_mo sm-top:title_small_tb lg:title_small max-sm-top:mt-[8px] sm-top:mt-[12px] mt-[8px] '
|
|
70
|
+
}
|
|
71
|
+
>
|
|
72
|
+
{subTitle}
|
|
73
|
+
</p>
|
|
74
|
+
</div>
|
|
75
|
+
</CaseWrapper>
|
|
76
|
+
</div>
|
|
77
|
+
);
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
export default IntroWrapper;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { StaticImageData } from 'next/image';
|
|
2
|
+
declare const IntroWrapper: ({ backgroundImage, backgroundImageTb, backgroundImageMo, outerClassName, title, subTitle }: {
|
|
3
|
+
backgroundImage?: string | StaticImageData;
|
|
4
|
+
backgroundImageTb?: string | StaticImageData;
|
|
5
|
+
backgroundImageMo?: string | StaticImageData;
|
|
6
|
+
outerClassName?: string;
|
|
7
|
+
title?: string;
|
|
8
|
+
subTitle?: string;
|
|
9
|
+
}) => import("react").JSX.Element;
|
|
10
|
+
export default IntroWrapper;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import Image from 'next/image';
|
|
3
|
+
import Wrapper from '../../../../Layout/Wrapper';
|
|
4
|
+
import CategoryMenuPage from '../_breadCrumble/CategoryMenuPage';
|
|
5
|
+
import { useTranslation } from 'next-i18next';
|
|
6
|
+
import CaseWrapper from './CaseWrapper';
|
|
7
|
+
const IntroWrapper = ({ backgroundImage, backgroundImageTb, backgroundImageMo, outerClassName, title, subTitle }) => {
|
|
8
|
+
const { t } = useTranslation('common');
|
|
9
|
+
return (<div className={'absolute top-[70px] w-screen min-w-[360px] md:top-[78px] md2:top-[88px] ' + outerClassName}>
|
|
10
|
+
{backgroundImage ? (<>
|
|
11
|
+
{backgroundImageTb && (<Image unoptimized src={backgroundImageTb} alt="background" fill className="object-cover max-sm:hidden lg:hidden"/>)}
|
|
12
|
+
{backgroundImageMo && (<Image unoptimized src={backgroundImageMo} alt="background" fill className="sm-top:hidden object-cover"/>)}
|
|
13
|
+
<Image unoptimized src={backgroundImage} alt="background" fill className="hidden object-cover lg:block"/>
|
|
14
|
+
</>) : (<></>)}
|
|
15
|
+
|
|
16
|
+
<Wrapper>
|
|
17
|
+
<div className={'w-full lg:flex lg:flex-row lg:items-center lg:justify-center'}>
|
|
18
|
+
<CategoryMenuPage t={t}/>
|
|
19
|
+
</div>
|
|
20
|
+
</Wrapper>
|
|
21
|
+
<CaseWrapper>
|
|
22
|
+
<div className={'relative w-full '}>
|
|
23
|
+
<p className={'title_large_mo sm-top:title_large_tb lg:title_large '}>{title}</p>
|
|
24
|
+
<p className={'title_small_mo sm-top:title_small_tb lg:title_small max-sm-top:mt-[8px] sm-top:mt-[12px] mt-[8px] '}>
|
|
25
|
+
{subTitle}
|
|
26
|
+
</p>
|
|
27
|
+
</div>
|
|
28
|
+
</CaseWrapper>
|
|
29
|
+
</div>);
|
|
30
|
+
};
|
|
31
|
+
export default IntroWrapper;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import Image, { StaticImageData } from 'next/image';
|
|
3
|
+
import Wrapper from '../../../../Layout/Wrapper';
|
|
4
|
+
import CategoryMenuPage from '../_breadCrumble/CategoryMenuPage';
|
|
5
|
+
import { useTranslation } from 'next-i18next';
|
|
6
|
+
import CaseWrapper from './CaseWrapper';
|
|
7
|
+
|
|
8
|
+
const IntroWrapper = ({
|
|
9
|
+
backgroundImage,
|
|
10
|
+
backgroundImageTb,
|
|
11
|
+
backgroundImageMo,
|
|
12
|
+
outerClassName,
|
|
13
|
+
title,
|
|
14
|
+
subTitle
|
|
15
|
+
}: {
|
|
16
|
+
backgroundImage?: string | StaticImageData;
|
|
17
|
+
backgroundImageTb?: string | StaticImageData;
|
|
18
|
+
backgroundImageMo?: string | StaticImageData;
|
|
19
|
+
outerClassName?: string;
|
|
20
|
+
title?: string;
|
|
21
|
+
subTitle?: string;
|
|
22
|
+
}) => {
|
|
23
|
+
const { t } = useTranslation('common');
|
|
24
|
+
return (
|
|
25
|
+
<div
|
|
26
|
+
className={'absolute top-[70px] w-screen min-w-[360px] md:top-[78px] md2:top-[88px] ' + outerClassName}
|
|
27
|
+
>
|
|
28
|
+
{backgroundImage ? (
|
|
29
|
+
<>
|
|
30
|
+
{backgroundImageTb && (
|
|
31
|
+
<Image
|
|
32
|
+
unoptimized
|
|
33
|
+
src={backgroundImageTb}
|
|
34
|
+
alt="background"
|
|
35
|
+
fill
|
|
36
|
+
className="object-cover max-sm:hidden lg:hidden"
|
|
37
|
+
/>
|
|
38
|
+
)}
|
|
39
|
+
{backgroundImageMo && (
|
|
40
|
+
<Image
|
|
41
|
+
unoptimized
|
|
42
|
+
src={backgroundImageMo}
|
|
43
|
+
alt="background"
|
|
44
|
+
fill
|
|
45
|
+
className="sm-top:hidden object-cover"
|
|
46
|
+
/>
|
|
47
|
+
)}
|
|
48
|
+
<Image
|
|
49
|
+
unoptimized
|
|
50
|
+
src={backgroundImage}
|
|
51
|
+
alt="background"
|
|
52
|
+
fill
|
|
53
|
+
className="hidden object-cover lg:block"
|
|
54
|
+
/>
|
|
55
|
+
</>
|
|
56
|
+
) : (
|
|
57
|
+
<></>
|
|
58
|
+
)}
|
|
59
|
+
|
|
60
|
+
<Wrapper>
|
|
61
|
+
<div className={'w-full lg:flex lg:flex-row lg:items-center lg:justify-center'}>
|
|
62
|
+
<CategoryMenuPage t={t} />
|
|
63
|
+
</div>
|
|
64
|
+
</Wrapper>
|
|
65
|
+
<CaseWrapper>
|
|
66
|
+
<div className={'relative w-full '}>
|
|
67
|
+
<p className={'title_large_mo sm-top:title_large_tb lg:title_large '}>{title}</p>
|
|
68
|
+
<p
|
|
69
|
+
className={
|
|
70
|
+
'title_small_mo sm-top:title_small_tb lg:title_small max-sm-top:mt-[8px] sm-top:mt-[12px] mt-[8px] '
|
|
71
|
+
}
|
|
72
|
+
>
|
|
73
|
+
{subTitle}
|
|
74
|
+
</p>
|
|
75
|
+
</div>
|
|
76
|
+
</CaseWrapper>
|
|
77
|
+
</div>
|
|
78
|
+
);
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export default IntroWrapper;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
const Loading = () => {
|
|
2
|
+
return (<>
|
|
3
|
+
<style>{`
|
|
4
|
+
.loader {
|
|
5
|
+
display: flex;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
align-items: center;
|
|
8
|
+
width: 48px; /* 전체 너비 */
|
|
9
|
+
height: 48px; /* 전체 높이 */
|
|
10
|
+
position: relative;
|
|
11
|
+
animation: rotate 10s linear infinite; /* 전체 회전 애니메이션 */
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.loader-circle {
|
|
15
|
+
width: 9.12px; /* 원의 너비 */
|
|
16
|
+
height: 9.12px; /* 원의 높이 */
|
|
17
|
+
border-radius: 50%;
|
|
18
|
+
position: absolute;
|
|
19
|
+
animation: move 1.6s linear infinite; /* 개별 원의 애니메이션 */
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.loader-circle:nth-child(1) {
|
|
23
|
+
background: #ffffff;
|
|
24
|
+
animation-delay: -1.4s;
|
|
25
|
+
}
|
|
26
|
+
.loader-circle:nth-child(2) {
|
|
27
|
+
background: #f5f5f5;
|
|
28
|
+
animation-delay: -1.2s;
|
|
29
|
+
}
|
|
30
|
+
.loader-circle:nth-child(3) {
|
|
31
|
+
background: #ededed;
|
|
32
|
+
animation-delay: -1s;
|
|
33
|
+
}
|
|
34
|
+
.loader-circle:nth-child(4) {
|
|
35
|
+
background: #dbdbdb;
|
|
36
|
+
animation-delay: -0.8s;
|
|
37
|
+
}
|
|
38
|
+
.loader-circle:nth-child(5) {
|
|
39
|
+
background: #b9b9b9;
|
|
40
|
+
animation-delay: -0.6s;
|
|
41
|
+
}
|
|
42
|
+
.loader-circle:nth-child(6) {
|
|
43
|
+
background: #909090;
|
|
44
|
+
animation-delay: -0.4s;
|
|
45
|
+
}
|
|
46
|
+
.loader-circle:nth-child(7) {
|
|
47
|
+
background: #606060;
|
|
48
|
+
animation-delay: -0.2s;
|
|
49
|
+
}
|
|
50
|
+
.loader-circle:nth-child(8) {
|
|
51
|
+
background: #3d3d3d;
|
|
52
|
+
animation-delay: 0s;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@keyframes rotate {
|
|
56
|
+
0% {
|
|
57
|
+
transform: rotate(0deg);
|
|
58
|
+
}
|
|
59
|
+
100% {
|
|
60
|
+
transform: rotate(360deg);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@keyframes move {
|
|
65
|
+
0% {
|
|
66
|
+
transform: rotate(0deg) translate(20px) rotate(0deg);
|
|
67
|
+
opacity: 1;
|
|
68
|
+
}
|
|
69
|
+
100% {
|
|
70
|
+
transform: rotate(360deg) translate(20px) rotate(-360deg);
|
|
71
|
+
opacity: 1;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
`}</style>
|
|
75
|
+
<div className="mx-auto flex h-[200px] items-center justify-center">
|
|
76
|
+
<div className="loader ">
|
|
77
|
+
<div className="loader-circle"></div>
|
|
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>
|
|
86
|
+
</div>
|
|
87
|
+
</>);
|
|
88
|
+
};
|
|
89
|
+
export default Loading;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
const Loading = () => {
|
|
2
|
+
return (
|
|
3
|
+
<>
|
|
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
|
+
};
|
|
91
|
+
|
|
92
|
+
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;
|
|
9
|
+
}) => React.JSX.Element;
|
|
10
|
+
export default PaginationComponent;
|
|
@@ -0,0 +1,82 @@
|
|
|
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 { usePathname, useSearchParams } from 'next/navigation';
|
|
7
|
+
import Link from 'next/link';
|
|
8
|
+
import arrowLeftOn from '../../../../../asset/images/myCase/pagination/arrow_l_on.webp';
|
|
9
|
+
import arrowLeftOff from '../../../../../asset/images/myCase/pagination/arrow_l_off.webp';
|
|
10
|
+
import arrowRightOn from '../../../../../asset/images/myCase/pagination/arrow_r_on.webp';
|
|
11
|
+
import arrowRightOff from '../../../../../asset/images/myCase/pagination/arrow_r_off.webp';
|
|
12
|
+
// import { useCompatibleRouter } from '../../_lib/router/useCompatibleRouter';
|
|
13
|
+
const PaginationComponent = (props) => {
|
|
14
|
+
const { onChange, current, total, pageSize, marginY } = props;
|
|
15
|
+
// useEffect(() => {
|
|
16
|
+
// const prevElement = document.querySelector('.rc-pagination-prev')
|
|
17
|
+
// if (prevElement) {
|
|
18
|
+
// prevElement.setAttribute('rel', 'prev')
|
|
19
|
+
// }
|
|
20
|
+
//
|
|
21
|
+
// const nextElement = document.querySelector('.rc-pagination-next')
|
|
22
|
+
// if (nextElement) {
|
|
23
|
+
// nextElement.setAttribute('rel', 'next')
|
|
24
|
+
// }
|
|
25
|
+
// }, [current, total, pageSize, localeInfo])
|
|
26
|
+
useEffect(() => {
|
|
27
|
+
const rcPageCon = document.querySelectorAll('.rc-pagination-item');
|
|
28
|
+
rcPageCon.forEach(i => {
|
|
29
|
+
i.removeAttribute('tabindex');
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
// const { router, pathname, searchParams } = useCompatibleRouter();
|
|
33
|
+
const pathname = usePathname();
|
|
34
|
+
const searchParams = useSearchParams();
|
|
35
|
+
const [query, setQuery] = useState({});
|
|
36
|
+
useEffect(() => {
|
|
37
|
+
const filteredQuery = Object.assign({}, Object.fromEntries(Object.entries(searchParams || {}).filter(([key, value]) => !(key === 'search' && value === '') && !(key === 'page'))));
|
|
38
|
+
setQuery(filteredQuery);
|
|
39
|
+
}, [pathname, searchParams]);
|
|
40
|
+
//페이징 렌더링
|
|
41
|
+
const itemRender = useCallback((page, type, element) => {
|
|
42
|
+
if (type === 'page') {
|
|
43
|
+
if (pathname === '/blog') {
|
|
44
|
+
return (<span className={`text-lg max-sm:text-base ${current === page ? 'font-[800]' : ''} `}>
|
|
45
|
+
{page}
|
|
46
|
+
</span>);
|
|
47
|
+
}
|
|
48
|
+
return (<Link href={{
|
|
49
|
+
pathname: pathname,
|
|
50
|
+
query: Object.assign({ page }, query)
|
|
51
|
+
}} className={`text-lg max-sm:text-base ${current === page ? 'font-[800]' : ''}`} aria-label={current === page ? `${page} 페이지, 현재 페이지 입니다.` : `${page} 페이지로 이동`} style={{ color: current === page ? 'inherit' : 'initial' }} // 폰트 색상 고정
|
|
52
|
+
>
|
|
53
|
+
{page}
|
|
54
|
+
</Link>);
|
|
55
|
+
}
|
|
56
|
+
else if (type === 'prev') {
|
|
57
|
+
if (current === 1) {
|
|
58
|
+
return (<Image src={arrowLeftOff} width={26} height={26} alt={''} className={'max-sm:scale-[0.8]'}/>);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
else if (type === 'next') {
|
|
62
|
+
if (current === 1) {
|
|
63
|
+
return (<Image src={arrowRightOn} width={26} height={26} alt={''} className={'max-sm:scale-[0.8]'}/>);
|
|
64
|
+
}
|
|
65
|
+
else if (current >= total / pageSize) {
|
|
66
|
+
return (<Image src={arrowRightOff} width={26} height={26} alt={''} className={'max-sm:scale-[0.8]'}/>);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
return element;
|
|
70
|
+
}, [current, query]);
|
|
71
|
+
// @ts-ignore
|
|
72
|
+
return (<div className={'flex items-center justify-center'} style={{
|
|
73
|
+
marginBlock: (marginY ? marginY : 100) + 'px'
|
|
74
|
+
}}>
|
|
75
|
+
<Pagination onChange={onChange} current={current} total={total} pageSize={pageSize} locale={localeInfo} prevIcon={<Image src={arrowLeftOn} width={26} height={26} alt={''} className={'max-sm:scale-[0.8]'}/>} nextIcon={<Image src={arrowRightOn} 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'}>
|
|
76
|
+
ㆍㆍㆍ
|
|
77
|
+
</span>} jumpNextIcon={<span className={'mr-[9px] hidden text-lg tracking-[-5px] text-[#aaa] max-sm:text-base'}>
|
|
78
|
+
ㆍㆍㆍ
|
|
79
|
+
</span>} className={'pagination-data'} itemRender={itemRender}/>
|
|
80
|
+
</div>);
|
|
81
|
+
};
|
|
82
|
+
export default PaginationComponent;
|