From 72055a6d678b7a5515ec2a7bff7d991cd108fc97 Mon Sep 17 00:00:00 2001 From: Yangshun Date: Mon, 21 Feb 2022 10:00:05 +0800 Subject: [PATCH] misc: revamp partner components --- website/src/components/SidebarAd/index.js | 92 +++++++++++++------ .../components/SidebarAd/styles.module.css | 40 ++++++-- website/src/theme/TOC/index.js | 2 +- 3 files changed, 97 insertions(+), 37 deletions(-) diff --git a/website/src/components/SidebarAd/index.js b/website/src/components/SidebarAd/index.js index 461901c8..e0b2352c 100644 --- a/website/src/components/SidebarAd/index.js +++ b/website/src/components/SidebarAd/index.js @@ -7,31 +7,58 @@ import clsx from 'clsx'; import styles from './styles.module.css'; const BACKGROUNDS = [ - styles.backgroundBlue, - styles.backgroundOrange, - styles.backgroundPurple, - styles.backgroundRed, + styles.backgroundPurplin, + styles.backgroundFirewatch, + styles.backgroundLush, + styles.backgroundSweetMorning, + styles.backgroundViceCity, + styles.backgroundRadar, + styles.backgroundCosmicFusion, + styles.backgroundAzurePop, + styles.backgroundTranquil, ]; -function TopResume({className, position}) { - return ( - { - window.gtag('event', `topresume.${position}.click`); - }}> -

- Best resume service for FAANG -
- If you are running low on time, I recommend TopResume's{' '} - free resume review services, which has helped countless software - engineers get interviews at FAANG. -

-
- ); +function FAANGTechLeads({className, position}) { + switch (position) { + case 'docs_bottom': + return ( + { + window.gtag('event', `faangtechleads.${position}.click`); + }}> +

+ Best resume service for FAANG +
+ FAANG Tech Leads' resume review service helped me get + shortlisted at top Bay Area companies. Their resume templates are + only $28 now (70% off) and tailored to your experience level. +

+
+ ); + default: + return ( + { + window.gtag('event', `faangtechleads.${position}.click`); + }}> +

+ Get shortlisted at FAANG +
+ FAANG Tech Leads' resume review service helped me get + shortlisted at top Bay Area companies. Their resume templates are + only $28 now (70% off) and tailored to your experience level. +

+
+ ); + } } function AlgoMonster({className, position}) { @@ -58,7 +85,7 @@ function Moonchaser({className, position}) { return ( + ); + } + if (path.includes('negotiation') || path.includes('compensation')) { return (
- Follow us + Follow