@daeryun/dr_components 1.2.39 → 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.
- package/dist/components/Footer/index.d.ts +1 -3
- package/dist/components/Footer/index.jsx +12 -25
- package/dist/components/Footer/index.tsx +9 -39
- package/dist/components/GlobalOfficeSection/GlobalOfficeSection.jsx +4 -16
- package/dist/components/GlobalOfficeSection/GlobalOfficeSection.tsx +6 -26
- package/dist/components/categoryView/CategoryComponent.jsx +1 -6
- package/dist/components/categoryView/CategoryComponent.tsx +1 -9
- package/dist/components/common/hook/index.d.ts +1 -1
- package/dist/components/common/hook/index.js +1 -1
- package/dist/components/common/hook/index.ts +1 -1
- package/dist/components/page/Integrate/Broadcast.d.ts +0 -1
- package/dist/components/page/Integrate/Broadcast.jsx +2 -3
- package/dist/components/page/Integrate/Broadcast.tsx +2 -6
- package/dist/components/page/Integrate/Field.d.ts +0 -1
- package/dist/components/page/Integrate/Field.jsx +2 -5
- package/dist/components/page/Integrate/Field.tsx +2 -9
- package/dist/components/page/Integrate/LawInfo.d.ts +0 -1
- package/dist/components/page/Integrate/LawInfo.jsx +2 -5
- package/dist/components/page/Integrate/LawInfo.tsx +2 -8
- package/dist/components/page/Integrate/Reply.d.ts +0 -1
- package/dist/components/page/Integrate/Reply.jsx +6 -8
- package/dist/components/page/Integrate/Reply.tsx +8 -10
- package/dist/components/page/Integrate/SearchData.jsx +6 -8
- package/dist/components/page/Integrate/SearchData.tsx +0 -8
- package/dist/components/page/Integrate/Success.d.ts +0 -1
- package/dist/components/page/Integrate/Success.jsx +4 -7
- package/dist/components/page/Integrate/Success.tsx +5 -10
- package/dist/components/page/Integrate/Trend.d.ts +0 -1
- package/dist/components/page/Integrate/Trend.jsx +2 -5
- package/dist/components/page/Integrate/Trend.tsx +2 -7
- package/dist/components/page/MapPage/MobileMapKeyDetail.jsx +1 -6
- package/dist/components/page/MapPage/MobileMapKeyDetail.tsx +1 -9
- package/dist/components/page/MapPage/PcMapKeyDetail.jsx +1 -6
- package/dist/components/page/MapPage/PcMapKeyDetail.tsx +1 -9
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/components/hook/useIsApp.d.ts +0 -2
- package/dist/components/hook/useIsApp.js +0 -22
- package/dist/components/hook/useIsApp.ts +0 -29
|
@@ -6,7 +6,7 @@ import { Title } from './Title';
|
|
|
6
6
|
import { ViewMore } from './ViewMore';
|
|
7
7
|
import { searchColorText } from '../../common/integrate';
|
|
8
8
|
const LawInfo = (props) => {
|
|
9
|
-
const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount, loading
|
|
9
|
+
const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount, loading } = props;
|
|
10
10
|
const [allTabPage, setAllTabPage] = useState(0);
|
|
11
11
|
const [allTabList, setAllTabList] = useState([]);
|
|
12
12
|
const getAllPage = () => {
|
|
@@ -40,10 +40,7 @@ const LawInfo = (props) => {
|
|
|
40
40
|
<Title title={'법률정보'} tab={tab} type={'info'} onClick={str => onMoreViewText(str)} count={listCount.info}/>
|
|
41
41
|
<div className={'grid w-full gap-[40px] sm:grid-cols-2 sm:gap-[30px] lg:grid-cols-4 lg:gap-[16px]'}>
|
|
42
42
|
{(tab === '전체' ? allTabList : list.infoList).map((item, index) => {
|
|
43
|
-
return (<Link href={{
|
|
44
|
-
pathname: item.pathname + 'lawinfo_new/' + item.idx,
|
|
45
|
-
query: Object.assign({}, (isApp ? { isApp: true } : {}))
|
|
46
|
-
}} key={item.pathname + 'lawinfo_new/' + item.idx} target={item.center_code === props.center_code ? '' : '_blank'} className={'mb-3 flex flex-col gap-3 overflow-hidden'}>
|
|
43
|
+
return (<Link key={item.pathname + 'lawinfo_new/' + item.idx} href={item.pathname + 'lawinfo_new/' + item.idx} target={item.center_code === props.center_code ? '' : '_blank'} className={'mb-3 flex flex-col gap-3 overflow-hidden'}>
|
|
47
44
|
<div className={'relative aspect-[1.47] w-full overflow-hidden max-sm:h-full max-sm:w-full'}>
|
|
48
45
|
<Image src={'https://d1tgonli21s4df.cloudfront.net' + item.img} alt={item.alt} fill sizes="(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 25vw" className={'h-full w-full object-contain '}/>
|
|
49
46
|
</div>
|
|
@@ -26,9 +26,8 @@ const LawInfo = (props: {
|
|
|
26
26
|
};
|
|
27
27
|
search: string;
|
|
28
28
|
loading: boolean;
|
|
29
|
-
isApp: boolean;
|
|
30
29
|
}) => {
|
|
31
|
-
const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount, loading
|
|
30
|
+
const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount, loading } = props;
|
|
32
31
|
const [allTabPage, setAllTabPage] = useState<number>(0);
|
|
33
32
|
const [allTabList, setAllTabList] = useState<IInfoTypes[]>([]);
|
|
34
33
|
|
|
@@ -87,13 +86,8 @@ const LawInfo = (props: {
|
|
|
87
86
|
{(tab === '전체' ? allTabList : list.infoList).map((item, index) => {
|
|
88
87
|
return (
|
|
89
88
|
<Link
|
|
90
|
-
href={{
|
|
91
|
-
pathname: item.pathname + 'lawinfo_new/' + item.idx,
|
|
92
|
-
query: {
|
|
93
|
-
...(isApp ? { isApp: true } : {})
|
|
94
|
-
}
|
|
95
|
-
}}
|
|
96
89
|
key={item.pathname + 'lawinfo_new/' + item.idx}
|
|
90
|
+
href={item.pathname + 'lawinfo_new/' + item.idx}
|
|
97
91
|
target={item.center_code === props.center_code ? '' : '_blank'}
|
|
98
92
|
className={'mb-3 flex flex-col gap-3 overflow-hidden'}
|
|
99
93
|
>
|
|
@@ -6,7 +6,7 @@ import { Title } from './Title';
|
|
|
6
6
|
import { ViewMore } from './ViewMore';
|
|
7
7
|
import { searchColorText } from '../../common/integrate';
|
|
8
8
|
const Reply = (props) => {
|
|
9
|
-
const { tab, onMoreViewText, list, pages, isMobileSize, onMoreView, search, listCount, loading
|
|
9
|
+
const { tab, onMoreViewText, list, pages, isMobileSize, onMoreView, search, listCount, loading } = props;
|
|
10
10
|
const [allTabPage, setAllTabPage] = useState(0);
|
|
11
11
|
const [allTabList, setAllTabList] = useState([]);
|
|
12
12
|
const getAllPage = () => {
|
|
@@ -40,13 +40,11 @@ const Reply = (props) => {
|
|
|
40
40
|
<Title title={'고객후기'} tab={tab} type={'reply'} onClick={str => onMoreViewText(str)} count={listCount.reply}/>
|
|
41
41
|
<div className={'mb-9 mt-8 grid gap-[18px] sm:grid-cols-2'}>
|
|
42
42
|
{(tab === '전체' ? allTabList : list.replyList).map((item, index) => {
|
|
43
|
-
return (<Link href={
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
item.id
|
|
49
|
-
}} target={item.crime_code === props.crime_code ? '' : '_blank'} key={'reply' + item.id} className={'flex h-[280px] flex-col border-[5px] border-solid border-[#EAEAEA] p-7 max-xs:h-[190px] max-xs:p-4 sm:p-8 '}>
|
|
43
|
+
return (<Link href={(item.crime_code != props.crime_code
|
|
44
|
+
? 'https://www.daeryunlaw.com'
|
|
45
|
+
: '') +
|
|
46
|
+
'/reply/' +
|
|
47
|
+
item.id} target={item.crime_code === props.crime_code ? '' : '_blank'} key={'reply' + item.id} className={'flex h-[280px] flex-col border-[5px] border-solid border-[#EAEAEA] p-7 max-xs:h-[190px] max-xs:p-4 sm:p-8 '}>
|
|
50
48
|
<p className={'h-[70px] text-[20px] font-[800] max-xs:h-[60px] max-xs:text-[18px] sm:text-[22px]'}>
|
|
51
49
|
<span className={'text-[#285FA7]'}>{item.etc4} </span>
|
|
52
50
|
<br className={'block sm:hidden'}/>
|
|
@@ -27,9 +27,8 @@ const Reply = (props: {
|
|
|
27
27
|
trend: number;
|
|
28
28
|
};
|
|
29
29
|
loading: boolean;
|
|
30
|
-
isApp: boolean;
|
|
31
30
|
}) => {
|
|
32
|
-
const { tab, onMoreViewText, list, pages, isMobileSize, onMoreView, search, listCount, loading
|
|
31
|
+
const { tab, onMoreViewText, list, pages, isMobileSize, onMoreView, search, listCount, loading } = props;
|
|
33
32
|
|
|
34
33
|
const [allTabPage, setAllTabPage] = useState<number>(0);
|
|
35
34
|
const [allTabList, setAllTabList] = useState<IReplyTypes[]>([]);
|
|
@@ -85,14 +84,13 @@ const Reply = (props: {
|
|
|
85
84
|
{(tab === '전체' ? allTabList : list.replyList).map((item, index) => {
|
|
86
85
|
return (
|
|
87
86
|
<Link
|
|
88
|
-
href={
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}}
|
|
87
|
+
href={
|
|
88
|
+
(item.crime_code != props.crime_code
|
|
89
|
+
? 'https://www.daeryunlaw.com'
|
|
90
|
+
: '') +
|
|
91
|
+
'/reply/' +
|
|
92
|
+
item.id
|
|
93
|
+
}
|
|
96
94
|
target={item.crime_code === props.crime_code ? '' : '_blank'}
|
|
97
95
|
key={'reply' + item.id}
|
|
98
96
|
className={
|
|
@@ -20,11 +20,9 @@ import Reply from './Reply';
|
|
|
20
20
|
import Lawyer from './Lawyer';
|
|
21
21
|
import useBrowser from '../../hook/useBrowser';
|
|
22
22
|
import Trend from './Trend';
|
|
23
|
-
import useIsApp from '../../hook/useIsApp';
|
|
24
23
|
const SearchData = ({ list: propsList, totalCount, listCount, center_code, crime_code }) => {
|
|
25
24
|
const { width } = useBrowser(true);
|
|
26
25
|
const router = useRouter();
|
|
27
|
-
const isApp = useIsApp();
|
|
28
26
|
const [tab, setTab] = useState('');
|
|
29
27
|
const [search, setSearch] = useState('');
|
|
30
28
|
const [list, setList] = useState(searchInit.list);
|
|
@@ -83,14 +81,14 @@ const SearchData = ({ list: propsList, totalCount, listCount, center_code, crime
|
|
|
83
81
|
}, [width, isMobileSize]);
|
|
84
82
|
return (<span id={'integrate-result'}>
|
|
85
83
|
{tab === '전체' && totalCount < 1 ? (<NoResult />) : (<>
|
|
86
|
-
<Field isMobileSize={isMobileSize} listCount={listCount} center_code={center_code} tab={tab} list={list} pages={pages} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('fieldList', 'field')} search={search} loading={loading.field}
|
|
87
|
-
<Success isMobileSize={isMobileSize} center_code={center_code} tab={tab} list={list} pages={pages} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('successList', 'success')} search={search} loading={loading.success} listCount={listCount}
|
|
88
|
-
<LawInfo isMobileSize={isMobileSize} center_code={center_code} tab={tab} list={list} pages={pages} listCount={listCount} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('infoList', 'info')} search={search} loading={loading.info}
|
|
84
|
+
<Field isMobileSize={isMobileSize} listCount={listCount} center_code={center_code} tab={tab} list={list} pages={pages} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('fieldList', 'field')} search={search} loading={loading.field}/>
|
|
85
|
+
<Success isMobileSize={isMobileSize} center_code={center_code} tab={tab} list={list} pages={pages} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('successList', 'success')} search={search} loading={loading.success} listCount={listCount}/>
|
|
86
|
+
<LawInfo isMobileSize={isMobileSize} center_code={center_code} tab={tab} list={list} pages={pages} listCount={listCount} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('infoList', 'info')} search={search} loading={loading.info}/>
|
|
89
87
|
<Lawyer isMobileSize={isMobileSize} tab={tab} listCount={listCount} list={list} pages={pages} center_code={center_code} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('lawyerList', 'lawyer')} loading={loading.lawyer}/>
|
|
90
|
-
<Reply isMobileSize={isMobileSize} crime_code={crime_code} tab={tab} list={list} pages={pages} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('replyList', 'reply')} search={search} loading={loading.reply} listCount={listCount}
|
|
91
|
-
<Broadcast isMobileSize={isMobileSize} listCount={listCount} tab={tab} list={list} pages={pages} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('broadcastList', 'broadcast')} search={search} loading={loading.broadcast}
|
|
88
|
+
<Reply isMobileSize={isMobileSize} crime_code={crime_code} tab={tab} list={list} pages={pages} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('replyList', 'reply')} search={search} loading={loading.reply} listCount={listCount}/>
|
|
89
|
+
<Broadcast isMobileSize={isMobileSize} listCount={listCount} tab={tab} list={list} pages={pages} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('broadcastList', 'broadcast')} search={search} loading={loading.broadcast}/>
|
|
92
90
|
|
|
93
|
-
<Trend isMobileSize={isMobileSize} listCount={listCount} tab={tab} list={list} pages={pages} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('trendList', 'trend')} search={search} loading={loading.trend}
|
|
91
|
+
<Trend isMobileSize={isMobileSize} listCount={listCount} tab={tab} list={list} pages={pages} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('trendList', 'trend')} search={search} loading={loading.trend}/>
|
|
94
92
|
|
|
95
93
|
{/*<Map*/}
|
|
96
94
|
{/* isMobileSize={isMobileSize}*/}
|
|
@@ -13,7 +13,6 @@ import Map from './Map';
|
|
|
13
13
|
import Lawyer from './Lawyer';
|
|
14
14
|
import useBrowser from '../../hook/useBrowser';
|
|
15
15
|
import Trend from './Trend';
|
|
16
|
-
import useIsApp from '../../hook/useIsApp';
|
|
17
16
|
|
|
18
17
|
const SearchData = ({
|
|
19
18
|
list: propsList,
|
|
@@ -38,7 +37,6 @@ const SearchData = ({
|
|
|
38
37
|
}) => {
|
|
39
38
|
const { width } = useBrowser(true);
|
|
40
39
|
const router = useRouter();
|
|
41
|
-
const isApp = useIsApp();
|
|
42
40
|
const [tab, setTab] = useState<string>('');
|
|
43
41
|
const [search, setSearch] = useState<string>('');
|
|
44
42
|
const [list, setList] = useState<IListTypes>(searchInit.list);
|
|
@@ -124,7 +122,6 @@ const SearchData = ({
|
|
|
124
122
|
onMoreView={() => loadMore('fieldList', 'field')}
|
|
125
123
|
search={search}
|
|
126
124
|
loading={loading.field}
|
|
127
|
-
isApp={isApp}
|
|
128
125
|
/>
|
|
129
126
|
<Success
|
|
130
127
|
isMobileSize={isMobileSize}
|
|
@@ -137,7 +134,6 @@ const SearchData = ({
|
|
|
137
134
|
search={search}
|
|
138
135
|
loading={loading.success}
|
|
139
136
|
listCount={listCount}
|
|
140
|
-
isApp={isApp}
|
|
141
137
|
/>
|
|
142
138
|
<LawInfo
|
|
143
139
|
isMobileSize={isMobileSize}
|
|
@@ -150,7 +146,6 @@ const SearchData = ({
|
|
|
150
146
|
onMoreView={() => loadMore('infoList', 'info')}
|
|
151
147
|
search={search}
|
|
152
148
|
loading={loading.info}
|
|
153
|
-
isApp={isApp}
|
|
154
149
|
/>
|
|
155
150
|
<Lawyer
|
|
156
151
|
isMobileSize={isMobileSize}
|
|
@@ -174,7 +169,6 @@ const SearchData = ({
|
|
|
174
169
|
search={search}
|
|
175
170
|
loading={loading.reply}
|
|
176
171
|
listCount={listCount}
|
|
177
|
-
isApp={isApp}
|
|
178
172
|
/>
|
|
179
173
|
<Broadcast
|
|
180
174
|
isMobileSize={isMobileSize}
|
|
@@ -186,7 +180,6 @@ const SearchData = ({
|
|
|
186
180
|
onMoreView={() => loadMore('broadcastList', 'broadcast')}
|
|
187
181
|
search={search}
|
|
188
182
|
loading={loading.broadcast}
|
|
189
|
-
isApp={isApp}
|
|
190
183
|
/>
|
|
191
184
|
|
|
192
185
|
<Trend
|
|
@@ -199,7 +192,6 @@ const SearchData = ({
|
|
|
199
192
|
onMoreView={() => loadMore('trendList', 'trend')}
|
|
200
193
|
search={search}
|
|
201
194
|
loading={loading.trend}
|
|
202
|
-
isApp={isApp}
|
|
203
195
|
/>
|
|
204
196
|
|
|
205
197
|
{/*<Map*/}
|
|
@@ -6,7 +6,7 @@ import { ViewMore } from './ViewMore';
|
|
|
6
6
|
import { searchColorText } from '../../common/integrate';
|
|
7
7
|
const Success = (props) => {
|
|
8
8
|
var _a;
|
|
9
|
-
const { tab, onMoreViewText, list, pages, onMoreView, search, listCount, isMobileSize, loading
|
|
9
|
+
const { tab, onMoreViewText, list, pages, onMoreView, search, listCount, isMobileSize, loading } = props;
|
|
10
10
|
const [allTabPage, setAllTabPage] = useState(0);
|
|
11
11
|
const [allTabList, setAllTabList] = useState([]);
|
|
12
12
|
const getAllPage = () => {
|
|
@@ -41,12 +41,9 @@ const Success = (props) => {
|
|
|
41
41
|
{((_a = list.successList) === null || _a === void 0 ? void 0 : _a.length) !== 0 && (<div className={'mb-9 mt-9 grid gap-[30px] sm:grid-cols-2'}>
|
|
42
42
|
{(tab === '전체' ? allTabList : list.successList).map((item, index) => {
|
|
43
43
|
var _a, _b;
|
|
44
|
-
return (<Link href={
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
: `https://${item.office_pathname}/success_new/${item.id}`,
|
|
48
|
-
query: Object.assign({}, (isApp ? { isApp: true } : {}))
|
|
49
|
-
}} target={item.center_code === props.center_code ? '' : '_blank'} className={' overflow-hidden border-[2px] border-solid border-[#ebebebcc]'} key={item.id + item.center_code}>
|
|
44
|
+
return (<Link href={!item.center_code.includes('OF')
|
|
45
|
+
? item.pathname + 'success_new/' + item.id
|
|
46
|
+
: `https://${item.office_pathname}/success_new/${item.id}`} target={item.center_code === props.center_code ? '' : '_blank'} className={' overflow-hidden border-[2px] border-solid border-[#ebebebcc]'} key={item.id + item.center_code}>
|
|
50
47
|
<p className={`ml-8 inline-block w-auto max-w-[70%] bg-[#2960A7] p-2 px-7 text-center text-[18px] font-[800] text-[#fff] max-lg:text-[16px] max-sm:text-[15px] max-2xs:text-[14px]`}>
|
|
51
48
|
<span className={'line-clamp-1'}>{item.sub}</span>
|
|
52
49
|
</p>
|
|
@@ -6,7 +6,6 @@ import { IListPagesType, IListTypes, ISuccessTypes } from './integrateType';
|
|
|
6
6
|
import { Title } from './Title';
|
|
7
7
|
import { ViewMore } from './ViewMore';
|
|
8
8
|
import { searchColorText } from '../../common/integrate';
|
|
9
|
-
import useIsApp from '../../hook/useIsApp';
|
|
10
9
|
|
|
11
10
|
const Success = (props: {
|
|
12
11
|
isMobileSize: boolean | null;
|
|
@@ -27,9 +26,8 @@ const Success = (props: {
|
|
|
27
26
|
trend: number;
|
|
28
27
|
};
|
|
29
28
|
loading: boolean;
|
|
30
|
-
isApp: boolean;
|
|
31
29
|
}) => {
|
|
32
|
-
const { tab, onMoreViewText, list, pages, onMoreView, search, listCount, isMobileSize, loading
|
|
30
|
+
const { tab, onMoreViewText, list, pages, onMoreView, search, listCount, isMobileSize, loading } = props;
|
|
33
31
|
|
|
34
32
|
const [allTabPage, setAllTabPage] = useState<number>(0);
|
|
35
33
|
const [allTabList, setAllTabList] = useState<ISuccessTypes[]>([]);
|
|
@@ -86,14 +84,11 @@ const Success = (props: {
|
|
|
86
84
|
{(tab === '전체' ? allTabList : list.successList).map((item, index) => {
|
|
87
85
|
return (
|
|
88
86
|
<Link
|
|
89
|
-
href={
|
|
90
|
-
|
|
87
|
+
href={
|
|
88
|
+
!item.center_code.includes('OF')
|
|
91
89
|
? item.pathname + 'success_new/' + item.id
|
|
92
|
-
: `https://${item.office_pathname}/success_new/${item.id}
|
|
93
|
-
|
|
94
|
-
...(isApp ? { isApp: true } : {})
|
|
95
|
-
}
|
|
96
|
-
}}
|
|
90
|
+
: `https://${item.office_pathname}/success_new/${item.id}`
|
|
91
|
+
}
|
|
97
92
|
target={item.center_code === props.center_code ? '' : '_blank'}
|
|
98
93
|
className={
|
|
99
94
|
' overflow-hidden border-[2px] border-solid border-[#ebebebcc]'
|
|
@@ -6,7 +6,7 @@ import { Title } from './Title';
|
|
|
6
6
|
import { ViewMore } from './ViewMore';
|
|
7
7
|
import { searchColorText } from '../../common/integrate';
|
|
8
8
|
const Trend = (props) => {
|
|
9
|
-
const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount, loading
|
|
9
|
+
const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount, loading } = props;
|
|
10
10
|
const [allTabPage, setAllTabPage] = useState(0);
|
|
11
11
|
const [allTabList, setAllTabList] = useState([]);
|
|
12
12
|
const getAllPage = () => {
|
|
@@ -41,10 +41,7 @@ const Trend = (props) => {
|
|
|
41
41
|
<div className={'mb-9 mt-8 grid gap-[18px] sm:grid-cols-2'}>
|
|
42
42
|
{(tab === '전체' ? allTabList : list.trendList).map((item, index) => {
|
|
43
43
|
const title = item.title.split('|');
|
|
44
|
-
return (<Link target={'_blank'} href={{
|
|
45
|
-
pathname: `https://${isApp ? 'mysjkp' : 'www'}.daeryunlaw.com/trend/` +
|
|
46
|
-
item.idx
|
|
47
|
-
}} key={'trend' + item.idx} className={'flex h-[280px] flex-col border-[5px] border-solid border-[#EAEAEA] p-7 max-xs:h-[190px] max-xs:p-4 sm:p-8 '}>
|
|
44
|
+
return (<Link target={'_blank'} href={'https://www.daeryunlaw.com/trend/' + item.idx} key={'trend' + item.idx} className={'flex h-[280px] flex-col border-[5px] border-solid border-[#EAEAEA] p-7 max-xs:h-[190px] max-xs:p-4 sm:p-8 '}>
|
|
48
45
|
<p className={'line-clamp-2 h-[70px] text-[20px] font-[800] text-[#285FA7] max-xs:h-[60px] max-xs:text-[18px] sm:text-[22px]'}>
|
|
49
46
|
{title.length > 1 ? (<>
|
|
50
47
|
{title[0]}
|
|
@@ -25,9 +25,8 @@ const Trend = (props: {
|
|
|
25
25
|
trend: number;
|
|
26
26
|
};
|
|
27
27
|
loading: boolean;
|
|
28
|
-
isApp: boolean;
|
|
29
28
|
}) => {
|
|
30
|
-
const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount, loading
|
|
29
|
+
const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount, loading } = props;
|
|
31
30
|
|
|
32
31
|
const [allTabPage, setAllTabPage] = useState<number>(0);
|
|
33
32
|
const [allTabList, setAllTabList] = useState<ITrendTypes[]>([]);
|
|
@@ -86,11 +85,7 @@ const Trend = (props: {
|
|
|
86
85
|
return (
|
|
87
86
|
<Link
|
|
88
87
|
target={'_blank'}
|
|
89
|
-
href={
|
|
90
|
-
pathname:
|
|
91
|
-
`https://${isApp ? 'mysjkp' : 'www'}.daeryunlaw.com/trend/` +
|
|
92
|
-
item.idx
|
|
93
|
-
}}
|
|
88
|
+
href={'https://www.daeryunlaw.com/trend/' + item.idx}
|
|
94
89
|
key={'trend' + item.idx}
|
|
95
90
|
className={
|
|
96
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 '
|
|
@@ -6,10 +6,8 @@ import imgExpand from '../../../asset/images/map/expand.webp';
|
|
|
6
6
|
import imgMap from '../../../asset/images/map/map.webp';
|
|
7
7
|
import imgShare from '../../../asset/images/map/share.webp';
|
|
8
8
|
import imgYoutube from '../../../asset/images/map/youtube.webp';
|
|
9
|
-
import useIsApp from '../../hook/useIsApp';
|
|
10
9
|
const MobileMapKeyDetail = ({ h1Title, mapInfo, setShowModal, mapPath, mapShare, targetRef }) => {
|
|
11
10
|
var _a, _b, _c;
|
|
12
|
-
const isApp = useIsApp();
|
|
13
11
|
return (<div ref={targetRef} className="block md:mt-[5%] lg:hidden">
|
|
14
12
|
<div className="border-b-[1px] border-solid border-[#285FA7] py-7">
|
|
15
13
|
<div className="flex flex-col gap-4 md:flex-row">
|
|
@@ -18,10 +16,7 @@ const MobileMapKeyDetail = ({ h1Title, mapInfo, setShowModal, mapPath, mapShare,
|
|
|
18
16
|
<h2 className="break-keep text-[18px] font-[800] text-[#0D2B52] md:text-[18px] lg:text-[28px]">
|
|
19
17
|
{mapInfo.title}
|
|
20
18
|
</h2>
|
|
21
|
-
{mapInfo.domain && (<Link href={{
|
|
22
|
-
pathname: `https://${mapInfo.domain}`,
|
|
23
|
-
query: Object.assign({}, (isApp ? { isApp: true } : {}))
|
|
24
|
-
}} target="_blank" className="group mx-auto mt-[30px] flex h-[70px] w-[200px] items-center justify-between rounded-[12px] border-[1px] border-solid border-[#0D2B52] px-[15px] hover:bg-[#0D2B52] max-xl:h-[60px] max-xl:w-[170px] max-xl:px-[10px] max-md:mb-[20px] max-md:mt-[10px] max-md:h-[50px] max-md:w-[155px]">
|
|
19
|
+
{mapInfo.domain && (<Link href={`https://${mapInfo.domain}`} target="_blank" className="group mx-auto mt-[30px] flex h-[70px] w-[200px] items-center justify-between rounded-[12px] border-[1px] border-solid border-[#0D2B52] px-[15px] hover:bg-[#0D2B52] max-xl:h-[60px] max-xl:w-[170px] max-xl:px-[10px] max-md:mb-[20px] max-md:mt-[10px] max-md:h-[50px] max-md:w-[155px]">
|
|
25
20
|
<span className="relative block aspect-square w-[37px] rounded-full bg-[#0D2B52] group-hover:bg-[#fff] max-xl:w-[35px]">
|
|
26
21
|
<IconHome className="scale-[.65] fill-[#fff] group-hover:fill-[#0D2B52]"/>
|
|
27
22
|
</span>
|
|
@@ -9,7 +9,6 @@ import imgMap from '../../../asset/images/map/map.webp';
|
|
|
9
9
|
import imgShare from '../../../asset/images/map/share.webp';
|
|
10
10
|
import imgYoutube from '../../../asset/images/map/youtube.webp';
|
|
11
11
|
import { ForwardedRef } from 'react';
|
|
12
|
-
import useIsApp from '../../hook/useIsApp';
|
|
13
12
|
|
|
14
13
|
const MobileMapKeyDetail = ({
|
|
15
14
|
h1Title,
|
|
@@ -26,8 +25,6 @@ const MobileMapKeyDetail = ({
|
|
|
26
25
|
mapShare: (item: IMap) => Promise<void>;
|
|
27
26
|
targetRef: ForwardedRef<HTMLDivElement>;
|
|
28
27
|
}) => {
|
|
29
|
-
const isApp = useIsApp();
|
|
30
|
-
|
|
31
28
|
return (
|
|
32
29
|
<div ref={targetRef} className="block md:mt-[5%] lg:hidden">
|
|
33
30
|
<div className="border-b-[1px] border-solid border-[#285FA7] py-7">
|
|
@@ -39,12 +36,7 @@ const MobileMapKeyDetail = ({
|
|
|
39
36
|
</h2>
|
|
40
37
|
{mapInfo.domain && (
|
|
41
38
|
<Link
|
|
42
|
-
href={{
|
|
43
|
-
pathname: `https://${mapInfo.domain}`,
|
|
44
|
-
query: {
|
|
45
|
-
...(isApp ? { isApp: true } : {})
|
|
46
|
-
}
|
|
47
|
-
}}
|
|
39
|
+
href={`https://${mapInfo.domain}`}
|
|
48
40
|
target="_blank"
|
|
49
41
|
className="group mx-auto mt-[30px] flex h-[70px] w-[200px] items-center justify-between rounded-[12px] border-[1px] border-solid border-[#0D2B52] px-[15px] hover:bg-[#0D2B52] max-xl:h-[60px] max-xl:w-[170px] max-xl:px-[10px] max-md:mb-[20px] max-md:mt-[10px] max-md:h-[50px] max-md:w-[155px]"
|
|
50
42
|
>
|
|
@@ -6,10 +6,8 @@ import imgExpand from '../../../asset/images/map/expand.webp';
|
|
|
6
6
|
import imgMap from '../../../asset/images/map/map.webp';
|
|
7
7
|
import imgShare from '../../../asset/images/map/share.webp';
|
|
8
8
|
import imgYoutube from '../../../asset/images/map/youtube.webp';
|
|
9
|
-
import useIsApp from '../../hook/useIsApp';
|
|
10
9
|
const PcMapKeyDetail = ({ h1Title, mapInfo, setShowModal, mapPath, mapShare, targetRef }) => {
|
|
11
10
|
var _a, _b, _c;
|
|
12
|
-
const isApp = useIsApp();
|
|
13
11
|
return (<div ref={targetRef} className="hidden border-b-[1px] border-solid border-[#285FA7] py-14 lg:block">
|
|
14
12
|
<div className="flex gap-10">
|
|
15
13
|
<div className="w-[35%] text-center">
|
|
@@ -17,10 +15,7 @@ const PcMapKeyDetail = ({ h1Title, mapInfo, setShowModal, mapPath, mapShare, tar
|
|
|
17
15
|
<h2 className="break-keep font-[800] text-[#0D2B52] md:text-[20px] lg:text-[22px]">
|
|
18
16
|
{mapInfo.title}
|
|
19
17
|
</h2>
|
|
20
|
-
{mapInfo.domain && (<Link href={{
|
|
21
|
-
pathname: `https://${mapInfo.domain}`,
|
|
22
|
-
query: Object.assign({}, (isApp ? { isApp: true } : {}))
|
|
23
|
-
}} target="_blank" className="group mx-auto mt-[30px] flex h-[70px] w-[200px] items-center justify-between rounded-[12px] border-[1px] border-solid border-[#0D2B52] px-[15px] hover:bg-[#0D2B52] max-xl:h-[60px] max-xl:w-[170px] max-xl:px-[10px]">
|
|
18
|
+
{mapInfo.domain && (<Link href={`https://${mapInfo.domain}`} target="_blank" className="group mx-auto mt-[30px] flex h-[70px] w-[200px] items-center justify-between rounded-[12px] border-[1px] border-solid border-[#0D2B52] px-[15px] hover:bg-[#0D2B52] max-xl:h-[60px] max-xl:w-[170px] max-xl:px-[10px]">
|
|
24
19
|
<span className="relative block aspect-square w-[37px] rounded-full bg-[#0D2B52] group-hover:bg-[#fff] max-xl:w-[35px]">
|
|
25
20
|
<IconHome className="scale-[.65] fill-[#fff] group-hover:fill-[#0D2B52]"/>
|
|
26
21
|
</span>
|
|
@@ -8,7 +8,6 @@ import imgExpand from '../../../asset/images/map/expand.webp';
|
|
|
8
8
|
import imgMap from '../../../asset/images/map/map.webp';
|
|
9
9
|
import imgShare from '../../../asset/images/map/share.webp';
|
|
10
10
|
import imgYoutube from '../../../asset/images/map/youtube.webp';
|
|
11
|
-
import useIsApp from '../../hook/useIsApp';
|
|
12
11
|
|
|
13
12
|
const PcMapKeyDetail = ({
|
|
14
13
|
h1Title,
|
|
@@ -25,8 +24,6 @@ const PcMapKeyDetail = ({
|
|
|
25
24
|
mapShare: (item: IMap) => Promise<void>;
|
|
26
25
|
targetRef: ForwardedRef<HTMLDivElement>;
|
|
27
26
|
}) => {
|
|
28
|
-
const isApp = useIsApp();
|
|
29
|
-
|
|
30
27
|
return (
|
|
31
28
|
<div ref={targetRef} className="hidden border-b-[1px] border-solid border-[#285FA7] py-14 lg:block">
|
|
32
29
|
<div className="flex gap-10">
|
|
@@ -37,12 +34,7 @@ const PcMapKeyDetail = ({
|
|
|
37
34
|
</h2>
|
|
38
35
|
{mapInfo.domain && (
|
|
39
36
|
<Link
|
|
40
|
-
href={{
|
|
41
|
-
pathname: `https://${mapInfo.domain}`,
|
|
42
|
-
query: {
|
|
43
|
-
...(isApp ? { isApp: true } : {})
|
|
44
|
-
}
|
|
45
|
-
}}
|
|
37
|
+
href={`https://${mapInfo.domain}`}
|
|
46
38
|
target="_blank"
|
|
47
39
|
className="group mx-auto mt-[30px] flex h-[70px] w-[200px] items-center justify-between rounded-[12px] border-[1px] border-solid border-[#0D2B52] px-[15px] hover:bg-[#0D2B52] max-xl:h-[60px] max-xl:w-[170px] max-xl:px-[10px]"
|
|
48
40
|
>
|