Add custom ad

pull/1331/head
Kamran Ahmed 3 years ago
parent 0a6d72f671
commit bc9e58c155
  1. 41
      components/custom-ad.tsx
  2. 2
      components/footer.tsx
  3. BIN
      public/fm-img.png

@ -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>
);
};

@ -1,5 +1,6 @@
import { Box, Container, Flex, Image, Link, Stack, Text } from '@chakra-ui/react'; import { Box, Container, Flex, Image, Link, Stack, Text } from '@chakra-ui/react';
import siteConfig from '../content/site.json'; import siteConfig from '../content/site.json';
import { CustomAd } from './custom-ad';
function NavigationLinks() { function NavigationLinks() {
return ( return (
@ -64,6 +65,7 @@ export function Footer() {
</Box> </Box>
</Container> </Container>
<CustomAd />
{process.env.GA_SECRET && false && ( {process.env.GA_SECRET && false && (
<script <script
async async

Binary file not shown.

After

Width:  |  Height:  |  Size: 385 KiB

Loading…
Cancel
Save