@daeryun/dr_components 1.1.98 → 1.2.0
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/asset/images/map/washingtondc.webp +0 -0
- package/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/components/common/integrate/index.jsx +2 -1
- package/dist/components/common/integrate/index.tsx +2 -1
- package/dist/components/page/Integrate/Broadcast.d.ts +1 -1
- package/dist/components/page/Integrate/Broadcast.tsx +1 -1
- package/dist/components/page/Integrate/Field.d.ts +1 -1
- package/dist/components/page/Integrate/Field.tsx +1 -1
- package/dist/components/page/Integrate/LawInfo.d.ts +1 -1
- package/dist/components/page/Integrate/LawInfo.tsx +1 -1
- package/dist/components/page/Integrate/Lawyer.d.ts +1 -1
- package/dist/components/page/Integrate/Lawyer.tsx +1 -1
- package/dist/components/page/Integrate/Map.d.ts +2 -2
- package/dist/components/page/Integrate/Map.jsx +198 -110
- package/dist/components/page/Integrate/Map.tsx +198 -197
- package/dist/components/page/Integrate/MenuTab.d.ts +1 -1
- package/dist/components/page/Integrate/MenuTab.jsx +7 -2
- package/dist/components/page/Integrate/MenuTab.tsx +8 -3
- package/dist/components/page/Integrate/Reply.d.ts +1 -1
- package/dist/components/page/Integrate/Reply.jsx +17 -21
- package/dist/components/page/Integrate/Reply.tsx +48 -55
- package/dist/components/page/Integrate/SearchData.d.ts +1 -1
- package/dist/components/page/Integrate/SearchData.jsx +53 -35
- package/dist/components/page/Integrate/SearchData.tsx +57 -38
- package/dist/components/page/Integrate/Success.d.ts +1 -1
- package/dist/components/page/Integrate/Success.tsx +1 -1
- package/dist/components/page/Integrate/Trend.d.ts +21 -0
- package/dist/components/page/Integrate/Trend.jsx +78 -0
- package/dist/components/page/Integrate/Trend.tsx +173 -0
- package/dist/components/page/Integrate/integrateType.d.ts +39 -35
- package/dist/components/page/Integrate/integrateType.js +3 -4
- package/dist/components/page/Integrate/integrateType.ts +44 -40
- package/dist/components/page/MapPage/MapPage.jsx +2 -2
- package/dist/components/page/MapPage/MapPage.tsx +2 -2
- package/dist/styles/globals.css +18 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
|
2
|
+
import Link from 'next/link';
|
|
3
|
+
import { NoResult } from './NoResult';
|
|
4
|
+
import dayjs from 'dayjs';
|
|
5
|
+
import { IListPagesType, IListTypes, ITrendTypes } from './integrateType';
|
|
6
|
+
import { Title } from './Title';
|
|
7
|
+
import { ViewMore } from './ViewMore';
|
|
8
|
+
import { searchColorText } from '../../common/integrate';
|
|
9
|
+
|
|
10
|
+
const Trend = (props: {
|
|
11
|
+
isMobileSize: boolean | null;
|
|
12
|
+
tab: string;
|
|
13
|
+
onMoreViewText: (str: string) => void;
|
|
14
|
+
onMoreView: () => void;
|
|
15
|
+
list: IListTypes;
|
|
16
|
+
pages: IListPagesType;
|
|
17
|
+
search: string;
|
|
18
|
+
listCount: {
|
|
19
|
+
lawyer: number;
|
|
20
|
+
field: number;
|
|
21
|
+
success: number;
|
|
22
|
+
info: number;
|
|
23
|
+
broadcast: number;
|
|
24
|
+
reply: number;
|
|
25
|
+
trend: number;
|
|
26
|
+
};
|
|
27
|
+
}) => {
|
|
28
|
+
const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount } = props;
|
|
29
|
+
|
|
30
|
+
const [loading, setLoading] = useState<boolean>(false);
|
|
31
|
+
const [allTabPage, setAllTabPage] = useState<number>(0);
|
|
32
|
+
const [allTabList, setAllTabList] = useState<ITrendTypes[]>([]);
|
|
33
|
+
|
|
34
|
+
const getAllPage = () => {
|
|
35
|
+
const itemsToAdd = 4;
|
|
36
|
+
|
|
37
|
+
// trendList에서 잘라낼 시작 인덱스 계산
|
|
38
|
+
const startIndex = allTabList.length;
|
|
39
|
+
const endIndex = startIndex + itemsToAdd;
|
|
40
|
+
const newItems = list.trendList.slice(startIndex, endIndex);
|
|
41
|
+
const updatedList = [...allTabList, ...newItems];
|
|
42
|
+
setAllTabList(updatedList);
|
|
43
|
+
|
|
44
|
+
// 다음 호출 후 예상 총 개수
|
|
45
|
+
const nextTotalCount = updatedList.length + itemsToAdd;
|
|
46
|
+
// 현재 replyList의 길이
|
|
47
|
+
const currentListLength = list.trendList.length;
|
|
48
|
+
|
|
49
|
+
// 다음 총 개수가 trendList 길이를 초과하면 api 호출
|
|
50
|
+
// 예: replyList가 24일 때, 22 -> 26이 되면 호출
|
|
51
|
+
if (nextTotalCount > currentListLength) {
|
|
52
|
+
onMoreView();
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// 페이지 상태 증가
|
|
56
|
+
setAllTabPage(allTabPage + 1);
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
useEffect(() => {
|
|
60
|
+
if (allTabList.length <= 4) {
|
|
61
|
+
setAllTabList(list.trendList.slice(0, isMobileSize ? 2 : 4));
|
|
62
|
+
}
|
|
63
|
+
}, [list.trendList, isMobileSize]);
|
|
64
|
+
|
|
65
|
+
return (
|
|
66
|
+
<>
|
|
67
|
+
{tab === '전체' || tab === 'trend' ? (
|
|
68
|
+
tab === 'trend' && listCount.trend < 1 ? (
|
|
69
|
+
<NoResult />
|
|
70
|
+
) : (
|
|
71
|
+
<>
|
|
72
|
+
{listCount.trend > 0 ? (
|
|
73
|
+
<div className={'mb-[180px] max-sm:mb-[100px] max-xs:mb-[50px]'}>
|
|
74
|
+
<Title
|
|
75
|
+
title={'판결분석'}
|
|
76
|
+
tab={tab}
|
|
77
|
+
type={'trend'}
|
|
78
|
+
onClick={str => onMoreViewText(str)}
|
|
79
|
+
count={listCount.trend}
|
|
80
|
+
/>
|
|
81
|
+
<div className={'mb-9 mt-8 grid gap-[18px] sm:grid-cols-2'}>
|
|
82
|
+
{(tab === '전체' ? allTabList : list.trendList).map((item, index) => {
|
|
83
|
+
const title = item.title.split('|');
|
|
84
|
+
|
|
85
|
+
return (
|
|
86
|
+
<Link
|
|
87
|
+
target={'_blank'}
|
|
88
|
+
href={'https://www.daeryunlaw.com/trend/' + item.idx}
|
|
89
|
+
key={'trend' + item.idx}
|
|
90
|
+
className={
|
|
91
|
+
'flex h-[280px] flex-col border-[5px] border-solid border-[#EAEAEA] p-7 max-xs:h-[190px] max-xs:p-4 sm:p-8 '
|
|
92
|
+
}
|
|
93
|
+
>
|
|
94
|
+
<p
|
|
95
|
+
className={
|
|
96
|
+
'line-clamp-2 h-[70px] text-[20px] font-[800] text-[#285FA7] max-xs:h-[60px] max-xs:text-[18px] sm:text-[22px]'
|
|
97
|
+
}
|
|
98
|
+
>
|
|
99
|
+
{title.length > 1 ? (
|
|
100
|
+
<>
|
|
101
|
+
{title[0]}
|
|
102
|
+
<span className={'text-[#212223]'}> | {title[1]}</span>
|
|
103
|
+
</>
|
|
104
|
+
) : (
|
|
105
|
+
<>{item.title}</>
|
|
106
|
+
)}
|
|
107
|
+
</p>
|
|
108
|
+
<p
|
|
109
|
+
className={
|
|
110
|
+
'mb-[20px] mt-[10px] line-clamp-2 h-[50px] text-[18px] text-[#555555] max-sm:mb-[40px] max-sm:mt-[20px] max-sm:text-[16px] max-xs:mb-0 max-xs:mt-[5px] max-xs:h-[40px] max-xs:text-[15px]'
|
|
111
|
+
}
|
|
112
|
+
>
|
|
113
|
+
{searchColorText(
|
|
114
|
+
item.contents
|
|
115
|
+
.replaceAll(
|
|
116
|
+
/<(\/)?[a-zA-Z0-9]*(\s[a-zA-Z]*=[^>]*)?(\s)*(\/)?>/gi,
|
|
117
|
+
''
|
|
118
|
+
)
|
|
119
|
+
.replaceAll(' ', ' '),
|
|
120
|
+
search
|
|
121
|
+
)}
|
|
122
|
+
</p>
|
|
123
|
+
<div className={'mt-6 flex items-center text-[#666666] sm:mt-8'}>
|
|
124
|
+
<p
|
|
125
|
+
className={
|
|
126
|
+
'w-[20%] text-[17px] max-xl:w-[35%] max-md:w-[50%] max-sm:w-[30%] max-sm:text-[15px]'
|
|
127
|
+
}
|
|
128
|
+
>
|
|
129
|
+
{dayjs(item.created_at).format('YYYY.MM.DD')}
|
|
130
|
+
</p>
|
|
131
|
+
<div
|
|
132
|
+
className={
|
|
133
|
+
'h-[2px] w-[80%] bg-[#D8D8D8] max-xl:w-[65%] max-md:w-[50%] max-sm:w-[70%]'
|
|
134
|
+
}
|
|
135
|
+
></div>
|
|
136
|
+
</div>
|
|
137
|
+
</Link>
|
|
138
|
+
);
|
|
139
|
+
})}
|
|
140
|
+
</div>
|
|
141
|
+
{tab != '전체' && (
|
|
142
|
+
<ViewMore
|
|
143
|
+
flag={list.trendList.length != listCount.trend}
|
|
144
|
+
loading={loading}
|
|
145
|
+
totalPage={Math.ceil(listCount.trend / 12)}
|
|
146
|
+
nowPage={pages.trendList}
|
|
147
|
+
func={() => {
|
|
148
|
+
setLoading(true);
|
|
149
|
+
onMoreView();
|
|
150
|
+
setLoading(false);
|
|
151
|
+
}}
|
|
152
|
+
/>
|
|
153
|
+
)}
|
|
154
|
+
{tab === '전체' && (
|
|
155
|
+
<ViewMore
|
|
156
|
+
flag={allTabList.length != listCount.trend}
|
|
157
|
+
func={() => {
|
|
158
|
+
getAllPage();
|
|
159
|
+
}}
|
|
160
|
+
/>
|
|
161
|
+
)}
|
|
162
|
+
</div>
|
|
163
|
+
) : (
|
|
164
|
+
<></>
|
|
165
|
+
)}
|
|
166
|
+
</>
|
|
167
|
+
)
|
|
168
|
+
) : null}
|
|
169
|
+
</>
|
|
170
|
+
);
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
export default Trend;
|
|
@@ -5,8 +5,7 @@ export interface IListTypes {
|
|
|
5
5
|
broadcastList: IBroadCastTypes[];
|
|
6
6
|
fieldList: IFieldTypes[];
|
|
7
7
|
lawyerList: ILawyerTypes[];
|
|
8
|
-
|
|
9
|
-
mainMapList?: IMapTypes[];
|
|
8
|
+
trendList: ITrendTypes[];
|
|
10
9
|
}
|
|
11
10
|
export interface ICountTypes {
|
|
12
11
|
lawyer: number;
|
|
@@ -15,7 +14,7 @@ export interface ICountTypes {
|
|
|
15
14
|
info: number;
|
|
16
15
|
broadcast: number;
|
|
17
16
|
reply: number;
|
|
18
|
-
|
|
17
|
+
trend: number;
|
|
19
18
|
}
|
|
20
19
|
export interface IPagePropsTypes {
|
|
21
20
|
list: IListTypes;
|
|
@@ -28,7 +27,7 @@ export interface IListPagesType {
|
|
|
28
27
|
broadcastList: number;
|
|
29
28
|
fieldList: number;
|
|
30
29
|
lawyerList: number;
|
|
31
|
-
|
|
30
|
+
trendList: number;
|
|
32
31
|
}
|
|
33
32
|
export declare const searchInit: {
|
|
34
33
|
list: {
|
|
@@ -38,8 +37,7 @@ export declare const searchInit: {
|
|
|
38
37
|
broadcastList: never[];
|
|
39
38
|
fieldList: never[];
|
|
40
39
|
lawyerList: never[];
|
|
41
|
-
|
|
42
|
-
mainMapList: never[];
|
|
40
|
+
trendList: never[];
|
|
43
41
|
};
|
|
44
42
|
pages: {
|
|
45
43
|
successList: number;
|
|
@@ -48,7 +46,7 @@ export declare const searchInit: {
|
|
|
48
46
|
broadcastList: number;
|
|
49
47
|
fieldList: number;
|
|
50
48
|
lawyerList: number;
|
|
51
|
-
|
|
49
|
+
trendList: number;
|
|
52
50
|
};
|
|
53
51
|
count: {
|
|
54
52
|
lawyer: number;
|
|
@@ -57,36 +55,9 @@ export declare const searchInit: {
|
|
|
57
55
|
info: number;
|
|
58
56
|
broadcast: number;
|
|
59
57
|
reply: number;
|
|
60
|
-
|
|
58
|
+
trend: number;
|
|
61
59
|
};
|
|
62
60
|
};
|
|
63
|
-
export interface IKinTypes {
|
|
64
|
-
idx: number;
|
|
65
|
-
n_url: string;
|
|
66
|
-
question_title: string;
|
|
67
|
-
question_content: string;
|
|
68
|
-
laywer_content: string;
|
|
69
|
-
l_id: string;
|
|
70
|
-
created_at: string;
|
|
71
|
-
hit: number;
|
|
72
|
-
}
|
|
73
|
-
export interface IYoutubeTypes {
|
|
74
|
-
v_id: string;
|
|
75
|
-
thumbnail_img: string;
|
|
76
|
-
title: string;
|
|
77
|
-
description: string;
|
|
78
|
-
tag: string;
|
|
79
|
-
center_code: string;
|
|
80
|
-
pathname: string;
|
|
81
|
-
}
|
|
82
|
-
export interface IBlogTypes {
|
|
83
|
-
idx: number;
|
|
84
|
-
blog_url: string;
|
|
85
|
-
blog_title: string;
|
|
86
|
-
blog_content: string;
|
|
87
|
-
blog_thumbnail: string;
|
|
88
|
-
created_at: string;
|
|
89
|
-
}
|
|
90
61
|
export interface IBroadCastTypes {
|
|
91
62
|
id: number;
|
|
92
63
|
title: string;
|
|
@@ -149,6 +120,12 @@ export interface IReplyTypes {
|
|
|
149
120
|
timestamp: string;
|
|
150
121
|
crime_code: string;
|
|
151
122
|
}
|
|
123
|
+
export interface ITrendTypes {
|
|
124
|
+
idx: number;
|
|
125
|
+
title: string;
|
|
126
|
+
created_at: string;
|
|
127
|
+
contents: string;
|
|
128
|
+
}
|
|
152
129
|
export interface IMapTypes {
|
|
153
130
|
key: string;
|
|
154
131
|
title: string;
|
|
@@ -157,3 +134,30 @@ export interface IMapTypes {
|
|
|
157
134
|
tel: string;
|
|
158
135
|
lawyer_text: string;
|
|
159
136
|
}
|
|
137
|
+
export interface IKinTypes {
|
|
138
|
+
idx: number;
|
|
139
|
+
n_url: string;
|
|
140
|
+
question_title: string;
|
|
141
|
+
question_content: string;
|
|
142
|
+
laywer_content: string;
|
|
143
|
+
l_id: string;
|
|
144
|
+
created_at: string;
|
|
145
|
+
hit: number;
|
|
146
|
+
}
|
|
147
|
+
export interface IYoutubeTypes {
|
|
148
|
+
v_id: string;
|
|
149
|
+
thumbnail_img: string;
|
|
150
|
+
title: string;
|
|
151
|
+
description: string;
|
|
152
|
+
tag: string;
|
|
153
|
+
center_code: string;
|
|
154
|
+
pathname: string;
|
|
155
|
+
}
|
|
156
|
+
export interface IBlogTypes {
|
|
157
|
+
idx: number;
|
|
158
|
+
blog_url: string;
|
|
159
|
+
blog_title: string;
|
|
160
|
+
blog_content: string;
|
|
161
|
+
blog_thumbnail: string;
|
|
162
|
+
created_at: string;
|
|
163
|
+
}
|
|
@@ -6,8 +6,7 @@ export const searchInit = {
|
|
|
6
6
|
broadcastList: [],
|
|
7
7
|
fieldList: [],
|
|
8
8
|
lawyerList: [],
|
|
9
|
-
|
|
10
|
-
mainMapList: []
|
|
9
|
+
trendList: []
|
|
11
10
|
},
|
|
12
11
|
pages: {
|
|
13
12
|
successList: 2,
|
|
@@ -16,7 +15,7 @@ export const searchInit = {
|
|
|
16
15
|
broadcastList: 2,
|
|
17
16
|
fieldList: 2,
|
|
18
17
|
lawyerList: 2,
|
|
19
|
-
|
|
18
|
+
trendList: 2
|
|
20
19
|
},
|
|
21
20
|
count: {
|
|
22
21
|
lawyer: 0, //구성원 8 -> 16
|
|
@@ -25,6 +24,6 @@ export const searchInit = {
|
|
|
25
24
|
info: 0, //법률정보 4 - >8
|
|
26
25
|
broadcast: 0, //언론보도 4-> 8
|
|
27
26
|
reply: 0, //고객후기 4- >8
|
|
28
|
-
|
|
27
|
+
trend: 0 //판결분석 4- >8
|
|
29
28
|
}
|
|
30
29
|
};
|
|
@@ -5,8 +5,7 @@ export interface IListTypes {
|
|
|
5
5
|
broadcastList: IBroadCastTypes[];
|
|
6
6
|
fieldList: IFieldTypes[];
|
|
7
7
|
lawyerList: ILawyerTypes[];
|
|
8
|
-
|
|
9
|
-
mainMapList?: IMapTypes[]; // 메인에 뿌려줄 5개 센터 데이터
|
|
8
|
+
trendList: ITrendTypes[];
|
|
10
9
|
}
|
|
11
10
|
export interface ICountTypes {
|
|
12
11
|
lawyer: number;
|
|
@@ -15,7 +14,7 @@ export interface ICountTypes {
|
|
|
15
14
|
info: number;
|
|
16
15
|
broadcast: number;
|
|
17
16
|
reply: number;
|
|
18
|
-
|
|
17
|
+
trend: number;
|
|
19
18
|
}
|
|
20
19
|
export interface IPagePropsTypes {
|
|
21
20
|
list: IListTypes;
|
|
@@ -29,8 +28,7 @@ export interface IListPagesType {
|
|
|
29
28
|
broadcastList: number;
|
|
30
29
|
fieldList: number;
|
|
31
30
|
lawyerList: number;
|
|
32
|
-
|
|
33
|
-
mapList: number;
|
|
31
|
+
trendList: number;
|
|
34
32
|
}
|
|
35
33
|
|
|
36
34
|
export const searchInit = {
|
|
@@ -41,8 +39,7 @@ export const searchInit = {
|
|
|
41
39
|
broadcastList: [],
|
|
42
40
|
fieldList: [],
|
|
43
41
|
lawyerList: [],
|
|
44
|
-
|
|
45
|
-
mainMapList: []
|
|
42
|
+
trendList: []
|
|
46
43
|
},
|
|
47
44
|
pages: {
|
|
48
45
|
successList: 2,
|
|
@@ -51,8 +48,7 @@ export const searchInit = {
|
|
|
51
48
|
broadcastList: 2,
|
|
52
49
|
fieldList: 2,
|
|
53
50
|
lawyerList: 2,
|
|
54
|
-
|
|
55
|
-
mapList: 2
|
|
51
|
+
trendList: 2
|
|
56
52
|
},
|
|
57
53
|
count: {
|
|
58
54
|
lawyer: 0, //구성원 8 -> 16
|
|
@@ -61,40 +57,10 @@ export const searchInit = {
|
|
|
61
57
|
info: 0, //법률정보 4 - >8
|
|
62
58
|
broadcast: 0, //언론보도 4-> 8
|
|
63
59
|
reply: 0, //고객후기 4- >8
|
|
64
|
-
|
|
60
|
+
trend: 0 //판결분석 4- >8
|
|
65
61
|
}
|
|
66
62
|
};
|
|
67
63
|
|
|
68
|
-
export interface IKinTypes {
|
|
69
|
-
idx: number;
|
|
70
|
-
n_url: string;
|
|
71
|
-
question_title: string;
|
|
72
|
-
question_content: string;
|
|
73
|
-
laywer_content: string;
|
|
74
|
-
l_id: string;
|
|
75
|
-
created_at: string;
|
|
76
|
-
hit: number;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export interface IYoutubeTypes {
|
|
80
|
-
v_id: string;
|
|
81
|
-
thumbnail_img: string;
|
|
82
|
-
title: string;
|
|
83
|
-
description: string;
|
|
84
|
-
tag: string;
|
|
85
|
-
center_code: string;
|
|
86
|
-
pathname: string;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export interface IBlogTypes {
|
|
90
|
-
idx: number;
|
|
91
|
-
blog_url: string;
|
|
92
|
-
blog_title: string;
|
|
93
|
-
blog_content: string;
|
|
94
|
-
blog_thumbnail: string;
|
|
95
|
-
created_at: string;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
64
|
export interface IBroadCastTypes {
|
|
99
65
|
id: number;
|
|
100
66
|
title: string;
|
|
@@ -104,6 +70,7 @@ export interface IBroadCastTypes {
|
|
|
104
70
|
summary: string;
|
|
105
71
|
alt: string;
|
|
106
72
|
}
|
|
73
|
+
|
|
107
74
|
export interface IFieldTypes {
|
|
108
75
|
consonant: string;
|
|
109
76
|
title: string;
|
|
@@ -161,6 +128,13 @@ export interface IReplyTypes {
|
|
|
161
128
|
crime_code: string;
|
|
162
129
|
}
|
|
163
130
|
|
|
131
|
+
export interface ITrendTypes {
|
|
132
|
+
idx: number;
|
|
133
|
+
title: string;
|
|
134
|
+
created_at: string;
|
|
135
|
+
contents: string;
|
|
136
|
+
}
|
|
137
|
+
|
|
164
138
|
export interface IMapTypes {
|
|
165
139
|
key: string;
|
|
166
140
|
title: string;
|
|
@@ -169,3 +143,33 @@ export interface IMapTypes {
|
|
|
169
143
|
tel: string;
|
|
170
144
|
lawyer_text: string;
|
|
171
145
|
}
|
|
146
|
+
|
|
147
|
+
export interface IKinTypes {
|
|
148
|
+
idx: number;
|
|
149
|
+
n_url: string;
|
|
150
|
+
question_title: string;
|
|
151
|
+
question_content: string;
|
|
152
|
+
laywer_content: string;
|
|
153
|
+
l_id: string;
|
|
154
|
+
created_at: string;
|
|
155
|
+
hit: number;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export interface IYoutubeTypes {
|
|
159
|
+
v_id: string;
|
|
160
|
+
thumbnail_img: string;
|
|
161
|
+
title: string;
|
|
162
|
+
description: string;
|
|
163
|
+
tag: string;
|
|
164
|
+
center_code: string;
|
|
165
|
+
pathname: string;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export interface IBlogTypes {
|
|
169
|
+
idx: number;
|
|
170
|
+
blog_url: string;
|
|
171
|
+
blog_title: string;
|
|
172
|
+
blog_content: string;
|
|
173
|
+
blog_thumbnail: string;
|
|
174
|
+
created_at: string;
|
|
175
|
+
}
|
|
@@ -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
|
|
119
|
-
`${mapInfo.key === 'washingtondc' ? '
|
|
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
|
|
146
|
-
`${mapInfo.key === 'washingtondc' ? '
|
|
145
|
+
'h-full w-full object-cover ' +
|
|
146
|
+
`${mapInfo.key === 'washingtondc' ? '' : 'max-md:object-top '}`
|
|
147
147
|
}
|
|
148
148
|
/>
|
|
149
149
|
</div>
|
package/dist/styles/globals.css
CHANGED
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
/*
|
|
110
|
-
! tailwindcss v3.4.
|
|
110
|
+
! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com
|
|
111
111
|
*/
|
|
112
112
|
|
|
113
113
|
/*
|
|
@@ -8617,6 +8617,11 @@ html {
|
|
|
8617
8617
|
color: rgb(33 33 33 / var(--tw-text-opacity, 1));
|
|
8618
8618
|
}
|
|
8619
8619
|
|
|
8620
|
+
.text-\[\#212223\] {
|
|
8621
|
+
--tw-text-opacity: 1;
|
|
8622
|
+
color: rgb(33 34 35 / var(--tw-text-opacity, 1));
|
|
8623
|
+
}
|
|
8624
|
+
|
|
8620
8625
|
.text-\[\#215eaa\] {
|
|
8621
8626
|
--tw-text-opacity: 1;
|
|
8622
8627
|
color: rgb(33 94 170 / var(--tw-text-opacity, 1));
|
|
@@ -9235,16 +9240,20 @@ html {
|
|
|
9235
9240
|
|
|
9236
9241
|
.backdrop-blur-\[4px\] {
|
|
9237
9242
|
--tw-backdrop-blur: blur(4px);
|
|
9243
|
+
-webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
|
|
9238
9244
|
backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
|
|
9239
9245
|
}
|
|
9240
9246
|
|
|
9241
9247
|
.backdrop-blur-sm {
|
|
9242
9248
|
--tw-backdrop-blur: blur(4px);
|
|
9249
|
+
-webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
|
|
9243
9250
|
backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
|
|
9244
9251
|
}
|
|
9245
9252
|
|
|
9246
9253
|
.transition {
|
|
9254
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
|
|
9247
9255
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
|
|
9256
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
|
|
9248
9257
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
9249
9258
|
transition-duration: 150ms;
|
|
9250
9259
|
}
|
|
@@ -15490,6 +15499,10 @@ body {
|
|
|
15490
15499
|
display: none;
|
|
15491
15500
|
}
|
|
15492
15501
|
|
|
15502
|
+
.max-\[850px\]\:h-\[50px\] {
|
|
15503
|
+
height: 50px;
|
|
15504
|
+
}
|
|
15505
|
+
|
|
15493
15506
|
.max-\[850px\]\:w-fit {
|
|
15494
15507
|
width: -moz-fit-content;
|
|
15495
15508
|
width: fit-content;
|
|
@@ -15499,6 +15512,10 @@ body {
|
|
|
15499
15512
|
width: 100%;
|
|
15500
15513
|
}
|
|
15501
15514
|
|
|
15515
|
+
.max-\[850px\]\:grid-cols-2 {
|
|
15516
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
15517
|
+
}
|
|
15518
|
+
|
|
15502
15519
|
.max-\[850px\]\:flex-col {
|
|
15503
15520
|
flex-direction: column;
|
|
15504
15521
|
}
|