@daeryun/dr_components 1.2.54 → 1.2.56
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.
- package/dist/components/banner/MobileTopBanner.jsx +1 -1
- package/dist/components/banner/MobileTopBanner.tsx +1 -1
- package/dist/components/banner/TopBanner.jsx +1 -1
- package/dist/components/banner/TopBanner.tsx +1 -1
- package/dist/components/banner/common.js +4 -4
- package/dist/components/banner/common.ts +11 -11
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -99,7 +99,7 @@ const MobileTopBanner = ({ popup, setMobileOpen, addClickCnt }) => {
|
|
|
99
99
|
// alt={item.file_alt}
|
|
100
100
|
alt={'주말, 공휴일에도 방문상담 접수 진행 중입니다.'} fill onClick={() => {
|
|
101
101
|
addClickCnt(item.idx);
|
|
102
|
-
}} priority fetchPriority="high" sizes={'100vw'} className={'h-full w-full object-
|
|
102
|
+
}} priority fetchPriority="high" sizes={'100vw'} className={'h-full w-full object-cover'}/>
|
|
103
103
|
</Link>);
|
|
104
104
|
})}
|
|
105
105
|
</span>
|
|
@@ -84,7 +84,7 @@ import { isTopPopupMobileHidden } from './common';
|
|
|
84
84
|
const TopBanner = ({ setBannerHeight }) => {
|
|
85
85
|
//이미지 패스
|
|
86
86
|
const ImagePath = process.env.NEXT_PUBLIC_S3_URL + '';
|
|
87
|
-
const { width } = useBrowser();
|
|
87
|
+
const { width } = useBrowser(true);
|
|
88
88
|
const bannerRef = useRef(null);
|
|
89
89
|
const router = useRouter();
|
|
90
90
|
const pathname = usePathname();
|
|
@@ -108,7 +108,7 @@ export interface IBannerTypes {
|
|
|
108
108
|
const TopBanner = ({ setBannerHeight }: { setBannerHeight?: SetterOrUpdater<number> }) => {
|
|
109
109
|
//이미지 패스
|
|
110
110
|
const ImagePath: string = process.env.NEXT_PUBLIC_S3_URL + '';
|
|
111
|
-
const { width } = useBrowser();
|
|
111
|
+
const { width } = useBrowser(true);
|
|
112
112
|
const bannerRef = useRef<HTMLDivElement>(null);
|
|
113
113
|
const router = useRouter();
|
|
114
114
|
const pathname = usePathname();
|
|
@@ -41,7 +41,7 @@ export const tempData = [
|
|
|
41
41
|
link_type: '_blank',
|
|
42
42
|
p_link: 'https://www.daeryunlaw.com/suit/form?type=ST006',
|
|
43
43
|
p_sort: 4,
|
|
44
|
-
save_file_name: '
|
|
44
|
+
save_file_name: 'top_banner_01_mob.webp',
|
|
45
45
|
start_at: '2025-12-02T13:26:00.000Z',
|
|
46
46
|
start_hour: 0,
|
|
47
47
|
start_min: 0
|
|
@@ -79,7 +79,7 @@ export const tempData = [
|
|
|
79
79
|
link_type: '_blank',
|
|
80
80
|
p_link: 'https://www.daeryunlaw.com/seminar/24',
|
|
81
81
|
p_sort: 3,
|
|
82
|
-
save_file_name: '
|
|
82
|
+
save_file_name: 'top_banner_02_mob.webp',
|
|
83
83
|
start_at: '2026-01-14T11:26:00.000Z',
|
|
84
84
|
start_hour: 0,
|
|
85
85
|
start_min: 0
|
|
@@ -117,7 +117,7 @@ export const tempData = [
|
|
|
117
117
|
link_type: '_blank',
|
|
118
118
|
p_link: 'https://www.daeryunlaw.com/notice/6038',
|
|
119
119
|
p_sort: 2,
|
|
120
|
-
save_file_name: '
|
|
120
|
+
save_file_name: 'top_banner_03_mob.webp',
|
|
121
121
|
start_at: '2026-01-14T16:35:00.000Z',
|
|
122
122
|
start_hour: 0,
|
|
123
123
|
start_min: 0
|
|
@@ -155,7 +155,7 @@ export const tempData = [
|
|
|
155
155
|
link_type: '_blank',
|
|
156
156
|
p_link: 'https://forms.gle/verSBoCxvqraQy68A',
|
|
157
157
|
p_sort: 1,
|
|
158
|
-
save_file_name: '
|
|
158
|
+
save_file_name: 'top_banner_04_mob.webp',
|
|
159
159
|
start_at: '2025-12-16T11:14:00.000Z',
|
|
160
160
|
start_hour: 0,
|
|
161
161
|
start_min: 0
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
//모바일용 하루동안보지않기 판별
|
|
2
|
-
import { IBannerTypes } from './TopBanner'
|
|
2
|
+
import { IBannerTypes } from './TopBanner';
|
|
3
3
|
|
|
4
4
|
export const isTopPopupMobileHidden = () => {
|
|
5
|
-
if (typeof window === 'undefined') return false
|
|
5
|
+
if (typeof window === 'undefined') return false;
|
|
6
6
|
|
|
7
|
-
const hideUntil = localStorage.getItem('topPopupMobileHideUntil')
|
|
8
|
-
if (!hideUntil) return false
|
|
7
|
+
const hideUntil = localStorage.getItem('topPopupMobileHideUntil');
|
|
8
|
+
if (!hideUntil) return false;
|
|
9
9
|
|
|
10
|
-
return Number(hideUntil) > Date.now()
|
|
11
|
-
}
|
|
10
|
+
return Number(hideUntil) > Date.now();
|
|
11
|
+
};
|
|
12
12
|
|
|
13
13
|
// 임시데이터
|
|
14
14
|
export const tempData: IBannerTypes[] = [
|
|
@@ -45,7 +45,7 @@ export const tempData: IBannerTypes[] = [
|
|
|
45
45
|
link_type: '_blank',
|
|
46
46
|
p_link: 'https://www.daeryunlaw.com/suit/form?type=ST006',
|
|
47
47
|
p_sort: 4,
|
|
48
|
-
save_file_name: '
|
|
48
|
+
save_file_name: 'top_banner_01_mob.webp',
|
|
49
49
|
start_at: '2025-12-02T13:26:00.000Z',
|
|
50
50
|
start_hour: 0,
|
|
51
51
|
start_min: 0
|
|
@@ -83,7 +83,7 @@ export const tempData: IBannerTypes[] = [
|
|
|
83
83
|
link_type: '_blank',
|
|
84
84
|
p_link: 'https://www.daeryunlaw.com/seminar/24',
|
|
85
85
|
p_sort: 3,
|
|
86
|
-
save_file_name: '
|
|
86
|
+
save_file_name: 'top_banner_02_mob.webp',
|
|
87
87
|
start_at: '2026-01-14T11:26:00.000Z',
|
|
88
88
|
start_hour: 0,
|
|
89
89
|
start_min: 0
|
|
@@ -121,7 +121,7 @@ export const tempData: IBannerTypes[] = [
|
|
|
121
121
|
link_type: '_blank',
|
|
122
122
|
p_link: 'https://www.daeryunlaw.com/notice/6038',
|
|
123
123
|
p_sort: 2,
|
|
124
|
-
save_file_name: '
|
|
124
|
+
save_file_name: 'top_banner_03_mob.webp',
|
|
125
125
|
start_at: '2026-01-14T16:35:00.000Z',
|
|
126
126
|
start_hour: 0,
|
|
127
127
|
start_min: 0
|
|
@@ -159,9 +159,9 @@ export const tempData: IBannerTypes[] = [
|
|
|
159
159
|
link_type: '_blank',
|
|
160
160
|
p_link: 'https://forms.gle/verSBoCxvqraQy68A',
|
|
161
161
|
p_sort: 1,
|
|
162
|
-
save_file_name: '
|
|
162
|
+
save_file_name: 'top_banner_04_mob.webp',
|
|
163
163
|
start_at: '2025-12-16T11:14:00.000Z',
|
|
164
164
|
start_hour: 0,
|
|
165
165
|
start_min: 0
|
|
166
166
|
}
|
|
167
|
-
]
|
|
167
|
+
];
|