Skip to content

Commit

Permalink
Add sponsor ad
Browse files Browse the repository at this point in the history
  • Loading branch information
kamranahmedse committed Sep 1, 2021
1 parent 2f8c0c5 commit 7c5d28b
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 1 deletion.
41 changes: 41 additions & 0 deletions components/page-footer/custom-ad.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
export const CustomAd = () => {
return (
<div id="carbonads">
<span>
<span className="carbon-wrap">
<a
href="https://freemote.com/strategy?sl=roadmap"
className="carbon-img"
target="_blank"
rel="noopener sponsored"
>
<img
src="/fm-img.png"
alt="FM Logo"
border="0"
height="100"
width="130"
style={{ maxWidth: "130px" }}
/>
</a>
<a
href="https://freemote.com/strategy?sl=roadmap"
className="carbon-text"
target="_blank"
rel="noopener sponsored"
>
He Went from ZERO TO $74,000 as a Full Time Developer in 7 Weeks
</a>
</span>
<a
href="https://github.com/sponsors/kamranahmedse"
className="carbon-poweredby"
target="_blank"
rel="noopener sponsored"
>
Sponsored by
</a>
</span>
</div>
);
};
4 changes: 3 additions & 1 deletion components/page-footer/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import siteConfig from 'content/site';
import { FooterWrap } from './style.js';
import './carbon.scss';
import { CustomAd } from "./custom-ad";

const PageFooter = () => (
<FooterWrap className="border-top">
Expand Down Expand Up @@ -54,9 +55,10 @@ const PageFooter = () => (
</div>
</div>

<CustomAd />

{/* Do not show on local */}
{ process.env.GA_SECRET && (
{ process.env.GA_SECRET && false && (
<>
<script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?serve=CE7DLK3Y&placement=roadmapsh" id="_carbonads_js"></script>
{/*<div id="codefund"></div>*/}
Expand Down
Binary file added public/fm-img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7c5d28b

Please sign in to comment.