@@ -116,49 +116,69 @@ const MenuItem: React.FC<{
116
116
} ;
117
117
118
118
const LinkItem : React . FC < { link : NavMenuColumnGroupItem } > = ( {
119
- link : { name, url, description, icon, iconImg } ,
119
+ link : { name, url, description, icon, iconImg, youtubeLink , documentationLink } ,
120
120
} ) => {
121
121
const close = useContext ( ClosePopoverContext ) ;
122
122
const CustomLink = useLinkComponent ( ) ;
123
123
124
124
return (
125
- < CustomLink
126
- href = { url || "" }
127
- className = { cx (
128
- "flex items-start gap-x-1 text-ssw-black hover:text-ssw-red focus:outline-none" ,
129
- description ? "p-4" : "p-2" ,
130
- ) }
131
- onClick = { ( ) => {
132
- if ( close ) close ( ) ;
133
- } }
134
- >
135
- { ( icon || iconImg ) && (
136
- < div className = "flex shrink-0 items-center justify-center text-ssw-red" >
137
- < MegaIcon
138
- className = "h-6 w-6"
139
- icon = { icon as AvailableIcons }
140
- iconImg = { iconImg }
141
- />
142
- </ div >
143
- ) }
125
+ < div >
126
+ < CustomLink
127
+ href = { url || "" }
128
+ className = { cx (
129
+ "flex items-start gap-x-1 text-ssw-black hover:text-ssw-red focus:outline-none" ,
130
+ description ? "p-4" : "p-2" ,
131
+ ) }
132
+ onClick = { ( ) => {
133
+ if ( close ) close ( ) ;
134
+ } }
135
+ >
136
+ { ( icon || iconImg ) && (
137
+ < div className = "flex shrink-0 items-center justify-center text-ssw-red" >
138
+ < MegaIcon
139
+ className = "h-6 w-6"
140
+ icon = { icon as AvailableIcons }
141
+ iconImg = { iconImg }
142
+ />
143
+ </ div >
144
+ ) }
144
145
145
- < div className = "min-w-0 flex-1" >
146
- < span >
147
- { name && description ? (
148
- < >
149
- < p className = "font-bold" > { name } </ p >
150
- < p className = "mt-1 text-sm font-normal text-ssw-gray" >
151
- { description }
146
+ < div className = "min-w-0 flex-1" >
147
+ < span >
148
+ { name && description ? (
149
+ < >
150
+ < p className = "font-bold" > { name } </ p >
151
+ < p className = "mt-1 text-sm font-normal text-ssw-gray" >
152
+ { description }
153
+ </ p >
154
+ </ >
155
+ ) : (
156
+ < p className = "pl-2 text-sm font-normal text-ssw-black hover:text-ssw-red" >
157
+ { name }
152
158
</ p >
153
- </ >
154
- ) : (
155
- < p className = "pl-2 text-sm font-normal text-ssw-black hover:text-ssw-red" >
156
- { name }
157
- </ p >
159
+ ) }
160
+ </ span >
161
+ </ div >
162
+ </ CustomLink >
163
+ < div className = "ml-10 font-light text-ssw-gray flex flex-row gap-x-4 text-sm" >
164
+ { youtubeLink && (
165
+ < CustomLink
166
+ href = { youtubeLink }
167
+ className = "hover:text-ssw-red"
168
+ >
169
+ YouTube
170
+ </ CustomLink >
171
+ ) }
172
+ { documentationLink && (
173
+ < CustomLink
174
+ href = { documentationLink }
175
+ className = "hover:text-ssw-red"
176
+ >
177
+ Docs
178
+ </ CustomLink >
158
179
) }
159
- </ span >
160
180
</ div >
161
- </ CustomLink >
181
+ </ div >
162
182
) ;
163
183
} ;
164
184
0 commit comments