Disable carbon ads

pull/1331/head
Kamran Ahmed 3 years ago
parent 13612323d7
commit 6de2867d8a
  1. 15
      components/custom-ad.tsx
  2. 1
      pages/_app.tsx
  3. 66
      styles/sponsor.css

@ -1,23 +1,24 @@
export const CustomAd = () => {
return (
<div id='sponsorads'>
<div id='carbonads'>
<span>
<span className='sponsor-wrap'>
<span className='carbon-wrap'>
<a
href='https://freemote.com/strategy?sl=roadmap'
className='sponsor-img'
className='carbon-img'
target='_blank'
>
<img
src='/fm-img.png'
alt='FM Logo'
width='112'
style={{ maxWidth: '112px', border: 'none' }}
height='100'
width='130'
style={{ maxWidth: '130px', border: 'none' }}
/>
</a>
<a
href='https://freemote.com/strategy?sl=roadmap'
className='sponsor-text'
className='carbon-text'
target='_blank'
>
He Went from ZERO TO $74,000 as a Full Time Developer in 7 Weeks
@ -25,7 +26,7 @@ export const CustomAd = () => {
</span>
<a
href='https://github.com/sponsors/kamranahmedse'
className='sponsor-poweredby'
className='carbon-poweredby'
target='_blank'
>
Sponsored by

@ -5,7 +5,6 @@ import 'prism-themes/themes/prism-shades-of-purple.css';
import { roadmapTheme } from '../styles/theme';
import { firePageView } from '../lib/gtag';
import '../styles/carbon.css';
import '../styles/sponsor.css';
import { StickyBanner } from '../components/sticky-banner';
function MyApp({ Component, pageProps }: AppProps) {

@ -1,66 +0,0 @@
#sponsorads {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;
position: fixed;
bottom: 15px;
right: 20px;
}
#sponsorads {
display: flex;
max-width: 330px;
background-color: hsl(0, 0%, 98%);
box-shadow: 0 1px 4px 1px hsla(0, 0%, 0%, .1);
}
#sponsorads:hover {
z-index: 999;
}
#sponsorads a {
color: inherit;
text-decoration: none;
}
#sponsorads a:hover {
color: inherit;
}
#sponsorads span {
position: relative;
display: block;
overflow: hidden;
}
#sponsorads .sponsor-wrap {
display: flex;
}
.sponsor-img {
display: block;
margin: 0;
line-height: 1;
}
.sponsor-img img {
display: block;
}
.sponsor-text {
font-size: 13px;
padding: 10px;
line-height: 1.5;
text-align: left;
}
.sponsor-poweredby {
display: block;
padding: 8px 10px;
background: repeating-linear-gradient(-45deg, transparent, transparent 5px, hsla(0, 0%, 0%, .025) 5px, hsla(0, 0%, 0%, .025) 10px) hsla(203, 11%, 95%, .4);
text-align: center;
text-transform: uppercase;
letter-spacing: .5px;
font-weight: 600;
font-size: 9px;
line-height: 1;
}
Loading…
Cancel
Save