@daeryun/dr_components 0.3.21 → 0.3.23

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.
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import React, { useEffect } from 'react';
2
+ import React, { useEffect, Suspense } from 'react';
3
3
  import { usePathname, useSearchParams } from 'next/navigation';
4
4
  import Image from 'next/image';
5
5
  import PageWrapper from '../../Layout/PageWrapper';
@@ -69,44 +69,48 @@ const Login = ({ layoutClassName = ' relative h-[100vh] max-h-[1200px] min-h-[10
69
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
70
  }
71
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
- 간편 로그인
72
+ return (<Suspense>
73
+ <section className={layoutClassName}>
74
+ <PageWrapper>
75
+ <div>
76
+ <div className={'flex flex-row-reverse pt-[47px] ' + 'max-lg:pt-[40px]' + ' max-sm:pt-[28px] '}>
77
+ <LoginBreadCrumb breadList={['로그인', '간편 로그인']}/>
83
78
  </div>
84
79
  </div>
85
- <div className={' body_large2 mt-[12px] text-[#000000] ' +
80
+ <div className={'mt-[45px]' + ' max-lg:mt-[68px] ' + ' max-sm:mt-[44px] '}>
81
+ <div className={'flex flex-col'}>
82
+ <div className={' title_large text-[#000000] ' +
83
+ ' max-lg:title_large_tb ' +
84
+ ' max-sm:title_large_mo '}>
85
+ 간편 로그인
86
+ </div>
87
+ </div>
88
+ <div className={' body_large2 mt-[12px] text-[#000000] ' +
86
89
  ' max-lg:title_small_tb max-lg:mt-[12px] ' +
87
90
  ' max-sm:label_medium2_tb max-sm:mt-[8px] '}>
88
- SNS 간편 가입으로 쉽고 빠른 로그인이 가능합니다.
89
- <br />
90
- 로그인하고 나의 사건 진행 상황을 확인하세요!
91
+ SNS 간편 가입으로 쉽고 빠른 로그인이 가능합니다.
92
+ <br />
93
+ 로그인하고 나의 사건 진행 상황을 확인하세요!
94
+ </div>
91
95
  </div>
92
- </div>
93
- <div className={' mt-[154px] flex flex-col items-center justify-center gap-[20px]' +
96
+ <div className={' mt-[154px] flex flex-col items-center justify-center gap-[20px]' +
94
97
  ' max-lg:mt-[168px] ' +
95
98
  ' max-sm:mt-[80px] '}>
96
- {loginProvider.map((item, index) => {
99
+ {loginProvider.map((item, index) => {
97
100
  return (<button key={index} type="button" onClick={() => handleLoginClick(item.identityProvider)} className={' relative flex h-[72px] w-[540px] items-center ' +
98
101
  ' body_large2 justify-center rounded-[36px] ' +
99
102
  ' max-lg:body_large2_tb max-lg:h-[64px] max-lg:w-[500px] ' +
100
103
  ' max-sm:body_large2_mo max-sm:h-[48px] max-sm:w-[320px] ' +
101
104
  ` ${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>);
105
+ <span className={`${item.positionClass} absolute ${item.iconClassName}`}>
106
+ <Image src={`${imagePath}/common-login/${item.identityProvider}.svg`} alt={item.identityProvider} height={100} width={100} className={`h-full w-full`}/>
107
+ </span>
108
+ <span>{`${item.name} 계정으로 로그인`}</span>
109
+ </button>);
107
110
  })}
108
- </div>
109
- </PageWrapper>
110
- </section>);
111
+ </div>
112
+ </PageWrapper>
113
+ </section>
114
+ </Suspense>);
111
115
  };
112
116
  export default Login;
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
 
3
- import React, { useEffect } from 'react';
3
+ import React, { useEffect, Suspense } from 'react';
4
4
  import { usePathname, useSearchParams } from 'next/navigation';
5
5
  import Image from 'next/image';
6
6
  import PageWrapper from '../../Layout/PageWrapper';
@@ -41,7 +41,9 @@ const Login = ({
41
41
  }, [pathName]);
42
42
 
43
43
  const handleLoginClick = (type: string) => {
44
- const loginUrl = `https://oauth.daeryunlaw.com/login/${type}?clientKey=${clientKey}&${process.env.NODE_ENV === 'production' ? 'state=sapa' : ''}`;
44
+ const loginUrl = `https://oauth.daeryunlaw.com/login/${type}?clientKey=${clientKey}&${
45
+ process.env.NODE_ENV === 'production' ? 'state=sapa' : ''
46
+ }`;
45
47
  redirectWithNoReferrer(loginUrl);
46
48
  };
47
49
 
@@ -94,73 +96,79 @@ const Login = ({
94
96
  ];
95
97
 
96
98
  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={['로그인', '간편 로그인']} />
99
+ <Suspense>
100
+ <section className={layoutClassName}>
101
+ <PageWrapper>
102
+ <div>
103
+ <div
104
+ className={'flex flex-row-reverse pt-[47px] ' + 'max-lg:pt-[40px]' + ' max-sm:pt-[28px] '}
105
+ >
106
+ <LoginBreadCrumb breadList={['로그인', '간편 로그인']} />
107
+ </div>
102
108
  </div>
103
- </div>
104
- <div className={'mt-[45px]' + ' max-lg:mt-[68px] ' + ' max-sm:mt-[44px] '}>
105
- <div className={'flex flex-col'}>
109
+ <div className={'mt-[45px]' + ' max-lg:mt-[68px] ' + ' max-sm:mt-[44px] '}>
110
+ <div className={'flex flex-col'}>
111
+ <div
112
+ className={
113
+ ' title_large text-[#000000] ' +
114
+ ' max-lg:title_large_tb ' +
115
+ ' max-sm:title_large_mo '
116
+ }
117
+ >
118
+ 간편 로그인
119
+ </div>
120
+ </div>
106
121
  <div
107
122
  className={
108
- ' title_large text-[#000000] ' + ' max-lg:title_large_tb ' + ' max-sm:title_large_mo '
123
+ ' body_large2 mt-[12px] text-[#000000] ' +
124
+ ' max-lg:title_small_tb max-lg:mt-[12px] ' +
125
+ ' max-sm:label_medium2_tb max-sm:mt-[8px] '
109
126
  }
110
127
  >
111
- 간편 로그인
128
+ SNS 간편 가입으로 쉽고 빠른 로그인이 가능합니다.
129
+ <br />
130
+ 로그인하고 나의 사건 진행 상황을 확인하세요!
112
131
  </div>
113
132
  </div>
114
133
  <div
115
134
  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] '
135
+ ' mt-[154px] flex flex-col items-center justify-center gap-[20px]' +
136
+ ' max-lg:mt-[168px] ' +
137
+ ' max-sm:mt-[80px] '
119
138
  }
120
139
  >
121
- SNS 간편 가입으로 쉽고 빠른 로그인이 가능합니다.
122
- <br />
123
- 로그인하고 나의 사건 진행 상황을 확인하세요!
140
+ {loginProvider.map((item, index: number) => {
141
+ return (
142
+ <button
143
+ key={index}
144
+ type="button"
145
+ onClick={() => handleLoginClick(item.identityProvider)}
146
+ className={
147
+ ' relative flex h-[72px] w-[540px] items-center ' +
148
+ ' body_large2 justify-center rounded-[36px] ' +
149
+ ' max-lg:body_large2_tb max-lg:h-[64px] max-lg:w-[500px] ' +
150
+ ' max-sm:body_large2_mo max-sm:h-[48px] max-sm:w-[320px] ' +
151
+ ` ${item.className} `
152
+ }
153
+ style={{ color: item.textColor, backgroundColor: item.bgColor }}
154
+ >
155
+ <span className={`${item.positionClass} absolute ${item.iconClassName}`}>
156
+ <Image
157
+ src={`${imagePath}/common-login/${item.identityProvider}.svg`}
158
+ alt={item.identityProvider}
159
+ height={100}
160
+ width={100}
161
+ className={`h-full w-full`}
162
+ />
163
+ </span>
164
+ <span>{`${item.name} 계정으로 로그인`}</span>
165
+ </button>
166
+ );
167
+ })}
124
168
  </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>
169
+ </PageWrapper>
170
+ </section>
171
+ </Suspense>
164
172
  );
165
173
  };
166
174
 
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
- import React, { useCallback, useEffect, useRef, useState } from 'react';
11
+ import React, { useCallback, useEffect, useRef, useState, Suspense } from 'react';
12
12
  import { usePathname, useRouter, useSearchParams } from 'next/navigation';
13
13
  import { formatPhoneNumber, formatTime, getCookie, getNameValue, getPhoneValue, onlyNumberFilter } from '../../../lib';
14
14
  import { deleteToken, getToken } from './_api/token';
@@ -405,123 +405,128 @@ const Sign = ({ layoutClassName = `mt-[47px] py-[128px] max-lg:mt-[40px] max-lg:
405
405
  setIsModal(false);
406
406
  setModalObj({ title: '', subTitle: '', key: '' });
407
407
  };
408
- return (<section className={layoutClassName}>
409
- <PageWrapper>
410
- <div className={'flex flex-row-reverse ' + '' + ' '}>
411
- <LoginBreadCrumb breadList={['로그인', '간편 로그인', '회원가입']}/>
412
- </div>
413
- <div className={' mt-[45px] ' + ' max-lg:mt-[68px] ' + ' max-sm:mt-[44px] '}>
414
- <div className={'flex flex-col'}>
415
- <div className={' title_large text-[#000000] ' + ' max-lg:title_large_tb ' + ' max-sm:title_large_mo '}>
416
- 회원가입
417
- </div>
408
+ return (<Suspense>
409
+ <section className={layoutClassName}>
410
+ <PageWrapper>
411
+ <div className={'flex flex-row-reverse ' + '' + ' '}>
412
+ <LoginBreadCrumb breadList={['로그인', '간편 로그인', '회원가입']}/>
418
413
  </div>
419
- <div className={' title_small mt-[12px] text-[#000000] ' +
414
+ <div className={' mt-[45px] ' + ' max-lg:mt-[68px] ' + ' max-sm:mt-[44px] '}>
415
+ <div className={'flex flex-col'}>
416
+ <div className={' title_large text-[#000000] ' +
417
+ ' max-lg:title_large_tb ' +
418
+ ' max-sm:title_large_mo '}>
419
+ 회원가입
420
+ </div>
421
+ </div>
422
+ <div className={' title_small mt-[12px] text-[#000000] ' +
420
423
  ' max-lg:body_medium2 max-lg:mt-[12px] ' +
421
424
  ' max-sm:label_medium2 max-sm:mt-[8px] '}>
422
- 사건 매칭을 위해 대륜과 사건을 진행한 의뢰인의 성함을 정확하게 입력해 주시기 바랍니다.
425
+ 사건 매칭을 위해 대륜과 사건을 진행한 의뢰인의 성함을 정확하게 입력해 주시기 바랍니다.
426
+ </div>
423
427
  </div>
424
- </div>
425
- <div className={' mt-[116px] ' + ' max-lg:mt-[80px] ' + ' max-sm:mt-[36px] '}>
426
- <div className={' flex flex-row items-center justify-between ' +
428
+ <div className={' mt-[116px] ' + ' max-lg:mt-[80px] ' + ' max-sm:mt-[36px] '}>
429
+ <div className={' flex flex-row items-center justify-between ' +
427
430
  ' max-sm:flex-col max-sm:items-start max-sm:gap-[8px] '}>
428
- <p className={' body_large1 text-[#000000] ' + ' max-lg:body_large1_tb ' + ' max-sm:body_large1_mo '}>
429
- 기본 정보
430
- </p>
431
- <p className={' body_small2 flex ' + ' max-lg:body_small2_tb ' + ' max-sm:body_small2_mo '}>
432
- <span className={' text-[#AE0E36] '}>*&nbsp;</span>
433
- <span className={' text-[#000000] '}>
434
- 표시된 문항은 필수 항목이므로 반드시 입력해 주세요!
435
- </span>
436
- </p>
437
- </div>
438
- <div className={' flex flex-col '}>
439
- <div className={' mt-[52px] flex flex-row items-center gap-[24px] ' +
431
+ <p className={' body_large1 text-[#000000] ' +
432
+ ' max-lg:body_large1_tb ' +
433
+ ' max-sm:body_large1_mo '}>
434
+ 기본 정보
435
+ </p>
436
+ <p className={' body_small2 flex ' + ' max-lg:body_small2_tb ' + ' max-sm:body_small2_mo '}>
437
+ <span className={' text-[#AE0E36] '}>*&nbsp;</span>
438
+ <span className={' text-[#000000] '}>
439
+ 표시된 문항은 필수 항목이므로 반드시 입력해 주세요!
440
+ </span>
441
+ </p>
442
+ </div>
443
+ <div className={' flex flex-col '}>
444
+ <div className={' mt-[52px] flex flex-row items-center gap-[24px] ' +
440
445
  ' max-lg:mt-[43px] max-lg:gap-[30px] ' +
441
446
  ' max-sm:mt-[32px] max-sm:flex-col max-sm:items-start max-sm:gap-[8px] '}>
442
- <p className={' title_small w-[188px] flex-shrink-0 ' +
447
+ <p className={' title_small w-[188px] flex-shrink-0 ' +
443
448
  ' max-lg:title_small_tb max-lg:w-[156px] ' +
444
449
  ' max-sm:title_small_mo max-sm:w-full '}>
445
- 계정
446
- </p>
447
- <div className={`relative w-[712px] max-lg:w-full max-sm:w-full`}>
448
- <LInput isDisabled={true} value={userJwtObj.email || ''} className={'w-full'}/>
449
- <span className={' absolute right-[24px] top-[14px] h-[40px] w-[40px] ' +
450
+ 계정
451
+ </p>
452
+ <div className={`relative w-[712px] max-lg:w-full max-sm:w-full`}>
453
+ <LInput isDisabled={true} value={userJwtObj.email || ''} className={'w-full'}/>
454
+ <span className={' absolute right-[24px] top-[14px] h-[40px] w-[40px] ' +
450
455
  ' max-lg:right-[24px] max-lg:top-[14px] max-lg:h-[32px] max-lg:w-[32px] ' +
451
456
  ' max-sm:right-[16px] max-sm:top-[12px] max-sm:h-[24px] max-sm:w-[24px] '}>
452
- <Image src={`${imagePath}/common-login/${userJwtObj.provider}_2.svg`} alt={userJwtObj.provider} height={100} width={100} className={`h-full w-full`}/>
453
- </span>
457
+ <Image src={`${imagePath}/common-login/${userJwtObj.provider}_2.svg`} alt={userJwtObj.provider} height={100} width={100} className={`h-full w-full`}/>
458
+ </span>
459
+ </div>
454
460
  </div>
455
- </div>
456
- <div className={' mt-[24px] flex flex-row items-center gap-[24px] ' +
461
+ <div className={' mt-[24px] flex flex-row items-center gap-[24px] ' +
457
462
  ' max-lg:mt-[20px] max-lg:gap-[30px] ' +
458
463
  ' max-sm:mt-[32px] max-sm:flex-col max-sm:items-start max-sm:gap-[8px] '}>
459
- <p className={' title_small w-[188px] flex-shrink-0 ' +
464
+ <p className={' title_small w-[188px] flex-shrink-0 ' +
460
465
  ' max-lg:title_small_tb max-lg:w-[156px] ' +
461
466
  ' max-sm:title_small_mo max-sm:w-full '}>
462
- 이름<span className={'text-[#AE0E36]'}>*</span>
463
- </p>
464
- <LInput placeholder={'이름을 입력해 주세요'} handleInput={handleInput} className={'w-[712px] max-lg:w-full max-sm:w-full'} name={'name'} value={userObj.name}/>
465
- {userObj.name.length >= 1 && !userValidObj.nameValid && (<p className={'block text-[20px] text-[#AE0E36] max-5xl:hidden max-lg:hidden '}>
466
- *이름은 최소 2자 이상으로 입력해 주세요.
467
- </p>)}
468
- </div>
469
- {userObj.name.length >= 1 && !userValidObj.nameValid && (<div className={' mt-[12px] flex flex-row items-center gap-[24px] ' +
467
+ 이름<span className={'text-[#AE0E36]'}>*</span>
468
+ </p>
469
+ <LInput placeholder={'이름을 입력해 주세요'} handleInput={handleInput} className={'w-[712px] max-lg:w-full max-sm:w-full'} name={'name'} value={userObj.name}/>
470
+ {userObj.name.length >= 1 && !userValidObj.nameValid && (<p className={'block text-[20px] text-[#AE0E36] max-5xl:hidden max-lg:hidden '}>
471
+ *이름은 최소 2자 이상으로 입력해 주세요.
472
+ </p>)}
473
+ </div>
474
+ {userObj.name.length >= 1 && !userValidObj.nameValid && (<div className={' mt-[12px] flex flex-row items-center gap-[24px] ' +
470
475
  ' 5xl:hidden ' +
471
476
  ' max-lg:gap-[30px] '}>
472
- <p className={' w-[188px] flex-shrink-0 ' + ' max-lg:w-[156px] ' + ' max-sm:hidden '}></p>
473
- <p className={' body_medium2 text-[#AE0E36]' +
477
+ <p className={' w-[188px] flex-shrink-0 ' + ' max-lg:w-[156px] ' + ' max-sm:hidden '}></p>
478
+ <p className={' body_medium2 text-[#AE0E36]' +
474
479
  ' max-lg:body_small2_tb ' +
475
480
  ' max-sm:body_small2_mo '}>
476
- *이름은 최소 2자 이상으로 입력해 주세요.
477
- </p>
478
- </div>)}
479
- <div className={' mt-[24px] flex flex-row items-center gap-[24px] ' +
481
+ *이름은 최소 2자 이상으로 입력해 주세요.
482
+ </p>
483
+ </div>)}
484
+ <div className={' mt-[24px] flex flex-row items-center gap-[24px] ' +
480
485
  ' max-3xl:mt-[16px] ' +
481
486
  ' max-lg:gap-[30px] ' +
482
487
  ' max-sm:mt-[12px] '}>
483
- <p className={'w-[188px] flex-shrink-0 ' + ' max-lg:w-[156px] ' + ' max-sm:hidden '}></p>
484
- <div className={' relative flex w-[712px] flex-row gap-[12px] px-[20px] py-[12px] ' +
488
+ <p className={'w-[188px] flex-shrink-0 ' + ' max-lg:w-[156px] ' + ' max-sm:hidden '}></p>
489
+ <div className={' relative flex w-[712px] flex-row gap-[12px] px-[20px] py-[12px] ' +
485
490
  ' border-[1px] border-solid border-[#EDEDED] ' +
486
491
  ' max-lg:w-full ' +
487
492
  ' max-lg:w-[580px] ' +
488
493
  ' max-sm:px-[14px] max-sm:py-[12px] '}>
489
- <div className={' absolute left-0 top-0 h-full w-[4px] bg-[#AE0E36] '}></div>
490
- <p className={' h-[24.18px] w-[28px] ' +
494
+ <div className={' absolute left-0 top-0 h-full w-[4px] bg-[#AE0E36] '}></div>
495
+ <p className={' h-[24.18px] w-[28px] ' +
491
496
  ' max-lg:h-[22.46px] max-lg:w-[26px] ' +
492
497
  ' max-sm:h-[17.28px] max-sm:w-[20px] '}>
493
- <Image src={`${imagePath}/common-login/warning.svg`} alt={'warning'} height={100} width={100} className={`h-full w-full`}/>
494
- </p>
495
- <div className={' flex flex-col gap-[12px] ' + ' max-lg:gap-[8px] ' + ' max-sm:gap-[8px] '}>
496
- <p className={' body_small1 ' + ' max-lg:body_small1_tb ' + ' max-sm:body_small1_mo '}>
497
- 이름 입력 가이드
498
+ <Image src={`${imagePath}/common-login/warning.svg`} alt={'warning'} height={100} width={100} className={`h-full w-full`}/>
498
499
  </p>
499
- <div className={' body_small2 flex w-full flex-col text-black ' +
500
+ <div className={' flex flex-col gap-[12px] ' + ' max-lg:gap-[8px] ' + ' max-sm:gap-[8px] '}>
501
+ <p className={' body_small1 ' + ' max-lg:body_small1_tb ' + ' max-sm:body_small1_mo '}>
502
+ 이름 입력 가이드
503
+ </p>
504
+ <div className={' body_small2 flex w-full flex-col text-black ' +
500
505
  ' max-lg:body_small2_tb ' +
501
506
  ' max-sm:body_small2_mo '}>
502
- <p className={' flex items-center gap-[2px] '}>
503
- <span className={' h-full w-[12px] '}>1.</span>
504
- <span>내국인은 주민등록증에 기재된 한글로 입력해 주세요.</span>
505
- </p>
506
- <p className={' flex items-center gap-[2px] '}>
507
- <span className={' h-full w-[12px] '}>2.</span>
508
- <span>외국인은 외국인등록증에 기재된 영문명으로 입력해 주세요.</span>
509
- </p>
507
+ <p className={' flex items-center gap-[2px] '}>
508
+ <span className={' h-full w-[12px] '}>1.</span>
509
+ <span>내국인은 주민등록증에 기재된 한글로 입력해 주세요.</span>
510
+ </p>
511
+ <p className={' flex items-center gap-[2px] '}>
512
+ <span className={' h-full w-[12px] '}>2.</span>
513
+ <span>외국인은 외국인등록증에 기재된 영문명으로 입력해 주세요.</span>
514
+ </p>
515
+ </div>
510
516
  </div>
511
517
  </div>
512
518
  </div>
513
- </div>
514
- <div className={' mt-[24px] flex flex-row items-center gap-[24px] ' +
519
+ <div className={' mt-[24px] flex flex-row items-center gap-[24px] ' +
515
520
  ' max-lg:mt-[23px] ' +
516
521
  ' max-sm:mt-[32px] max-sm:flex-col max-sm:gap-[8px] '}>
517
- <p className={' title_small w-[188px] flex-shrink-0 ' +
522
+ <p className={' title_small w-[188px] flex-shrink-0 ' +
518
523
  ' max-lg:title_small_tb max-lg:w-[156px] ' +
519
524
  ' max-sm:body_small2_mo max-sm:w-full '}>
520
- 휴대폰 번호<span className={'text-[#AE0E36]'}>*</span>
521
- </p>
522
- <LInput placeholder={'휴대폰 번호를 입력해 주세요'} handleInput={handleInput} name={'phoneNumber'} maxLength={11} isDisabled={userValidObj.codeValid} value={userObj.phoneNumber} className={'w-[712px] max-w-[712px] max-lg:w-full '}/>
523
- {/* 인증 완료 */}
524
- {userValidObj.codeValid ? (<LButton handleButton={() => {
525
+ 휴대폰 번호<span className={'text-[#AE0E36]'}>*</span>
526
+ </p>
527
+ <LInput placeholder={'휴대폰 번호를 입력해 주세요'} handleInput={handleInput} name={'phoneNumber'} maxLength={11} isDisabled={userValidObj.codeValid} value={userObj.phoneNumber} className={'w-[712px] max-w-[712px] max-lg:w-full '}/>
528
+ {/* 인증 완료 */}
529
+ {userValidObj.codeValid ? (<LButton handleButton={() => {
525
530
  // 폰 관련 초기화
526
531
  setUserValidObj(prev => (Object.assign(Object.assign({}, prev), { codeValid: false, phoneSendValid: false, phoneNumberValid: false })));
527
532
  setUserObj(prev => (Object.assign(Object.assign({}, prev), { code: '', phoneNumber: '' })));
@@ -532,56 +537,58 @@ const Sign = ({ layoutClassName = `mt-[47px] py-[128px] max-lg:mt-[40px] max-lg:
532
537
  <LButton handleButton={() => __awaiter(void 0, void 0, void 0, function* () {
533
538
  yield send(userObj.phoneNumber);
534
539
  })} className={` w-[196px] max-lg:w-[172px] max-lg:text-[20px] max-sm:w-full `} title={`${timeLeft > 180 ? `재발송(${timeLeft - 180}초)` : '재발송'}`} isDisabled={timeLeft > 180}/>)}
535
- </div>
536
- {/* 인증번호 전송이 아직 안 된 경우만 */}
537
- {userValidObj.codeValid || !userValidObj.phoneSendValid ? (<div className={' mt-[16px] flex flex-shrink-0 flex-row items-center gap-[24px] ' +
540
+ </div>
541
+ {/* 인증번호 전송이 아직 안 된 경우만 */}
542
+ {userValidObj.codeValid || !userValidObj.phoneSendValid ? (<div className={' mt-[16px] flex flex-shrink-0 flex-row items-center gap-[24px] ' +
538
543
  ' max-lg:mt-[12px] max-lg:gap-[30px] ' +
539
544
  ' max-sm:mt-[8px] max-sm:gap-[8px] '}>
540
- <p className={'w-[188px] ' + ' max-lg:w-[156px] ' + ' max-sm:hidden '}></p>
541
- <p className={' body_small2 text-[#000000] ' +
545
+ <p className={'w-[188px] ' + ' max-lg:w-[156px] ' + ' max-sm:hidden '}></p>
546
+ <p className={' body_small2 text-[#000000] ' +
542
547
  ' max-lg:body_small2_tb ' +
543
548
  ' max-sm:body_small2_mo '}>
544
- ‘-’없이 숫자만 입력해 주세요.
545
- </p>
546
- </div>) : (<div className={' mt-[16px] flex w-full flex-row items-center gap-[24px] ' +
549
+ ‘-’없이 숫자만 입력해 주세요.
550
+ </p>
551
+ </div>) : (<div className={' mt-[16px] flex w-full flex-row items-center gap-[24px] ' +
547
552
  ' max-sm:mt-[8px] max-sm:flex-col max-sm:gap-[8px] '}>
548
- <p className={'w-[188px] flex-shrink-0 ' + 'max-lg:w-[156px]' + ' max-sm:hidden '}></p>
549
- <div className={'relative w-[712px] max-w-[712px] max-lg:w-full max-sm:w-full'}>
550
- {/*w-[712px] max-w-[712px] max-lg:w-full*/}
551
- <LInput handleInput={handleInput} name={'code'} value={userObj.code} maxLength={6} placeholder={''} className={'w-full'}/>
552
- <span className={' body_small2 absolute right-[24px] top-[22px] text-[#000000] ' +
553
+ <p className={'w-[188px] flex-shrink-0 ' + 'max-lg:w-[156px]' + ' max-sm:hidden '}></p>
554
+ <div className={'relative w-[712px] max-w-[712px] max-lg:w-full max-sm:w-full'}>
555
+ {/*w-[712px] max-w-[712px] max-lg:w-full*/}
556
+ <LInput handleInput={handleInput} name={'code'} value={userObj.code} maxLength={6} placeholder={''} className={'w-full'}/>
557
+ <span className={' body_small2 absolute right-[24px] top-[22px] text-[#000000] ' +
553
558
  ' max-lg:body_small2_tb max-lg:right-[24px] max-lg:top-[19px] ' +
554
559
  ' max-sm:body_small2_mo max-sm:right-[16px] max-sm:top-[15px] '}>
555
- {formatTime(timeLeft)}
556
- </span>
557
- </div>
558
- <LButton handleButton={() => __awaiter(void 0, void 0, void 0, function* () {
560
+ {formatTime(timeLeft)}
561
+ </span>
562
+ </div>
563
+ <LButton handleButton={() => __awaiter(void 0, void 0, void 0, function* () {
559
564
  yield verify(userObj.code);
560
565
  })} title={`인증번호 확인`} className={` w-[196px] max-lg:w-[172px] max-lg:text-[20px] max-sm:w-full `} isDisabled={userObj.code.length < 1}/>
561
- </div>)}
562
- </div>
566
+ </div>)}
567
+ </div>
563
568
 
564
- <div className={' mt-[83px] flex flex-col ' + ' max-lg:mt-[60px] '}>
565
- <div className={'flex flex-col gap-[37px]' + ' max-lg:gap-[32px] ' + ' max-sm:gap-[30px] '}>
566
- {requiredTermItems.map((item, index) => {
569
+ <div className={' mt-[83px] flex flex-col ' + ' max-lg:mt-[60px] '}>
570
+ <div className={'flex flex-col gap-[37px]' + ' max-lg:gap-[32px] ' + ' max-sm:gap-[30px] '}>
571
+ {requiredTermItems.map((item, index) => {
567
572
  var _a;
568
573
  return (<RequiredCheckBox isAll={(_a = item.isAll) !== null && _a !== void 0 ? _a : false} checked={item.checked} index={index} name={item.name} key={index} title={item.title} isContent={item.isContent} setModal={() => {
569
574
  setIsTermModal(true);
570
575
  }} handleButton={handleCheckBox}/>);
571
576
  })}
577
+ </div>
572
578
  </div>
573
- </div>
574
- <div className={' mt-[37px] flex flex-col gap-[40px] ' +
579
+ <div className={' mt-[37px] flex flex-col gap-[40px] ' +
575
580
  ' max-lg:mt-[32px] max-lg:gap-[32px] ' +
576
581
  ' max-sm:mt-[30px] max-sm:gap-[30px] '}>
577
- {optionalTermItems.map((item, index) => {
582
+ {optionalTermItems.map((item, index) => {
578
583
  return (<OptionalCheckBox key={`option-${index}`} name={item.name} checked={item.checked} title={item.title} isContent={true} setModal={() => {
579
584
  setIsTermModal(true);
580
585
  }} cautionTitle={item.cautionTitle} parentIndex={index} optionalItemList={item.alarmTypeList} handleButton={handleCheckBox}/>);
581
586
  })}
582
- </div>
583
- <div className={' mt-[80px] flex items-center justify-center ' + ' max-lg:mt-[72px] ' + ' max-sm:mt-[40px] '}>
584
- <button type={'button'} onClick={() => __awaiter(void 0, void 0, void 0, function* () {
587
+ </div>
588
+ <div className={' mt-[80px] flex items-center justify-center ' +
589
+ ' max-lg:mt-[72px] ' +
590
+ ' max-sm:mt-[40px] '}>
591
+ <button type={'button'} onClick={() => __awaiter(void 0, void 0, void 0, function* () {
585
592
  yield completeUser({
586
593
  completeBodyData: {
587
594
  name: userObj.name,
@@ -601,15 +608,16 @@ const Sign = ({ layoutClassName = `mt-[47px] py-[128px] max-lg:mt-[40px] max-lg:
601
608
  ' title_small h-[72px] w-[740px] rounded-[36px] ' +
602
609
  ' max-lg:body_medium2 max-lg:h-[60px] max-lg:w-[620px] ' +
603
610
  ' max-sm:body_large2_mo max-sm:h-[48px] max-sm:w-full '}>
604
- 회원가입
605
- </button>
611
+ 회원가입
612
+ </button>
613
+ </div>
606
614
  </div>
607
- </div>
608
- </PageWrapper>
609
- <ConfirmModal isOpen={isModal} handleClick={modalHandleClose} onClose={modalHandleClose} title={modalObj.title} subTitle={modalObj.subTitle}/>
610
- <TermModal isOpen={isTermModal} onClose={() => {
615
+ </PageWrapper>
616
+ <ConfirmModal isOpen={isModal} handleClick={modalHandleClose} onClose={modalHandleClose} title={modalObj.title} subTitle={modalObj.subTitle}/>
617
+ <TermModal isOpen={isTermModal} onClose={() => {
611
618
  setIsTermModal(false);
612
619
  }} title={'서비스 이용약관 (필수)'} content={''}/>
613
- </section>);
620
+ </section>
621
+ </Suspense>);
614
622
  };
615
623
  export default Sign;