@daeryun/dr_components 0.3.17 → 0.3.19
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/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/MyCase/MyCasePage.jsx +1 -0
- package/dist/components/page/MyCase/MyCasePage.tsx +2 -0
- package/dist/components/page/MyCase/[id]/MyCaseDetailPage.jsx +1 -0
- package/dist/components/page/MyCase/[id]/MyCaseDetailPage.tsx +2 -0
- package/dist/components/page/MyCase/_fetchers/addMyCaseQuestion.js +3 -1
- package/dist/components/page/MyCase/_fetchers/addMyCaseQuestion.ts +3 -1
- package/dist/components/page/MyCase/_fetchers/getCase.js +4 -1
- package/dist/components/page/MyCase/_fetchers/getCase.ts +5 -1
- package/dist/components/page/MyCase/_fetchers/getCaseList.js +3 -1
- package/dist/components/page/MyCase/_fetchers/getCaseList.ts +3 -1
- package/dist/components/page/MyCase/_fetchers/getCourtFileList.js +3 -1
- package/dist/components/page/MyCase/_fetchers/getCourtFileList.ts +3 -1
- package/dist/components/page/MyCase/_fetchers/getMyCaseQuestion.js +3 -1
- package/dist/components/page/MyCase/_fetchers/getMyCaseQuestion.ts +8 -9
- 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,8 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
interface WrapperProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
6
|
+
}
|
|
7
|
+
declare const PageWrapper: React.FC<WrapperProps>;
|
|
8
|
+
export default PageWrapper;
|
|
@@ -0,0 +1,31 @@
|
|
|
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 from 'react';
|
|
13
|
+
// 페이지 상세
|
|
14
|
+
const PageWrapper = (_a) => {
|
|
15
|
+
var { children, className = '', ref = null } = _a, others = __rest(_a, ["children", "className", "ref"]);
|
|
16
|
+
return (<div className={'relative mx-auto w-full max-w-[1920px] ' +
|
|
17
|
+
//PC ( ~ 1500px )
|
|
18
|
+
'px-[190px] ' +
|
|
19
|
+
//1500px
|
|
20
|
+
'max-3xl:px-[80px] ' +
|
|
21
|
+
//1024px - dev Tablets
|
|
22
|
+
'max-lg:px-[60px] ' +
|
|
23
|
+
//900px - design Tablets
|
|
24
|
+
'max-md2:px-[40px] ' +
|
|
25
|
+
//520px - dev Mobile ( 320px - design Mobile )
|
|
26
|
+
'max-2sm:px-[20px] ' +
|
|
27
|
+
className} ref={ref} {...others}>
|
|
28
|
+
{children}
|
|
29
|
+
</div>);
|
|
30
|
+
};
|
|
31
|
+
export default PageWrapper;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
interface WrapperProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
className?: string; // 스타일 추가
|
|
6
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
// 페이지 상세
|
|
10
|
+
const PageWrapper: React.FC<WrapperProps> = ({ children, className = '', ref = null, ...others }) => {
|
|
11
|
+
return (
|
|
12
|
+
<div
|
|
13
|
+
className={
|
|
14
|
+
'relative mx-auto w-full max-w-[1920px] ' +
|
|
15
|
+
//PC ( ~ 1500px )
|
|
16
|
+
'px-[190px] ' +
|
|
17
|
+
//1500px
|
|
18
|
+
'max-3xl:px-[80px] ' +
|
|
19
|
+
//1024px - dev Tablets
|
|
20
|
+
'max-lg:px-[60px] ' +
|
|
21
|
+
//900px - design Tablets
|
|
22
|
+
'max-md2:px-[40px] ' +
|
|
23
|
+
//520px - dev Mobile ( 320px - design Mobile )
|
|
24
|
+
'max-2sm:px-[20px] ' +
|
|
25
|
+
className
|
|
26
|
+
}
|
|
27
|
+
ref={ref}
|
|
28
|
+
{...others}
|
|
29
|
+
>
|
|
30
|
+
{children}
|
|
31
|
+
</div>
|
|
32
|
+
);
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export default PageWrapper;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React, { useEffect } from 'react';
|
|
3
|
+
import { usePathname, useSearchParams } from 'next/navigation';
|
|
4
|
+
import Image from 'next/image';
|
|
5
|
+
import PageWrapper from '../../Layout/PageWrapper';
|
|
6
|
+
import { setCookie } from '../../../lib';
|
|
7
|
+
import LoginBreadCrumb from './LoginComp/LoginBreadCrumb';
|
|
8
|
+
const Login = ({ layoutClassName = ' relative h-[100vh] max-h-[1200px] min-h-[1000px] w-full overflow-hidden bg-white font-[SUIT] ' +
|
|
9
|
+
' max-3xl:max-h-[1080px] max-3xl:min-h-[1000px] ' +
|
|
10
|
+
' max-lg:min-h-[930px] ' +
|
|
11
|
+
' max-md:max-h-[800px] max-md:min-h-[1100px] ' +
|
|
12
|
+
' mb-[192px] mt-[128px] ' +
|
|
13
|
+
' max-lg:mt-[112px] ' +
|
|
14
|
+
' max-sm:mt-[100px] ' }) => {
|
|
15
|
+
const searchParam = useSearchParams();
|
|
16
|
+
const pathName = usePathname();
|
|
17
|
+
// const router = useRouter();
|
|
18
|
+
const clientKey = process.env.NEXT_PUBLIC_OAUTH_CLIENT_KEY || '';
|
|
19
|
+
const imagePath = process.env.NEXT_PUBLIC_S3_URL + '';
|
|
20
|
+
const redirectWithNoReferrer = (url) => {
|
|
21
|
+
const a = document.createElement('a');
|
|
22
|
+
a.href = url;
|
|
23
|
+
a.rel = 'noreferrer'; // Referrer 정보 제거
|
|
24
|
+
a.click();
|
|
25
|
+
};
|
|
26
|
+
useEffect(() => {
|
|
27
|
+
// const redirect = router.query.redirect;
|
|
28
|
+
const redirect = searchParam.get('redirect') || '';
|
|
29
|
+
if (redirect && typeof redirect === 'string') {
|
|
30
|
+
setCookie({ key: 'redirect', value: redirect });
|
|
31
|
+
}
|
|
32
|
+
}, [pathName]);
|
|
33
|
+
const handleLoginClick = (type) => {
|
|
34
|
+
const loginUrl = `https://oauth.daeryunlaw.com/login/${type}?clientKey=${clientKey}&${process.env.NODE_ENV === 'production' ? 'state=sapa' : ''}`;
|
|
35
|
+
redirectWithNoReferrer(loginUrl);
|
|
36
|
+
};
|
|
37
|
+
const loginProvider = [
|
|
38
|
+
{
|
|
39
|
+
identityProvider: 'kakao',
|
|
40
|
+
name: '카카오',
|
|
41
|
+
positionClass: ' top-[22px] left-[26px] max-lg:top-[20px] max-lg:left-[24px] max-sm:top-[14px] max-sm:left-[20px] ',
|
|
42
|
+
textColor: '#000000',
|
|
43
|
+
bgColor: '#FEE502',
|
|
44
|
+
iconClassName: `w-[28px] h-[28px] max-lg:w-[24px] max-lg:h-[24px] max-sm:w-[20px] max-sm:h-[20px] `
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
identityProvider: 'naver',
|
|
48
|
+
name: '네이버',
|
|
49
|
+
positionClass: ' top-[25px] left-[28px] max-lg:top-[22px] max-lg:left-[26px] max-sm:top-[15px] max-sm:left-[21.5px] ',
|
|
50
|
+
textColor: '#FFFFFF',
|
|
51
|
+
bgColor: '#02C75A',
|
|
52
|
+
iconClassName: `w-[28px] h-[28px] max-lg:w-[20px] max-lg:h-[20px] max-sm:w-[17px] max-sm:h-[18px] `
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
identityProvider: 'google',
|
|
56
|
+
name: '구글',
|
|
57
|
+
positionClass: ' top-[22.73px] left-[27px] max-lg:top-[20.78px] max-lg:left-[26.19px] max-sm:top-[14px] max-sm:left-[21.46px] ',
|
|
58
|
+
textColor: '#000000',
|
|
59
|
+
bgColor: '#FFFFFF',
|
|
60
|
+
className: 'border-[1px] border-solid border-[#707070] ',
|
|
61
|
+
iconClassName: `w-[24px] h-[24px] max-lg:w-[22px] max-lg:h-[22.45px] max-sm:w-[19.16px] max-sm:h-[19.55px] `
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
identityProvider: 'apple',
|
|
65
|
+
name: 'Apple',
|
|
66
|
+
positionClass: ' top-[19px] left-[27px] max-lg:top-[17px] max-lg:left-[25px] max-sm:top-[11px] max-sm:left-[20.42px] ',
|
|
67
|
+
textColor: '#FFFFFF',
|
|
68
|
+
bgColor: '#050708',
|
|
69
|
+
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] `
|
|
70
|
+
}
|
|
71
|
+
];
|
|
72
|
+
return (<section className={layoutClassName}>
|
|
73
|
+
<PageWrapper>
|
|
74
|
+
<div>
|
|
75
|
+
<div className={'flex flex-row-reverse pt-[47px] ' + 'max-lg:pt-[40px]' + ' max-sm:pt-[28px] '}>
|
|
76
|
+
<LoginBreadCrumb breadList={['로그인', '간편 로그인']}/>
|
|
77
|
+
</div>
|
|
78
|
+
</div>
|
|
79
|
+
<div className={'mt-[45px]' + ' max-lg:mt-[68px] ' + ' max-sm:mt-[44px] '}>
|
|
80
|
+
<div className={'flex flex-col'}>
|
|
81
|
+
<div className={' title_large text-[#000000] ' + ' max-lg:title_large_tb ' + ' max-sm:title_large_mo '}>
|
|
82
|
+
간편 로그인
|
|
83
|
+
</div>
|
|
84
|
+
</div>
|
|
85
|
+
<div className={' body_large2 mt-[12px] text-[#000000] ' +
|
|
86
|
+
' max-lg:title_small_tb max-lg:mt-[12px] ' +
|
|
87
|
+
' max-sm:label_medium2_tb max-sm:mt-[8px] '}>
|
|
88
|
+
SNS 간편 가입으로 쉽고 빠른 로그인이 가능합니다.
|
|
89
|
+
<br />
|
|
90
|
+
로그인하고 나의 사건 진행 상황을 확인하세요!
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
<div className={' mt-[154px] flex flex-col items-center justify-center gap-[20px]' +
|
|
94
|
+
' max-lg:mt-[168px] ' +
|
|
95
|
+
' max-sm:mt-[80px] '}>
|
|
96
|
+
{loginProvider.map((item, index) => {
|
|
97
|
+
return (<button key={index} type="button" onClick={() => handleLoginClick(item.identityProvider)} className={' relative flex h-[72px] w-[540px] items-center ' +
|
|
98
|
+
' body_large2 justify-center rounded-[36px] ' +
|
|
99
|
+
' max-lg:body_large2_tb max-lg:h-[64px] max-lg:w-[500px] ' +
|
|
100
|
+
' max-sm:body_large2_mo max-sm:h-[48px] max-sm:w-[320px] ' +
|
|
101
|
+
` ${item.className} `} style={{ color: item.textColor, backgroundColor: item.bgColor }}>
|
|
102
|
+
<span className={`${item.positionClass} absolute ${item.iconClassName}`}>
|
|
103
|
+
<Image src={`${imagePath}/common-login/${item.identityProvider}.svg`} alt={item.identityProvider} height={100} width={100} className={`h-full w-full`}/>
|
|
104
|
+
</span>
|
|
105
|
+
<span>{`${item.name} 계정으로 로그인`}</span>
|
|
106
|
+
</button>);
|
|
107
|
+
})}
|
|
108
|
+
</div>
|
|
109
|
+
</PageWrapper>
|
|
110
|
+
</section>);
|
|
111
|
+
};
|
|
112
|
+
export default Login;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import Login from './Login';
|
|
2
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
|
|
4
|
+
const meta: Meta<typeof Login> = {
|
|
5
|
+
component: Login,
|
|
6
|
+
title: 'Login'
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export default meta;
|
|
10
|
+
|
|
11
|
+
type Story = StoryObj<typeof meta>;
|
|
12
|
+
|
|
13
|
+
export const Default: Story = {
|
|
14
|
+
render: () => {
|
|
15
|
+
return (
|
|
16
|
+
<div className={'font-[SUIT]'}>
|
|
17
|
+
<Login />
|
|
18
|
+
</div>
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
};
|
|
@@ -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;
|