1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-08-31 04:59:50 +02:00

Enable link to TNS book

This commit is contained in:
Kamran Ahmed
2022-09-27 21:55:06 +04:00
parent fe79eab28b
commit 26f574cc9d

View File

@@ -1,5 +1,4 @@
import { Box, Flex, Heading, Image, Link } from '@chakra-ui/react';
import { getParameterByName } from '../pages/upcoming';
function getPageSlug() {
const pathname = (typeof window !== 'undefined' ? window : {} as any)?.location?.pathname || '';
@@ -13,11 +12,6 @@ export const CustomAd = () => {
return null;
}
const shouldShowAd = getParameterByName('ad');
if (!shouldShowAd) {
return null;
}
return (
<Link href='https://thenewstack.io/ebooks/devops/cloud-native-devops-2019/?utm_source=Roadmap&utm_medium=Banner&utm_campaign=DevOps+ebook' id='custom-ad' pos='fixed' bottom='15px' right='20px' zIndex={999} display='flex' maxWidth='330px'
bg='white' boxShadow='0 1px 4px 1px hsla(0, 0%, 0%, .1)' _hover={{ textDecoration: 'none' }} rel="noopener sponsored">