misc: add sidebar ad

pull/215/head
Yangshun 4 years ago
parent 5dd340dca4
commit 822179b0f6

@ -9,6 +9,7 @@ const CONTAINER_SELECTOR = '[class^="tableOfContents"]';
function SidebarAd() {
return (
<>
<a
className={styles.container}
href="https://www.moonchaser.io/?utm_source=techinterviewhandbook&utm_medium=referral&utm_content=website_docs_sidebar"
@ -22,6 +23,22 @@ function SidebarAd() {
help from Moonchaser. You pay nothing unless your offer is increased.
</p>
</a>
<script
async
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4984084888641317"
crossOrigin="anonymous"
/>
<ins className="adsbygoogle"
style={{display: 'block'}}
data-ad-client="ca-pub-4984084888641317"
data-ad-slot="6106249636"
data-ad-format="auto"
data-full-width-responsive="true"
/>
<script
dangerouslySetInnerHTML={{__html: '(adsbygoogle = window.adsbygoogle || []).push({});'}}
/>
</>
);
}

Loading…
Cancel
Save