@daeryun/dr_components 1.2.36 → 1.2.38

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.
@@ -235,7 +235,7 @@ const NewFooter = ({ groupsData, tel, logo, aceUrl, isBrochureBtn, isLogoLong, i
235
235
  </p>
236
236
  <p className={'break-keep xs:pl-[11px] xs:text-center'}>
237
237
  <span className="font-[800]">광고책임변호사</span>{' '}
238
- <span className={'inline-block'}>최이선, 손수연</span>
238
+ <span className={'inline-block'}>최이선</span>
239
239
  </p>
240
240
  </div>
241
241
  <p className={'mb-[54px] flex items-center text-[#666666] max-xl:justify-center max-md:text-[14px] max-xs:mb-[33px] max-xs:justify-start max-xs:text-[16px] max-2xs:mb-[18px] max-2xs:text-[14px] '}>
@@ -385,7 +385,7 @@ const NewFooter = ({
385
385
  </p>
386
386
  <p className={'break-keep xs:pl-[11px] xs:text-center'}>
387
387
  <span className="font-[800]">광고책임변호사</span>{' '}
388
- <span className={'inline-block'}>최이선, 손수연</span>
388
+ <span className={'inline-block'}>최이선</span>
389
389
  </p>
390
390
  </div>
391
391
  <p
@@ -235,7 +235,7 @@ const NewFooter = ({ groupsData, tel, logo, aceUrl, isBrochureBtn, isLogoLong, i
235
235
  </p>
236
236
  <p className={'break-keep xs:pl-[11px] xs:text-center'}>
237
237
  <span className="font-[800]">광고책임변호사</span>{' '}
238
- <span className={'inline-block'}>최이선, 손수연</span>
238
+ <span className={'inline-block'}>최이선</span>
239
239
  </p>
240
240
  </div>
241
241
  <p className={'mb-[54px] flex items-center text-[#666666] max-xl:justify-center max-md:text-[14px] max-xs:mb-[33px] max-xs:justify-start max-xs:text-[16px] max-2xs:mb-[18px] max-2xs:text-[14px] '}>
@@ -368,7 +368,7 @@ const NewFooter = ({
368
368
  </p>
369
369
  <p className={'break-keep xs:pl-[11px] xs:text-center'}>
370
370
  <span className="font-[800]">광고책임변호사</span>{' '}
371
- <span className={'inline-block'}>최이선, 손수연</span>
371
+ <span className={'inline-block'}>최이선</span>
372
372
  </p>
373
373
  </div>
374
374
  <p
@@ -250,7 +250,7 @@ const NewFooter = ({ groupsData, tel, logo, aceUrl, isBrochureBtn, isLogoLong, i
250
250
  </p>
251
251
  {brochureType !== 'guard' ? (<p className={'break-keep xs:pl-[11px] xs:text-center'}>
252
252
  <span className="font-[800]">광고책임변호사</span>{' '}
253
- <span className={'inline-block'}>최이선, 손수연</span>
253
+ <span className={'inline-block'}>최이선</span>
254
254
  </p>) : (<></>)}
255
255
  </div>
256
256
  <p className={'mb-[54px] flex items-center text-[#666666] max-xl:justify-center max-md:text-[14px] max-xs:mb-[33px] max-xs:justify-start max-xs:text-[16px] max-2xs:mb-[18px] max-2xs:text-[14px] '}>
@@ -396,7 +396,7 @@ const NewFooter = ({
396
396
  {brochureType !== 'guard' ? (
397
397
  <p className={'break-keep xs:pl-[11px] xs:text-center'}>
398
398
  <span className="font-[800]">광고책임변호사</span>{' '}
399
- <span className={'inline-block'}>최이선, 손수연</span>
399
+ <span className={'inline-block'}>최이선</span>
400
400
  </p>
401
401
  ) : (
402
402
  <></>
@@ -15,7 +15,6 @@ import IconTriangle from '../../../asset/images/choice/choice_tri.webp';
15
15
  import IconStep02 from '../../../asset/images/choice/choice_stepIcon_02.webp';
16
16
  import IconStep03 from '../../../asset/images/choice/choice_stepIcon_03.webp';
17
17
  import IconStep04 from '../../../asset/images/choice/choice_stepIcon_04.webp';
18
- import BgConsult from '../../../asset/images/consult/consult_bg.webp';
19
18
  import PersonalInfoAgreementModal from '../../PersonalInfoAgreementModal/PersonalInfoAgreementModal';
20
19
  const Index = ({ officesData, fieldsData, ace_Click }) => {
21
20
  const consultType = 'general';
@@ -121,7 +120,7 @@ const Index = ({ officesData, fieldsData, ace_Click }) => {
121
120
  //1024px
122
121
  'max-lg:gap-[30px] max-lg:p-[10px] ' +
123
122
  //768px
124
- 'max-md:mb-[20px] max-md:flex-col max-md:items-start max-md:gap-[15px] max-md:p-0 ' +
123
+ 'max-md:mb-[20px] max-md:flex-row-reverse max-md:items-end max-md:justify-between max-md:gap-[15px] max-md:p-0 ' +
125
124
  //480px
126
125
  'max-xs:gap-[10px] max-xs:pt-[5px]'}>
127
126
  <Image src={NewChoiceConsult} alt={'consult icon'} width={207} height={195} className={'h-auto w-[90px] object-contain object-top ' +
@@ -168,7 +167,202 @@ const Index = ({ officesData, fieldsData, ace_Click }) => {
168
167
  </p>
169
168
  </div>
170
169
  </div>
170
+ {/*상담입력폼*/}
171
+ <span className={'my-[100px] block w-full max-sm:my-[70px] max-xs:my-10'}>
172
+ <div className={'flex w-full gap-[45px] ' +
173
+ //1024px
174
+ 'max-lg:flex-col ' +
175
+ //480px
176
+ 'max-xs:gap-[25px]'}>
177
+ <div className={'flex flex-1 flex-col gap-[30px] ' +
178
+ //480px
179
+ 'max-xs:gap-[25px]'}>
180
+ {/*-- 이름 --*/}
181
+ <span className={'flex h-auto items-center justify-between ' +
182
+ //480px
183
+ 'max-xs:flex-col max-xs:items-start max-xs:gap-[10px]'}>
184
+ <p className={'w-[100px] text-[20px] font-[600] ' +
185
+ //1024px
186
+ 'max-lg:w-[90px] max-lg:text-[18px]'}>
187
+ 이름
188
+ </p>
189
+ <input name="cc_name" value={consult.cc_name} id="nameInput" placeholder={'입력해주세요'} spellCheck={false} className={'h-[60px] flex-1 border-[1px] border-solid border-[#D0D0D0] px-[30px] py-[18px] text-[18px] leading-[18px] placeholder-[#848484] transition-[border] ' +
190
+ 'focus-visible:border-[#285FA7] focus-visible:outline-none ' +
191
+ //1024px
192
+ 'max-lg:h-[55px] max-lg:text-[16px] max-lg:leading-[16px] ' +
193
+ //480px
194
+ 'max-xs:w-full max-xs:px-[20px] max-xs:py-[15px]'} onChange={e => {
195
+ setConsult(Object.assign(Object.assign({}, consult), { cc_name: e.target.value }));
196
+ }}/>
197
+ </span>
198
+ {/*-- 연락처 --*/}
199
+ <span className={'flex h-auto items-center justify-between ' +
200
+ //480px
201
+ 'max-xs:flex-col max-xs:items-start max-xs:gap-[10px]'}>
202
+ <p className={'w-[100px] text-[20px] font-[600] ' +
203
+ //1024px
204
+ 'max-lg:w-[90px] max-lg:text-[18px]'}>
205
+ 연락처
206
+ </p>
171
207
 
208
+ <input name="cc_tel" value={consult.cc_tel} id="telInput" placeholder={'- 없이 입력해주세요'} spellCheck={false} className={'h-[60px] flex-1 border-[1px] border-solid border-[#D0D0D0] px-[30px] py-[18px] text-[18px] leading-[18px] placeholder-[#848484] transition-[border] ' +
209
+ 'focus-visible:border-[#285FA7] focus-visible:outline-none ' +
210
+ //1024px
211
+ 'max-lg:h-[55px] max-lg:text-[16px] max-lg:leading-[16px] ' +
212
+ //480px
213
+ 'max-xs:w-full max-xs:px-[20px] max-xs:py-[15px]'} onChange={e => {
214
+ setConsult(Object.assign(Object.assign({}, consult), { cc_tel: formatPhoneNumber(e.target.value) }));
215
+ }}/>
216
+ </span>
217
+ {/*-- 사무소 --*/}
218
+ <span className={'flex h-auto items-center justify-between ' +
219
+ //480px
220
+ 'max-xs:flex-col max-xs:items-start max-xs:gap-[10px]'}>
221
+ <p className={'w-[100px] text-[20px] font-[600] ' +
222
+ //1024px
223
+ 'max-lg:w-[90px] max-lg:text-[18px]'}>
224
+ 사무소
225
+ </p>
226
+ <SelectBox id={'사무소선택'} value={consult.office_code} onSelect={(codename, code) => {
227
+ setConsult(Object.assign(Object.assign({}, consult), { office_code: code }));
228
+ }} items={officesData.map(item => ({
229
+ code: item.code,
230
+ codename: item.code_name || ''
231
+ }))} icon={<Image src={process.env.NEXT_PUBLIC_S3_URL +
232
+ '/consult/main/section6/icon_arrow_gray.webp'} alt={'select icon'} width={28} height={15} className={'absolute right-[24px] top-[50%] w-[15px] translate-y-[-50%] max-xs:w-[11px]'}/>} style={'h-[60px] w-full px-[30px] py-[17px] border-solid border-[1px] border-[#D0D0D0] cursor-pointer transition-[border] text-[18px] ' +
233
+ 'focus-visible:outline-none focus-visible:border-[#285FA7] ' +
234
+ //1024px
235
+ 'max-lg:text-[16px] max-lg:leading-[16px] max-lg:h-[55px] ' +
236
+ //480px
237
+ 'max-xs:w-full max-xs:px-[20px] max-xs:py-[15px] max-xs:h-[52px] '} parentStyle={'flex-1 ' + 'max-sm:w-full'} placeholderOptions={'사무소를 선택해주세요'}/>
238
+ </span>
239
+ {/*-- 사건분야 --*/}
240
+ {/*<span*/}
241
+ {/* className={*/}
242
+ {/* 'flex h-auto items-center justify-between ' +*/}
243
+ {/* //480px*/}
244
+ {/* 'max-xs:flex-col max-xs:items-start max-xs:gap-[10px]'*/}
245
+ {/* }*/}
246
+ {/*>*/}
247
+ {/* <p*/}
248
+ {/* className={*/}
249
+ {/* 'w-[100px] text-[20px] font-[600] ' +*/}
250
+ {/* //1024px*/}
251
+ {/* 'max-lg:w-[90px] max-lg:text-[18px]'*/}
252
+ {/* }*/}
253
+ {/* >*/}
254
+ {/* 사건분야*/}
255
+ {/* </p>*/}
256
+ {/* <SelectBox*/}
257
+ {/* id={'사건분야 선택'}*/}
258
+ {/* value={consult.law_type_code}*/}
259
+ {/* onSelect={(codename, code) => {*/}
260
+ {/* setConsult({ ...consult, law_type_code: code });*/}
261
+ {/* }}*/}
262
+ {/* items={fieldsData.map(item => ({*/}
263
+ {/* code: item.code,*/}
264
+ {/* codename: item.code_name || ''*/}
265
+ {/* }))}*/}
266
+ {/* icon={*/}
267
+ {/* <Image*/}
268
+ {/* src={*/}
269
+ {/* process.env.NEXT_PUBLIC_S3_URL +*/}
270
+ {/* '/consult/main/section6/icon_arrow_gray.webp'*/}
271
+ {/* }*/}
272
+ {/* alt={'select icon'}*/}
273
+ {/* width={28}*/}
274
+ {/* height={15}*/}
275
+ {/* className={*/}
276
+ {/* 'absolute right-[24px] top-[50%] w-[15px] translate-y-[-50%] max-xs:w-[11px]'*/}
277
+ {/* }*/}
278
+ {/* />*/}
279
+ {/* }*/}
280
+ {/* style={*/}
281
+ {/* 'h-[60px] w-full px-[30px] py-[18px] border-solid border-[1px] border-[#D0D0D0] cursor-pointer transition-[border] text-[18px] ' +*/}
282
+ {/* 'focus-visible:outline-none focus-visible:border-[#285FA7] ' +*/}
283
+ {/* //1024px*/}
284
+ {/* 'max-lg:text-[16px] max-lg:leading-[16px] max-lg:h-[55px] ' +*/}
285
+ {/* //480px*/}
286
+ {/* 'max-xs:w-full max-xs:px-[20px] max-xs:py-[15px] max-xs:h-[52px] '*/}
287
+ {/* }*/}
288
+ {/* parentStyle={'flex-1 ' + 'max-sm:w-full'}*/}
289
+ {/* placeholderOptions={'사건분야를 선택해주세요'}*/}
290
+ {/* />*/}
291
+ {/*</span>*/}
292
+ </div>
293
+ <div className={'flex-1'}>
294
+ {/*-- 문의내용 --*/}
295
+ <span className={'flex h-full items-start justify-between ' +
296
+ //1024px
297
+ 'max-lg:h-[200px] ' +
298
+ //480px
299
+ 'max-xs:flex-col max-xs:items-start max-xs:gap-[10px]'}>
300
+ <p className={'w-[100px] text-[20px] font-[600] leading-[60px] ' +
301
+ //1024px
302
+ 'max-lg:w-[90px] max-lg:text-[18px] max-lg:leading-[55px] ' +
303
+ //480px
304
+ 'max-xs:text-lg'}>
305
+ 문의내용
306
+ </p>
307
+ <textarea name="contents" value={consult.contents} id="contentsInput" placeholder={'내용을 입력해주세요'} spellCheck={false} maxLength={700} className={'h-full flex-1 resize-none border-[1px] border-solid border-[#D0D0D0] px-[30px] py-[20px] text-[18px] leading-[18px] placeholder-[#848484] transition-[border] ' +
308
+ 'focus-visible:border-[#285FA7] focus-visible:outline-none ' +
309
+ //1024px
310
+ 'max-lg:text-[16px] max-lg:leading-[24px] ' +
311
+ //480px
312
+ 'max-xs:h-[170px] max-xs:w-full max-xs:px-[20px] max-xs:py-[15px] '} onChange={e => {
313
+ setConsult(Object.assign(Object.assign({}, consult), { contents: e.target.value }));
314
+ }}/>
315
+ </span>
316
+ </div>
317
+ </div>
318
+ {/*-- 전문보기 버튼 --*/}
319
+ <span className={'mt-5 flex justify-end max-md:mt-3'}>
320
+ <button className={'flex h-[28px] w-[84px] items-center justify-center border-[1px] border-solid border-[#ddd] bg-[#eee] text-[15px] leading-none text-black max-3xl:h-[22px] max-3xl:w-[70px] max-md:h-[24px] max-md:w-[75px] '} onClick={() => {
321
+ setModalOn(true);
322
+ }}>
323
+ 전문보기
324
+ </button>
325
+ </span>
326
+ <span className={'mx-auto mt-[40px] block max-w-[570px] max-xs:max-w-[240px]'}>
327
+ {/*-- 동의 체크박스 --*/}
328
+ <span className={'mx-auto mb-[40px] flex w-fit flex-col gap-2'}>
329
+ <label className={'block w-full cursor-pointer text-[16px] leading-[16px] text-[#5F5F5F] ' +
330
+ 'flex items-center gap-[10px] ' +
331
+ 'max-sm:justify-center '}>
332
+ <input type="checkbox" name="consultCheck" id="consultCk" className={'h-[17px] w-[17px] shrink-0 cursor-pointer outline-none ' +
333
+ 'after:pointer-events-none after:block after:h-full after:w-full after:border-[1px] after:border-solid after:border-[#B4B4B4] after:bg-white after:font-[800] after:content-[""] ' +
334
+ 'checked:after:border-[#285FA7] checked:after:bg-[#285FA7] checked:after:text-center checked:after:text-[17px] checked:after:leading-[15px] checked:after:text-white checked:after:content-["✓"] '} onChange={e => {
335
+ setIsCheck(!isCheck);
336
+ }} checked={isCheck} onKeyDown={e => {
337
+ if (e.key === 'Enter') {
338
+ setIsCheck(!isCheck);
339
+ }
340
+ }}/>
341
+ 개인정보수집에 동의합니다.
342
+ </label>
343
+ <label className={'block w-full cursor-pointer text-[16px] leading-[16px] text-[#5F5F5F] ' +
344
+ 'flex items-center gap-[10px] '}>
345
+ <input type="checkbox" name="isOver14Check" id="isOver14Check" className={'h-[17px] w-[17px] cursor-pointer outline-none ' +
346
+ 'after:pointer-events-none after:block after:h-full after:w-full after:border-[1px] after:border-solid after:border-[#B4B4B4] after:bg-white after:font-[800] after:content-[""] ' +
347
+ 'checked:after:border-[#285FA7] checked:after:bg-[#285FA7] checked:after:text-center checked:after:text-[17px] checked:after:leading-[15px] checked:after:text-white checked:after:content-["✓"] '} onChange={e => {
348
+ setIsOver14(!isOver14);
349
+ }} checked={isOver14} onKeyDown={e => {
350
+ if (e.key === 'Enter') {
351
+ setIsOver14(!isOver14);
352
+ }
353
+ }}/>
354
+ 만 14세 이상입니다.
355
+ </label>
356
+ </span>
357
+ {/*-- 제출 submit 버튼 --*/}
358
+ <button type="button" id={'submitBtn'} className={'h-[70px] w-full cursor-pointer bg-[#285FA7] text-xl tracking-[-0.5px] text-white ' +
359
+ 'max-xs:h-[50px] max-xs:text-base'} onClick={() => {
360
+ consultProcess();
361
+ }} disabled={isLoading}>
362
+ 상담신청서 제출
363
+ </button>
364
+ </span>
365
+ </span>
172
366
  <span className={'mt-[50px] flex h-[320px] w-full items-center justify-between gap-[10px] ' +
173
367
  //1500px
174
368
  'max-3xl:h-[300px] ' +
@@ -340,30 +534,42 @@ const Index = ({ officesData, fieldsData, ace_Click }) => {
340
534
  </div>
341
535
  </span>
342
536
 
343
- <div className={'relative mb-[50px] mt-[100px] flex h-[220px] w-full flex-col items-center justify-center gap-[10px] text-[#fff] ' +
344
- //480px
345
- 'max-xs:mb-[25px] max-xs:h-[160px] max-xs:gap-[5px] '}>
346
- <Image src={BgConsult} alt={'consult_bg'} fill className={'absolute -z-10 object-fill'}/>
347
- <p className={'text-lg ' +
348
- //1024px
349
- 'max-lg:text-base '}>
350
- 법률상담예약접수
351
- </p>
352
- <h3 className={'text-center text-[34px] font-[600] leading-[44px] tracking-[-0.85px] ' +
353
- //1500px
354
- 'max-3xl:text-[30px] max-3xl:leading-[40px] ' +
355
- //1024px
356
- 'max-lg:text-[26px] max-lg:leading-[34px] ' +
357
- //768px
358
- 'max-md:text-[24px] max-md:leading-[32px] ' +
359
- //480px
360
- 'max-xs:text-[18px] max-xs:leading-[26px] ' +
361
- //325px
362
- 'max-3xs:text-[18px]'}>
363
- 법률고민이 있다면 가까운 사무소에서 <br />
364
- {process.env.NEXT_PUBLIC_KEYWORD}전문변호사와 상담해보세요
365
- </h3>
366
- </div>
537
+ {/*<div*/}
538
+ {/* className={*/}
539
+ {/* 'relative mb-[50px] mt-[100px] flex h-[220px] w-full flex-col items-center justify-center gap-[10px] text-[#fff] ' +*/}
540
+ {/* //480px*/}
541
+ {/* 'max-xs:mb-[25px] max-xs:h-[160px] max-xs:gap-[5px] '*/}
542
+ {/* }*/}
543
+ {/*>*/}
544
+ {/* <Image src={BgConsult} alt={'consult_bg'} fill className={'absolute -z-10 object-fill'} />*/}
545
+ {/* <p*/}
546
+ {/* className={*/}
547
+ {/* 'text-lg ' +*/}
548
+ {/* //1024px*/}
549
+ {/* 'max-lg:text-base '*/}
550
+ {/* }*/}
551
+ {/* >*/}
552
+ {/* 법률상담예약접수*/}
553
+ {/* </p>*/}
554
+ {/* <h3*/}
555
+ {/* className={*/}
556
+ {/* 'text-center text-[34px] font-[600] leading-[44px] tracking-[-0.85px] ' +*/}
557
+ {/* //1500px*/}
558
+ {/* 'max-3xl:text-[30px] max-3xl:leading-[40px] ' +*/}
559
+ {/* //1024px*/}
560
+ {/* 'max-lg:text-[26px] max-lg:leading-[34px] ' +*/}
561
+ {/* //768px*/}
562
+ {/* 'max-md:text-[24px] max-md:leading-[32px] ' +*/}
563
+ {/* //480px*/}
564
+ {/* 'max-xs:text-[18px] max-xs:leading-[26px] ' +*/}
565
+ {/* //325px*/}
566
+ {/* 'max-3xs:text-[18px]'*/}
567
+ {/* }*/}
568
+ {/* >*/}
569
+ {/* 법률고민이 있다면 가까운 사무소에서 <br />*/}
570
+ {/* {process.env.NEXT_PUBLIC_KEYWORD}전문변호사와 상담해보세요*/}
571
+ {/* </h3>*/}
572
+ {/*</div>*/}
367
573
 
368
574
  <div className={'relative mb-[60px] mt-[40px] h-auto w-[100%] '}>
369
575
  <span className={'block h-[1px] w-full bg-[#CECECE] ' +
@@ -401,202 +607,6 @@ const Index = ({ officesData, fieldsData, ace_Click }) => {
401
607
  'after:absolute after:bottom-0 after:right-0 after:block after:h-[10px] after:w-[10px] after:translate-y-[50%] after:rounded-full after:bg-[#285FA2] after:content-[""] ' +
402
608
  'before:absolute before:bottom-0 before:left-0 before:block before:h-[10px] before:w-[10px] before:translate-y-[50%] before:rounded-full before:bg-[#CECECE] before:content-[""]'}></span>
403
609
  </div>
404
- {/*상담입력폼*/}
405
- <span className={'mb-[200px] block w-full max-xs:mb-[70px]'}>
406
- <div className={'flex w-full gap-[45px] ' +
407
- //1024px
408
- 'max-lg:flex-col ' +
409
- //480px
410
- 'max-xs:gap-[25px]'}>
411
- <div className={'flex flex-1 flex-col gap-[30px] ' +
412
- //480px
413
- 'max-xs:gap-[25px]'}>
414
- {/*-- 이름 --*/}
415
- <span className={'flex h-auto items-center justify-between ' +
416
- //480px
417
- 'max-xs:flex-col max-xs:items-start max-xs:gap-[10px]'}>
418
- <p className={'w-[100px] text-[20px] font-[600] ' +
419
- //1024px
420
- 'max-lg:w-[90px] max-lg:text-[18px]'}>
421
- 이름
422
- </p>
423
- <input name="cc_name" value={consult.cc_name} id="nameInput" placeholder={'입력해주세요'} spellCheck={false} className={'h-[60px] flex-1 border-[1px] border-solid border-[#D0D0D0] px-[30px] py-[18px] text-[18px] leading-[18px] placeholder-[#848484] transition-[border] ' +
424
- 'focus-visible:border-[#285FA7] focus-visible:outline-none ' +
425
- //1024px
426
- 'max-lg:h-[55px] max-lg:text-[16px] max-lg:leading-[16px] ' +
427
- //480px
428
- 'max-xs:w-full max-xs:px-[20px] max-xs:py-[15px]'} onChange={e => {
429
- setConsult(Object.assign(Object.assign({}, consult), { cc_name: e.target.value }));
430
- }}/>
431
- </span>
432
- {/*-- 연락처 --*/}
433
- <span className={'flex h-auto items-center justify-between ' +
434
- //480px
435
- 'max-xs:flex-col max-xs:items-start max-xs:gap-[10px]'}>
436
- <p className={'w-[100px] text-[20px] font-[600] ' +
437
- //1024px
438
- 'max-lg:w-[90px] max-lg:text-[18px]'}>
439
- 연락처
440
- </p>
441
-
442
- <input name="cc_tel" value={consult.cc_tel} id="telInput" placeholder={'- 없이 입력해주세요'} spellCheck={false} className={'h-[60px] flex-1 border-[1px] border-solid border-[#D0D0D0] px-[30px] py-[18px] text-[18px] leading-[18px] placeholder-[#848484] transition-[border] ' +
443
- 'focus-visible:border-[#285FA7] focus-visible:outline-none ' +
444
- //1024px
445
- 'max-lg:h-[55px] max-lg:text-[16px] max-lg:leading-[16px] ' +
446
- //480px
447
- 'max-xs:w-full max-xs:px-[20px] max-xs:py-[15px]'} onChange={e => {
448
- setConsult(Object.assign(Object.assign({}, consult), { cc_tel: formatPhoneNumber(e.target.value) }));
449
- }}/>
450
- </span>
451
- {/*-- 사무소 --*/}
452
- <span className={'flex h-auto items-center justify-between ' +
453
- //480px
454
- 'max-xs:flex-col max-xs:items-start max-xs:gap-[10px]'}>
455
- <p className={'w-[100px] text-[20px] font-[600] ' +
456
- //1024px
457
- 'max-lg:w-[90px] max-lg:text-[18px]'}>
458
- 사무소
459
- </p>
460
- <SelectBox id={'사무소선택'} value={consult.office_code} onSelect={(codename, code) => {
461
- setConsult(Object.assign(Object.assign({}, consult), { office_code: code }));
462
- }} items={officesData.map(item => ({
463
- code: item.code,
464
- codename: item.code_name || ''
465
- }))} icon={<Image src={process.env.NEXT_PUBLIC_S3_URL +
466
- '/consult/main/section6/icon_arrow_gray.webp'} alt={'select icon'} width={28} height={15} className={'absolute right-[24px] top-[50%] w-[15px] translate-y-[-50%] max-xs:w-[11px]'}/>} style={'h-[60px] w-full px-[30px] py-[17px] border-solid border-[1px] border-[#D0D0D0] cursor-pointer transition-[border] text-[18px] ' +
467
- 'focus-visible:outline-none focus-visible:border-[#285FA7] ' +
468
- //1024px
469
- 'max-lg:text-[16px] max-lg:leading-[16px] max-lg:h-[55px] ' +
470
- //480px
471
- 'max-xs:w-full max-xs:px-[20px] max-xs:py-[15px] max-xs:h-[52px] '} parentStyle={'flex-1 ' + 'max-sm:w-full'} placeholderOptions={'사무소를 선택해주세요'}/>
472
- </span>
473
- {/*-- 사건분야 --*/}
474
- {/*<span*/}
475
- {/* className={*/}
476
- {/* 'flex h-auto items-center justify-between ' +*/}
477
- {/* //480px*/}
478
- {/* 'max-xs:flex-col max-xs:items-start max-xs:gap-[10px]'*/}
479
- {/* }*/}
480
- {/*>*/}
481
- {/* <p*/}
482
- {/* className={*/}
483
- {/* 'w-[100px] text-[20px] font-[600] ' +*/}
484
- {/* //1024px*/}
485
- {/* 'max-lg:w-[90px] max-lg:text-[18px]'*/}
486
- {/* }*/}
487
- {/* >*/}
488
- {/* 사건분야*/}
489
- {/* </p>*/}
490
- {/* <SelectBox*/}
491
- {/* id={'사건분야 선택'}*/}
492
- {/* value={consult.law_type_code}*/}
493
- {/* onSelect={(codename, code) => {*/}
494
- {/* setConsult({ ...consult, law_type_code: code });*/}
495
- {/* }}*/}
496
- {/* items={fieldsData.map(item => ({*/}
497
- {/* code: item.code,*/}
498
- {/* codename: item.code_name || ''*/}
499
- {/* }))}*/}
500
- {/* icon={*/}
501
- {/* <Image*/}
502
- {/* src={*/}
503
- {/* process.env.NEXT_PUBLIC_S3_URL +*/}
504
- {/* '/consult/main/section6/icon_arrow_gray.webp'*/}
505
- {/* }*/}
506
- {/* alt={'select icon'}*/}
507
- {/* width={28}*/}
508
- {/* height={15}*/}
509
- {/* className={*/}
510
- {/* 'absolute right-[24px] top-[50%] w-[15px] translate-y-[-50%] max-xs:w-[11px]'*/}
511
- {/* }*/}
512
- {/* />*/}
513
- {/* }*/}
514
- {/* style={*/}
515
- {/* 'h-[60px] w-full px-[30px] py-[18px] border-solid border-[1px] border-[#D0D0D0] cursor-pointer transition-[border] text-[18px] ' +*/}
516
- {/* 'focus-visible:outline-none focus-visible:border-[#285FA7] ' +*/}
517
- {/* //1024px*/}
518
- {/* 'max-lg:text-[16px] max-lg:leading-[16px] max-lg:h-[55px] ' +*/}
519
- {/* //480px*/}
520
- {/* 'max-xs:w-full max-xs:px-[20px] max-xs:py-[15px] max-xs:h-[52px] '*/}
521
- {/* }*/}
522
- {/* parentStyle={'flex-1 ' + 'max-sm:w-full'}*/}
523
- {/* placeholderOptions={'사건분야를 선택해주세요'}*/}
524
- {/* />*/}
525
- {/*</span>*/}
526
- </div>
527
- <div className={'flex-1'}>
528
- {/*-- 문의내용 --*/}
529
- <span className={'flex h-full items-start justify-between ' +
530
- //1024px
531
- 'max-lg:h-[200px] ' +
532
- //480px
533
- 'max-xs:flex-col max-xs:items-start max-xs:gap-[10px]'}>
534
- <p className={'w-[100px] text-[20px] font-[600] leading-[60px] ' +
535
- //1024px
536
- 'max-lg:w-[90px] max-lg:text-[18px] max-lg:leading-[55px] ' +
537
- //480px
538
- 'max-xs:text-lg'}>
539
- 문의내용
540
- </p>
541
- <textarea name="contents" value={consult.contents} id="contentsInput" placeholder={'내용을 입력해주세요'} spellCheck={false} maxLength={700} className={'h-full flex-1 resize-none border-[1px] border-solid border-[#D0D0D0] px-[30px] py-[20px] text-[18px] leading-[18px] placeholder-[#848484] transition-[border] ' +
542
- 'focus-visible:border-[#285FA7] focus-visible:outline-none ' +
543
- //1024px
544
- 'max-lg:text-[16px] max-lg:leading-[24px] ' +
545
- //480px
546
- 'max-xs:h-[170px] max-xs:w-full max-xs:px-[20px] max-xs:py-[15px] '} onChange={e => {
547
- setConsult(Object.assign(Object.assign({}, consult), { contents: e.target.value }));
548
- }}/>
549
- </span>
550
- </div>
551
- </div>
552
- {/*-- 전문보기 버튼 --*/}
553
- <span className={'mt-5 flex justify-end max-md:mt-3'}>
554
- <button className={'flex h-[28px] w-[84px] items-center justify-center border-[1px] border-solid border-[#ddd] bg-[#eee] text-[15px] leading-none text-black max-3xl:h-[22px] max-3xl:w-[70px] max-md:h-[24px] max-md:w-[75px] '} onClick={() => {
555
- setModalOn(true);
556
- }}>
557
- 전문보기
558
- </button>
559
- </span>
560
- <span className={'mx-auto mt-[40px] block max-w-[570px] max-xs:max-w-[240px]'}>
561
- {/*-- 동의 체크박스 --*/}
562
- <span className={'mx-auto mb-[40px] flex w-fit flex-col gap-2'}>
563
- <label className={'block w-full cursor-pointer text-[16px] leading-[16px] text-[#5F5F5F] ' +
564
- 'flex items-center gap-[10px] ' +
565
- 'max-sm:justify-center '}>
566
- <input type="checkbox" name="consultCheck" id="consultCk" className={'h-[17px] w-[17px] shrink-0 cursor-pointer outline-none ' +
567
- 'after:pointer-events-none after:block after:h-full after:w-full after:border-[1px] after:border-solid after:border-[#B4B4B4] after:bg-white after:font-[800] after:content-[""] ' +
568
- 'checked:after:border-[#285FA7] checked:after:bg-[#285FA7] checked:after:text-center checked:after:text-[17px] checked:after:leading-[15px] checked:after:text-white checked:after:content-["✓"] '} onChange={e => {
569
- setIsCheck(!isCheck);
570
- }} checked={isCheck} onKeyDown={e => {
571
- if (e.key === 'Enter') {
572
- setIsCheck(!isCheck);
573
- }
574
- }}/>
575
- 개인정보수집에 동의합니다.
576
- </label>
577
- <label className={'block w-full cursor-pointer text-[16px] leading-[16px] text-[#5F5F5F] ' +
578
- 'flex items-center gap-[10px] '}>
579
- <input type="checkbox" name="isOver14Check" id="isOver14Check" className={'h-[17px] w-[17px] cursor-pointer outline-none ' +
580
- 'after:pointer-events-none after:block after:h-full after:w-full after:border-[1px] after:border-solid after:border-[#B4B4B4] after:bg-white after:font-[800] after:content-[""] ' +
581
- 'checked:after:border-[#285FA7] checked:after:bg-[#285FA7] checked:after:text-center checked:after:text-[17px] checked:after:leading-[15px] checked:after:text-white checked:after:content-["✓"] '} onChange={e => {
582
- setIsOver14(!isOver14);
583
- }} checked={isOver14} onKeyDown={e => {
584
- if (e.key === 'Enter') {
585
- setIsOver14(!isOver14);
586
- }
587
- }}/>
588
- 만 14세 이상입니다.
589
- </label>
590
- </span>
591
- {/*-- 제출 submit 버튼 --*/}
592
- <button type="button" id={'submitBtn'} className={'h-[70px] w-full cursor-pointer bg-[#285FA7] text-xl tracking-[-0.5px] text-white ' +
593
- 'max-xs:h-[50px] max-xs:text-base'} onClick={() => {
594
- consultProcess();
595
- }} disabled={isLoading}>
596
- 상담신청서 제출
597
- </button>
598
- </span>
599
- </span>
600
610
  </>);
601
611
  };
602
612
  export default Index;