@daeryun/dr_components 0.2.15 → 0.2.16

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.
@@ -3,5 +3,6 @@ declare const BrochureBtn: (props: {
3
3
  width?: string;
4
4
  height?: string;
5
5
  className?: string;
6
+ isMedical?: boolean;
6
7
  }) => import("react").JSX.Element;
7
8
  export default BrochureBtn;
@@ -2,9 +2,10 @@ import Link from 'next/link';
2
2
  import Image from 'next/image';
3
3
  import btnImg from '../../asset/images/BrochureBtn/download_btn.webp';
4
4
  const BrochureBtn = (props) => {
5
- const { rounded = true, width = '100%', height = '100%', className = '' } = props;
6
- const downloadUrl = 'https://d1tgonli21s4df.cloudfront.net/comp/daeryunBrochure.pdf';
7
- return (<Link href={downloadUrl} rel={'nofollow'} target={'_blank'} style={{
5
+ const { rounded = true, width = '100%', height = '100%', className = '', isMedical = false } = props;
6
+ const downloadUrl_comp = 'https://d1tgonli21s4df.cloudfront.net/comp/daeryunBrochure.pdf';
7
+ const downloadUrl_medical = 'https://d1tgonli21s4df.cloudfront.net/medical/daeryun_brochure.pdf';
8
+ return (<Link href={isMedical ? downloadUrl_medical : downloadUrl_comp} rel={'nofollow'} target={'_blank'} style={{
8
9
  width: width,
9
10
  height: height,
10
11
  borderRadius: rounded ? '1000px' : '0'
@@ -21,7 +22,7 @@ const BrochureBtn = (props) => {
21
22
  Brochure <span className={'font-[800]'}>download</span>
22
23
  </p>
23
24
  <p className={'text-[14px] font-[800] leading-none max-[590px]:text-[13px] max-xs:text-[14px]'}>
24
- 기업법무 브로슈어
25
+ {isMedical ? '의료그룹 브로슈어' : '기업법무 브로슈어'}
25
26
  </p>
26
27
  </span>
27
28
  </Link>);
@@ -6,6 +6,7 @@ declare const meta: {
6
6
  width?: string;
7
7
  height?: string;
8
8
  className?: string;
9
+ isMedical?: boolean;
9
10
  }) => import("react").JSX.Element;
10
11
  title: string;
11
12
  };
@@ -1,12 +1,19 @@
1
1
  import Link from 'next/link';
2
2
  import Image from 'next/image';
3
3
  import btnImg from '../../asset/images/BrochureBtn/download_btn.webp';
4
- const BrochureBtn = (props: { rounded?: boolean; width?: string; height?: string; className?: string }) => {
5
- const { rounded = true, width = '100%', height = '100%', className = '' } = props;
6
- const downloadUrl = 'https://d1tgonli21s4df.cloudfront.net/comp/daeryunBrochure.pdf';
4
+ const BrochureBtn = (props: {
5
+ rounded?: boolean;
6
+ width?: string;
7
+ height?: string;
8
+ className?: string;
9
+ isMedical?: boolean; // BrochureBtn 이 의료그룹 브로슈어일때
10
+ }) => {
11
+ const { rounded = true, width = '100%', height = '100%', className = '', isMedical = false } = props;
12
+ const downloadUrl_comp = 'https://d1tgonli21s4df.cloudfront.net/comp/daeryunBrochure.pdf';
13
+ const downloadUrl_medical = 'https://d1tgonli21s4df.cloudfront.net/medical/daeryun_brochure.pdf';
7
14
  return (
8
15
  <Link
9
- href={downloadUrl}
16
+ href={isMedical ? downloadUrl_medical : downloadUrl_comp}
10
17
  rel={'nofollow'}
11
18
  target={'_blank'}
12
19
  style={{
@@ -40,7 +47,7 @@ const BrochureBtn = (props: { rounded?: boolean; width?: string; height?: string
40
47
  Brochure <span className={'font-[800]'}>download</span>
41
48
  </p>
42
49
  <p className={'text-[14px] font-[800] leading-none max-[590px]:text-[13px] max-xs:text-[14px]'}>
43
- 기업법무 브로슈어
50
+ {isMedical ? '의료그룹 브로슈어' : '기업법무 브로슈어'}
44
51
  </p>
45
52
  </span>
46
53
  </Link>
@@ -20,7 +20,8 @@ export const Default = {
20
20
  logo: Logo,
21
21
  groupsData: [],
22
22
  isBrochureBtn: true,
23
- aceUrl: 'https://example.com'
23
+ aceUrl: 'https://example.com',
24
+ isMedical: true
24
25
  }
25
26
  };
26
27
  export const noBrochureBtn = {
@@ -28,7 +28,8 @@ export const Default: Story = {
28
28
  logo: Logo,
29
29
  groupsData: [],
30
30
  isBrochureBtn: true,
31
- aceUrl: 'https://example.com'
31
+ aceUrl: 'https://example.com',
32
+ isMedical: true
32
33
  }
33
34
  };
34
35
 
@@ -20,6 +20,7 @@ export interface INewFooterTypes {
20
20
  logo: string;
21
21
  tel: string;
22
22
  isBrochureBtn?: boolean;
23
+ isMedical?: boolean;
23
24
  aceUrl?: string;
24
25
  isLogoLong?: boolean;
25
26
  }
@@ -21,6 +21,7 @@ export interface INewFooterTypes {
21
21
  logo: string;
22
22
  tel: string;
23
23
  isBrochureBtn?: boolean;
24
+ isMedical?: boolean; // BrochureBtn 이 의료그룹 브로슈어일때
24
25
  aceUrl?: string;
25
26
  isLogoLong?: boolean;
26
27
  }
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { INewFooterTypes } from './IFooterTypes';
3
- declare const NewFooter: ({ groupsData, tel, logo, aceUrl, isBrochureBtn, isLogoLong }: INewFooterTypes) => React.JSX.Element;
3
+ declare const NewFooter: ({ groupsData, tel, logo, aceUrl, isBrochureBtn, isLogoLong, isMedical }: INewFooterTypes) => React.JSX.Element;
4
4
  export default NewFooter;
@@ -22,7 +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
- const NewFooter = ({ groupsData, tel, logo, aceUrl, isBrochureBtn, isLogoLong }) => {
25
+ const NewFooter = ({ groupsData, tel, logo, aceUrl, isBrochureBtn, isLogoLong, isMedical }) => {
26
26
  const router = useRouter();
27
27
  const mobile = require('is-mobile');
28
28
  const snsClass = 'w-[44px] h-auto mr-[5px] max-md:w-[40px] max-md:m-0 max-xs:w-[45px] max-xs:mr-[17px] max-2xs:w-[40px] max-3xs:w-[35px]';
@@ -182,7 +182,7 @@ const NewFooter = ({ groupsData, tel, logo, aceUrl, isBrochureBtn, isLogoLong })
182
182
  </div>
183
183
  {isBrochureBtn ? (<span className={'flex w-full flex-1 items-center justify-center gap-[40px] max-md:gap-[5px] max-2sm:gap-[10px]'}>
184
184
  <FooterSelectBox wrapperRef={wrapperRef} groupsData={groupsData} isGroups={isGroups} routeLocation={routeLocation} setIsOpen={setIsOpen} isOpen={isOpen} isBrochureBtn={isBrochureBtn}/>
185
- {isBrochureBtn ? (<BrochureBtn width={'280px'} height={'60px'} className={'xl:hidden ' +
185
+ {isBrochureBtn ? (<BrochureBtn isMedical={isMedical} width={'280px'} height={'60px'} className={'xl:hidden ' +
186
186
  //768px
187
187
  'max-md:mx-[-10px] max-md:scale-90 ' +
188
188
  //590px
@@ -190,7 +190,7 @@ const NewFooter = ({ groupsData, tel, logo, aceUrl, isBrochureBtn, isLogoLong })
190
190
  //480px
191
191
  'max-xs:hidden'}/>) : (<></>)}
192
192
  </span>) : (<FooterSelectBox wrapperRef={wrapperRef} groupsData={groupsData} isGroups={isGroups} routeLocation={routeLocation} setIsOpen={setIsOpen} isOpen={isOpen} isBrochureBtn={isBrochureBtn}/>)}
193
- {isBrochureBtn ? (<BrochureBtn rounded={false} width={'100%'} height={'55px'} className={'mt-[20px] xs:hidden'}/>) : (<></>)}
193
+ {isBrochureBtn ? (<BrochureBtn isMedical={isMedical} rounded={false} width={'100%'} height={'55px'} className={'mt-[20px] xs:hidden'}/>) : (<></>)}
194
194
  </div>
195
195
 
196
196
  {/*xl일때부터 or en*/}
@@ -249,7 +249,7 @@ const NewFooter = ({ groupsData, tel, logo, aceUrl, isBrochureBtn, isLogoLong })
249
249
  <Link href="https://www.instagram.com/daeryun_lawfirm/?utm_medium=copy_link" target="_blank" rel="noopener noreferrer nofollow">
250
250
  <Image draggable={false} src={sns05} alt="법무법인(유한) 대륜 인스타그램" width={66} height={66} className={snsClass}/>
251
251
  </Link>
252
- {isBrochureBtn ? (<BrochureBtn width={'280px'} height={'58px'} className={'ml-4 -translate-y-2 max-xl:hidden'}/>) : (<></>)}
252
+ {isBrochureBtn ? (<BrochureBtn isMedical={isMedical} width={'280px'} height={'58px'} className={'ml-4 -translate-y-2 max-xl:hidden'}/>) : (<></>)}
253
253
  </div>
254
254
  </div>
255
255
  </Wrapper>
@@ -19,7 +19,7 @@ interface GroupsProps {
19
19
  list: IGroupsData[];
20
20
  }
21
21
 
22
- const NewFooter = ({ groupsData, tel, logo, aceUrl, isBrochureBtn, isLogoLong }: INewFooterTypes) => {
22
+ const NewFooter = ({ groupsData, tel, logo, aceUrl, isBrochureBtn, isLogoLong, isMedical }: INewFooterTypes) => {
23
23
  const router = useRouter();
24
24
  const mobile = require('is-mobile');
25
25
  const snsClass =
@@ -222,6 +222,7 @@ const NewFooter = ({ groupsData, tel, logo, aceUrl, isBrochureBtn, isLogoLong }:
222
222
  />
223
223
  {isBrochureBtn ? (
224
224
  <BrochureBtn
225
+ isMedical={isMedical}
225
226
  width={'280px'}
226
227
  height={'60px'}
227
228
  className={
@@ -251,6 +252,7 @@ const NewFooter = ({ groupsData, tel, logo, aceUrl, isBrochureBtn, isLogoLong }:
251
252
  )}
252
253
  {isBrochureBtn ? (
253
254
  <BrochureBtn
255
+ isMedical={isMedical}
254
256
  rounded={false}
255
257
  width={'100%'}
256
258
  height={'55px'}
@@ -387,6 +389,7 @@ const NewFooter = ({ groupsData, tel, logo, aceUrl, isBrochureBtn, isLogoLong }:
387
389
  </Link>
388
390
  {isBrochureBtn ? (
389
391
  <BrochureBtn
392
+ isMedical={isMedical}
390
393
  width={'280px'}
391
394
  height={'58px'}
392
395
  className={'ml-4 -translate-y-2 max-xl:hidden'}
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { IHeaderType } from '../../types/header';
3
- declare const Header: ({ tel, setTel, footerTel, setFooterTel, logo, logo_w, routes, keywordArr, categoryType, doNotWrite, name }: IHeaderType) => React.JSX.Element;
3
+ declare const Header: ({ tel, setTel, footerTel, setFooterTel, logo, logo_w, routes, keywordArr, categoryType, doNotWrite, name, isBrochureBtn, isMedical }: IHeaderType) => React.JSX.Element;
4
4
  export default Header;
@@ -12,7 +12,7 @@ import Call from '../../asset/images/header/h_call_line.webp';
12
12
  import Call_b from '../../asset/images/header/h_call_line_b.webp';
13
13
  import H_menu from '../../asset/images/header/h_menu.webp';
14
14
  import H_menu_b from '../../asset/images/header/h_menu_b.webp';
15
- const Header = ({ tel, setTel, footerTel, setFooterTel, logo, logo_w, routes, keywordArr, categoryType, doNotWrite, name }) => {
15
+ const Header = ({ tel, setTel, footerTel, setFooterTel, logo, logo_w, routes, keywordArr, categoryType, doNotWrite, name, isBrochureBtn, isMedical }) => {
16
16
  const router = useRouter();
17
17
  const mobile = require('is-mobile');
18
18
  const [isTop, setIsTop] = useState(true);
@@ -178,7 +178,7 @@ const Header = ({ tel, setTel, footerTel, setFooterTel, logo, logo_w, routes, ke
178
178
  {tel}
179
179
  </Link>
180
180
 
181
- <Menu menuToggle={menuToggle} handleMenuToggle={handleMenuToggle} opacity={opacity} routes={routes} tel={tel} logo={logo} keywordArr={keywordArr}/>
181
+ <Menu menuToggle={menuToggle} handleMenuToggle={handleMenuToggle} opacity={opacity} routes={routes} tel={tel} logo={logo} keywordArr={keywordArr} isBrochureBtn={isBrochureBtn} isMedical={isMedical}/>
182
182
 
183
183
  {!menuToggle && (<Image onKeyDown={handleKeyPress} tabIndex={0} src={isTop ? H_menu : H_menu_b} alt="메뉴바" width={38} height={17} className={'z-10 ml-[40px] h-auto w-[28px] cursor-pointer max-md2:w-[25px] max-md:ml-[30px] max-md:w-[22px]'} onClick={() => handleMenuToggle()}/>)}
184
184
  </div>
@@ -26,7 +26,9 @@ const Header = ({
26
26
  keywordArr,
27
27
  categoryType,
28
28
  doNotWrite,
29
- name
29
+ name,
30
+ isBrochureBtn,
31
+ isMedical
30
32
  }: IHeaderType) => {
31
33
  const router = useRouter();
32
34
  const mobile = require('is-mobile');
@@ -255,6 +257,8 @@ const Header = ({
255
257
  tel={tel}
256
258
  logo={logo}
257
259
  keywordArr={keywordArr}
260
+ isBrochureBtn={isBrochureBtn}
261
+ isMedical={isMedical}
258
262
  />
259
263
 
260
264
  {!menuToggle && (
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { IMenuType } from '../../types/header';
3
- declare const Menu: ({ handleMenuToggle, opacity, menuToggle, routes, tel, keywordArr, logo }: IMenuType) => React.JSX.Element;
3
+ declare const Menu: ({ handleMenuToggle, opacity, menuToggle, routes, tel, keywordArr, logo, isBrochureBtn, isMedical }: IMenuType) => React.JSX.Element;
4
4
  export default Menu;
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
2
  import MobileMenu from './MobileMenu';
3
3
  import PCMenu from './PCMenu';
4
- const Menu = ({ handleMenuToggle, opacity, menuToggle, routes, tel, keywordArr, logo }) => {
4
+ const Menu = ({ handleMenuToggle, opacity, menuToggle, routes, tel, keywordArr, logo, isBrochureBtn, isMedical }) => {
5
5
  return (<>
6
- <MobileMenu logo={logo} handleMenuToggle={handleMenuToggle} opacity={opacity} menuToggle={menuToggle} routes={routes} tel={tel} keywordArr={keywordArr}/>
7
- <PCMenu handleMenuToggle={handleMenuToggle} opacity={opacity} menuToggle={menuToggle} routes={routes} tel={tel}/>
6
+ <MobileMenu logo={logo} handleMenuToggle={handleMenuToggle} opacity={opacity} menuToggle={menuToggle} routes={routes} tel={tel} keywordArr={keywordArr} isBrochureBtn={isBrochureBtn} isMedical={isMedical}/>
7
+ <PCMenu handleMenuToggle={handleMenuToggle} opacity={opacity} menuToggle={menuToggle} routes={routes} tel={tel} isBrochureBtn={isBrochureBtn} isMedical={isMedical}/>
8
8
  </>);
9
9
  };
10
10
  export default Menu;
@@ -3,7 +3,17 @@ import MobileMenu from './MobileMenu';
3
3
  import PCMenu from './PCMenu';
4
4
  import { IMenuType } from '../../types/header';
5
5
 
6
- const Menu = ({ handleMenuToggle, opacity, menuToggle, routes, tel, keywordArr, logo }: IMenuType) => {
6
+ const Menu = ({
7
+ handleMenuToggle,
8
+ opacity,
9
+ menuToggle,
10
+ routes,
11
+ tel,
12
+ keywordArr,
13
+ logo,
14
+ isBrochureBtn,
15
+ isMedical
16
+ }: IMenuType) => {
7
17
  return (
8
18
  <>
9
19
  <MobileMenu
@@ -14,6 +24,8 @@ const Menu = ({ handleMenuToggle, opacity, menuToggle, routes, tel, keywordArr,
14
24
  routes={routes}
15
25
  tel={tel}
16
26
  keywordArr={keywordArr}
27
+ isBrochureBtn={isBrochureBtn}
28
+ isMedical={isMedical}
17
29
  />
18
30
  <PCMenu
19
31
  handleMenuToggle={handleMenuToggle}
@@ -21,6 +33,8 @@ const Menu = ({ handleMenuToggle, opacity, menuToggle, routes, tel, keywordArr,
21
33
  menuToggle={menuToggle}
22
34
  routes={routes}
23
35
  tel={tel}
36
+ isBrochureBtn={isBrochureBtn}
37
+ isMedical={isMedical}
24
38
  />
25
39
  </>
26
40
  );
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { IMobileMenuType } from '../../types/header';
3
- declare const MobileMenu: ({ handleMenuToggle, opacity, menuToggle, routes, tel, keywordArr, logo, isBrochureBtn }: IMobileMenuType) => React.JSX.Element;
3
+ declare const MobileMenu: ({ handleMenuToggle, opacity, menuToggle, routes, tel, keywordArr, logo, isBrochureBtn, isMedical }: IMobileMenuType) => React.JSX.Element;
4
4
  export default MobileMenu;
@@ -12,7 +12,7 @@ import M_right from '../../asset/images/header/m_right.webp';
12
12
  import Call from '../../asset/images/header/h_call_line_b.webp';
13
13
  import { blankArr } from '../../types/header';
14
14
  import BrochureBtn from '../BrochureBtn/BrochureBtn';
15
- const MobileMenu = ({ handleMenuToggle, opacity, menuToggle, routes, tel, keywordArr, logo, isBrochureBtn }) => {
15
+ const MobileMenu = ({ handleMenuToggle, opacity, menuToggle, routes, tel, keywordArr, logo, isBrochureBtn, isMedical }) => {
16
16
  const router = useRouter();
17
17
  const mobile = require('is-mobile');
18
18
  const [isMobile, setIsMobile] = useState(false);
@@ -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 '}/>) : (<></>)}
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}/>) : (<></>)}
203
203
  </div>
204
204
  </nav>
205
205
  </span>
@@ -21,7 +21,8 @@ const MobileMenu = ({
21
21
  tel,
22
22
  keywordArr,
23
23
  logo,
24
- isBrochureBtn
24
+ isBrochureBtn,
25
+ isMedical
25
26
  }: IMobileMenuType) => {
26
27
  const router = useRouter();
27
28
  const mobile = require('is-mobile');
@@ -355,6 +356,7 @@ const MobileMenu = ({
355
356
  className={
356
357
  'scale-75 max-md:-mx-[23px] max-xs:scale-[0.7] max-2xs:-mx-[15px] max-2xs:mt-1 '
357
358
  }
359
+ isMedical={isMedical}
358
360
  />
359
361
  ) : (
360
362
  <></>
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { IPcMenuType } from '../../types/header';
3
- declare const PCMenu: ({ handleMenuToggle, opacity, menuToggle, tel, routes, isBrochureBtn }: IPcMenuType) => React.JSX.Element;
3
+ declare const PCMenu: ({ handleMenuToggle, opacity, menuToggle, tel, routes, isBrochureBtn, isMedical }: IPcMenuType) => React.JSX.Element;
4
4
  export default PCMenu;
@@ -10,7 +10,7 @@ import Menu from '../../asset/images/header/menu_x.webp';
10
10
  import Window from '../../asset/images/header/image_b.webp';
11
11
  import Call from '../../asset/images/header/h_call_line_b.webp';
12
12
  import BrochureBtn from '../BrochureBtn/BrochureBtn';
13
- const PCMenu = ({ handleMenuToggle, opacity, menuToggle, tel, routes, isBrochureBtn }) => {
13
+ const PCMenu = ({ handleMenuToggle, opacity, menuToggle, tel, routes, isBrochureBtn, isMedical }) => {
14
14
  const mobile = require('is-mobile');
15
15
  const [isMobile, setIsMobile] = useState(false);
16
16
  const router = useRouter();
@@ -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'}/>) : (<></>)}
123
+ {isBrochureBtn ? (<BrochureBtn width={'280px'} height={'58px'} className={'ml-16'} isMedical={isMedical}/>) : (<></>)}
124
124
  </div>
125
125
  </div>
126
126
  </div>
@@ -14,7 +14,7 @@ import Call from '../../asset/images/header/h_call_line_b.webp';
14
14
  import { IPcMenuType } from '../../types/header';
15
15
  import BrochureBtn from '../BrochureBtn/BrochureBtn';
16
16
 
17
- const PCMenu = ({ handleMenuToggle, opacity, menuToggle, tel, routes, isBrochureBtn }: IPcMenuType) => {
17
+ const PCMenu = ({ handleMenuToggle, opacity, menuToggle, tel, routes, isBrochureBtn, isMedical }: IPcMenuType) => {
18
18
  const mobile = require('is-mobile');
19
19
  const [isMobile, setIsMobile] = useState<boolean>(false);
20
20
 
@@ -228,7 +228,12 @@ const PCMenu = ({ handleMenuToggle, opacity, menuToggle, tel, routes, isBrochure
228
228
  </div>
229
229
  </Link>
230
230
  {isBrochureBtn ? (
231
- <BrochureBtn width={'280px'} height={'58px'} className={'ml-16'} />
231
+ <BrochureBtn
232
+ width={'280px'}
233
+ height={'58px'}
234
+ className={'ml-16'}
235
+ isMedical={isMedical}
236
+ />
232
237
  ) : (
233
238
  <></>
234
239
  )}