File tree Expand file tree Collapse file tree 3 files changed +40
-12
lines changed Expand file tree Collapse file tree 3 files changed +40
-12
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,15 @@ const PromoSection = props => (
34
34
</ div >
35
35
)
36
36
37
+ const PromoHeader = props => (
38
+ < div className = "promo" >
39
+ { props . text } Details available{ ' ' }
40
+ < a href = { props . link } target = "_blank" rel = "noopener noreferrer" >
41
+ HERE
42
+ </ a >
43
+ </ div >
44
+ )
45
+
37
46
class HomeSplash extends React . Component {
38
47
render ( ) {
39
48
const { siteConfig } = this . props
@@ -272,19 +281,28 @@ class Index extends React.Component {
272
281
}
273
282
274
283
return (
275
- < div >
276
- < HomeSplash siteConfig = { siteConfig } language = { language } />
277
- < div className = "home mainContainer" >
278
- < Features />
279
- < FeatureCallout />
280
- < ResilientTests />
281
- < TestCaseReuse />
282
- < ControlFlow />
283
- < Plugins />
284
- < TryOut />
285
- < Showcase />
284
+ < React . Fragment >
285
+ { siteConfig . promoText &&
286
+ siteConfig . promoLink && (
287
+ < PromoHeader
288
+ text = { siteConfig . promoText }
289
+ link = { siteConfig . promoLink }
290
+ />
291
+ ) }
292
+ < div >
293
+ < HomeSplash siteConfig = { siteConfig } language = { language } />
294
+ < div className = "home mainContainer" >
295
+ < Features />
296
+ < FeatureCallout />
297
+ < ResilientTests />
298
+ < TestCaseReuse />
299
+ < ControlFlow />
300
+ < Plugins />
301
+ < TryOut />
302
+ < Showcase />
303
+ </ div >
286
304
</ div >
287
- </ div >
305
+ </ React . Fragment >
288
306
)
289
307
}
290
308
}
Original file line number Diff line number Diff line change @@ -111,6 +111,8 @@ const siteConfig = {
111
111
firefox : `https://addons.mozilla.org/en-GB/firefox/addon/selenium-ide/` ,
112
112
github : `https://github.com/SeleniumHQ/selenium-ide/releases/latest` ,
113
113
} ,
114
+ promoText : `[Webinar] The new Selenium IDE is HERE! Learn how it can turbo-charge your testing efforts.` ,
115
+ promoLink : 'https://goo.gl/9q8xn3' ,
114
116
}
115
117
116
118
module . exports = siteConfig
Original file line number Diff line number Diff line change @@ -34,3 +34,11 @@ img.logo {
34
34
.promoSection .promoRow .pluginRowBlock .pluginWrapper .buttonWrapper {
35
35
padding : 3px 2px ;
36
36
}
37
+
38
+ .promo {
39
+ height : 50px ;
40
+ line-height : 50px ;
41
+ background-color : pink;
42
+ color : black;
43
+ text-align : center;
44
+ }
You can’t perform that action at this time.
0 commit comments