@daeryun/dr_components 0.7.29 → 0.7.31
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/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 +146 -60
- package/dist/components/YoutubeModal/YoutubeModal.d.ts +4 -3
- package/dist/components/YoutubeModal/YoutubeModal.jsx +5 -5
- package/dist/components/YoutubeModal/YoutubeModal.tsx +8 -6
- package/dist/styles/globals.css +12 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -6,8 +6,6 @@ import Image from 'next/image';
|
|
|
6
6
|
import IconRibon from '../../asset/images/seo/seoAddLink/ribon.svg';
|
|
7
7
|
import IconLinkOn from '../../asset/images/seo/seoAddLink/link_on.webp';
|
|
8
8
|
import IconLinkArrow from '../../asset/images/seo/seoAddLink/link_arrow.webp';
|
|
9
|
-
import IconYoutube from '../../asset/images/seo/seoAddLink/logo_youtube.webp';
|
|
10
|
-
import IconYoutubeSmall from '../../asset/images/seo/seoAddLink/youtubeSmall_ico.svg';
|
|
11
9
|
const SeoAdditionalLink = ({ type, linkList }) => {
|
|
12
10
|
const referClick = () => {
|
|
13
11
|
gtag.event({
|
|
@@ -31,37 +29,25 @@ const SeoAdditionalLink = ({ type, linkList }) => {
|
|
|
31
29
|
'max-sm:gap-[14px] ' +
|
|
32
30
|
//520px
|
|
33
31
|
'max-2sm:gap-[10px] '}>
|
|
34
|
-
{
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
//1500px
|
|
54
|
-
'max-3xl:text-[22px] ' +
|
|
55
|
-
//640px
|
|
56
|
-
'max-sm:text-[18px] ' +
|
|
57
|
-
//520px
|
|
58
|
-
'max-2sm:pl-[10px] max-2sm:text-[16px] '}>
|
|
59
|
-
{type}
|
|
60
|
-
</p>
|
|
61
|
-
</span>)}
|
|
62
|
-
<ul className={'flex flex-col gap-[20px] py-[24px] text-[20px] font-normal tracking-[-0.7px] ' +
|
|
63
|
-
// 쇼츠타입 추가
|
|
64
|
-
`${type == 'shorts' ? 'flex min-h-[98px] items-center justify-center ' : 'text-[#0D74CE] '}` +
|
|
32
|
+
<span className={'relative flex h-[47px] w-[130px] shrink-0 items-center ' +
|
|
33
|
+
//1500px
|
|
34
|
+
'max-3xl:h-[42px] max-3xl:w-[120px] ' +
|
|
35
|
+
//640px
|
|
36
|
+
'max-sm:h-[38px] max-sm:w-[110px] ' +
|
|
37
|
+
//520px
|
|
38
|
+
'max-2sm:h-[33px] max-2sm:w-[100px] '}>
|
|
39
|
+
<IconRibon className="absolute left-0 top-0 -z-10 h-full w-auto "/>
|
|
40
|
+
<p className={'pl-[15px] text-[24px] font-bold leading-none tracking-[-0.96px] text-white ' +
|
|
41
|
+
//1500px
|
|
42
|
+
'max-3xl:text-[22px] ' +
|
|
43
|
+
//640px
|
|
44
|
+
'max-sm:text-[18px] ' +
|
|
45
|
+
//520px
|
|
46
|
+
'max-2sm:pl-[10px] max-2sm:text-[16px] '}>
|
|
47
|
+
{type}
|
|
48
|
+
</p>
|
|
49
|
+
</span>
|
|
50
|
+
<ul className={'flex flex-col gap-[20px] py-[24px] text-[20px] font-normal tracking-[-0.7px] text-[#0D74CE] ' +
|
|
65
51
|
//1500px
|
|
66
52
|
'max-3xl:text-[18px] ' +
|
|
67
53
|
//640px
|
|
@@ -69,7 +55,7 @@ const SeoAdditionalLink = ({ type, linkList }) => {
|
|
|
69
55
|
{linkList
|
|
70
56
|
.filter(l => l.title.length > 0)
|
|
71
57
|
.map(linkData => (<li key={linkData.title + linkData.idx}>
|
|
72
|
-
<Link href={linkData.link}
|
|
58
|
+
<Link href={linkData.link} className={'relative flex w-fit items-center gap-[8px] font-[600] '} onClick={() => {
|
|
73
59
|
if (type === '참고')
|
|
74
60
|
referClick();
|
|
75
61
|
else
|
|
@@ -81,15 +67,11 @@ const SeoAdditionalLink = ({ type, linkList }) => {
|
|
|
81
67
|
<p className={'line-clamp-1 flex items-center leading-[1.25] max-md:line-clamp-none'}>
|
|
82
68
|
{linkData.title}
|
|
83
69
|
</p>
|
|
84
|
-
{
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
//1500px
|
|
90
|
-
'max-3xl:w-[14px] ' +
|
|
91
|
-
//640px
|
|
92
|
-
'max-sm:w-[12px] '}/>)}
|
|
70
|
+
<Image src={IconLinkOn} alt={''} width={16} height={16} className={'inline aspect-square w-[16px] shrink-0 ' +
|
|
71
|
+
//1500px
|
|
72
|
+
'max-3xl:w-[14px] ' +
|
|
73
|
+
//640px
|
|
74
|
+
'max-sm:w-[12px] '}/>
|
|
93
75
|
</Link>
|
|
94
76
|
</li>))}
|
|
95
77
|
</ul>
|
|
@@ -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,
|