website: add Educative banner

pull/225/head
Yangshun 3 years ago
parent 2ab149aa74
commit 450694e5d4

@ -61,15 +61,15 @@ function Home() {
className={classnames( className={classnames(
'margin-bottom--lg', 'margin-bottom--lg',
'padding-vert--lg', 'padding-vert--lg',
styles.sectionPrimary, styles.sectionSponsor,
)}> )}>
<div className="container"> <div className="container">
<div className="row"> <div className="row">
<div className="col col--8 col--offset-2"> <div className="col col--8 col--offset-2">
<div className="margin-vert--lg text--center"> <div className="margin-vert--lg text--center">
{Math.random() > 0.5 ? ( {Math.random() > 0.5 ? (
<div key={Math.random()}> <div>
<h2 className={styles.sectionPrimaryTitle}> <h2 className={styles.sectionSponsorTitle}>
<strong> <strong>
Get paid more. Receive risk-free salary Get paid more. Receive risk-free salary
negotiation help from Moonchaser. You pay nothing negotiation help from Moonchaser. You pay nothing
@ -93,8 +93,8 @@ function Home() {
</div> </div>
</div> </div>
) : ( ) : (
<div key={Math.random()}> <div>
<h2 className={styles.sectionPrimaryTitle}> <h2 className={styles.sectionSponsorTitle}>
<strong> <strong>
Get paid, not played. Chat with former tech Get paid, not played. Chat with former tech
recruiters who'll guide you on exactly what to say recruiters who'll guide you on exactly what to say
@ -192,6 +192,42 @@ function Home() {
</div> </div>
</div> </div>
</div> </div>
<div
className={classnames(
'margin-bottom--lg',
'padding-vert--lg',
styles.sectionSponsorAlt,
)}>
<div className="container">
<div className="row">
<div className="col col--8 col--offset-2">
<div className="margin-vert--lg text--center">
<div>
<h2 className={styles.sectionSponsorTitle}>
<strong>
Looking for high quality interview courses? Educative
offers a ton of great courses to improve your interview
game.
</strong>
</h2>
<div className="margin-vert--lg">
<a
className="button button--secondary button--lg"
href="https://www.educative.io/explore?search_string=interview&aff=x23W"
rel="noreferrer noopener"
target="_blank"
onClick={() => {
window.gtag('event', 'educative.homepage.click');
}}>
Get Started&nbsp;&nbsp;
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div <div
className={classnames( className={classnames(
'margin-vert--lg', 'margin-vert--lg',

@ -33,11 +33,20 @@
background-color: var(--ifm-color-emphasis-100); background-color: var(--ifm-color-emphasis-100);
} }
.sectionPrimary { .sectionSponsor {
background: linear-gradient(90deg,#12c2e9,#c471ed,#f64f59); background: linear-gradient(90deg, #12c2e9, #c471ed, #f64f59);
} }
.sectionPrimaryTitle { .sectionSponsorAlt {
background: linear-gradient(
135deg,
rgb(29, 136, 244),
rgb(252, 67, 128),
rgb(251, 191, 36)
);
}
.sectionSponsorTitle {
color: var(--ifm-color-white); color: var(--ifm-color-white);
} }

Loading…
Cancel
Save