@daeryun/dr_components 0.2.25 → 0.2.27

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.
@@ -0,0 +1,450 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import React, { useEffect, useState } from 'react';
11
+ import Image from 'next/image';
12
+ import IconMt from '../../../asset/images/choice/mt_icon.svg';
13
+ import { bodyFetch, formatPhoneNumber, insert, savePowerLinkConversion } from '../../../lib';
14
+ import { SelectBox } from '../../SelectBox/SelectBox';
15
+ import axios from 'axios';
16
+ import mobile from 'is-mobile';
17
+ import { useRouter } from 'next/router';
18
+ import ChoiceLock from '../../../asset/images/consulting/choice_lock.webp';
19
+ import NewChoiceConsulting from '../../../asset/images/consulting/new_choice_consulting.webp';
20
+ import Loader from '../../Loader/Loader';
21
+ const Index = (props) => {
22
+ const conversionType = 'consult';
23
+ const router = useRouter();
24
+ //폼데이터
25
+ const [consulting, setConsulting] = useState({
26
+ cc_name: '',
27
+ cc_tel: '',
28
+ law_type_code: '',
29
+ contents: '',
30
+ c_type: '',
31
+ detail: null,
32
+ isCheck: false
33
+ });
34
+ //detail
35
+ const [detail, setDetail] = useState({
36
+ comp_name: '',
37
+ comp_address: '',
38
+ comp_business: '',
39
+ comp_size: '',
40
+ comp_managerName: '',
41
+ comp_managerPos: '',
42
+ comp_email: ''
43
+ });
44
+ // 사건분야 data
45
+ const [fields, setFields] = useState([]);
46
+ //로딩
47
+ const [isLoading, setIsLoading] = useState(false);
48
+ //모바일
49
+ const [isMobile, setIsMobile] = useState(false);
50
+ const detailNameMap = new Map([
51
+ ['comp_name', '기업명'],
52
+ ['comp_address', '기업주소'],
53
+ ['comp_business', '업종'],
54
+ ['comp_size', '규모'],
55
+ ['comp_managerName', '담당자명'],
56
+ ['comp_managerPos', '부서/직급'],
57
+ ['comp_email', '이메일']
58
+ ]);
59
+ const consultPost = () => __awaiter(void 0, void 0, void 0, function* () {
60
+ setIsLoading(true);
61
+ if (!consulting.isCheck) {
62
+ alert('개인정보 제공에 동의해주세요');
63
+ setIsLoading(false);
64
+ return false;
65
+ }
66
+ if (consulting.c_type === '') {
67
+ alert('문의 유형을 선택해주세요.');
68
+ setIsLoading(false);
69
+ return false;
70
+ }
71
+ if (consulting.cc_name === '') {
72
+ alert('기업명을 입력해주세요.');
73
+ setIsLoading(false);
74
+ return false;
75
+ }
76
+ if (detail.comp_managerName === '') {
77
+ alert('담당자 명을 입력해주세요.');
78
+ setIsLoading(false);
79
+ return false;
80
+ }
81
+ if (consulting.cc_tel === '') {
82
+ alert('연락처를 입력해주세요.');
83
+ setIsLoading(false);
84
+ return false;
85
+ }
86
+ insert(conversionType, isMobile);
87
+ if (props.ace_Click) {
88
+ props.ace_Click();
89
+ }
90
+ bodyFetch('/api/consulting', Object.assign(Object.assign({}, consulting), { detail: Object.fromEntries(
91
+ // 한글로 변경
92
+ Object.entries(detail).map(([key, value]) => [detailNameMap.get(key) || key, value])) }), (obj) => {
93
+ if (obj.result) {
94
+ setConsulting({
95
+ cc_name: '',
96
+ cc_tel: '',
97
+ law_type_code: '',
98
+ contents: '',
99
+ c_type: '',
100
+ detail: null,
101
+ isCheck: false
102
+ });
103
+ setDetail({
104
+ comp_name: '',
105
+ comp_address: '',
106
+ comp_business: '',
107
+ comp_size: '',
108
+ comp_managerName: '',
109
+ comp_managerPos: '',
110
+ comp_email: ''
111
+ });
112
+ if (obj.msg) {
113
+ alert(obj.msg);
114
+ setIsLoading(false);
115
+ }
116
+ if (!obj.isNotComplete) {
117
+ savePowerLinkConversion('online', isMobile);
118
+ router.push({ pathname: '/complete', query: { isConsult: true } }, '/complete');
119
+ }
120
+ }
121
+ else {
122
+ alert('상담 신청에 실패했습니다. 잠시후 다시 시도해주세요.');
123
+ setIsLoading(false);
124
+ }
125
+ }, 'POST');
126
+ });
127
+ //사건분야 데이터 가져오기
128
+ useEffect(() => {
129
+ axios.get('/api/field/list?code=corporation').then(response => {
130
+ const compFieldData = response.data.list;
131
+ setFields(compFieldData);
132
+ });
133
+ setIsMobile(mobile());
134
+ }, []);
135
+ return (<>
136
+ {isLoading ? <Loader fullScreen/> : <></>}
137
+ <div className={'mt-[150px] flex h-[270px] w-full flex-col justify-between rounded-[15px] border-[2px] border-solid border-[#285EA7] px-[40px] py-[30px] ' +
138
+ //1500px
139
+ 'max-3xl:mt-[100px] ' +
140
+ //1024px
141
+ 'max-lg:mt-[60px] max-lg:h-[230px] ' +
142
+ //768px
143
+ 'max-md:h-auto max-md:p-[35px] ' +
144
+ //480px
145
+ 'max-xs:p-[25px] ' +
146
+ //325px
147
+ 'max-3xs:p-[20px]'}>
148
+ <span className={'relative flex items-end gap-[50px] p-[20px] ' +
149
+ //1500px
150
+ 'max-3xl:gap-[40px] ' +
151
+ //1024px
152
+ 'max-lg:gap-[30px] max-lg:p-[10px] ' +
153
+ //768px
154
+ 'max-md:mb-[20px] max-md:flex-col max-md:items-start max-md:gap-[15px] max-md:p-0 ' +
155
+ //480px
156
+ 'max-xs:gap-[10px] max-xs:pt-[5px]'}>
157
+ <Image src={NewChoiceConsulting} alt={'consulting icon'} width={216} height={183} className={'h-auto w-[96px] object-contain object-top ' +
158
+ //1024px
159
+ 'max-lg:w-[75px] ' +
160
+ //768px
161
+ 'max-md:w-[65px] ' +
162
+ //480px
163
+ 'max-xs:w-[55px] '}/>
164
+ <span>
165
+ <h2 className={'text-[38px] font-[800] leading-[48px] tracking-[-1.9px] text-[#285EA7] ' +
166
+ //1500px
167
+ 'max-3xl:text-[36px] max-3xl:leading-[46px] ' +
168
+ //1024px
169
+ 'max-lg:text-[30px] max-lg:leading-[40px] ' +
170
+ //480px
171
+ 'max-xs:text-[26px] ' +
172
+ //325px
173
+ 'max-3xs:text-[24px]'}>
174
+ 기업고객
175
+ </h2>
176
+ <p className={'mt-[10px] text-[22px] leading-[30px] tracking-[-0.55px] text-[#343434] ' +
177
+ //1500px
178
+ 'max-3xl:mt-[5px] max-3xl:text-[20px] max-3xl:leading-[30px] ' +
179
+ //1024px
180
+ 'max-lg:mt-[3px] max-lg:text-[16px] max-lg:leading-[22px] '}>
181
+ 기업법무자문 · 일반소송대응 등 <br className={'md:hidden'}/>
182
+ 기업고객 맞춤 법률서비스를 제공합니다.
183
+ </p>
184
+ </span>
185
+ </span>
186
+ <div className={'flex w-full items-center justify-start gap-[15px] rounded-[15px] bg-[#285EA7] bg-opacity-5 px-[30px] py-[14px] tracking-[-0.35px] ' +
187
+ //480px
188
+ 'max-xs:px-[20px]'}>
189
+ <Image src={ChoiceLock} alt={'choice_lock'} width={39} height={52} className={'h-auto w-[17px] translate-y-[-1px] ' +
190
+ //1024px
191
+ 'max-lg:w-[15px]'}/>
192
+ <p className={'break-keep text-lg leading-none tracking-[-0.45px] text-[#3C3C3C] ' +
193
+ //1024px
194
+ 'max-lg:text-base max-lg:leading-[20px] ' +
195
+ //480px
196
+ 'max-xs:text-[14px] max-xs:leading-[18px] '}>
197
+ 안심하세요! 의뢰인의 상담 내용에 대한 비밀유지를 약속합니다.
198
+ </p>
199
+ </div>
200
+ </div>
201
+ <div className={'relative mb-[60px] mt-[40px] h-auto w-[100%] '}>
202
+ <span className={'block h-[1px] w-full bg-[#CECECE] ' +
203
+ 'after:absolute after:right-0 after:top-0 after:block after:h-[10px] after:w-[10px] after:-translate-y-[50%] after:rounded-full after:bg-[#CECECE] after:content-[""] ' +
204
+ 'before:absolute before:left-0 before:top-0 before:block before:h-[10px] before:w-[10px] before:-translate-y-[50%] before:rounded-full before:bg-[#285FA2] before:content-[""]'}></span>
205
+ <span className={'flex h-auto w-full flex-col px-[26px] py-[22px]'}>
206
+ <div className={'relative mb-[10px] h-auto w-[37px]'}>
207
+ <IconMt />
208
+ </div>
209
+ <p className={'mb-[10px] break-keep text-[18px] leading-[1.35] tracking-[-0.72px] text-[#6C6C6C] ' +
210
+ //1500px
211
+ 'max-3xl:text-[16px] ' +
212
+ //1024px
213
+ 'max-lg:text-[18px] max-lg:leading-[1.5] ' +
214
+ //480px
215
+ 'max-xs:text-[16px] ' +
216
+ //325px
217
+ 'max-3xs:text-[14px]'}>
218
+ 퀄리티 높은 상담 제공을 위해 하루 상담 수에 제한을 두고 있어{' '}
219
+ <span className={'font-bold'}>상담 예약이 빠르게 마감되고 있습니다.</span>
220
+ <br />
221
+ <br className={''}/>
222
+ 모든 상담은 전문변호사가 사건 검토를 마친 뒤{' '}
223
+ <span className={'font-bold'}>전문적으로 진행하기에 예약제로 실시됩니다.</span>
224
+ <br />
225
+ <br className={''}/>
226
+ 가급적 빠른 상담 예약을 권유드리며, 예약 시간 준수를 부탁드립니다. 만족스러운 상담을 위해 최선을
227
+ 다하겠습니다.
228
+ <br className={''}/>
229
+ <br className={''}/>※ 단, 상담 예약이 확정된 경우라도 동시간에 긴급한 우선 상담 사안이
230
+ 발생하거나 회사 내부사정에 따라 상담 일정이 조정되거나 취소될 수 있습니다.
231
+ </p>
232
+ </span>
233
+ <span className={'block h-[1px] w-full bg-[#CECECE] ' +
234
+ '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-[""] ' +
235
+ '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>
236
+ </div>
237
+ {/*문의 폼*/}
238
+ <div className={'mx-auto mb-[80px] mt-[30px] ' +
239
+ //1024px
240
+ 'max-lg:w-full'}>
241
+ <span className={'flex items-start justify-between border-b-[1px] border-solid border-b-[#D5D5D5] py-[40px] ' +
242
+ //1024px
243
+ 'max-lg:flex-col max-lg:gap-[30px] max-lg:py-[30px]'}>
244
+ <FormTitle text={'문의 유형'}/>
245
+ <span className={'flex w-full max-w-[800px] gap-[30px] pl-[80px] ' +
246
+ //1024px
247
+ 'max-lg:max-w-[unset] max-lg:px-[20px]'}>
248
+ <label className={'flex w-fit cursor-pointer items-start gap-[10px] text-[20px] font-[600] leading-none tracking-[-1px] ' +
249
+ //768px
250
+ 'max-md:text-[18px] max-md:leading-[20px]'}>
251
+ <input type="radio" name={'type'} className={'h-[18px] w-[18px] cursor-pointer outline-none ' +
252
+ 'after:pointer-events-none after:box-border after:block after:h-full after:w-full after:rounded-full after:bg-white after:outline after:outline-[1px] after:outline-[#B4B4B4] after:content-[""] ' +
253
+ 'checked:after:border-[3px] checked:after:border-solid checked:after:border-[#fff] checked:after:bg-[#285FA7] checked:after:outline-[#285FA7]'} value={'comp_consult'} onChange={e => {
254
+ setConsulting(Object.assign(Object.assign({}, consulting), { c_type: e.target.value }));
255
+ }}/>
256
+ 기업법무자문
257
+ </label>
258
+ <label className={'flex w-fit cursor-pointer items-start gap-[10px] text-[20px] font-[600] leading-none tracking-[-1px] ' +
259
+ //768px
260
+ 'max-md:text-[18px] max-md:leading-[20px]'}>
261
+ <input type="radio" name={'type'} className={'h-[18px] w-[18px] cursor-pointer outline-none ' +
262
+ 'after:pointer-events-none after:box-border after:block after:h-full after:w-full after:rounded-full after:bg-white after:outline after:outline-[1px] after:outline-[#B4B4B4] after:content-[""] ' +
263
+ 'checked:after:border-[3px] checked:after:border-solid checked:after:border-[#fff] checked:after:bg-[#285FA7] checked:after:outline-[#285FA7]'} value={'comp_suit'} onChange={e => {
264
+ setConsulting(Object.assign(Object.assign({}, consulting), { c_type: e.target.value }));
265
+ }}/>
266
+ 기업소송
267
+ </label>
268
+ </span>
269
+ </span>
270
+ <span className={'flex items-start justify-between border-b-[1px] border-solid border-b-[#D5D5D5] py-[40px] ' +
271
+ //1024px
272
+ 'max-lg:flex-col max-lg:gap-[30px] max-lg:py-[30px]'}>
273
+ <FormTitle text={'기업 정보'}/>
274
+ <span className={'flex w-full max-w-[800px] flex-col gap-[30px] pl-[80px] ' +
275
+ //1024px
276
+ 'max-lg:max-w-[unset] max-lg:px-[20px] '}>
277
+ <span className={'flex w-full items-center justify-between ' +
278
+ //768px
279
+ 'max-md:flex-col max-md:items-start max-md:gap-[10px]'}>
280
+ <InputTitle text={'기업명'} isRequired={true}/>
281
+ <InputStyleBox value={consulting.cc_name} onChange={e => {
282
+ setConsulting(Object.assign(Object.assign({}, consulting), { cc_name: e.target.value }));
283
+ setDetail(Object.assign(Object.assign({}, detail), { comp_name: e.target.value }));
284
+ }} placeholder={'예시) (주) 000'}/>
285
+ </span>
286
+ <span className={'flex w-full items-center justify-between ' +
287
+ //768px
288
+ 'max-md:flex-col max-md:items-start max-md:gap-[10px]'}>
289
+ <InputTitle text={'기업주소(구까지 기재)'}/>
290
+ <InputStyleBox value={detail.comp_address} onChange={e => {
291
+ setDetail(Object.assign(Object.assign({}, detail), { comp_address: e.target.value }));
292
+ }} placeholder={'예시) 서울시 중구'}/>
293
+ </span>
294
+ <span className={'flex w-full items-center justify-between ' +
295
+ //768px
296
+ 'max-md:flex-col max-md:items-start max-md:gap-[10px]'}>
297
+ <InputTitle text={'업종'}/>
298
+ <InputStyleBox value={detail.comp_business} onChange={e => {
299
+ setDetail(Object.assign(Object.assign({}, detail), { comp_business: e.target.value }));
300
+ }} placeholder={'예시) 금융업'}/>
301
+ </span>{' '}
302
+ <span className={'flex w-full items-center justify-between ' +
303
+ //768px
304
+ 'max-md:flex-col max-md:items-start max-md:gap-[10px]'}>
305
+ <InputTitle text={'규모(연 매출액, 직원수)'}/>
306
+ <InputStyleBox value={detail.comp_size} onChange={e => {
307
+ setDetail(Object.assign(Object.assign({}, detail), { comp_size: e.target.value }));
308
+ }} placeholder={'입력해주세요'}/>
309
+ </span>
310
+ </span>
311
+ </span>
312
+ <span className={'flex items-start justify-between border-b-[1px] border-solid border-b-[#D5D5D5] py-[40px] ' +
313
+ //1024px
314
+ 'max-lg:flex-col max-lg:gap-[30px] max-lg:py-[30px]'}>
315
+ <FormTitle text={'담당자 정보'}/>
316
+ <span className={'flex w-full max-w-[800px] flex-col gap-[30px] pl-[80px] ' +
317
+ //1024px
318
+ 'max-lg:max-w-[unset] max-lg:px-[20px]'}>
319
+ <span className={'flex w-full items-center justify-between ' +
320
+ //768px
321
+ 'max-md:flex-col max-md:items-start max-md:gap-[10px]'}>
322
+ <InputTitle text={'담당자명'} isRequired={true}/>
323
+ <InputStyleBox value={detail.comp_managerName} onChange={e => {
324
+ setDetail(Object.assign(Object.assign({}, detail), { comp_managerName: e.target.value }));
325
+ }} placeholder={'입력해주세요'}/>
326
+ </span>
327
+ <span className={'flex w-full items-center justify-between ' +
328
+ //768px
329
+ 'max-md:flex-col max-md:items-start max-md:gap-[10px]'}>
330
+ <InputTitle text={'부서/직급'}/>
331
+ <InputStyleBox value={detail.comp_managerPos} onChange={e => {
332
+ setDetail(Object.assign(Object.assign({}, detail), { comp_managerPos: e.target.value }));
333
+ }} placeholder={'입력해주세요'}/>
334
+ </span>
335
+ <span className={'flex w-full items-center justify-between ' +
336
+ //768px
337
+ 'max-md:flex-col max-md:items-start max-md:gap-[10px]'}>
338
+ <InputTitle text={'연락처'} isRequired={true}/>
339
+ <InputStyleBox value={consulting.cc_tel} onChange={e => {
340
+ setConsulting(Object.assign(Object.assign({}, consulting), { cc_tel: formatPhoneNumber(e.target.value) }));
341
+ }} placeholder={'-없이 입력해주세요'}/>
342
+ </span>{' '}
343
+ <span className={'flex w-full items-center justify-between ' +
344
+ //768px
345
+ 'max-md:flex-col max-md:items-start max-md:gap-[10px]'}>
346
+ <InputTitle text={'이메일'}/>
347
+ <InputStyleBox value={detail.comp_email} onChange={e => {
348
+ setDetail(Object.assign(Object.assign({}, detail), { comp_email: e.target.value }));
349
+ }} placeholder={'입력해주세요'}/>
350
+ </span>
351
+ </span>
352
+ </span>
353
+ <span className={'flex items-start justify-between border-b-[1px] border-solid border-b-[#D5D5D5] py-[40px] ' +
354
+ //1024px
355
+ 'max-lg:flex-col max-lg:gap-[30px] max-lg:py-[30px]'}>
356
+ <FormTitle text={'문의 내용'}/>
357
+ <span className={'flex w-full max-w-[800px] flex-col gap-[30px] pl-[80px] ' +
358
+ //1024px
359
+ 'max-lg:max-w-[unset] max-lg:px-[20px] ' +
360
+ //768px
361
+ 'max-md:gap-[20px]'}>
362
+ <span className={'flex gap-[10px] ' +
363
+ //768px
364
+ 'max-md:w-full max-md:flex-col max-md:items-start max-md:gap-[10px]'}>
365
+ <SelectBox items={fields} id={'사건분야'} value={consulting.law_type_code} onSelect={(codename, code) => {
366
+ setConsulting(Object.assign(Object.assign({}, consulting), { law_type_code: code }));
367
+ }} icon={<Image src={process.env.NEXT_PUBLIC_S3_URL +
368
+ '/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-[20px] border-solid border-[1px] border-[#D0D0D0] text-[18px] cursor-pointer transition-[border] ' +
369
+ 'focus-visible:outline-none focus-visible:border-[#285FA7] ' +
370
+ 'max-sm:w-full max-xs:h-[50px] max-xs:flex-none max-xs:text-[14px] max-xs:px-[15px] max-xs:py-0'} parentStyle={'flex-1 w-full'} placeholderOptions={'사건분야'}/>
371
+ {/*<SelectBox*/}
372
+ {/* items={[{ code: '', codename: '' }]}*/}
373
+ {/* id={'사건유형'}*/}
374
+ {/* value={''}*/}
375
+ {/* onSelect={() => {}}*/}
376
+ {/* icon={*/}
377
+ {/* <Image*/}
378
+ {/* src={'/images/main/section6/icon_arrow_gray.webp'}*/}
379
+ {/* alt={'select icon'}*/}
380
+ {/* width={28}*/}
381
+ {/* height={15}*/}
382
+ {/* className={*/}
383
+ {/* 'absolute top-[50%] translate-y-[-50%] right-[24px] w-[15px] max-xs:w-[11px]'*/}
384
+ {/* }*/}
385
+ {/* />*/}
386
+ {/* }*/}
387
+ {/* style={*/}
388
+ {/* 'h-[60px] w-full px-[20px] border-solid border-[1px] border-[#D0D0D0] text-[18px] cursor-pointer transition-[border] ' +*/}
389
+ {/* 'focus-visible:outline-none focus-visible:border-[#285FA7] ' +*/}
390
+ {/* 'max-sm:w-full max-xs:h-[50px] max-xs:flex-none max-xs:text-[14px] max-xs:px-[15px] max-xs:py-0'*/}
391
+ {/* }*/}
392
+ {/* parentStyle={'flex-1 w-full'}*/}
393
+ {/* placeholderOptions={'사건유형'}*/}
394
+ {/*/>*/}
395
+ </span>
396
+ <textarea placeholder={'내용을 입력해주세요'} spellCheck={false} maxLength={500} className={'h-[350px] w-full resize-none border-[1px] border-solid border-[#D0D0D0] p-[20px] text-[18px] leading-[24px] transition-[border] placeholder:text-[#848484] ' +
397
+ 'focus-visible:border-[#285FA7] focus-visible:outline-none ' +
398
+ //1024px
399
+ 'max-lg:h-[280px] max-lg:p-[20px]'} onChange={e => {
400
+ setConsulting(Object.assign(Object.assign({}, consulting), { contents: e.target.value }));
401
+ }} value={consulting.contents}/>
402
+ </span>
403
+ </span>
404
+ <span className={'mx-auto mt-[50px] block max-w-[570px] ' +
405
+ //768px
406
+ 'max-md:mt-[30px] ' +
407
+ //480px
408
+ 'max-xs:max-w-[240px]'}>
409
+ {/*-- 동의 체크박스 --*/}
410
+ <label className={'mb-[30px] block w-full cursor-pointer text-[16px] leading-[16px] text-[#5F5F5F] ' +
411
+ 'flex items-center justify-center gap-[10px] ' +
412
+ 'max-sm:justify-center max-xs:text-base'}>
413
+ <input type="checkbox" name="consultCheck" id="consultCk" className={'h-[17px] w-[17px] cursor-pointer outline-none ' +
414
+ '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-[SUIT] after:font-[800] after:content-[""] ' +
415
+ '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 => {
416
+ setConsulting(Object.assign(Object.assign({}, consulting), { isCheck: !consulting.isCheck }));
417
+ }} checked={consulting.isCheck}/>
418
+ 개인정보수집에 동의합니다.
419
+ </label>
420
+ {/*-- 제출 submit 버튼 --*/}
421
+ <button type="button" id={'submitBtn'} className={'h-[70px] w-full cursor-pointer bg-[#285FA7] text-xl tracking-[-0.5px] text-white ' +
422
+ 'max-xs:h-[50px] max-xs:text-base'} onClick={consultPost} disabled={isLoading}>
423
+ 상담신청서 제출
424
+ </button>
425
+ </span>
426
+ </div>
427
+ </>);
428
+ };
429
+ export default Index;
430
+ const FormTitle = (props) => {
431
+ return (<p className={'flex w-[130px] flex-shrink-0 items-center gap-[12px] text-[24px] font-[600] leading-none tracking-[-1.2px] text-[#285EA7] ' +
432
+ 'before:block before:h-[6px] before:w-[6px] before:rounded-full before:bg-[#285EA7] before:content-[""] ' +
433
+ //1024px
434
+ 'max-lg:text-[22px]'}>
435
+ {props.text}
436
+ </p>);
437
+ };
438
+ const InputTitle = (props) => {
439
+ return (<p className={'relative w-[220px] flex-shrink-0 text-[20px] font-[600] tracking-[-0.5px] ' +
440
+ //768px
441
+ 'max-md:text-[18px] ' +
442
+ `${props.isRequired &&
443
+ 'before:absolute before:left-[-12px] before:text-[16px] before:leading-none before:text-[#dc143c] before:content-["*"]'}`}>
444
+ {props.text}
445
+ </p>);
446
+ };
447
+ const InputStyleBox = (props) => {
448
+ return (<input className={'h-[50px] w-full max-w-[580px] border-[1px] border-solid border-[#D0D0D0] px-[20px] text-lg tracking-[-0.45px] transition-[border] placeholder:text-[#848484] ' +
449
+ 'focus-visible:border-[#285FA7] focus-visible:outline-none '} {...props} spellCheck={false}/>);
450
+ };
@@ -0,0 +1,6 @@
1
+ import Consulting from './Consulting';
2
+ import type { Meta, StoryObj } from '@storybook/react';
3
+ declare const meta: Meta<typeof Consulting>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
@@ -0,0 +1,13 @@
1
+ import Consulting from './Consulting';
2
+ const meta = {
3
+ component: Consulting,
4
+ title: 'ConsultingPage'
5
+ };
6
+ export default meta;
7
+ export const Default = {
8
+ render: () => {
9
+ return (<div className={'font-[SUIT]'}>
10
+ <Consulting />
11
+ </div>);
12
+ }
13
+ };
@@ -0,0 +1,21 @@
1
+ import Consulting from './Consulting';
2
+ import type { Meta, StoryObj } from '@storybook/react';
3
+
4
+ const meta: Meta<typeof Consulting> = {
5
+ component: Consulting,
6
+ title: 'ConsultingPage'
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
+ <Consulting />
18
+ </div>
19
+ );
20
+ }
21
+ };