@daeryun/dr_components 1.2.14 → 1.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.
@@ -22,6 +22,7 @@ export interface IMap {
22
22
  domain: string | null;
23
23
  modified_br_name: string | null;
24
24
  br_code?: string | null;
25
+ youtube_link: string | null;
25
26
  }
26
27
 
27
28
  export interface IOfficeListTypes {
@@ -34,7 +35,7 @@ export interface IOfficeListTypes {
34
35
  }
35
36
 
36
37
  export interface IMapAlt {
37
- office_code: string
38
- keyword: string
39
- key: string
38
+ office_code: string;
39
+ keyword: string;
40
+ key: string;
40
41
  }
@@ -127,7 +127,7 @@ const MapPage = ({ officeList, mapInfo, noScroll = false }) => {
127
127
  <p className={'pb-3 text-[26px] font-[800] text-[#0D2B52] lg:text-[32px]'}>
128
128
  전 세계 사무소 안내
129
129
  </p>
130
- <ul className={'grid grid-cols-6 gap-2 border-b-[1px] border-t-[1px] border-solid border-[#285FA7] py-10 max-xl:grid-cols-5 max-lg:grid-cols-3 md:py-5 lg:py-9'}>
130
+ <ul className={'grid grid-cols-6 gap-2 border-b-[1px] border-t-[1px] border-solid border-[#285FA7] py-10 max-xl:grid-cols-5 max-[1100px]:grid-cols-4 max-lg:grid-cols-3 md:py-5 lg:py-9'}>
131
131
  <Link href="/map" aria-label={'전체 선택됨.'} ref={listSelectRef}>
132
132
  <li>
133
133
  <div className={`${selectRegion === '전체' ? 'bg-[#285FA7] text-[#fff]' : 'text-[#707070]'} flex h-[55px] items-center justify-center border-[1px] border-solid border-[#285FA7] text-center text-[16px] lg:h-[70px] lg:text-[18px]`} onClick={() => setSelectRegion('전체')}>
@@ -79,5 +79,6 @@ const mapInfo = {
79
79
  tel: '02-523-1128',
80
80
  thumbnail_img: '',
81
81
  title: '주사무소(강남법무법인)',
82
- worktime: '평일) 08:00 - 19:00 | 토요일·공휴일) 10:00 - 17:00 | *전화상담 24시간 대응 가능'
82
+ worktime: '평일) 08:00 - 19:00 | 토요일·공휴일) 10:00 - 17:00 | *전화상담 24시간 대응 가능',
83
+ youtube_link: 'https://www.youtube.com/watch?v=-SFtCrNAcUw'
83
84
  };
@@ -94,5 +94,6 @@ const mapInfo: IMap = {
94
94
  tel: '02-523-1128',
95
95
  thumbnail_img: '',
96
96
  title: '주사무소(강남법무법인)',
97
- worktime: '평일) 08:00 - 19:00 | 토요일·공휴일) 10:00 - 17:00 | *전화상담 24시간 대응 가능'
97
+ worktime: '평일) 08:00 - 19:00 | 토요일·공휴일) 10:00 - 17:00 | *전화상담 24시간 대응 가능',
98
+ youtube_link: 'https://www.youtube.com/watch?v=-SFtCrNAcUw'
98
99
  };
@@ -165,7 +165,7 @@ const MapPage = ({
165
165
  </p>
166
166
  <ul
167
167
  className={
168
- 'grid grid-cols-6 gap-2 border-b-[1px] border-t-[1px] border-solid border-[#285FA7] py-10 max-xl:grid-cols-5 max-lg:grid-cols-3 md:py-5 lg:py-9'
168
+ 'grid grid-cols-6 gap-2 border-b-[1px] border-t-[1px] border-solid border-[#285FA7] py-10 max-xl:grid-cols-5 max-[1100px]:grid-cols-4 max-lg:grid-cols-3 md:py-5 lg:py-9'
169
169
  }
170
170
  >
171
171
  <Link href="/map" aria-label={'전체 선택됨.'} ref={listSelectRef}>
@@ -38,19 +38,7 @@ const MobileMapKeyDetail = ({ h1Title, mapInfo, setShowModal, mapPath, mapShare,
38
38
  <div className="flex w-[80%] flex-col">
39
39
  <h3>{mapInfo.address}</h3>
40
40
  <div className="mt-3 flex items-center justify-end gap-3">
41
- {(mapInfo.key === 'busan1' ||
42
- mapInfo.key === 'myeongji' ||
43
- mapInfo.key === 'busan2' ||
44
- mapInfo.key === 'seoul' ||
45
- mapInfo.key === 'samseong') && (<Link href={mapInfo.key === 'busan1'
46
- ? 'https://www.youtube.com/watch?v=1yM4BNkfCrc'
47
- : mapInfo.key === 'myeongji'
48
- ? 'https://www.youtube.com/watch?v=YMBvh1KOFEA'
49
- : mapInfo.key === 'busan2'
50
- ? 'https://www.youtube.com/watch?v=gSH3WQICRlY'
51
- : mapInfo.key === 'seoul'
52
- ? 'https://www.youtube.com/watch?v=X1051Tj2_y0'
53
- : 'https://www.youtube.com/watch?v=VTHk1szv9Yc'}>
41
+ {mapInfo.youtube_link && (<Link href={mapInfo.youtube_link}>
54
42
  <div className="mt-0 h-[35px] rounded-[24px] border-[1px] border-solid border-[#0D2B52] pl-3 pr-3">
55
43
  <Image src={imgYoutube} alt="사무소 오시는길 유튜브" width={70} height={15} className="m-auto mt-[7.4px]"/>
56
44
  </div>
@@ -62,24 +62,8 @@ const MobileMapKeyDetail = ({
62
62
  <div className="flex w-[80%] flex-col">
63
63
  <h3>{mapInfo.address}</h3>
64
64
  <div className="mt-3 flex items-center justify-end gap-3">
65
- {(mapInfo.key === 'busan1' ||
66
- mapInfo.key === 'myeongji' ||
67
- mapInfo.key === 'busan2' ||
68
- mapInfo.key === 'seoul' ||
69
- mapInfo.key === 'samseong') && (
70
- <Link
71
- href={
72
- mapInfo.key === 'busan1'
73
- ? 'https://www.youtube.com/watch?v=1yM4BNkfCrc'
74
- : mapInfo.key === 'myeongji'
75
- ? 'https://www.youtube.com/watch?v=YMBvh1KOFEA'
76
- : mapInfo.key === 'busan2'
77
- ? 'https://www.youtube.com/watch?v=gSH3WQICRlY'
78
- : mapInfo.key === 'seoul'
79
- ? 'https://www.youtube.com/watch?v=X1051Tj2_y0'
80
- : 'https://www.youtube.com/watch?v=VTHk1szv9Yc'
81
- }
82
- >
65
+ {mapInfo.youtube_link && (
66
+ <Link href={mapInfo.youtube_link}>
83
67
  <div className="mt-0 h-[35px] rounded-[24px] border-[1px] border-solid border-[#0D2B52] pl-3 pr-3">
84
68
  <Image
85
69
  src={imgYoutube}
@@ -39,19 +39,7 @@ const PcMapKeyDetail = ({ h1Title, mapInfo, setShowModal, mapPath, mapShare, tar
39
39
  {mapInfo.address.replace('법무법인(유한)대륜', '').replace('법무법인(유한) 대륜', '')}
40
40
  </h3>
41
41
  <div className="mt-3 flex items-center justify-end gap-3">
42
- {(mapInfo.key === 'seoul' ||
43
- mapInfo.key === 'busan1' ||
44
- mapInfo.key === 'myeongji' ||
45
- mapInfo.key === 'busan2' ||
46
- mapInfo.key === 'samseong') && (<Link href={mapInfo.key === 'seoul'
47
- ? 'https://www.youtube.com/watch?v=X1051Tj2_y0'
48
- : mapInfo.key === 'busan1'
49
- ? 'https://www.youtube.com/watch?v=1yM4BNkfCrc'
50
- : mapInfo.key === 'myeongji'
51
- ? 'https://www.youtube.com/watch?v=YMBvh1KOFEA'
52
- : mapInfo.key === 'busan2'
53
- ? 'https://www.youtube.com/watch?v=gSH3WQICRlY'
54
- : 'https://www.youtube.com/watch?v=VTHk1szv9Yc'} target="_blank">
42
+ {mapInfo.youtube_link && (<Link href={mapInfo.youtube_link} target="_blank">
55
43
  <div className="h-[35px] rounded-[24px] border-[1px] border-solid border-[#0D2B52] pl-3 pr-3">
56
44
  <Image src={imgYoutube} alt="사무소 오시는길 유튜브" width={70} height={15} className="m-auto mt-[8.5px]"/>
57
45
  </div>
@@ -62,25 +62,8 @@ const PcMapKeyDetail = ({
62
62
  {mapInfo.address.replace('법무법인(유한)대륜', '').replace('법무법인(유한) 대륜', '')}
63
63
  </h3>
64
64
  <div className="mt-3 flex items-center justify-end gap-3">
65
- {(mapInfo.key === 'seoul' ||
66
- mapInfo.key === 'busan1' ||
67
- mapInfo.key === 'myeongji' ||
68
- mapInfo.key === 'busan2' ||
69
- mapInfo.key === 'samseong') && (
70
- <Link
71
- href={
72
- mapInfo.key === 'seoul'
73
- ? 'https://www.youtube.com/watch?v=X1051Tj2_y0'
74
- : mapInfo.key === 'busan1'
75
- ? 'https://www.youtube.com/watch?v=1yM4BNkfCrc'
76
- : mapInfo.key === 'myeongji'
77
- ? 'https://www.youtube.com/watch?v=YMBvh1KOFEA'
78
- : mapInfo.key === 'busan2'
79
- ? 'https://www.youtube.com/watch?v=gSH3WQICRlY'
80
- : 'https://www.youtube.com/watch?v=VTHk1szv9Yc'
81
- }
82
- target="_blank"
83
- >
65
+ {mapInfo.youtube_link && (
66
+ <Link href={mapInfo.youtube_link} target="_blank">
84
67
  <div className="h-[35px] rounded-[24px] border-[1px] border-solid border-[#0D2B52] pl-3 pr-3">
85
68
  <Image
86
69
  src={imgYoutube}
@@ -13856,6 +13856,12 @@ body {
13856
13856
  }
13857
13857
  }
13858
13858
 
13859
+ @media (max-width: 1100px) {
13860
+ .max-\[1100px\]\:grid-cols-4 {
13861
+ grid-template-columns: repeat(4, minmax(0, 1fr));
13862
+ }
13863
+ }
13864
+
13859
13865
  @media not all and (min-width: 1024px) {
13860
13866
  .max-lg\:absolute {
13861
13867
  position: absolute;