Skip to content

Commit 2c710f7

Browse files
author
David Haeffner
committed
Added top-hat promo to promote the upcoming IDE webinar
1 parent 8b9fcea commit 2c710f7

File tree

3 files changed

+40
-12
lines changed

3 files changed

+40
-12
lines changed

website/pages/en/index.js

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,15 @@ const PromoSection = props => (
3434
</div>
3535
)
3636

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+
3746
class HomeSplash extends React.Component {
3847
render() {
3948
const { siteConfig } = this.props
@@ -272,19 +281,28 @@ class Index extends React.Component {
272281
}
273282

274283
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>
286304
</div>
287-
</div>
305+
</React.Fragment>
288306
)
289307
}
290308
}

website/siteConfig.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ const siteConfig = {
111111
firefox: `https://addons.mozilla.org/en-GB/firefox/addon/selenium-ide/`,
112112
github: `https://github.com/SeleniumHQ/selenium-ide/releases/latest`,
113113
},
114+
promoText: `[Webinar] The new Selenium IDE is HERE! Learn how it can turbo-charge your testing efforts.`,
115+
promoLink: 'https://goo.gl/9q8xn3',
114116
}
115117

116118
module.exports = siteConfig

website/static/css/custom.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,11 @@ img.logo {
3434
.promoSection .promoRow .pluginRowBlock .pluginWrapper.buttonWrapper {
3535
padding: 3px 2px;
3636
}
37+
38+
.promo {
39+
height: 50px;
40+
line-height: 50px;
41+
background-color: pink;
42+
color: black;
43+
text-align: center;
44+
}

0 commit comments

Comments
 (0)