@daeryun/dr_components 0.2.27 → 0.2.28

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.
@@ -15,6 +15,25 @@ export default meta;
15
15
  type Story = StoryObj<typeof meta>;
16
16
 
17
17
  export const Default: Story = {
18
+ render: args => {
19
+ const queryClient = new QueryClient();
20
+ return (
21
+ <QueryClientProvider client={queryClient}>
22
+ <Footer {...args} />
23
+ </QueryClientProvider>
24
+ );
25
+ },
26
+ args: {
27
+ tel: '1800-7905',
28
+ logo: Logo,
29
+ groupsData: [],
30
+ isBrochureBtn: true,
31
+ aceUrl: 'https://example.com',
32
+ isMedical: false
33
+ }
34
+ };
35
+
36
+ export const medicalBrochureBtn: Story = {
18
37
  render: args => {
19
38
  const queryClient = new QueryClient();
20
39
  return (
@@ -22,6 +22,7 @@ import sns03 from '/public/images/footer/sns_03.webp';
22
22
  import sns04 from '/public/images/footer/sns_04.webp';
23
23
  import sns05 from '/public/images/footer/sns_05.webp';
24
24
  import BrochureBtn from '../BrochureBtn/BrochureBtn';
25
+ import MedicalBrochureBtn from '../BrochureBtn/MedicalBrochureBtn';
25
26
  const NewFooter = ({ groupsData, tel, logo, aceUrl, isBrochureBtn, isLogoLong, isMedical }) => {
26
27
  const router = useRouter();
27
28
  const mobile = require('is-mobile');
@@ -153,7 +154,9 @@ const NewFooter = ({ groupsData, tel, logo, aceUrl, isBrochureBtn, isLogoLong, i
153
154
  }, []);
154
155
  return (<footer className={'relative mb-[30px] flex h-[550px] w-full items-center justify-center border-t border-solid border-[#A8A8A8] bg-white font-[SUIT] text-[18px] ' +
155
156
  (isBrochureBtn
156
- ? 'max-xl:h-[650px] max-md:h-[600px] max-xs:h-[750px] max-2xs:h-[730px] '
157
+ ? isMedical
158
+ ? 'max-xl:h-[730px] max-md:h-[670px] max-xs:h-[850px] max-2xs:h-[890px] '
159
+ : 'max-xl:h-[650px] max-md:h-[600px] max-xs:h-[750px] max-2xs:h-[730px] '
157
160
  : 'max-xs:h-[700px] max-2xs:h-[670px] ') +
158
161
  'max-lg:mb-[70px] '}>
159
162
  {/*top button*/}
@@ -180,17 +183,24 @@ const NewFooter = ({ groupsData, tel, logo, aceUrl, isBrochureBtn, isLogoLong, i
180
183
  <div className={'flex gap-[36px] max-xxl:gap-[20px] max-xl:hidden '}>
181
184
  <FooterLinkList />
182
185
  </div>
183
- {isBrochureBtn ? (<span className={'flex w-full flex-1 items-center justify-center gap-[40px] max-md:gap-[5px] max-2sm:gap-[10px]'}>
186
+ {isBrochureBtn && !isMedical ? (<span className={'flex w-full flex-1 items-center justify-center gap-[40px] max-md:gap-[5px] max-2sm:gap-[10px]'}>
184
187
  <FooterSelectBox wrapperRef={wrapperRef} groupsData={groupsData} isGroups={isGroups} routeLocation={routeLocation} setIsOpen={setIsOpen} isOpen={isOpen} isBrochureBtn={isBrochureBtn}/>
185
- {isBrochureBtn ? (<BrochureBtn isMedical={isMedical} width={'280px'} height={'60px'} className={'xl:hidden ' +
186
- //768px
187
- 'max-md:mx-[-10px] max-md:scale-90 ' +
188
- //590px
189
- 'max-[590px]:mx-[-30px] max-[590px]:scale-[.75] ' +
190
- //480px
191
- 'max-xs:hidden'}/>) : (<></>)}
188
+ <BrochureBtn width={'280px'} height={'60px'} className={'xl:hidden ' +
189
+ //768px
190
+ 'max-md:mx-[-10px] max-md:scale-90 ' +
191
+ //590px
192
+ 'max-[590px]:mx-[-30px] max-[590px]:scale-[.75] ' +
193
+ //480px
194
+ 'max-xs:hidden'}/>
195
+ </span>) : isBrochureBtn && isMedical ? (<span className={'flex w-full flex-1 flex-col items-center justify-center gap-[20px] max-md:gap-[15px] max-2sm:gap-[10px]'}>
196
+ <FooterSelectBox wrapperRef={wrapperRef} groupsData={groupsData} isGroups={isGroups} routeLocation={routeLocation} setIsOpen={setIsOpen} isOpen={isOpen} isBrochureBtn={isBrochureBtn}/>
197
+ <MedicalBrochureBtn width={'280px'} height={'60px'} wrapClassName={'max-xs:hidden'} className={'xl:hidden ' +
198
+ //768px
199
+ 'max-md:mx-[-10px] max-md:scale-90 ' +
200
+ //590px
201
+ 'max-[590px]:mx-[-30px] max-[590px]:scale-[.75] '}/>
192
202
  </span>) : (<FooterSelectBox wrapperRef={wrapperRef} groupsData={groupsData} isGroups={isGroups} routeLocation={routeLocation} setIsOpen={setIsOpen} isOpen={isOpen} isBrochureBtn={isBrochureBtn}/>)}
193
- {isBrochureBtn ? (<BrochureBtn isMedical={isMedical} rounded={false} width={'100%'} height={'55px'} className={'mt-[20px] xs:hidden'}/>) : (<></>)}
203
+ {isBrochureBtn && isMedical ? (<MedicalBrochureBtn rounded={false} width={'100%'} height={'55px'} wrapClassName={'xs:hidden flex-col '} className={'mt-[20px]'}/>) : isBrochureBtn ? (<BrochureBtn rounded={false} width={'100%'} height={'55px'} className={'mt-[20px] xs:hidden'}/>) : (<></>)}
194
204
  </div>
195
205
 
196
206
  {/*xl일때부터 or en*/}
@@ -249,7 +259,7 @@ const NewFooter = ({ groupsData, tel, logo, aceUrl, isBrochureBtn, isLogoLong, i
249
259
  <Link href="https://www.instagram.com/daeryun_lawfirm/?utm_medium=copy_link" target="_blank" rel="noopener noreferrer nofollow">
250
260
  <Image draggable={false} src={sns05} alt="법무법인(유한) 대륜 인스타그램" width={66} height={66} className={snsClass}/>
251
261
  </Link>
252
- {isBrochureBtn ? (<BrochureBtn isMedical={isMedical} width={'280px'} height={'58px'} className={'ml-4 -translate-y-2 max-xl:hidden'}/>) : (<></>)}
262
+ {isBrochureBtn && isMedical ? (<MedicalBrochureBtn width={'280px'} height={'58px'} wrapClassName={'ml-4 max-xl:hidden'} className={'-translate-y-2'}/>) : isBrochureBtn ? (<BrochureBtn width={'280px'} height={'58px'} className={'ml-4 -translate-y-2 max-xl:hidden'}/>) : (<></>)}
253
263
  </div>
254
264
  </div>
255
265
  </Wrapper>
@@ -14,6 +14,7 @@ import sns03 from '/public/images/footer/sns_03.webp';
14
14
  import sns04 from '/public/images/footer/sns_04.webp';
15
15
  import sns05 from '/public/images/footer/sns_05.webp';
16
16
  import BrochureBtn from '../BrochureBtn/BrochureBtn';
17
+ import MedicalBrochureBtn from '../BrochureBtn/MedicalBrochureBtn';
17
18
 
18
19
  interface GroupsProps {
19
20
  list: IGroupsData[];
@@ -164,7 +165,9 @@ const NewFooter = ({ groupsData, tel, logo, aceUrl, isBrochureBtn, isLogoLong, i
164
165
  className={
165
166
  'relative mb-[30px] flex h-[550px] w-full items-center justify-center border-t border-solid border-[#A8A8A8] bg-white font-[SUIT] text-[18px] ' +
166
167
  (isBrochureBtn
167
- ? 'max-xl:h-[650px] max-md:h-[600px] max-xs:h-[750px] max-2xs:h-[730px] '
168
+ ? isMedical
169
+ ? 'max-xl:h-[730px] max-md:h-[670px] max-xs:h-[850px] max-2xs:h-[890px] '
170
+ : 'max-xl:h-[650px] max-md:h-[600px] max-xs:h-[750px] max-2xs:h-[730px] '
168
171
  : 'max-xs:h-[700px] max-2xs:h-[670px] ') +
169
172
  'max-lg:mb-[70px] '
170
173
  }
@@ -205,7 +208,7 @@ const NewFooter = ({ groupsData, tel, logo, aceUrl, isBrochureBtn, isLogoLong, i
205
208
  <div className={'flex gap-[36px] max-xxl:gap-[20px] max-xl:hidden '}>
206
209
  <FooterLinkList />
207
210
  </div>
208
- {isBrochureBtn ? (
211
+ {isBrochureBtn && !isMedical ? (
209
212
  <span
210
213
  className={
211
214
  'flex w-full flex-1 items-center justify-center gap-[40px] max-md:gap-[5px] max-2sm:gap-[10px]'
@@ -220,24 +223,47 @@ const NewFooter = ({ groupsData, tel, logo, aceUrl, isBrochureBtn, isLogoLong, i
220
223
  isOpen={isOpen}
221
224
  isBrochureBtn={isBrochureBtn}
222
225
  />
223
- {isBrochureBtn ? (
224
- <BrochureBtn
225
- isMedical={isMedical}
226
- width={'280px'}
227
- height={'60px'}
228
- className={
229
- 'xl:hidden ' +
230
- //768px
231
- 'max-md:mx-[-10px] max-md:scale-90 ' +
232
- //590px
233
- 'max-[590px]:mx-[-30px] max-[590px]:scale-[.75] ' +
234
- //480px
235
- 'max-xs:hidden'
236
- }
237
- />
238
- ) : (
239
- <></>
240
- )}
226
+ <BrochureBtn
227
+ width={'280px'}
228
+ height={'60px'}
229
+ className={
230
+ 'xl:hidden ' +
231
+ //768px
232
+ 'max-md:mx-[-10px] max-md:scale-90 ' +
233
+ //590px
234
+ 'max-[590px]:mx-[-30px] max-[590px]:scale-[.75] ' +
235
+ //480px
236
+ 'max-xs:hidden'
237
+ }
238
+ />
239
+ </span>
240
+ ) : isBrochureBtn && isMedical ? (
241
+ <span
242
+ className={
243
+ 'flex w-full flex-1 flex-col items-center justify-center gap-[20px] max-md:gap-[15px] max-2sm:gap-[10px]'
244
+ }
245
+ >
246
+ <FooterSelectBox
247
+ wrapperRef={wrapperRef}
248
+ groupsData={groupsData}
249
+ isGroups={isGroups}
250
+ routeLocation={routeLocation}
251
+ setIsOpen={setIsOpen}
252
+ isOpen={isOpen}
253
+ isBrochureBtn={isBrochureBtn}
254
+ />
255
+ <MedicalBrochureBtn
256
+ width={'280px'}
257
+ height={'60px'}
258
+ wrapClassName={'max-xs:hidden'}
259
+ className={
260
+ 'xl:hidden ' +
261
+ //768px
262
+ 'max-md:mx-[-10px] max-md:scale-90 ' +
263
+ //590px
264
+ 'max-[590px]:mx-[-30px] max-[590px]:scale-[.75] '
265
+ }
266
+ />
241
267
  </span>
242
268
  ) : (
243
269
  <FooterSelectBox
@@ -250,9 +276,16 @@ const NewFooter = ({ groupsData, tel, logo, aceUrl, isBrochureBtn, isLogoLong, i
250
276
  isBrochureBtn={isBrochureBtn}
251
277
  />
252
278
  )}
253
- {isBrochureBtn ? (
279
+ {isBrochureBtn && isMedical ? (
280
+ <MedicalBrochureBtn
281
+ rounded={false}
282
+ width={'100%'}
283
+ height={'55px'}
284
+ wrapClassName={'xs:hidden flex-col '}
285
+ className={'mt-[20px]'}
286
+ />
287
+ ) : isBrochureBtn ? (
254
288
  <BrochureBtn
255
- isMedical={isMedical}
256
289
  rounded={false}
257
290
  width={'100%'}
258
291
  height={'55px'}
@@ -387,9 +420,15 @@ const NewFooter = ({ groupsData, tel, logo, aceUrl, isBrochureBtn, isLogoLong, i
387
420
  className={snsClass}
388
421
  />
389
422
  </Link>
390
- {isBrochureBtn ? (
423
+ {isBrochureBtn && isMedical ? (
424
+ <MedicalBrochureBtn
425
+ width={'280px'}
426
+ height={'58px'}
427
+ wrapClassName={'ml-4 max-xl:hidden'}
428
+ className={'-translate-y-2'}
429
+ />
430
+ ) : isBrochureBtn ? (
391
431
  <BrochureBtn
392
- isMedical={isMedical}
393
432
  width={'280px'}
394
433
  height={'58px'}
395
434
  className={'ml-4 -translate-y-2 max-xl:hidden'}
@@ -199,7 +199,7 @@ const MobileMenu = ({ handleMenuToggle, opacity, menuToggle, routes, tel, keywor
199
199
  <Image src={Call} width={57} height={57} alt={'전화상담'} className={'h-auto w-[30px]'}/>
200
200
  {tel}
201
201
  </Link>
202
- {isBrochureBtn ? (<BrochureBtn width={'280px'} height={'58px'} className={'scale-75 max-md:-mx-[23px] max-xs:scale-[0.7] max-2xs:-mx-[15px] max-2xs:mt-1 '} isMedical={isMedical}/>) : (<></>)}
202
+ {isBrochureBtn ? (<BrochureBtn width={'280px'} height={'58px'} className={'scale-75 max-md:-mx-[23px] max-xs:scale-[0.7] max-2xs:-mx-[15px] max-2xs:mt-1 '}/>) : (<></>)}
203
203
  </div>
204
204
  </nav>
205
205
  </span>
@@ -356,7 +356,6 @@ const MobileMenu = ({
356
356
  className={
357
357
  'scale-75 max-md:-mx-[23px] max-xs:scale-[0.7] max-2xs:-mx-[15px] max-2xs:mt-1 '
358
358
  }
359
- isMedical={isMedical}
360
359
  />
361
360
  ) : (
362
361
  <></>
@@ -120,7 +120,7 @@ const PCMenu = ({ handleMenuToggle, opacity, menuToggle, tel, routes, isBrochure
120
120
  </span>
121
121
  </div>
122
122
  </Link>
123
- {isBrochureBtn ? (<BrochureBtn width={'280px'} height={'58px'} className={'ml-16'} isMedical={isMedical}/>) : (<></>)}
123
+ {isBrochureBtn ? (<BrochureBtn width={'280px'} height={'58px'} className={'ml-16'}/>) : (<></>)}
124
124
  </div>
125
125
  </div>
126
126
  </div>
@@ -228,12 +228,7 @@ const PCMenu = ({ handleMenuToggle, opacity, menuToggle, tel, routes, isBrochure
228
228
  </div>
229
229
  </Link>
230
230
  {isBrochureBtn ? (
231
- <BrochureBtn
232
- width={'280px'}
233
- height={'58px'}
234
- className={'ml-16'}
235
- isMedical={isMedical}
236
- />
231
+ <BrochureBtn width={'280px'} height={'58px'} className={'ml-16'} />
237
232
  ) : (
238
233
  <></>
239
234
  )}
@@ -4496,6 +4496,10 @@ body {
4496
4496
  height: 650px;
4497
4497
  }
4498
4498
 
4499
+ .max-xl\:h-\[730px\] {
4500
+ height: 730px;
4501
+ }
4502
+
4499
4503
  .max-xl\:w-\[22px\] {
4500
4504
  width: 22px;
4501
4505
  }
@@ -5525,6 +5529,10 @@ body {
5525
5529
  height: 62.56%;
5526
5530
  }
5527
5531
 
5532
+ .max-md\:h-\[670px\] {
5533
+ height: 670px;
5534
+ }
5535
+
5528
5536
  .max-md\:h-\[70px\] {
5529
5537
  height: 70px;
5530
5538
  }
@@ -5658,6 +5666,10 @@ body {
5658
5666
  justify-content: center;
5659
5667
  }
5660
5668
 
5669
+ .max-md\:gap-\[0px\] {
5670
+ gap: 0px;
5671
+ }
5672
+
5661
5673
  .max-md\:gap-\[10px\] {
5662
5674
  gap: 10px;
5663
5675
  }
@@ -6171,6 +6183,10 @@ body {
6171
6183
  height: 750px;
6172
6184
  }
6173
6185
 
6186
+ .max-xs\:h-\[850px\] {
6187
+ height: 850px;
6188
+ }
6189
+
6174
6190
  .max-xs\:h-full {
6175
6191
  height: 100%;
6176
6192
  }
@@ -6445,6 +6461,10 @@ body {
6445
6461
  height: 730px;
6446
6462
  }
6447
6463
 
6464
+ .max-2xs\:h-\[890px\] {
6465
+ height: 890px;
6466
+ }
6467
+
6448
6468
  .max-2xs\:w-\[40px\] {
6449
6469
  width: 40px;
6450
6470
  }