misc: revamp partner components

pull/265/head
Yangshun 3 years ago
parent ef71bf13e5
commit 72055a6d67

@ -7,31 +7,58 @@ import clsx from 'clsx';
import styles from './styles.module.css'; import styles from './styles.module.css';
const BACKGROUNDS = [ const BACKGROUNDS = [
styles.backgroundBlue, styles.backgroundPurplin,
styles.backgroundOrange, styles.backgroundFirewatch,
styles.backgroundPurple, styles.backgroundLush,
styles.backgroundRed, styles.backgroundSweetMorning,
styles.backgroundViceCity,
styles.backgroundRadar,
styles.backgroundCosmicFusion,
styles.backgroundAzurePop,
styles.backgroundTranquil,
]; ];
function TopResume({className, position}) { function FAANGTechLeads({className, position}) {
switch (position) {
case 'docs_bottom':
return ( return (
<a <a
className={clsx(styles.container, className)} className={clsx(styles.container, className)}
href="https://tidd.ly/3oezgOo" href={`https://www.faangtechleads.com?utm_source=techinterviewhandbook&utm_medium=referral&utm_content=${position}&aff=1e80c401fe7e2`}
target="_blank" target="_blank"
rel="noopener" rel="noopener"
onClick={() => { onClick={() => {
window.gtag('event', `topresume.${position}.click`); window.gtag('event', `faangtechleads.${position}.click`);
}}> }}>
<p className={styles.tagline}> <p className={styles.tagline}>
<strong>Best resume service for FAANG</strong> <strong>Best resume service for FAANG</strong>
<br /> <br />
If you are running low on time, I recommend TopResume's{' '} FAANG Tech Leads' <u>resume review service</u> helped me get
<u>free resume review</u> services, which has helped countless software shortlisted at top Bay Area companies. Their resume templates are
engineers get interviews at FAANG. only <u>$28 now (70% off)</u> and tailored to your experience level.
</p> </p>
</a> </a>
); );
default:
return (
<a
className={clsx(styles.container, className)}
href={`https://www.faangtechleads.com?utm_source=techinterviewhandbook&utm_medium=referral&utm_content=${position}&aff=1e80c401fe7e2`}
target="_blank"
rel="noopener"
onClick={() => {
window.gtag('event', `faangtechleads.${position}.click`);
}}>
<p className={styles.tagline}>
<strong>Get shortlisted at FAANG</strong>
<br />
FAANG Tech Leads' <u>resume review service</u> helped me get
shortlisted at top Bay Area companies. Their resume templates are
only <u>$28 now (70% off)</u> and tailored to your experience level.
</p>
</a>
);
}
} }
function AlgoMonster({className, position}) { function AlgoMonster({className, position}) {
@ -58,7 +85,7 @@ function Moonchaser({className, position}) {
return ( return (
<a <a
className={clsx(styles.container, className)} className={clsx(styles.container, className)}
href="https://www.moonchaser.io/?utm_source=techinterviewhandbook&utm_medium=referral&utm_content=website_docs_sidebar" href={`https://www.moonchaser.io/?utm_source=techinterviewhandbook&utm_medium=referral&utm_content=${position}`}
key={Math.random()} key={Math.random()}
target="_blank" target="_blank"
rel="noopener" rel="noopener"
@ -78,7 +105,7 @@ function Educative({className, position}) {
return ( return (
<a <a
className={clsx(styles.container, className)} className={clsx(styles.container, className)}
href="https://educative.io/tech-interview-handbook" href={`https://educative.io/tech-interview-handbook?utm_source=techinterviewhandbook&utm_medium=referral&utm_content=${position}&aff=x23W`}
key={Math.random()} key={Math.random()}
target="_blank" target="_blank"
rel="noopener" rel="noopener"
@ -99,7 +126,7 @@ function EducativeCoding({className, position}) {
return ( return (
<a <a
className={clsx(styles.container, className)} className={clsx(styles.container, className)}
href="https://www.educative.io/courses/grokking-the-coding-interview?aff=x23W" href={`https://www.educative.io/courses/grokking-the-coding-interview?utm_source=techinterviewhandbook&utm_medium=referral&utm_content=${position}&aff=x23W`}
key={Math.random()} key={Math.random()}
target="_blank" target="_blank"
rel="noopener" rel="noopener"
@ -121,7 +148,7 @@ function EducativeSystemDesign({className, position}) {
return ( return (
<a <a
className={clsx(styles.container, className)} className={clsx(styles.container, className)}
href="https://www.educative.io/courses/grokking-the-system-design-interview?aff=x23W" href={`https://www.educative.io/courses/grokking-the-system-design-interview?utm_source=techinterviewhandbook&utm_medium=referral&utm_content=${position}&aff=x23W`}
key={Math.random()} key={Math.random()}
target="_blank" target="_blank"
rel="noopener" rel="noopener"
@ -151,6 +178,16 @@ export default React.memo(function SidebarAd({position}) {
const path = window.location.pathname; const path = window.location.pathname;
// Ugly hack to show conditional sidebar content. // Ugly hack to show conditional sidebar content.
if (path.includes('resume')) {
return (
<FAANGTechLeads
className={backgroundClass}
key={Math.random()}
position={position}
/>
);
}
if (path.includes('negotiation') || path.includes('compensation')) { if (path.includes('negotiation') || path.includes('compensation')) {
return ( return (
<Moonchaser <Moonchaser
@ -162,7 +199,6 @@ export default React.memo(function SidebarAd({position}) {
} }
if ( if (
path.includes('resume') ||
path.includes('coding') || path.includes('coding') ||
path.includes('best-practice-questions') || path.includes('best-practice-questions') ||
path.includes('cheatsheet') || path.includes('cheatsheet') ||

@ -10,20 +10,44 @@
var(--ifm-transition-timing-default); var(--ifm-transition-timing-default);
} }
.backgroundPurple { .backgroundPurplin {
background-image: linear-gradient(138deg, rgb(69, 104, 220), rgb(176, 106, 179)); background-image: linear-gradient(
138deg,
rgb(69, 104, 220),
rgb(176, 106, 179)
);
} }
.backgroundRed { .backgroundFirewatch {
background-image: linear-gradient(39deg, rgb(188, 78, 156), rgb(248, 7, 89)); background-image: linear-gradient(139deg, #cb2d3e, #ef473a);
} }
.backgroundOrange { .backgroundLush {
background-image: linear-gradient(39deg, rgb(255, 81, 47), rgb(240, 152, 25)); background-image: linear-gradient(139deg, #56ab2f, #a8e063);
} }
.backgroundBlue { .backgroundSweetMorning {
background-image: linear-gradient(153deg, rgb(116, 116, 191), rgb(52, 138, 199)); background-image: linear-gradient(139deg, #ff5f6d, #ffc371);
}
.backgroundViceCity {
background-image: linear-gradient(139deg, #3494e6, #ec6ead);
}
.backgroundRadar {
background-image: linear-gradient(139deg, #a770ef, #cf8bf3, #fdb99b);
}
.backgroundCosmicFusion {
background-image: linear-gradient(139deg, #333399, #ff00cc);
}
.backgroundAzurePop {
background-image: linear-gradient(138deg, #ef32d9, #89fffd);
}
.backgroundTranquil {
background-image: linear-gradient(138deg, #ef629f, #eecda3);
} }
.container:hover { .container:hover {

@ -22,7 +22,7 @@ function TOC({className, ...props}) {
<div className="margin--md"> <div className="margin--md">
<div className={clsx('padding--md', styles.socialLinksContainer)}> <div className={clsx('padding--md', styles.socialLinksContainer)}>
<div className={styles.socialLinks}> <div className={styles.socialLinks}>
Follow us Follow
<a <a
href="https://t.me/techinterviewhandbook" href="https://t.me/techinterviewhandbook"
target="_blank" target="_blank"

Loading…
Cancel
Save