@daeryun/dr_components 1.1.97 → 1.1.99

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.
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
- declare const GlobalOfficeSection: ({ isCenter }: {
2
+ declare const GlobalOfficeSection: ({ isCenter, customFont }: {
3
3
  isCenter?: boolean;
4
+ customFont: string;
4
5
  }) => React.JSX.Element;
5
6
  export default GlobalOfficeSection;
@@ -17,7 +17,7 @@ import LineKoreaSm from '../../asset/images/globalOffice/korea_line_sm.svg';
17
17
  // 좌표계산용
18
18
  const MAP_W = 3873;
19
19
  const MAP_H = 1853;
20
- const GlobalOfficeSection = ({ isCenter }) => {
20
+ const GlobalOfficeSection = ({ isCenter, customFont }) => {
21
21
  const { width } = useBrowser(true);
22
22
  return (<section className={'relative z-[6] h-[1300px] w-full overflow-hidden bg-white transition-opacity duration-700 ' +
23
23
  'max-[1935px]:aspect-[1935/1000] max-[1935px]:h-auto ' +
@@ -25,7 +25,7 @@ const GlobalOfficeSection = ({ isCenter }) => {
25
25
  'max-md:aspect-[360/700] ' +
26
26
  'max-[360px]:aspect-auto max-[360px]:h-[700px] '}>
27
27
  <Image src={`https://d1tgonli21s4df.cloudfront.net/main_new/global_map_bg${width >= 1280 ? '' : width >= 768 ? '_md' : '_sm'}.webp`} alt="글로벌 사무소 섹션 배경" fill draggable="false" loading={'lazy'} className={'absolute left-0 top-0 h-full w-full object-cover '}/>
28
- <Wrapper className={'relative h-full font-[NotoSansKR]'}>
28
+ <Wrapper className={`relative h-full ${customFont}`}>
29
29
  {/*title*/}
30
30
  <span className={'absolute bottom-[200px] z-[1] w-[850px] ' +
31
31
  'max-[1935px]:bottom-[6vw] max-[1935px]:w-[41.37vw] ' +
@@ -7,7 +7,7 @@ export default meta;
7
7
  export const Default = {
8
8
  render: args => {
9
9
  return (<div className={'font-[SUIT]'}>
10
- <GlobalOfficeSection />
10
+ <GlobalOfficeSection customFont="font-[NotoSansKR]"/>
11
11
  </div>);
12
12
  }
13
13
  };
@@ -15,7 +15,7 @@ export const Default: Story = {
15
15
  render: args => {
16
16
  return (
17
17
  <div className={'font-[SUIT]'}>
18
- <GlobalOfficeSection />
18
+ <GlobalOfficeSection customFont="font-[NotoSansKR]" />
19
19
  </div>
20
20
  );
21
21
  }
@@ -21,7 +21,7 @@ import LineKoreaSm from '../../asset/images/globalOffice/korea_line_sm.svg';
21
21
  const MAP_W = 3873;
22
22
  const MAP_H = 1853;
23
23
 
24
- const GlobalOfficeSection = ({ isCenter }: { isCenter?: boolean }) => {
24
+ const GlobalOfficeSection = ({ isCenter, customFont }: { isCenter?: boolean; customFont: string }) => {
25
25
  const { width } = useBrowser(true);
26
26
 
27
27
  return (
@@ -42,7 +42,7 @@ const GlobalOfficeSection = ({ isCenter }: { isCenter?: boolean }) => {
42
42
  loading={'lazy'}
43
43
  className={'absolute left-0 top-0 h-full w-full object-cover '}
44
44
  />
45
- <Wrapper className={'relative h-full font-[NotoSansKR]'}>
45
+ <Wrapper className={`relative h-full ${customFont}`}>
46
46
  {/*title*/}
47
47
  <span
48
48
  className={
@@ -115,8 +115,8 @@ const MapPage = ({ officeList, mapInfo, noScroll = false }) => {
115
115
  <div className={'relative md:h-[60%] md:w-[45%] lg:w-[40%]'}>
116
116
  {mapInfo && (mapInfo.key === 'newyork' || mapInfo.key === 'washingtondc') ? (<div className={'relative mt-[58px] h-[615px] w-full max-md:aspect-[5/4] max-md:h-auto max-md:max-h-[500px] ' +
117
117
  'max-lg:mt-[50px] max-md:mt-0'}>
118
- <Image src={mapInfo.key === 'newyork' ? ImgNewyork : ImgWashington} alt={mapInfo.key === 'newyork' ? 'sjkp 뉴욕 사무소' : 'sjkp 워싱턴 사무소'} fill className={'h-full w-full object-cover max-md:object-top ' +
119
- `${mapInfo.key === 'washingtondc' ? 'object-left ' : ''}`}/>
118
+ <Image src={mapInfo.key === 'newyork' ? ImgNewyork : ImgWashington} alt={mapInfo.key === 'newyork' ? 'sjkp 뉴욕 사무소' : 'sjkp 워싱턴 사무소'} fill className={'h-full w-full object-cover ' +
119
+ `${mapInfo.key === 'washingtondc' ? '' : 'max-md:object-top '}`}/>
120
120
  </div>) : (<Map isFirstClick={false} onClick={(select, key) => __awaiter(void 0, void 0, void 0, function* () {
121
121
  setSelectRegion(key);
122
122
  yield router.push(`/map/${key}`);
@@ -142,8 +142,8 @@ const MapPage = ({
142
142
  alt={mapInfo.key === 'newyork' ? 'sjkp 뉴욕 사무소' : 'sjkp 워싱턴 사무소'}
143
143
  fill
144
144
  className={
145
- 'h-full w-full object-cover max-md:object-top ' +
146
- `${mapInfo.key === 'washingtondc' ? 'object-left ' : ''}`
145
+ 'h-full w-full object-cover ' +
146
+ `${mapInfo.key === 'washingtondc' ? '' : 'max-md:object-top '}`
147
147
  }
148
148
  />
149
149
  </div>