@daeryun/dr_components 0.8.32 → 0.8.34
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/seo/seoAddLink/ribon.svg +1 -1
- package/dist/components/Seo/Lawyer.jsx +1 -1
- package/dist/components/Seo/Lawyer.tsx +1 -0
- package/dist/components/Seo/SeoAdditionalLink.jsx +2 -2
- package/dist/components/Seo/SeoAdditionalLink.tsx +2 -2
- package/dist/components/page/SuccessNew/SuccessNew.jsx +1 -1
- package/dist/components/page/SuccessNew/SuccessNew.tsx +1 -1
- package/dist/components/page/SuccessNew/components/ContentList.jsx +17 -0
- package/dist/components/page/SuccessNew/components/ContentList.tsx +27 -0
- package/dist/components/page/SuccessNew/components/SeoAdditionalLink.jsx +2 -2
- package/dist/components/page/SuccessNew/components/SeoAdditionalLink.tsx +2 -2
- package/dist/styles/globals.css +4 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 127.086 47">
|
|
2
|
-
<path id="패스_4073" data-name="패스 4073" d="M0,0H127.086L114.979,25.026,127.086,47H0Z" fill="#
|
|
2
|
+
<path id="패스_4073" data-name="패스 4073" d="M0,0H127.086L114.979,25.026,127.086,47H0Z" fill="#80377A"/>
|
|
3
3
|
</svg>
|
|
@@ -7,7 +7,7 @@ import IconRightArrow from '../../asset/images/seo/successCase/right_arrow.svg';
|
|
|
7
7
|
export const Lawyer = ({ lawyerData, isSuccess }) => {
|
|
8
8
|
const imagePath = process.env.NEXT_PUBLIC_S3_URL + '';
|
|
9
9
|
const lawyerImagePath = imagePath + '/upload/lawyer';
|
|
10
|
-
return (<div className={'relative h-auto w-full border-l-[1px] border-t-[1px] border-solid border-[#B9B9B9] pb-[45px] pl-[26px] pt-[30px] ' +
|
|
10
|
+
return (<div id={'related_lawyer'} className={'relative h-auto w-full border-l-[1px] border-t-[1px] border-solid border-[#B9B9B9] pb-[45px] pl-[26px] pt-[30px] ' +
|
|
11
11
|
'before:absolute before:left-0 before:top-0 before:block before:aspect-square before:w-[15px] before:bg-[#B9B9B9] before:content-[""] '}>
|
|
12
12
|
<span className={'flex h-fit w-full items-center justify-between'}>
|
|
13
13
|
<p className={'text-[26px] tracking-[-0.5px] max-3xl:text-[24px] max-xl:text-[26px] ' +
|
|
@@ -12,6 +12,7 @@ export const Lawyer = ({ lawyerData, isSuccess }: { lawyerData: any[]; isSuccess
|
|
|
12
12
|
|
|
13
13
|
return (
|
|
14
14
|
<div
|
|
15
|
+
id={'related_lawyer'}
|
|
15
16
|
className={
|
|
16
17
|
'relative h-auto w-full border-l-[1px] border-t-[1px] border-solid border-[#B9B9B9] pb-[45px] pl-[26px] pt-[30px] ' +
|
|
17
18
|
'before:absolute before:left-0 before:top-0 before:block before:aspect-square before:w-[15px] before:bg-[#B9B9B9] before:content-[""] '
|
|
@@ -47,7 +47,7 @@ const SeoAdditionalLink = ({ type, linkList }) => {
|
|
|
47
47
|
{type}
|
|
48
48
|
</p>
|
|
49
49
|
</span>
|
|
50
|
-
<ul className={'flex flex-col gap-[20px] py-[24px] text-[20px] font-normal tracking-[-0.7px] text-[#
|
|
50
|
+
<ul className={'flex flex-col gap-[20px] py-[24px] text-[20px] font-normal tracking-[-0.7px] text-[#80377A] ' +
|
|
51
51
|
//1500px
|
|
52
52
|
'max-3xl:text-[18px] ' +
|
|
53
53
|
//640px
|
|
@@ -56,7 +56,7 @@ const SeoAdditionalLink = ({ type, linkList }) => {
|
|
|
56
56
|
.filter(l => l.title.length > 0)
|
|
57
57
|
.map(linkData => (<li key={linkData.title + linkData.idx}>
|
|
58
58
|
<Link href={linkData.link} className={'relative flex w-fit items-center gap-[8px] font-[600] '} onClick={() => {
|
|
59
|
-
if (type === '
|
|
59
|
+
if (type === '더보기')
|
|
60
60
|
referClick();
|
|
61
61
|
else
|
|
62
62
|
newsClick();
|
|
@@ -67,7 +67,7 @@ const SeoAdditionalLink = ({ type, linkList }: { type: string; linkList: IAddLin
|
|
|
67
67
|
</span>
|
|
68
68
|
<ul
|
|
69
69
|
className={
|
|
70
|
-
'flex flex-col gap-[20px] py-[24px] text-[20px] font-normal tracking-[-0.7px] text-[#
|
|
70
|
+
'flex flex-col gap-[20px] py-[24px] text-[20px] font-normal tracking-[-0.7px] text-[#80377A] ' +
|
|
71
71
|
//1500px
|
|
72
72
|
'max-3xl:text-[18px] ' +
|
|
73
73
|
//640px
|
|
@@ -82,7 +82,7 @@ const SeoAdditionalLink = ({ type, linkList }: { type: string; linkList: IAddLin
|
|
|
82
82
|
href={linkData.link}
|
|
83
83
|
className={'relative flex w-fit items-center gap-[8px] font-[600] '}
|
|
84
84
|
onClick={() => {
|
|
85
|
-
if (type === '
|
|
85
|
+
if (type === '더보기') referClick();
|
|
86
86
|
else newsClick();
|
|
87
87
|
}}
|
|
88
88
|
>
|
|
@@ -133,7 +133,7 @@ const SuccessNew = ({ data, tel }) => {
|
|
|
133
133
|
<span className={'flex flex-col gap-[26px] ' +
|
|
134
134
|
//520px
|
|
135
135
|
'max-2sm:gap-[16px]'}>
|
|
136
|
-
{h2Template.reference_is_use && referenceLinkList.length > 0 && (<SeoAdditionalLink type={'
|
|
136
|
+
{h2Template.reference_is_use && referenceLinkList.length > 0 && (<SeoAdditionalLink type={'더보기'} linkList={referenceLinkList.filter(i => i.tag_idx === h2Template.idx)}/>)}
|
|
137
137
|
{h2Template.news_is_use && newsLinkList.length > 0 && (<SeoAdditionalLink type={'관련기사'} linkList={newsLinkList.filter(i => i.tag_idx === h2Template.idx)}/>)}
|
|
138
138
|
{h2Template.youtube_is_use && (<>
|
|
139
139
|
{shortsLinkList.length > 0 && (<SeoYoutube type={'shorts'} linkList={shortsLinkList.filter(i => i.tag_idx === h2Template.idx)}/>)}
|
|
@@ -202,7 +202,7 @@ const SuccessNew = ({ data, tel }: ISuccessNewPageTypes) => {
|
|
|
202
202
|
>
|
|
203
203
|
{h2Template.reference_is_use && referenceLinkList.length > 0 && (
|
|
204
204
|
<SeoAdditionalLink
|
|
205
|
-
type={'
|
|
205
|
+
type={'더보기'}
|
|
206
206
|
linkList={referenceLinkList.filter(
|
|
207
207
|
i => i.tag_idx === h2Template.idx
|
|
208
208
|
)}
|
|
@@ -2,7 +2,20 @@ import Image from 'next/image';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import ArrowLine from '../../../../asset/images/success_new/arrow_line.webp';
|
|
4
4
|
import ArrowFull from '../../../../asset/images/success_new/arrow_full.webp';
|
|
5
|
+
import useBrowser from '../../../hook/useBrowser';
|
|
5
6
|
const ContentList = ({ onScrollToElement, onImageMove, h2List, template }) => {
|
|
7
|
+
const { width } = useBrowser(true);
|
|
8
|
+
const handleClickGoLawyer = () => {
|
|
9
|
+
const element = document.getElementById('related_lawyer');
|
|
10
|
+
if (!element)
|
|
11
|
+
return;
|
|
12
|
+
const offset = element.getBoundingClientRect().top + window.scrollY;
|
|
13
|
+
const headerHeight = width > 680 ? 150 : 100;
|
|
14
|
+
window.scrollTo({
|
|
15
|
+
top: offset - headerHeight,
|
|
16
|
+
behavior: 'smooth'
|
|
17
|
+
});
|
|
18
|
+
};
|
|
6
19
|
return (<details open className={'relative w-full border border-solid border-[#285FA7] px-[16px] pb-[36px] pt-[40px] xs:px-[26px] sm:px-[32px] sm:py-[54px] lg:px-[47.25px]'}>
|
|
7
20
|
<summary className={'absolute right-[10px] top-[8px] text-right text-[16px] font-[200] tracking-[6.75px] text-[#285FA7] xs:top-[10px] sm:right-[18px] sm:top-[16px] sm:text-[20px] lg:right-[24.75px] lg:top-[23.25px] lg:text-[22.5px]'}>
|
|
8
21
|
CONTENTS
|
|
@@ -40,6 +53,10 @@ const ContentList = ({ onScrollToElement, onImageMove, h2List, template }) => {
|
|
|
40
53
|
{onImageMove ? (<button onClick={onImageMove} className={'mt-[40px] px-[2px] text-[16px] font-bold tracking-[-0.9px] text-[#285FA7] hover:bg-[#FAFAFA] focus:bg-[#FAFAFA] sm:px-[8px] sm:text-[18px] lg:text-[20px] '}>
|
|
41
54
|
▶︎ 결과 이미지 바로 보러가기
|
|
42
55
|
</button>) : (<></>)}
|
|
56
|
+
{width < 1280 && (<button onClick={handleClickGoLawyer} className={`${onImageMove ? 'mt-5 ' : 'mt-[40px] '}` +
|
|
57
|
+
'block px-[2px] text-[16px] font-bold tracking-[-0.9px] text-[#285FA7] hover:bg-[#FAFAFA] focus:bg-[#FAFAFA] sm:px-[8px] sm:text-[18px] lg:text-[20px] '}>
|
|
58
|
+
▶︎ 관련 구성원 바로 보러가기
|
|
59
|
+
</button>)}
|
|
43
60
|
</details>);
|
|
44
61
|
};
|
|
45
62
|
export default ContentList;
|
|
@@ -3,6 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { ISeoTemplateTypes } from '../SuccessNewType';
|
|
4
4
|
import ArrowLine from '../../../../asset/images/success_new/arrow_line.webp';
|
|
5
5
|
import ArrowFull from '../../../../asset/images/success_new/arrow_full.webp';
|
|
6
|
+
import useBrowser from '../../../hook/useBrowser';
|
|
6
7
|
|
|
7
8
|
const ContentList = ({
|
|
8
9
|
onScrollToElement,
|
|
@@ -15,6 +16,21 @@ const ContentList = ({
|
|
|
15
16
|
h2List: ISeoTemplateTypes[];
|
|
16
17
|
template: ISeoTemplateTypes[];
|
|
17
18
|
}) => {
|
|
19
|
+
const { width } = useBrowser(true);
|
|
20
|
+
|
|
21
|
+
const handleClickGoLawyer = () => {
|
|
22
|
+
const element = document.getElementById('related_lawyer');
|
|
23
|
+
if (!element) return;
|
|
24
|
+
|
|
25
|
+
const offset = element.getBoundingClientRect().top + window.scrollY;
|
|
26
|
+
const headerHeight = width > 680 ? 150 : 100;
|
|
27
|
+
|
|
28
|
+
window.scrollTo({
|
|
29
|
+
top: offset - headerHeight,
|
|
30
|
+
behavior: 'smooth'
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
|
|
18
34
|
return (
|
|
19
35
|
<details
|
|
20
36
|
open
|
|
@@ -117,6 +133,17 @@ const ContentList = ({
|
|
|
117
133
|
) : (
|
|
118
134
|
<></>
|
|
119
135
|
)}
|
|
136
|
+
{width < 1280 && (
|
|
137
|
+
<button
|
|
138
|
+
onClick={handleClickGoLawyer}
|
|
139
|
+
className={
|
|
140
|
+
`${onImageMove ? 'mt-5 ' : 'mt-[40px] '}` +
|
|
141
|
+
'block px-[2px] text-[16px] font-bold tracking-[-0.9px] text-[#285FA7] hover:bg-[#FAFAFA] focus:bg-[#FAFAFA] sm:px-[8px] sm:text-[18px] lg:text-[20px] '
|
|
142
|
+
}
|
|
143
|
+
>
|
|
144
|
+
▶︎ 관련 구성원 바로 보러가기
|
|
145
|
+
</button>
|
|
146
|
+
)}
|
|
120
147
|
</details>
|
|
121
148
|
);
|
|
122
149
|
};
|
|
@@ -44,7 +44,7 @@ const SeoAdditionalLink = ({ type, linkList }) => {
|
|
|
44
44
|
{type}
|
|
45
45
|
</p>
|
|
46
46
|
</span>
|
|
47
|
-
<ul className={'flex flex-col gap-[20px] py-[24px] text-[20px] font-normal tracking-[-0.7px] text-[#
|
|
47
|
+
<ul className={'flex flex-col gap-[20px] py-[24px] text-[20px] font-normal tracking-[-0.7px] text-[#80377A] ' +
|
|
48
48
|
//1500px
|
|
49
49
|
'max-3xl:text-[18px] ' +
|
|
50
50
|
//640px
|
|
@@ -55,7 +55,7 @@ const SeoAdditionalLink = ({ type, linkList }) => {
|
|
|
55
55
|
<Link href={linkData.link} className={'relative flex w-fit items-center gap-[16px] font-[600] ' +
|
|
56
56
|
//640px
|
|
57
57
|
'max-sm:gap-[8px] '} onClick={() => {
|
|
58
|
-
if (type === '
|
|
58
|
+
if (type === '더보기')
|
|
59
59
|
referClick();
|
|
60
60
|
else
|
|
61
61
|
newsClick();
|
|
@@ -63,7 +63,7 @@ const SeoAdditionalLink = ({ type, linkList }: { type: string; linkList: IAddLin
|
|
|
63
63
|
</span>
|
|
64
64
|
<ul
|
|
65
65
|
className={
|
|
66
|
-
'flex flex-col gap-[20px] py-[24px] text-[20px] font-normal tracking-[-0.7px] text-[#
|
|
66
|
+
'flex flex-col gap-[20px] py-[24px] text-[20px] font-normal tracking-[-0.7px] text-[#80377A] ' +
|
|
67
67
|
//1500px
|
|
68
68
|
'max-3xl:text-[18px] ' +
|
|
69
69
|
//640px
|
|
@@ -82,7 +82,7 @@ const SeoAdditionalLink = ({ type, linkList }: { type: string; linkList: IAddLin
|
|
|
82
82
|
'max-sm:gap-[8px] '
|
|
83
83
|
}
|
|
84
84
|
onClick={() => {
|
|
85
|
-
if (type === '
|
|
85
|
+
if (type === '더보기') referClick();
|
|
86
86
|
else newsClick();
|
|
87
87
|
}}
|
|
88
88
|
>
|