@daeryun/dr_components 0.3.17 → 0.3.18
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/cjs/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/components/Layout/PageWrapper.d.ts +8 -0
- package/dist/components/Layout/PageWrapper.jsx +31 -0
- package/dist/components/Layout/PageWrapper.tsx +35 -0
- package/dist/components/page/Login/Login.d.ts +6 -0
- package/dist/components/page/Login/Login.jsx +112 -0
- package/dist/components/page/Login/Login.stories.d.ts +6 -0
- package/dist/components/page/Login/Login.stories.jsx +13 -0
- package/dist/components/page/Login/Login.stories.tsx +21 -0
- package/dist/components/page/Login/Login.tsx +167 -0
- package/dist/components/page/Login/LoginComp/LButton.d.ts +9 -0
- package/dist/components/page/Login/LoginComp/LButton.jsx +14 -0
- package/dist/components/page/Login/LoginComp/LButton.tsx +36 -0
- package/dist/components/page/Login/LoginComp/Linput.d.ts +11 -0
- package/dist/components/page/Login/LoginComp/Linput.jsx +10 -0
- package/dist/components/page/Login/LoginComp/Linput.tsx +40 -0
- package/dist/components/page/Login/LoginComp/LoginBreadCrumb.d.ts +6 -0
- package/dist/components/page/Login/LoginComp/LoginBreadCrumb.jsx +18 -0
- package/dist/components/page/Login/LoginComp/LoginBreadCrumb.tsx +40 -0
- package/dist/components/page/Login/LoginComp/Modal/AlertConfirmModal.d.ts +10 -0
- package/dist/components/page/Login/LoginComp/Modal/AlertConfirmModal.jsx +41 -0
- package/dist/components/page/Login/LoginComp/Modal/AlertConfirmModal.tsx +91 -0
- package/dist/components/page/Login/LoginComp/Modal/ConfirmModal.d.ts +10 -0
- package/dist/components/page/Login/LoginComp/Modal/ConfirmModal.jsx +37 -0
- package/dist/components/page/Login/LoginComp/Modal/ConfirmModal.tsx +83 -0
- package/dist/components/page/Login/LoginComp/Modal/TermModal.d.ts +9 -0
- package/dist/components/page/Login/LoginComp/Modal/TermModal.jsx +39 -0
- package/dist/components/page/Login/LoginComp/Modal/TermModal.tsx +70 -0
- package/dist/components/page/Login/LoginComp/Sign/OptionalCheckBox.d.ts +14 -0
- package/dist/components/page/Login/LoginComp/Sign/OptionalCheckBox.jsx +61 -0
- package/dist/components/page/Login/LoginComp/Sign/OptionalCheckBox.tsx +160 -0
- package/dist/components/page/Login/LoginComp/Sign/RequiredCheckBox.d.ts +12 -0
- package/dist/components/page/Login/LoginComp/Sign/RequiredCheckBox.jsx +32 -0
- package/dist/components/page/Login/LoginComp/Sign/RequiredCheckBox.tsx +94 -0
- package/dist/components/page/Login/Sign.d.ts +27 -0
- package/dist/components/page/Login/Sign.jsx +614 -0
- package/dist/components/page/Login/Sign.tsx +941 -0
- package/dist/components/page/Login/_api/completeUser.d.ts +7 -0
- package/dist/components/page/Login/_api/completeUser.js +23 -0
- package/dist/components/page/Login/_api/completeUser.ts +18 -0
- package/dist/components/page/Login/_api/confirmNumber.d.ts +5 -0
- package/dist/components/page/Login/_api/confirmNumber.js +23 -0
- package/dist/components/page/Login/_api/confirmNumber.ts +14 -0
- package/dist/components/page/Login/_api/getLoginStatus.d.ts +12 -0
- package/dist/components/page/Login/_api/getLoginStatus.js +48 -0
- package/dist/components/page/Login/_api/getLoginStatus.ts +42 -0
- package/dist/components/page/Login/_api/logout.d.ts +1 -0
- package/dist/components/page/Login/_api/logout.js +29 -0
- package/dist/components/page/Login/_api/logout.ts +18 -0
- package/dist/components/page/Login/_api/optionalTermAgree.d.ts +6 -0
- package/dist/components/page/Login/_api/optionalTermAgree.js +27 -0
- package/dist/components/page/Login/_api/optionalTermAgree.ts +23 -0
- package/dist/components/page/Login/_api/sendNumber.d.ts +5 -0
- package/dist/components/page/Login/_api/sendNumber.js +24 -0
- package/dist/components/page/Login/_api/sendNumber.ts +15 -0
- package/dist/components/page/Login/_api/token.d.ts +2 -0
- package/dist/components/page/Login/_api/token.js +33 -0
- package/dist/components/page/Login/_api/token.ts +25 -0
- package/dist/components/page/Login/_api/updateUserInfo.d.ts +6 -0
- package/dist/components/page/Login/_api/updateUserInfo.js +26 -0
- package/dist/components/page/Login/_api/updateUserInfo.ts +17 -0
- package/dist/components/page/Login/_api/withdraw.d.ts +5 -0
- package/dist/components/page/Login/_api/withdraw.js +23 -0
- package/dist/components/page/Login/_api/withdraw.ts +14 -0
- package/dist/components/page/Login/_fetch/fetch.d.ts +2 -0
- package/dist/components/page/Login/_fetch/fetch.js +54 -0
- package/dist/components/page/Login/_fetch/fetch.ts +58 -0
- package/dist/components/page/Login/_fetch/serverFetch.d.ts +2 -0
- package/dist/components/page/Login/_fetch/serverFetch.js +37 -0
- package/dist/components/page/Login/_fetch/serverFetch.ts +43 -0
- 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/lib/utils.d.ts +16 -0
- package/dist/lib/utils.js +50 -0
- package/dist/lib/utils.ts +63 -0
- package/dist/styles/globals.css +1200 -31
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import React, { useEffect } from 'react';
|
|
4
|
+
import { usePathname, useSearchParams } from 'next/navigation';
|
|
5
|
+
import Image from 'next/image';
|
|
6
|
+
import PageWrapper from '../../Layout/PageWrapper';
|
|
7
|
+
import { setCookie } from '../../../lib';
|
|
8
|
+
import LoginBreadCrumb from './LoginComp/LoginBreadCrumb';
|
|
9
|
+
|
|
10
|
+
interface props {
|
|
11
|
+
layoutClassName?: string; // 높이 및 마진값 조절
|
|
12
|
+
}
|
|
13
|
+
const Login = ({
|
|
14
|
+
layoutClassName = ' relative h-[100vh] max-h-[1200px] min-h-[1000px] w-full overflow-hidden bg-white font-[SUIT] ' +
|
|
15
|
+
' max-3xl:max-h-[1080px] max-3xl:min-h-[1000px] ' +
|
|
16
|
+
' max-lg:min-h-[930px] ' +
|
|
17
|
+
' max-md:max-h-[800px] max-md:min-h-[1100px] ' +
|
|
18
|
+
' mb-[192px] mt-[128px] ' +
|
|
19
|
+
' max-lg:mt-[112px] ' +
|
|
20
|
+
' max-sm:mt-[100px] '
|
|
21
|
+
}: props) => {
|
|
22
|
+
const searchParam = useSearchParams();
|
|
23
|
+
const pathName = usePathname();
|
|
24
|
+
// const router = useRouter();
|
|
25
|
+
const clientKey = process.env.NEXT_PUBLIC_OAUTH_CLIENT_KEY || '';
|
|
26
|
+
const imagePath: string = process.env.NEXT_PUBLIC_S3_URL + '';
|
|
27
|
+
const redirectWithNoReferrer = (url: string) => {
|
|
28
|
+
const a = document.createElement('a');
|
|
29
|
+
a.href = url;
|
|
30
|
+
a.rel = 'noreferrer'; // Referrer 정보 제거
|
|
31
|
+
a.click();
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
useEffect(() => {
|
|
35
|
+
// const redirect = router.query.redirect;
|
|
36
|
+
const redirect = searchParam.get('redirect') || '';
|
|
37
|
+
|
|
38
|
+
if (redirect && typeof redirect === 'string') {
|
|
39
|
+
setCookie({ key: 'redirect', value: redirect });
|
|
40
|
+
}
|
|
41
|
+
}, [pathName]);
|
|
42
|
+
|
|
43
|
+
const handleLoginClick = (type: string) => {
|
|
44
|
+
const loginUrl = `https://oauth.daeryunlaw.com/login/${type}?clientKey=${clientKey}&${process.env.NODE_ENV === 'production' ? 'state=sapa' : ''}`;
|
|
45
|
+
redirectWithNoReferrer(loginUrl);
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
const loginProvider: {
|
|
49
|
+
identityProvider: 'kakao' | 'google' | 'naver' | 'apple';
|
|
50
|
+
name: string;
|
|
51
|
+
positionClass: string;
|
|
52
|
+
textColor: string;
|
|
53
|
+
bgColor: string;
|
|
54
|
+
className?: string;
|
|
55
|
+
iconClassName?: string;
|
|
56
|
+
}[] = [
|
|
57
|
+
{
|
|
58
|
+
identityProvider: 'kakao',
|
|
59
|
+
name: '카카오',
|
|
60
|
+
positionClass:
|
|
61
|
+
' top-[22px] left-[26px] max-lg:top-[20px] max-lg:left-[24px] max-sm:top-[14px] max-sm:left-[20px] ',
|
|
62
|
+
textColor: '#000000',
|
|
63
|
+
bgColor: '#FEE502',
|
|
64
|
+
iconClassName: `w-[28px] h-[28px] max-lg:w-[24px] max-lg:h-[24px] max-sm:w-[20px] max-sm:h-[20px] `
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
identityProvider: 'naver',
|
|
68
|
+
name: '네이버',
|
|
69
|
+
positionClass:
|
|
70
|
+
' top-[25px] left-[28px] max-lg:top-[22px] max-lg:left-[26px] max-sm:top-[15px] max-sm:left-[21.5px] ',
|
|
71
|
+
textColor: '#FFFFFF',
|
|
72
|
+
bgColor: '#02C75A',
|
|
73
|
+
iconClassName: `w-[28px] h-[28px] max-lg:w-[20px] max-lg:h-[20px] max-sm:w-[17px] max-sm:h-[18px] `
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
identityProvider: 'google',
|
|
77
|
+
name: '구글',
|
|
78
|
+
positionClass:
|
|
79
|
+
' top-[22.73px] left-[27px] max-lg:top-[20.78px] max-lg:left-[26.19px] max-sm:top-[14px] max-sm:left-[21.46px] ',
|
|
80
|
+
textColor: '#000000',
|
|
81
|
+
bgColor: '#FFFFFF',
|
|
82
|
+
className: 'border-[1px] border-solid border-[#707070] ',
|
|
83
|
+
iconClassName: `w-[24px] h-[24px] max-lg:w-[22px] max-lg:h-[22.45px] max-sm:w-[19.16px] max-sm:h-[19.55px] `
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
identityProvider: 'apple',
|
|
87
|
+
name: 'Apple',
|
|
88
|
+
positionClass:
|
|
89
|
+
' top-[19px] left-[27px] max-lg:top-[17px] max-lg:left-[25px] max-sm:top-[11px] max-sm:left-[20.42px] ',
|
|
90
|
+
textColor: '#FFFFFF',
|
|
91
|
+
bgColor: '#050708',
|
|
92
|
+
iconClassName: `w-[26px] h-[30.87px] max-lg:w-[22px] max-lg:h-[26.12px] max-sm:w-[19.16px] max-sm:h-[22.75px] `
|
|
93
|
+
}
|
|
94
|
+
];
|
|
95
|
+
|
|
96
|
+
return (
|
|
97
|
+
<section className={layoutClassName}>
|
|
98
|
+
<PageWrapper>
|
|
99
|
+
<div>
|
|
100
|
+
<div className={'flex flex-row-reverse pt-[47px] ' + 'max-lg:pt-[40px]' + ' max-sm:pt-[28px] '}>
|
|
101
|
+
<LoginBreadCrumb breadList={['로그인', '간편 로그인']} />
|
|
102
|
+
</div>
|
|
103
|
+
</div>
|
|
104
|
+
<div className={'mt-[45px]' + ' max-lg:mt-[68px] ' + ' max-sm:mt-[44px] '}>
|
|
105
|
+
<div className={'flex flex-col'}>
|
|
106
|
+
<div
|
|
107
|
+
className={
|
|
108
|
+
' title_large text-[#000000] ' + ' max-lg:title_large_tb ' + ' max-sm:title_large_mo '
|
|
109
|
+
}
|
|
110
|
+
>
|
|
111
|
+
간편 로그인
|
|
112
|
+
</div>
|
|
113
|
+
</div>
|
|
114
|
+
<div
|
|
115
|
+
className={
|
|
116
|
+
' body_large2 mt-[12px] text-[#000000] ' +
|
|
117
|
+
' max-lg:title_small_tb max-lg:mt-[12px] ' +
|
|
118
|
+
' max-sm:label_medium2_tb max-sm:mt-[8px] '
|
|
119
|
+
}
|
|
120
|
+
>
|
|
121
|
+
SNS 간편 가입으로 쉽고 빠른 로그인이 가능합니다.
|
|
122
|
+
<br />
|
|
123
|
+
로그인하고 나의 사건 진행 상황을 확인하세요!
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
<div
|
|
127
|
+
className={
|
|
128
|
+
' mt-[154px] flex flex-col items-center justify-center gap-[20px]' +
|
|
129
|
+
' max-lg:mt-[168px] ' +
|
|
130
|
+
' max-sm:mt-[80px] '
|
|
131
|
+
}
|
|
132
|
+
>
|
|
133
|
+
{loginProvider.map((item, index: number) => {
|
|
134
|
+
return (
|
|
135
|
+
<button
|
|
136
|
+
key={index}
|
|
137
|
+
type="button"
|
|
138
|
+
onClick={() => handleLoginClick(item.identityProvider)}
|
|
139
|
+
className={
|
|
140
|
+
' relative flex h-[72px] w-[540px] items-center ' +
|
|
141
|
+
' body_large2 justify-center rounded-[36px] ' +
|
|
142
|
+
' max-lg:body_large2_tb max-lg:h-[64px] max-lg:w-[500px] ' +
|
|
143
|
+
' max-sm:body_large2_mo max-sm:h-[48px] max-sm:w-[320px] ' +
|
|
144
|
+
` ${item.className} `
|
|
145
|
+
}
|
|
146
|
+
style={{ color: item.textColor, backgroundColor: item.bgColor }}
|
|
147
|
+
>
|
|
148
|
+
<span className={`${item.positionClass} absolute ${item.iconClassName}`}>
|
|
149
|
+
<Image
|
|
150
|
+
src={`${imagePath}/common-login/${item.identityProvider}.svg`}
|
|
151
|
+
alt={item.identityProvider}
|
|
152
|
+
height={100}
|
|
153
|
+
width={100}
|
|
154
|
+
className={`h-full w-full`}
|
|
155
|
+
/>
|
|
156
|
+
</span>
|
|
157
|
+
<span>{`${item.name} 계정으로 로그인`}</span>
|
|
158
|
+
</button>
|
|
159
|
+
);
|
|
160
|
+
})}
|
|
161
|
+
</div>
|
|
162
|
+
</PageWrapper>
|
|
163
|
+
</section>
|
|
164
|
+
);
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
export default Login;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const LButton: ({ handleButton, name, isDisabled, title, className }: {
|
|
3
|
+
handleButton: (e?: any) => void;
|
|
4
|
+
name?: string;
|
|
5
|
+
isDisabled?: boolean;
|
|
6
|
+
title: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
}) => React.JSX.Element;
|
|
9
|
+
export default LButton;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
const LButton = ({ handleButton, name, isDisabled, title, className = ' w-[196px] max-lg:w-[172px] max-sm:w-full ' }) => {
|
|
3
|
+
return (
|
|
4
|
+
//
|
|
5
|
+
<button onClick={handleButton} name={name} className={' flex flex-shrink-0 items-center justify-center rounded-[12px] border-[1px] border-solid text-white ' +
|
|
6
|
+
' border-[#B9B9B9] bg-[#3D3D3D] disabled:border-[#B9B9B9] disabled:bg-[#FFFFFF] disabled:text-[#B9B9B9] ' +
|
|
7
|
+
' title_small h-[68px] px-[24px] py-[17px] ' +
|
|
8
|
+
' max-lg:title_small_tb max-lg:h-[60px] max-lg:rounded-[8px] max-lg:px-[24px] max-lg:py-[15px] ' +
|
|
9
|
+
' max-sm:body_large2_mo max-sm:h-[47px] max-sm:rounded-[4px] max-sm:px-[16px] max-sm:py-[12px] ' +
|
|
10
|
+
` ${className} `} disabled={isDisabled}>
|
|
11
|
+
{title}
|
|
12
|
+
</button>);
|
|
13
|
+
};
|
|
14
|
+
export default LButton;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
const LButton = ({
|
|
4
|
+
handleButton,
|
|
5
|
+
name,
|
|
6
|
+
isDisabled,
|
|
7
|
+
title,
|
|
8
|
+
className = ' w-[196px] max-lg:w-[172px] max-sm:w-full '
|
|
9
|
+
}: {
|
|
10
|
+
handleButton: (e?: any) => void;
|
|
11
|
+
name?: string;
|
|
12
|
+
isDisabled?: boolean;
|
|
13
|
+
title: string;
|
|
14
|
+
className?: string;
|
|
15
|
+
}) => {
|
|
16
|
+
return (
|
|
17
|
+
//
|
|
18
|
+
<button
|
|
19
|
+
onClick={handleButton}
|
|
20
|
+
name={name}
|
|
21
|
+
className={
|
|
22
|
+
' flex flex-shrink-0 items-center justify-center rounded-[12px] border-[1px] border-solid text-white ' +
|
|
23
|
+
' border-[#B9B9B9] bg-[#3D3D3D] disabled:border-[#B9B9B9] disabled:bg-[#FFFFFF] disabled:text-[#B9B9B9] ' +
|
|
24
|
+
' title_small h-[68px] px-[24px] py-[17px] ' +
|
|
25
|
+
' max-lg:title_small_tb max-lg:h-[60px] max-lg:rounded-[8px] max-lg:px-[24px] max-lg:py-[15px] ' +
|
|
26
|
+
' max-sm:body_large2_mo max-sm:h-[47px] max-sm:rounded-[4px] max-sm:px-[16px] max-sm:py-[12px] ' +
|
|
27
|
+
` ${className} `
|
|
28
|
+
}
|
|
29
|
+
disabled={isDisabled}
|
|
30
|
+
>
|
|
31
|
+
{title}
|
|
32
|
+
</button>
|
|
33
|
+
);
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export default LButton;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const LInput: ({ value, name, placeholder, isDisabled, className, handleInput, maxLength }: {
|
|
3
|
+
value?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
isDisabled?: boolean;
|
|
7
|
+
className?: string;
|
|
8
|
+
handleInput?: (e: any) => void;
|
|
9
|
+
maxLength?: number;
|
|
10
|
+
}) => React.JSX.Element;
|
|
11
|
+
export default LInput;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
const LInput = ({ value = '', name = '', placeholder = '', isDisabled = false, className = 'w-[712px] max-lg2:w-full max-lg:w-[580px] ', handleInput, maxLength = 9999 }) => {
|
|
3
|
+
return (<input maxLength={maxLength} className={' rounded-[12px] border-[1px] border-solid border-[#B9B9B9] bg-[#FFFFFF] text-[#000000] placeholder:text-[#B9B9B9] disabled:bg-[#F5F5F5] disabled:text-[#606060] ' +
|
|
4
|
+
' focus:border-[#3D3D3D] ' +
|
|
5
|
+
' title_small h-[68px] px-[24px] py-[16px] ' +
|
|
6
|
+
' max-lg:title_small_tb max-lg:h-[60px] max-lg:rounded-[8px] max-lg:px-[24px] max-lg:py-[15px] ' +
|
|
7
|
+
' max-sm:body_large2_mo max-sm:h-[47px] max-sm:w-full max-sm:rounded-[4px] max-sm:px-[16px] max-sm:py-[16px] ' +
|
|
8
|
+
` ${className} `} name={name} value={value} disabled={isDisabled} placeholder={placeholder} onChange={handleInput}/>);
|
|
9
|
+
};
|
|
10
|
+
export default LInput;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
const LInput = ({
|
|
4
|
+
value = '',
|
|
5
|
+
name = '',
|
|
6
|
+
placeholder = '',
|
|
7
|
+
isDisabled = false,
|
|
8
|
+
className = 'w-[712px] max-lg2:w-full max-lg:w-[580px] ',
|
|
9
|
+
handleInput,
|
|
10
|
+
maxLength = 9999
|
|
11
|
+
}: {
|
|
12
|
+
value?: string;
|
|
13
|
+
name?: string;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
isDisabled?: boolean;
|
|
16
|
+
className?: string;
|
|
17
|
+
handleInput?: (e: any) => void;
|
|
18
|
+
maxLength?: number;
|
|
19
|
+
}) => {
|
|
20
|
+
return (
|
|
21
|
+
<input
|
|
22
|
+
maxLength={maxLength}
|
|
23
|
+
className={
|
|
24
|
+
' rounded-[12px] border-[1px] border-solid border-[#B9B9B9] bg-[#FFFFFF] text-[#000000] placeholder:text-[#B9B9B9] disabled:bg-[#F5F5F5] disabled:text-[#606060] ' +
|
|
25
|
+
' focus:border-[#3D3D3D] ' +
|
|
26
|
+
' title_small h-[68px] px-[24px] py-[16px] ' +
|
|
27
|
+
' max-lg:title_small_tb max-lg:h-[60px] max-lg:rounded-[8px] max-lg:px-[24px] max-lg:py-[15px] ' +
|
|
28
|
+
' max-sm:body_large2_mo max-sm:h-[47px] max-sm:w-full max-sm:rounded-[4px] max-sm:px-[16px] max-sm:py-[16px] ' +
|
|
29
|
+
` ${className} `
|
|
30
|
+
}
|
|
31
|
+
name={name}
|
|
32
|
+
value={value}
|
|
33
|
+
disabled={isDisabled}
|
|
34
|
+
placeholder={placeholder}
|
|
35
|
+
onChange={handleInput}
|
|
36
|
+
/>
|
|
37
|
+
);
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export default LInput;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Image from 'next/image';
|
|
3
|
+
const LoginBreadCrumb = ({ breadList }) => {
|
|
4
|
+
const imagePath = process.env.NEXT_PUBLIC_S3_URL + '';
|
|
5
|
+
return (<div className="label_medium2 flex h-full flex-row items-center gap-[12px] text-[#B9B9B9]">
|
|
6
|
+
{/* 시작 아이콘 */}
|
|
7
|
+
<span className={' flex justify-center'}>
|
|
8
|
+
<Image src={`${imagePath}/common-login/home.svg`} alt={'home'} width={15} height={15} className={'mb-[1px] h-auto sm:w-[17px] lg:w-[18px]'}/>
|
|
9
|
+
</span>
|
|
10
|
+
|
|
11
|
+
{/* Breadcrumb List */}
|
|
12
|
+
{breadList.map((item, index) => (<React.Fragment key={index}>
|
|
13
|
+
<Image src={`${imagePath}/common-login/arrow_2.webp`} alt={'right_arrow'} width={8} height={13} className={'h-[13px] w-[8px]'}/>
|
|
14
|
+
<span className={index === breadList.length - 1 ? 'text-[#333333]' : ''}>{item}</span>
|
|
15
|
+
</React.Fragment>))}
|
|
16
|
+
</div>);
|
|
17
|
+
};
|
|
18
|
+
export default LoginBreadCrumb;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Image from 'next/image';
|
|
3
|
+
|
|
4
|
+
interface LoginBreadCrumbProps {
|
|
5
|
+
breadList: string[];
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
const LoginBreadCrumb = ({ breadList }: LoginBreadCrumbProps) => {
|
|
9
|
+
const imagePath: string = process.env.NEXT_PUBLIC_S3_URL + '';
|
|
10
|
+
return (
|
|
11
|
+
<div className="label_medium2 flex h-full flex-row items-center gap-[12px] text-[#B9B9B9]">
|
|
12
|
+
{/* 시작 아이콘 */}
|
|
13
|
+
<span className={' flex justify-center'}>
|
|
14
|
+
<Image
|
|
15
|
+
src={`${imagePath}/common-login/home.svg`}
|
|
16
|
+
alt={'home'}
|
|
17
|
+
width={15}
|
|
18
|
+
height={15}
|
|
19
|
+
className={'mb-[1px] h-auto sm:w-[17px] lg:w-[18px]'}
|
|
20
|
+
/>
|
|
21
|
+
</span>
|
|
22
|
+
|
|
23
|
+
{/* Breadcrumb List */}
|
|
24
|
+
{breadList.map((item, index) => (
|
|
25
|
+
<React.Fragment key={index}>
|
|
26
|
+
<Image
|
|
27
|
+
src={`${imagePath}/common-login/arrow_2.webp`}
|
|
28
|
+
alt={'right_arrow'}
|
|
29
|
+
width={8}
|
|
30
|
+
height={13}
|
|
31
|
+
className={'h-[13px] w-[8px]'}
|
|
32
|
+
/>
|
|
33
|
+
<span className={index === breadList.length - 1 ? 'text-[#333333]' : ''}>{item}</span>
|
|
34
|
+
</React.Fragment>
|
|
35
|
+
))}
|
|
36
|
+
</div>
|
|
37
|
+
);
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export default LoginBreadCrumb;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface props {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
handleLeftClick: () => void;
|
|
6
|
+
handleRightClick: () => void;
|
|
7
|
+
title: string;
|
|
8
|
+
}
|
|
9
|
+
declare const AlertConfirmModal: ({ isOpen, onClose, handleLeftClick, handleRightClick, title }: props) => React.JSX.Element | null;
|
|
10
|
+
export default AlertConfirmModal;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import Image from 'next/image';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
const AlertConfirmModal = ({ isOpen, onClose, handleLeftClick, handleRightClick, title }) => {
|
|
4
|
+
const imagePath = process.env.NEXT_PUBLIC_S3_URL + '';
|
|
5
|
+
if (!isOpen)
|
|
6
|
+
return null;
|
|
7
|
+
return (<div className="fixed inset-0 z-[9999] flex items-center justify-center bg-black/50 font-[SUIT] backdrop-blur-sm " onClick={onClose} // 백그라운드 클릭 시 모달 닫기
|
|
8
|
+
>
|
|
9
|
+
<div className="relative w-[804px] rounded-[32px] bg-white max-lg:w-[648px] max-[700px]:w-[90%] max-sm:w-[320px] max-2xs:w-[90%] " onClick={e => e.stopPropagation()}>
|
|
10
|
+
<div className={' flex min-h-[432px] w-full flex-col items-center justify-center rounded-[32px] border-[1px] border-solid border-[#B9B9B9] p-[52px] ' +
|
|
11
|
+
' max-lg:min-h-[348px] max-lg:px-[54px] max-lg:py-[44px] ' +
|
|
12
|
+
' max-sm:min-h-[224px] max-sm:p-[30px] '}>
|
|
13
|
+
<div className={' h-[88px] w-[72px]' +
|
|
14
|
+
' max-lg:h-[68.44px] max-lg:w-[56px]' +
|
|
15
|
+
' max-sm:h-[48.89px] max-sm:w-[40px] '}>
|
|
16
|
+
<Image src={`${imagePath}/common-login/alert_shield.svg`} alt={'alert_shield'} height={100} width={100} className={`h-full w-full`}/>
|
|
17
|
+
</div>
|
|
18
|
+
<div className={' body_large1 mt-[60px] text-center text-black ' +
|
|
19
|
+
' max-lg:body_large1_tb max-lg:mt-[48px] ' +
|
|
20
|
+
' max-sm:body_large1_mo max-sm:mt-[20px] '}>
|
|
21
|
+
{title}
|
|
22
|
+
</div>
|
|
23
|
+
<div className={' mt-[73px] flex w-full flex-row gap-[16px] ' +
|
|
24
|
+
' max-lg:mt-[53px] max-lg:gap-[12px] ' +
|
|
25
|
+
' max-sm:mt-[24px] max-sm:gap-[4px] '}>
|
|
26
|
+
<button onClick={handleLeftClick} type={'button'} className={' body_large1 h-[72px] w-full rounded-[16px] bg-[#F5F5F5] text-[#000000] ' +
|
|
27
|
+
' max-lg:body_large1_tb max-lg:h-[60px] max-lg:rounded-[8px] ' +
|
|
28
|
+
' max-sm:body_large1_mo max-sm:h-[48px] max-sm:rounded-[4px] '}>
|
|
29
|
+
취소
|
|
30
|
+
</button>
|
|
31
|
+
<button onClick={handleRightClick} type={'button'} className={' body_large1 h-[72px] w-full rounded-[16px] bg-[#3D3D3D] text-[#FFFFFF]' +
|
|
32
|
+
' max-lg:body_large1_tb max-lg:h-[60px] max-lg:rounded-[8px] ' +
|
|
33
|
+
' max-sm:body_large1_mo max-sm:h-[48px] max-sm:rounded-[4px] '}>
|
|
34
|
+
확인
|
|
35
|
+
</button>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
</div>);
|
|
40
|
+
};
|
|
41
|
+
export default AlertConfirmModal;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import Image from 'next/image';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
|
|
4
|
+
interface props {
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
handleLeftClick: () => void;
|
|
8
|
+
handleRightClick: () => void;
|
|
9
|
+
title: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
const AlertConfirmModal = ({ isOpen, onClose, handleLeftClick, handleRightClick, title }: props) => {
|
|
13
|
+
const imagePath: string = process.env.NEXT_PUBLIC_S3_URL + '';
|
|
14
|
+
if (!isOpen) return null;
|
|
15
|
+
return (
|
|
16
|
+
<div
|
|
17
|
+
className="fixed inset-0 z-[9999] flex items-center justify-center bg-black/50 font-[SUIT] backdrop-blur-sm "
|
|
18
|
+
onClick={onClose} // 백그라운드 클릭 시 모달 닫기
|
|
19
|
+
>
|
|
20
|
+
<div
|
|
21
|
+
className="relative w-[804px] rounded-[32px] bg-white max-lg:w-[648px] max-[700px]:w-[90%] max-sm:w-[320px] max-2xs:w-[90%] "
|
|
22
|
+
onClick={e => e.stopPropagation()}
|
|
23
|
+
>
|
|
24
|
+
<div
|
|
25
|
+
className={
|
|
26
|
+
' flex min-h-[432px] w-full flex-col items-center justify-center rounded-[32px] border-[1px] border-solid border-[#B9B9B9] p-[52px] ' +
|
|
27
|
+
' max-lg:min-h-[348px] max-lg:px-[54px] max-lg:py-[44px] ' +
|
|
28
|
+
' max-sm:min-h-[224px] max-sm:p-[30px] '
|
|
29
|
+
}
|
|
30
|
+
>
|
|
31
|
+
<div
|
|
32
|
+
className={
|
|
33
|
+
' h-[88px] w-[72px]' +
|
|
34
|
+
' max-lg:h-[68.44px] max-lg:w-[56px]' +
|
|
35
|
+
' max-sm:h-[48.89px] max-sm:w-[40px] '
|
|
36
|
+
}
|
|
37
|
+
>
|
|
38
|
+
<Image
|
|
39
|
+
src={`${imagePath}/common-login/alert_shield.svg`}
|
|
40
|
+
alt={'alert_shield'}
|
|
41
|
+
height={100}
|
|
42
|
+
width={100}
|
|
43
|
+
className={`h-full w-full`}
|
|
44
|
+
/>
|
|
45
|
+
</div>
|
|
46
|
+
<div
|
|
47
|
+
className={
|
|
48
|
+
' body_large1 mt-[60px] text-center text-black ' +
|
|
49
|
+
' max-lg:body_large1_tb max-lg:mt-[48px] ' +
|
|
50
|
+
' max-sm:body_large1_mo max-sm:mt-[20px] '
|
|
51
|
+
}
|
|
52
|
+
>
|
|
53
|
+
{title}
|
|
54
|
+
</div>
|
|
55
|
+
<div
|
|
56
|
+
className={
|
|
57
|
+
' mt-[73px] flex w-full flex-row gap-[16px] ' +
|
|
58
|
+
' max-lg:mt-[53px] max-lg:gap-[12px] ' +
|
|
59
|
+
' max-sm:mt-[24px] max-sm:gap-[4px] '
|
|
60
|
+
}
|
|
61
|
+
>
|
|
62
|
+
<button
|
|
63
|
+
onClick={handleLeftClick}
|
|
64
|
+
type={'button'}
|
|
65
|
+
className={
|
|
66
|
+
' body_large1 h-[72px] w-full rounded-[16px] bg-[#F5F5F5] text-[#000000] ' +
|
|
67
|
+
' max-lg:body_large1_tb max-lg:h-[60px] max-lg:rounded-[8px] ' +
|
|
68
|
+
' max-sm:body_large1_mo max-sm:h-[48px] max-sm:rounded-[4px] '
|
|
69
|
+
}
|
|
70
|
+
>
|
|
71
|
+
취소
|
|
72
|
+
</button>
|
|
73
|
+
<button
|
|
74
|
+
onClick={handleRightClick}
|
|
75
|
+
type={'button'}
|
|
76
|
+
className={
|
|
77
|
+
' body_large1 h-[72px] w-full rounded-[16px] bg-[#3D3D3D] text-[#FFFFFF]' +
|
|
78
|
+
' max-lg:body_large1_tb max-lg:h-[60px] max-lg:rounded-[8px] ' +
|
|
79
|
+
' max-sm:body_large1_mo max-sm:h-[48px] max-sm:rounded-[4px] '
|
|
80
|
+
}
|
|
81
|
+
>
|
|
82
|
+
확인
|
|
83
|
+
</button>
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
);
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
export default AlertConfirmModal;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface props {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
handleClick: () => void;
|
|
6
|
+
title: string;
|
|
7
|
+
subTitle: string;
|
|
8
|
+
}
|
|
9
|
+
declare const ConfirmModal: ({ isOpen, onClose, handleClick, title, subTitle }: props) => React.JSX.Element | null;
|
|
10
|
+
export default ConfirmModal;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Image from 'next/image';
|
|
3
|
+
const ConfirmModal = ({ isOpen, onClose, handleClick, title, subTitle }) => {
|
|
4
|
+
if (!isOpen)
|
|
5
|
+
return null;
|
|
6
|
+
const imagePath = process.env.NEXT_PUBLIC_S3_URL + '';
|
|
7
|
+
return (<div className="fixed inset-0 z-[9999] flex items-center justify-center bg-black/50 font-[SUIT] backdrop-blur-sm " onClick={onClose} // 백그라운드 클릭 시 모달 닫기
|
|
8
|
+
>
|
|
9
|
+
<div className={' relative w-[804px] rounded-[32px] bg-white max-lg:w-[648px] max-[700px]:w-[90%] max-sm:w-[90%] '} onClick={e => e.stopPropagation()}>
|
|
10
|
+
<div className={' flex min-h-[432px] w-full flex-col items-center justify-center rounded-[32px] border-[1px] border-solid border-[#B9B9B9] p-[52px] ' +
|
|
11
|
+
' max-lg:min-h-[348px] max-lg:px-[54px] max-lg:py-[44px] ' +
|
|
12
|
+
' max-sm:min-h-[244px] max-sm:p-[30px] '}>
|
|
13
|
+
<div className={' h-[88px] w-[72px]' +
|
|
14
|
+
' max-lg:h-[68.44px] max-lg:w-[56px]' +
|
|
15
|
+
' max-sm:h-[48.89px] max-sm:w-[40px] '}>
|
|
16
|
+
<Image src={`${imagePath}/common-login/alert_shield.svg`} alt={'alert_shield'} height={100} width={100} className={`h-full w-full`}/>
|
|
17
|
+
</div>
|
|
18
|
+
<div className={' body_large1 mt-[36px] text-black ' +
|
|
19
|
+
' max-lg:body_large1_tb max-lg:mt-[20px] ' +
|
|
20
|
+
' max-sm:body_large1_mo max-sm:mt-[16px] '}>
|
|
21
|
+
{title}
|
|
22
|
+
</div>
|
|
23
|
+
<div className={' body_medium2 mt-[20px] text-center text-[#909090] ' +
|
|
24
|
+
' max-lg:body_medium2_tb max-lg:mt-[16px] ' +
|
|
25
|
+
' max-sm:body_medium2_mo max-sm:mt-[8px] '}>
|
|
26
|
+
{subTitle}
|
|
27
|
+
</div>
|
|
28
|
+
<button onClick={handleClick} type={'button'} className={' title_small mt-[47px] h-[72px] w-full rounded-[16px] bg-[#3D3D3D] text-[#FFFFFF]' +
|
|
29
|
+
' max-lg:title_small_tb max-lg:mt-[40px] max-lg:h-[60px] max-lg:rounded-[8px] ' +
|
|
30
|
+
' max-sm:title_small_mo max-lg:mt-[20px] max-lg:rounded-[4px] max-sm:h-[48px] '}>
|
|
31
|
+
확인
|
|
32
|
+
</button>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
</div>);
|
|
36
|
+
};
|
|
37
|
+
export default ConfirmModal;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Image from 'next/image';
|
|
3
|
+
|
|
4
|
+
interface props {
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
handleClick: () => void;
|
|
8
|
+
title: string;
|
|
9
|
+
subTitle: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
const ConfirmModal = ({ isOpen, onClose, handleClick, title, subTitle }: props) => {
|
|
13
|
+
if (!isOpen) return null;
|
|
14
|
+
const imagePath: string = process.env.NEXT_PUBLIC_S3_URL + '';
|
|
15
|
+
return (
|
|
16
|
+
<div
|
|
17
|
+
className="fixed inset-0 z-[9999] flex items-center justify-center bg-black/50 font-[SUIT] backdrop-blur-sm "
|
|
18
|
+
onClick={onClose} // 백그라운드 클릭 시 모달 닫기
|
|
19
|
+
>
|
|
20
|
+
<div
|
|
21
|
+
className={
|
|
22
|
+
' relative w-[804px] rounded-[32px] bg-white max-lg:w-[648px] max-[700px]:w-[90%] max-sm:w-[90%] '
|
|
23
|
+
}
|
|
24
|
+
onClick={e => e.stopPropagation()}
|
|
25
|
+
>
|
|
26
|
+
<div
|
|
27
|
+
className={
|
|
28
|
+
' flex min-h-[432px] w-full flex-col items-center justify-center rounded-[32px] border-[1px] border-solid border-[#B9B9B9] p-[52px] ' +
|
|
29
|
+
' max-lg:min-h-[348px] max-lg:px-[54px] max-lg:py-[44px] ' +
|
|
30
|
+
' max-sm:min-h-[244px] max-sm:p-[30px] '
|
|
31
|
+
}
|
|
32
|
+
>
|
|
33
|
+
<div
|
|
34
|
+
className={
|
|
35
|
+
' h-[88px] w-[72px]' +
|
|
36
|
+
' max-lg:h-[68.44px] max-lg:w-[56px]' +
|
|
37
|
+
' max-sm:h-[48.89px] max-sm:w-[40px] '
|
|
38
|
+
}
|
|
39
|
+
>
|
|
40
|
+
<Image
|
|
41
|
+
src={`${imagePath}/common-login/alert_shield.svg`}
|
|
42
|
+
alt={'alert_shield'}
|
|
43
|
+
height={100}
|
|
44
|
+
width={100}
|
|
45
|
+
className={`h-full w-full`}
|
|
46
|
+
/>
|
|
47
|
+
</div>
|
|
48
|
+
<div
|
|
49
|
+
className={
|
|
50
|
+
' body_large1 mt-[36px] text-black ' +
|
|
51
|
+
' max-lg:body_large1_tb max-lg:mt-[20px] ' +
|
|
52
|
+
' max-sm:body_large1_mo max-sm:mt-[16px] '
|
|
53
|
+
}
|
|
54
|
+
>
|
|
55
|
+
{title}
|
|
56
|
+
</div>
|
|
57
|
+
<div
|
|
58
|
+
className={
|
|
59
|
+
' body_medium2 mt-[20px] text-center text-[#909090] ' +
|
|
60
|
+
' max-lg:body_medium2_tb max-lg:mt-[16px] ' +
|
|
61
|
+
' max-sm:body_medium2_mo max-sm:mt-[8px] '
|
|
62
|
+
}
|
|
63
|
+
>
|
|
64
|
+
{subTitle}
|
|
65
|
+
</div>
|
|
66
|
+
<button
|
|
67
|
+
onClick={handleClick}
|
|
68
|
+
type={'button'}
|
|
69
|
+
className={
|
|
70
|
+
' title_small mt-[47px] h-[72px] w-full rounded-[16px] bg-[#3D3D3D] text-[#FFFFFF]' +
|
|
71
|
+
' max-lg:title_small_tb max-lg:mt-[40px] max-lg:h-[60px] max-lg:rounded-[8px] ' +
|
|
72
|
+
' max-sm:title_small_mo max-lg:mt-[20px] max-lg:rounded-[4px] max-sm:h-[48px] '
|
|
73
|
+
}
|
|
74
|
+
>
|
|
75
|
+
확인
|
|
76
|
+
</button>
|
|
77
|
+
</div>
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
);
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
export default ConfirmModal;
|