@daeryun/dr_components 0.2.25 → 0.2.26

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