@daeryun/dr_components 1.2.38 → 1.2.40

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.
@@ -71,7 +71,7 @@ const PcHeader = ({ isNotSubPage, pcRoutes, isTextWhite, isBgOpacityZero, isBgGr
71
71
  //1024px
72
72
  'max-lg:items-center max-lg:pt-0 '}>
73
73
  <Link href={`/`} className={'relative h-[38px] w-[230px] shrink-0 max-xl:h-[32px]'}>
74
- <Image src={`${process.env.NEXT_PUBLIC_S3_URL}/logo/new/${centerName}${isTextWhite || isHover ? '_w' : ''}.webp`} alt="법무법인(유한)대륜" fill sizes={'216px'} priority className={'h-full w-full object-contain object-left'}/>
74
+ <Image src={`${process.env.NEXT_PUBLIC_S3_URL}/logo/new/${centerName}${isTextWhite || isHover ? '_w' : ''}.webp`} alt="법무법인(유한)대륜" fill sizes={'300px'} priority className={'h-full w-full object-contain object-left'}/>
75
75
  </Link>
76
76
  <span className={'flex flex-1 items-start justify-end gap-[20px] pt-[5px] ' +
77
77
  //1024px
@@ -118,7 +118,7 @@ const PcHeader = ({
118
118
  src={`${process.env.NEXT_PUBLIC_S3_URL}/logo/new/${centerName}${isTextWhite || isHover ? '_w' : ''}.webp`}
119
119
  alt="법무법인(유한)대륜"
120
120
  fill
121
- sizes={'216px'}
121
+ sizes={'300px'}
122
122
  priority
123
123
  className={'h-full w-full object-contain object-left'}
124
124
  />
@@ -118,6 +118,8 @@ const ViewMoreSection = (props) => {
118
118
  //모바일
119
119
  ' max-md:h-[180px] max-md:w-full max-md:py-[30px] max-2xs:px-[25px] max-2xs:py-[35px]'} key={index}>
120
120
  <p className={'flex justify-between text-[34px] font-bold leading-tight tracking-[-1.7px] ' +
121
+ //1700px
122
+ 'max-5xl:text-[32px] ' +
121
123
  //1400px
122
124
  ' max-xxl:text-[26px] ' +
123
125
  //타블렛
@@ -133,6 +135,8 @@ const ViewMoreSection = (props) => {
133
135
  </p>
134
136
  <p className={'mt-[22px] whitespace-pre-wrap break-keep text-[20px] font-medium tracking-[-1px] text-[#5F656E] ' +
135
137
  'transition-[color] group-hover:text-white ' +
138
+ //1700px
139
+ 'max-5xl:text-[18px] ' +
136
140
  //1500px
137
141
  ' max-xxl:mt-[20px] max-xxl:text-[16px] ' +
138
142
  //타블렛
@@ -217,6 +217,8 @@ const ViewMoreSection = (props: IViewMoreSectionTypes) => {
217
217
  <p
218
218
  className={
219
219
  'flex justify-between text-[34px] font-bold leading-tight tracking-[-1.7px] ' +
220
+ //1700px
221
+ 'max-5xl:text-[32px] ' +
220
222
  //1400px
221
223
  ' max-xxl:text-[26px] ' +
222
224
  //타블렛
@@ -245,6 +247,8 @@ const ViewMoreSection = (props: IViewMoreSectionTypes) => {
245
247
  className={
246
248
  'mt-[22px] whitespace-pre-wrap break-keep text-[20px] font-medium tracking-[-1px] text-[#5F656E] ' +
247
249
  'transition-[color] group-hover:text-white ' +
250
+ //1700px
251
+ 'max-5xl:text-[18px] ' +
248
252
  //1500px
249
253
  ' max-xxl:mt-[20px] max-xxl:text-[16px] ' +
250
254
  //타블렛
@@ -1,3 +1,4 @@
1
1
  export * from './useBrowser';
2
2
  export * from './useCountNum';
3
3
  export * from './useElementObserve';
4
+ export * from './useIsApp';
@@ -1,3 +1,4 @@
1
1
  export * from './useBrowser';
2
2
  export * from './useCountNum';
3
3
  export * from './useElementObserve';
4
+ export * from './useIsApp';
@@ -1,3 +1,4 @@
1
1
  export * from './useBrowser';
2
2
  export * from './useCountNum';
3
3
  export * from './useElementObserve';
4
+ export * from './useIsApp';
@@ -0,0 +1,2 @@
1
+ declare const useIsApp: () => boolean;
2
+ export default useIsApp;
@@ -0,0 +1,22 @@
1
+ import { useEffect, useState } from 'react';
2
+ import { useSearchParams } from 'next/navigation';
3
+ const useIsApp = () => {
4
+ const searchParams = useSearchParams();
5
+ const isAppParams = (searchParams === null || searchParams === void 0 ? void 0 : searchParams.get('isApp')) === 'true';
6
+ const [isApp, setIsApp] = useState(false);
7
+ useEffect(() => {
8
+ if (typeof window === 'undefined')
9
+ return;
10
+ const sessionIsApp = sessionStorage.getItem('isApp');
11
+ if (sessionIsApp === 'true') {
12
+ setIsApp(true);
13
+ return;
14
+ }
15
+ if (isAppParams) {
16
+ setIsApp(true);
17
+ return;
18
+ }
19
+ }, [isAppParams]);
20
+ return isApp;
21
+ };
22
+ export default useIsApp;
@@ -0,0 +1,29 @@
1
+ import { useEffect, useState } from 'react';
2
+ import { useSearchParams } from 'next/navigation';
3
+
4
+ const useIsApp = () => {
5
+ const searchParams = useSearchParams();
6
+ const isAppParams = searchParams?.get('isApp') === 'true';
7
+
8
+ const [isApp, setIsApp] = useState<boolean>(false);
9
+
10
+ useEffect(() => {
11
+ if (typeof window === 'undefined') return;
12
+
13
+ const sessionIsApp = sessionStorage.getItem('isApp');
14
+
15
+ if (sessionIsApp === 'true') {
16
+ setIsApp(true);
17
+ return;
18
+ }
19
+
20
+ if (isAppParams) {
21
+ setIsApp(true);
22
+ return;
23
+ }
24
+ }, [isAppParams]);
25
+
26
+ return isApp;
27
+ };
28
+
29
+ export default useIsApp;
@@ -11214,6 +11214,10 @@ body {
11214
11214
  font-size: 28px;
11215
11215
  }
11216
11216
 
11217
+ .max-5xl\:text-\[32px\] {
11218
+ font-size: 32px;
11219
+ }
11220
+
11217
11221
  .max-5xl\:text-\[70px\] {
11218
11222
  font-size: 70px;
11219
11223
  }