@daeryun/dr_components 0.7.30 → 0.7.32
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/cjs/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/components/Loader/Loader.jsx +1 -1
- package/dist/components/Loader/Loader.tsx +1 -1
- package/dist/components/Seo/SeoAdditionalLink.jsx +25 -43
- package/dist/components/Seo/SeoAdditionalLink.stories.jsx +1 -1
- package/dist/components/Seo/SeoAdditionalLink.stories.tsx +1 -1
- package/dist/components/Seo/SeoAdditionalLink.tsx +34 -75
- package/dist/components/Seo/SeoYoutube.d.ts +2 -1
- package/dist/components/Seo/SeoYoutube.jsx +76 -35
- package/dist/components/Seo/SeoYoutube.stories.d.ts +8 -1
- package/dist/components/Seo/SeoYoutube.stories.jsx +8 -1
- package/dist/components/Seo/SeoYoutube.stories.tsx +8 -1
- package/dist/components/Seo/SeoYoutube.tsx +145 -59
- package/dist/components/YoutubeModal/YoutubeModal.d.ts +1 -0
- package/dist/components/YoutubeModal/YoutubeModal.jsx +3 -4
- package/dist/components/YoutubeModal/YoutubeModal.tsx +4 -4
- package/dist/components/common/integrate/index.d.ts +1 -1
- package/dist/styles/globals.css +347 -287
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -1
|
@@ -8,8 +8,6 @@ import { IAddLinkTypes } from '../common/types/seo';
|
|
|
8
8
|
import IconRibon from '../../asset/images/seo/seoAddLink/ribon.svg';
|
|
9
9
|
import IconLinkOn from '../../asset/images/seo/seoAddLink/link_on.webp';
|
|
10
10
|
import IconLinkArrow from '../../asset/images/seo/seoAddLink/link_arrow.webp';
|
|
11
|
-
import IconYoutube from '../../asset/images/seo/seoAddLink/logo_youtube.webp';
|
|
12
|
-
import IconYoutubeSmall from '../../asset/images/seo/seoAddLink/youtubeSmall_ico.svg';
|
|
13
11
|
|
|
14
12
|
const SeoAdditionalLink = ({ type, linkList }: { type: string; linkList: IAddLinkTypes[] }) => {
|
|
15
13
|
const referClick = () => {
|
|
@@ -41,61 +39,35 @@ const SeoAdditionalLink = ({ type, linkList }: { type: string; linkList: IAddLin
|
|
|
41
39
|
'max-2sm:gap-[10px] '
|
|
42
40
|
}
|
|
43
41
|
>
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
>
|
|
58
|
-
<Image
|
|
59
|
-
src={IconYoutube}
|
|
60
|
-
alt=""
|
|
61
|
-
className={'h-6 w-[105px] object-contain'}
|
|
62
|
-
width={210}
|
|
63
|
-
height={48}
|
|
64
|
-
/>
|
|
65
|
-
</span>
|
|
66
|
-
) : (
|
|
67
|
-
<span
|
|
42
|
+
<span
|
|
43
|
+
className={
|
|
44
|
+
'relative flex h-[47px] w-[130px] shrink-0 items-center ' +
|
|
45
|
+
//1500px
|
|
46
|
+
'max-3xl:h-[42px] max-3xl:w-[120px] ' +
|
|
47
|
+
//640px
|
|
48
|
+
'max-sm:h-[38px] max-sm:w-[110px] ' +
|
|
49
|
+
//520px
|
|
50
|
+
'max-2sm:h-[33px] max-2sm:w-[100px] '
|
|
51
|
+
}
|
|
52
|
+
>
|
|
53
|
+
<IconRibon className="absolute left-0 top-0 -z-10 h-full w-auto " />
|
|
54
|
+
<p
|
|
68
55
|
className={
|
|
69
|
-
'
|
|
56
|
+
'pl-[15px] text-[24px] font-bold leading-none tracking-[-0.96px] text-white ' +
|
|
70
57
|
//1500px
|
|
71
|
-
'max-3xl:
|
|
58
|
+
'max-3xl:text-[22px] ' +
|
|
72
59
|
//640px
|
|
73
|
-
'max-sm:
|
|
60
|
+
'max-sm:text-[18px] ' +
|
|
74
61
|
//520px
|
|
75
|
-
'max-2sm:
|
|
62
|
+
'max-2sm:pl-[10px] max-2sm:text-[16px] '
|
|
76
63
|
}
|
|
77
64
|
>
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
'pl-[15px] text-[24px] font-bold leading-none tracking-[-0.96px] text-white ' +
|
|
82
|
-
//1500px
|
|
83
|
-
'max-3xl:text-[22px] ' +
|
|
84
|
-
//640px
|
|
85
|
-
'max-sm:text-[18px] ' +
|
|
86
|
-
//520px
|
|
87
|
-
'max-2sm:pl-[10px] max-2sm:text-[16px] '
|
|
88
|
-
}
|
|
89
|
-
>
|
|
90
|
-
{type}
|
|
91
|
-
</p>
|
|
92
|
-
</span>
|
|
93
|
-
)}
|
|
65
|
+
{type}
|
|
66
|
+
</p>
|
|
67
|
+
</span>
|
|
94
68
|
<ul
|
|
95
69
|
className={
|
|
96
|
-
'flex flex-col gap-[20px] py-[24px] text-[20px] font-normal tracking-[-0.7px] ' +
|
|
97
|
-
// 쇼츠타입 추가
|
|
98
|
-
`${type == 'shorts' ? 'flex min-h-[98px] items-center justify-center ' : 'text-[#0D74CE] '}` +
|
|
70
|
+
'flex flex-col gap-[20px] py-[24px] text-[20px] font-normal tracking-[-0.7px] text-[#0D74CE] ' +
|
|
99
71
|
//1500px
|
|
100
72
|
'max-3xl:text-[18px] ' +
|
|
101
73
|
//640px
|
|
@@ -108,7 +80,6 @@ const SeoAdditionalLink = ({ type, linkList }: { type: string; linkList: IAddLin
|
|
|
108
80
|
<li key={linkData.title + linkData.idx}>
|
|
109
81
|
<Link
|
|
110
82
|
href={linkData.link}
|
|
111
|
-
target={type == 'shorts' ? '_blank' : '_self'}
|
|
112
83
|
className={'relative flex w-fit items-center gap-[8px] font-[600] '}
|
|
113
84
|
onClick={() => {
|
|
114
85
|
if (type === '참고') referClick();
|
|
@@ -133,31 +104,19 @@ const SeoAdditionalLink = ({ type, linkList }: { type: string; linkList: IAddLin
|
|
|
133
104
|
>
|
|
134
105
|
{linkData.title}
|
|
135
106
|
</p>
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
alt={''}
|
|
150
|
-
width={16}
|
|
151
|
-
height={16}
|
|
152
|
-
className={
|
|
153
|
-
'inline aspect-square w-[16px] shrink-0 ' +
|
|
154
|
-
//1500px
|
|
155
|
-
'max-3xl:w-[14px] ' +
|
|
156
|
-
//640px
|
|
157
|
-
'max-sm:w-[12px] '
|
|
158
|
-
}
|
|
159
|
-
/>
|
|
160
|
-
)}
|
|
107
|
+
<Image
|
|
108
|
+
src={IconLinkOn}
|
|
109
|
+
alt={''}
|
|
110
|
+
width={16}
|
|
111
|
+
height={16}
|
|
112
|
+
className={
|
|
113
|
+
'inline aspect-square w-[16px] shrink-0 ' +
|
|
114
|
+
//1500px
|
|
115
|
+
'max-3xl:w-[14px] ' +
|
|
116
|
+
//640px
|
|
117
|
+
'max-sm:w-[12px] '
|
|
118
|
+
}
|
|
119
|
+
/>
|
|
161
120
|
</Link>
|
|
162
121
|
</li>
|
|
163
122
|
))}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IAddLinkTypes } from '../common/types/seo';
|
|
3
|
-
declare const SeoYoutube: ({ linkList }: {
|
|
3
|
+
declare const SeoYoutube: ({ type, linkList }: {
|
|
4
|
+
type: "shorts" | "youtube";
|
|
4
5
|
linkList: IAddLinkTypes[];
|
|
5
6
|
}) => React.JSX.Element;
|
|
6
7
|
export default SeoYoutube;
|
|
@@ -5,7 +5,9 @@ import YoutubeModal from '../YoutubeModal/YoutubeModal';
|
|
|
5
5
|
import LogoYoutube from '../../asset/images/seo/seoAddLink/logo_youtube.webp';
|
|
6
6
|
import IconYoutube from '../../asset/images/seo/seoYoutube/youtube_ico.svg';
|
|
7
7
|
import IconYoutubeTxt from '../../asset/images/seo/seoYoutube/youtube_txt.svg';
|
|
8
|
-
|
|
8
|
+
import IconYoutubeSmall from '../../asset/images/seo/seoAddLink/youtubeSmall_ico.svg';
|
|
9
|
+
import IconLinkArrow from '../../asset/images/seo/seoAddLink/link_arrow.webp';
|
|
10
|
+
const SeoYoutube = ({ type, linkList }) => {
|
|
9
11
|
//유튜브 관련
|
|
10
12
|
const [isYoutubeOn, setIsYoutubeOn] = useState(false);
|
|
11
13
|
const [youtubeId, setYoutubeId] = useState('');
|
|
@@ -29,41 +31,80 @@ const SeoYoutube = ({ linkList }) => {
|
|
|
29
31
|
(_a = popOffBtnRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
30
32
|
}, [isYoutubeOn]);
|
|
31
33
|
return linkList.length > 0 ? (<>
|
|
32
|
-
<
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
34
|
+
{type === 'shorts' ? (<div className={'flex items-center gap-[14px] border-[1px] border-solid border-[#D0D0D0] pr-[30px] ' +
|
|
35
|
+
//640px
|
|
36
|
+
'max-sm:gap-[14px] ' +
|
|
37
|
+
//520px
|
|
38
|
+
'max-2sm:gap-[10px] '}>
|
|
39
|
+
<span className={'relative flex h-[47px] w-[130px] shrink-0 items-center ' +
|
|
40
|
+
//1500px
|
|
41
|
+
'max-3xl:h-[42px] max-3xl:w-[120px] ' +
|
|
42
|
+
//640px
|
|
43
|
+
'max-sm:h-[38px] max-sm:w-[110px] ' +
|
|
44
|
+
//520px
|
|
45
|
+
'max-2sm:h-[33px] max-2sm:w-[100px] '} style={{ paddingLeft: '15px' }}>
|
|
46
|
+
<Image src={LogoYoutube} alt="" className={'h-6 w-[105px] object-contain'} width={210} height={48}/>
|
|
47
|
+
</span>
|
|
48
|
+
<ul className={'flex flex-col gap-[20px] py-[24px] text-[20px] font-normal tracking-[-0.7px] ' +
|
|
49
|
+
// 쇼츠타입 추가
|
|
50
|
+
`${type == 'shorts' ? 'flex min-h-[98px] items-center justify-center ' : 'text-[#0D74CE] '}` +
|
|
51
|
+
//1500px
|
|
52
|
+
'max-3xl:text-[18px] ' +
|
|
53
|
+
//640px
|
|
54
|
+
'max-sm:gap-[12px] max-sm:py-[20px] max-sm:text-[16px] '}>
|
|
55
|
+
{linkList
|
|
56
|
+
.filter(l => l.title.length > 0)
|
|
57
|
+
.map((linkData, index) => (<li key={linkData.title + linkData.idx}>
|
|
58
|
+
<button className={'relative flex w-fit items-center gap-[8px] text-left font-[600]'} onClick={() => { var _a; return handleButtonClick((_a = extractYouTubeID(linkData.link)) !== null && _a !== void 0 ? _a : '', index); }}>
|
|
59
|
+
<Image src={IconLinkArrow} alt={''} width={8} height={14} className={'relative mr-2 h-[14px] w-[8px] object-contain ' +
|
|
60
|
+
//640px
|
|
61
|
+
'max-sm:mr-0 max-sm:w-[6px]'}/>
|
|
62
|
+
<p className={'line-clamp-1 flex items-center leading-[1.25] max-md:line-clamp-none'}>
|
|
63
|
+
{linkData.title}
|
|
64
|
+
</p>
|
|
65
|
+
<IconYoutubeSmall className={'inline aspect-square w-[24px] shrink-0 ' +
|
|
66
|
+
//1500px
|
|
67
|
+
'max-3xl:w-[20px] ' +
|
|
68
|
+
//640px
|
|
69
|
+
'max-sm:w-[16px] '}/>
|
|
70
|
+
</button>
|
|
71
|
+
</li>))}
|
|
72
|
+
</ul>
|
|
73
|
+
</div>) : (<section className={'mt-8 flex justify-between gap-[36px] border-b border-solid border-[#DBDBDB] pb-[60px] tracking-[-1.92px] ' +
|
|
74
|
+
//1500px
|
|
75
|
+
'max-3xl:gap-[24px] ' +
|
|
76
|
+
//640px
|
|
77
|
+
'max-md2:flex-col max-md2:pb-6'}>
|
|
78
|
+
{/*pc 로고뷰*/}
|
|
79
|
+
<div className={'flex w-fit min-w-[264px] flex-col gap-y-9 max-md2:hidden'}>
|
|
80
|
+
<div className={'flex flex-col gap-5'}>
|
|
81
|
+
<IconYoutube className={'h-[67px] w-[99px]'}/>
|
|
82
|
+
<IconYoutubeTxt className={'h-[35px] w-[117px]'}/>
|
|
83
|
+
</div>
|
|
84
|
+
<p className={'text-2xl font-semibold leading-[34px] text-[#545454] '}>
|
|
85
|
+
해당 업무사례와 관련된
|
|
86
|
+
<br />
|
|
87
|
+
영상 콘텐츠도 함께 확인하세요.
|
|
88
|
+
</p>
|
|
42
89
|
</div>
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
<
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
<
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
{linkData.title}
|
|
62
|
-
</p>
|
|
63
|
-
</li>))}
|
|
64
|
-
</ol>
|
|
65
|
-
<YoutubeModal onClick={handleClickUpYoutube} isYoutubeOn={isYoutubeOn} youtubeId={youtubeId} popOffBtnRef={popOffBtnRef !== null && popOffBtnRef !== void 0 ? popOffBtnRef : null}/>
|
|
66
|
-
</section>
|
|
90
|
+
{/*모바일 로고뷰*/}
|
|
91
|
+
<div className={'hidden max-md2:block'}>
|
|
92
|
+
<Image src={LogoYoutube} alt="" className={'h-[29px] w-[96px] object-contain'}/>
|
|
93
|
+
</div>
|
|
94
|
+
<ol className={'h-fit w-full max-w-[657px] gap-y-4 max-md2:max-w-full'}>
|
|
95
|
+
{linkList
|
|
96
|
+
.filter(l => l.title.length > 0)
|
|
97
|
+
.map((linkData, index) => (<li key={linkData.title + linkData.idx} className={'flex w-full flex-col gap-4 max-md2:gap-[10px]'} onClick={() => { var _a; return handleButtonClick((_a = extractYouTubeID(linkData.link)) !== null && _a !== void 0 ? _a : '', index); }}>
|
|
98
|
+
<div className="aspect-video w-full">
|
|
99
|
+
<iframe className="pointer-events-none h-full w-full" src={`https://www.youtube.com/embed/${extractYouTubeID(linkData.link)}?autoplay=0&mute=1&controls=0`} title="YouTube preview" frameBorder="0" allow=""></iframe>
|
|
100
|
+
</div>
|
|
101
|
+
<p className={'line-clamp-1 text-2xl font-semibold leading-9 text-[#545454] max-md2:text-[18px] max-md2:leading-6'}>
|
|
102
|
+
{linkData.title}
|
|
103
|
+
</p>
|
|
104
|
+
</li>))}
|
|
105
|
+
</ol>
|
|
106
|
+
</section>)}
|
|
107
|
+
<YoutubeModal onClick={handleClickUpYoutube} isYoutubeOn={isYoutubeOn} youtubeId={youtubeId} popOffBtnRef={popOffBtnRef} isShorts={type === 'shorts'}/>
|
|
67
108
|
</>) : (<></>);
|
|
68
109
|
};
|
|
69
110
|
export default SeoYoutube;
|
|
@@ -2,10 +2,17 @@ import SeoYoutube from './SeoYoutube';
|
|
|
2
2
|
import type { StoryObj } from '@storybook/react';
|
|
3
3
|
import '../../styles/globals.css';
|
|
4
4
|
declare const SeoYoutubeComponent: {
|
|
5
|
-
component: ({ linkList }: {
|
|
5
|
+
component: ({ type, linkList }: {
|
|
6
|
+
type: "shorts" | "youtube";
|
|
6
7
|
linkList: import("../common/types/seo").IAddLinkTypes[];
|
|
7
8
|
}) => import("react").JSX.Element;
|
|
8
9
|
title: string;
|
|
10
|
+
argTypes: {
|
|
11
|
+
type: {
|
|
12
|
+
control: string;
|
|
13
|
+
options: string[];
|
|
14
|
+
};
|
|
15
|
+
};
|
|
9
16
|
};
|
|
10
17
|
export default SeoYoutubeComponent;
|
|
11
18
|
type Story = StoryObj<typeof SeoYoutube>;
|
|
@@ -2,7 +2,13 @@ import SeoYoutube from './SeoYoutube';
|
|
|
2
2
|
import '../../styles/globals.css';
|
|
3
3
|
const SeoYoutubeComponent = {
|
|
4
4
|
component: SeoYoutube,
|
|
5
|
-
title: 'SeoYoutube'
|
|
5
|
+
title: 'SeoYoutube',
|
|
6
|
+
argTypes: {
|
|
7
|
+
type: {
|
|
8
|
+
control: 'select',
|
|
9
|
+
options: ['shorts', 'youtube']
|
|
10
|
+
}
|
|
11
|
+
}
|
|
6
12
|
};
|
|
7
13
|
export default SeoYoutubeComponent;
|
|
8
14
|
export const Default = {
|
|
@@ -12,6 +18,7 @@ export const Default = {
|
|
|
12
18
|
</div>);
|
|
13
19
|
},
|
|
14
20
|
args: {
|
|
21
|
+
type: 'youtube',
|
|
15
22
|
linkList: [
|
|
16
23
|
{
|
|
17
24
|
type_idx: 0,
|
|
@@ -4,7 +4,13 @@ import '../../styles/globals.css';
|
|
|
4
4
|
|
|
5
5
|
const SeoYoutubeComponent = {
|
|
6
6
|
component: SeoYoutube,
|
|
7
|
-
title: 'SeoYoutube'
|
|
7
|
+
title: 'SeoYoutube',
|
|
8
|
+
argTypes: {
|
|
9
|
+
type: {
|
|
10
|
+
control: 'select',
|
|
11
|
+
options: ['shorts', 'youtube']
|
|
12
|
+
}
|
|
13
|
+
}
|
|
8
14
|
} satisfies Meta<typeof SeoYoutube>;
|
|
9
15
|
|
|
10
16
|
export default SeoYoutubeComponent;
|
|
@@ -19,6 +25,7 @@ export const Default: Story = {
|
|
|
19
25
|
);
|
|
20
26
|
},
|
|
21
27
|
args: {
|
|
28
|
+
type: 'youtube',
|
|
22
29
|
linkList: [
|
|
23
30
|
{
|
|
24
31
|
type_idx: 0,
|
|
@@ -8,8 +8,10 @@ import { IAddLinkTypes } from '../common/types/seo';
|
|
|
8
8
|
import LogoYoutube from '../../asset/images/seo/seoAddLink/logo_youtube.webp';
|
|
9
9
|
import IconYoutube from '../../asset/images/seo/seoYoutube/youtube_ico.svg';
|
|
10
10
|
import IconYoutubeTxt from '../../asset/images/seo/seoYoutube/youtube_txt.svg';
|
|
11
|
+
import IconYoutubeSmall from '../../asset/images/seo/seoAddLink/youtubeSmall_ico.svg';
|
|
12
|
+
import IconLinkArrow from '../../asset/images/seo/seoAddLink/link_arrow.webp';
|
|
11
13
|
|
|
12
|
-
const SeoYoutube = ({ linkList }: { linkList: IAddLinkTypes[] }) => {
|
|
14
|
+
const SeoYoutube = ({ type, linkList }: { type: 'shorts' | 'youtube'; linkList: IAddLinkTypes[] }) => {
|
|
13
15
|
//유튜브 관련
|
|
14
16
|
const [isYoutubeOn, setIsYoutubeOn] = useState<boolean>(false);
|
|
15
17
|
const [youtubeId, setYoutubeId] = useState<string>('');
|
|
@@ -37,66 +39,150 @@ const SeoYoutube = ({ linkList }: { linkList: IAddLinkTypes[] }) => {
|
|
|
37
39
|
|
|
38
40
|
return linkList.length > 0 ? (
|
|
39
41
|
<>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
42
|
+
{type === 'shorts' ? (
|
|
43
|
+
<div
|
|
44
|
+
className={
|
|
45
|
+
'flex items-center gap-[14px] border-[1px] border-solid border-[#D0D0D0] pr-[30px] ' +
|
|
46
|
+
//640px
|
|
47
|
+
'max-sm:gap-[14px] ' +
|
|
48
|
+
//520px
|
|
49
|
+
'max-2sm:gap-[10px] '
|
|
50
|
+
}
|
|
51
|
+
>
|
|
52
|
+
<span
|
|
53
|
+
className={
|
|
54
|
+
'relative flex h-[47px] w-[130px] shrink-0 items-center ' +
|
|
55
|
+
//1500px
|
|
56
|
+
'max-3xl:h-[42px] max-3xl:w-[120px] ' +
|
|
57
|
+
//640px
|
|
58
|
+
'max-sm:h-[38px] max-sm:w-[110px] ' +
|
|
59
|
+
//520px
|
|
60
|
+
'max-2sm:h-[33px] max-2sm:w-[100px] '
|
|
61
|
+
}
|
|
62
|
+
style={{ paddingLeft: '15px' }}
|
|
63
|
+
>
|
|
64
|
+
<Image
|
|
65
|
+
src={LogoYoutube}
|
|
66
|
+
alt=""
|
|
67
|
+
className={'h-6 w-[105px] object-contain'}
|
|
68
|
+
width={210}
|
|
69
|
+
height={48}
|
|
70
|
+
/>
|
|
71
|
+
</span>
|
|
72
|
+
<ul
|
|
73
|
+
className={
|
|
74
|
+
'flex flex-col gap-[20px] py-[24px] text-[20px] font-normal tracking-[-0.7px] ' +
|
|
75
|
+
// 쇼츠타입 추가
|
|
76
|
+
`${type == 'shorts' ? 'flex min-h-[98px] items-center justify-center ' : 'text-[#0D74CE] '}` +
|
|
77
|
+
//1500px
|
|
78
|
+
'max-3xl:text-[18px] ' +
|
|
79
|
+
//640px
|
|
80
|
+
'max-sm:gap-[12px] max-sm:py-[20px] max-sm:text-[16px] '
|
|
81
|
+
}
|
|
82
|
+
>
|
|
83
|
+
{linkList
|
|
84
|
+
.filter(l => l.title.length > 0)
|
|
85
|
+
.map((linkData, index) => (
|
|
86
|
+
<li key={linkData.title + linkData.idx}>
|
|
87
|
+
<button
|
|
88
|
+
className={'relative flex w-fit items-center gap-[8px] text-left font-[600]'}
|
|
89
|
+
onClick={() => handleButtonClick(extractYouTubeID(linkData.link) ?? '', index)}
|
|
90
|
+
>
|
|
91
|
+
<Image
|
|
92
|
+
src={IconLinkArrow}
|
|
93
|
+
alt={''}
|
|
94
|
+
width={8}
|
|
95
|
+
height={14}
|
|
96
|
+
className={
|
|
97
|
+
'relative mr-2 h-[14px] w-[8px] object-contain ' +
|
|
98
|
+
//640px
|
|
99
|
+
'max-sm:mr-0 max-sm:w-[6px]'
|
|
100
|
+
}
|
|
101
|
+
/>
|
|
102
|
+
<p
|
|
103
|
+
className={
|
|
104
|
+
'line-clamp-1 flex items-center leading-[1.25] max-md:line-clamp-none'
|
|
105
|
+
}
|
|
106
|
+
>
|
|
107
|
+
{linkData.title}
|
|
108
|
+
</p>
|
|
109
|
+
<IconYoutubeSmall
|
|
110
|
+
className={
|
|
111
|
+
'inline aspect-square w-[24px] shrink-0 ' +
|
|
112
|
+
//1500px
|
|
113
|
+
'max-3xl:w-[20px] ' +
|
|
114
|
+
//640px
|
|
115
|
+
'max-sm:w-[16px] '
|
|
116
|
+
}
|
|
117
|
+
/>
|
|
118
|
+
</button>
|
|
119
|
+
</li>
|
|
120
|
+
))}
|
|
121
|
+
</ul>
|
|
64
122
|
</div>
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
.
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
123
|
+
) : (
|
|
124
|
+
<section
|
|
125
|
+
className={
|
|
126
|
+
'mt-8 flex justify-between gap-[36px] border-b border-solid border-[#DBDBDB] pb-[60px] tracking-[-1.92px] ' +
|
|
127
|
+
//1500px
|
|
128
|
+
'max-3xl:gap-[24px] ' +
|
|
129
|
+
//640px
|
|
130
|
+
'max-md2:flex-col max-md2:pb-6'
|
|
131
|
+
}
|
|
132
|
+
>
|
|
133
|
+
{/*pc 로고뷰*/}
|
|
134
|
+
<div className={'flex w-fit min-w-[264px] flex-col gap-y-9 max-md2:hidden'}>
|
|
135
|
+
<div className={'flex flex-col gap-5'}>
|
|
136
|
+
<IconYoutube className={'h-[67px] w-[99px]'} />
|
|
137
|
+
<IconYoutubeTxt className={'h-[35px] w-[117px]'} />
|
|
138
|
+
</div>
|
|
139
|
+
<p className={'text-2xl font-semibold leading-[34px] text-[#545454] '}>
|
|
140
|
+
해당 업무사례와 관련된
|
|
141
|
+
<br />
|
|
142
|
+
영상 콘텐츠도 함께 확인하세요.
|
|
143
|
+
</p>
|
|
144
|
+
</div>
|
|
145
|
+
{/*모바일 로고뷰*/}
|
|
146
|
+
<div className={'hidden max-md2:block'}>
|
|
147
|
+
<Image src={LogoYoutube} alt="" className={'h-[29px] w-[96px] object-contain'} />
|
|
148
|
+
</div>
|
|
149
|
+
<ol className={'h-fit w-full max-w-[657px] gap-y-4 max-md2:max-w-full'}>
|
|
150
|
+
{linkList
|
|
151
|
+
.filter(l => l.title.length > 0)
|
|
152
|
+
.map((linkData, index) => (
|
|
153
|
+
<li
|
|
154
|
+
key={linkData.title + linkData.idx}
|
|
155
|
+
className={'flex w-full flex-col gap-4 max-md2:gap-[10px]'}
|
|
156
|
+
onClick={() => handleButtonClick(extractYouTubeID(linkData.link) ?? '', index)}
|
|
87
157
|
>
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
158
|
+
<div className="aspect-video w-full">
|
|
159
|
+
<iframe
|
|
160
|
+
className="pointer-events-none h-full w-full"
|
|
161
|
+
src={`https://www.youtube.com/embed/${extractYouTubeID(linkData.link)}?autoplay=0&mute=1&controls=0`}
|
|
162
|
+
title="YouTube preview"
|
|
163
|
+
frameBorder="0"
|
|
164
|
+
allow=""
|
|
165
|
+
></iframe>
|
|
166
|
+
</div>
|
|
167
|
+
<p
|
|
168
|
+
className={
|
|
169
|
+
'line-clamp-1 text-2xl font-semibold leading-9 text-[#545454] max-md2:text-[18px] max-md2:leading-6'
|
|
170
|
+
}
|
|
171
|
+
>
|
|
172
|
+
{linkData.title}
|
|
173
|
+
</p>
|
|
174
|
+
</li>
|
|
175
|
+
))}
|
|
176
|
+
</ol>
|
|
177
|
+
</section>
|
|
178
|
+
)}
|
|
179
|
+
<YoutubeModal
|
|
180
|
+
onClick={handleClickUpYoutube}
|
|
181
|
+
isYoutubeOn={isYoutubeOn}
|
|
182
|
+
youtubeId={youtubeId}
|
|
183
|
+
popOffBtnRef={popOffBtnRef}
|
|
184
|
+
isShorts={type === 'shorts'}
|
|
185
|
+
/>
|
|
100
186
|
</>
|
|
101
187
|
) : (
|
|
102
188
|
<></>
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
//상단 유튜브 클릭 시 모달
|
|
3
3
|
const YoutubeModal = (props) => {
|
|
4
|
-
const { onClick, isYoutubeOn, youtubeId, popOffBtnRef } = props;
|
|
4
|
+
const { onClick, isYoutubeOn, youtubeId, popOffBtnRef, isShorts } = props;
|
|
5
5
|
return (<div className={'fixed left-0 top-0 z-[9999] h-full w-full bg-black bg-opacity-50 ' + `${isYoutubeOn ? '' : 'hidden'}`}>
|
|
6
|
-
<div className={'absolute left-[50%] top-[50%]
|
|
7
|
-
|
|
8
|
-
'max-lg:aspect-[unset] max-lg:h-[40%] max-lg:min-h-[350px] max-lg:w-[90%]'}>
|
|
6
|
+
<div className={'absolute left-[50%] top-[50%] max-w-[1100px] translate-x-[-50%] translate-y-[-50%] ' +
|
|
7
|
+
`${isShorts ? 'aspect-[6/11] h-[80vh] max-lg:w-[95%] max-lg:max-w-[400px] ' : 'aspect-[110/62] w-[80%] max-lg:aspect-[unset] max-lg:h-[40%] max-lg:min-h-[350px] max-lg:w-[90%] '}`}>
|
|
9
8
|
<button type={'button'} className={'absolute right-[-40px] top-[-50px] text-[35px] text-white ' +
|
|
10
9
|
//1024px
|
|
11
10
|
'max-lg:right-0'} ref={popOffBtnRef} onClick={onClick} aria-label={'유튜브 모달 닫기'}>
|
|
@@ -7,8 +7,9 @@ const YoutubeModal = (props: {
|
|
|
7
7
|
isYoutubeOn: boolean;
|
|
8
8
|
youtubeId: string;
|
|
9
9
|
popOffBtnRef: RefObject<HTMLButtonElement>;
|
|
10
|
+
isShorts?: boolean;
|
|
10
11
|
}) => {
|
|
11
|
-
const { onClick, isYoutubeOn, youtubeId, popOffBtnRef } = props;
|
|
12
|
+
const { onClick, isYoutubeOn, youtubeId, popOffBtnRef, isShorts } = props;
|
|
12
13
|
|
|
13
14
|
return (
|
|
14
15
|
<div
|
|
@@ -19,9 +20,8 @@ const YoutubeModal = (props: {
|
|
|
19
20
|
>
|
|
20
21
|
<div
|
|
21
22
|
className={
|
|
22
|
-
'absolute left-[50%] top-[50%]
|
|
23
|
-
|
|
24
|
-
'max-lg:aspect-[unset] max-lg:h-[40%] max-lg:min-h-[350px] max-lg:w-[90%]'
|
|
23
|
+
'absolute left-[50%] top-[50%] max-w-[1100px] translate-x-[-50%] translate-y-[-50%] ' +
|
|
24
|
+
`${isShorts ? 'aspect-[6/11] h-[80vh] max-lg:w-[95%] max-lg:max-w-[400px] ' : 'aspect-[110/62] w-[80%] max-lg:aspect-[unset] max-lg:h-[40%] max-lg:min-h-[350px] max-lg:w-[90%] '}`
|
|
25
25
|
}
|
|
26
26
|
>
|
|
27
27
|
<button
|