Update sponsor ads and carbon ad styling
This commit is contained in:
@ -1,24 +1,23 @@
|
||||
export const CustomAd = () => {
|
||||
return (
|
||||
<div id='carbonads'>
|
||||
<div id='sponsorads'>
|
||||
<span>
|
||||
<span className='carbon-wrap'>
|
||||
<span className='sponsor-wrap'>
|
||||
<a
|
||||
href='https://freemote.com/strategy?sl=roadmap'
|
||||
className='carbon-img'
|
||||
className='sponsor-img'
|
||||
target='_blank'
|
||||
>
|
||||
<img
|
||||
src='/fm-img.png'
|
||||
alt='FM Logo'
|
||||
height='100'
|
||||
width='130'
|
||||
style={{ maxWidth: '130px', border: 'none' }}
|
||||
width='112'
|
||||
style={{ maxWidth: '112px', border: 'none' }}
|
||||
/>
|
||||
</a>
|
||||
<a
|
||||
href='https://freemote.com/strategy?sl=roadmap'
|
||||
className='carbon-text'
|
||||
className='sponsor-text'
|
||||
target='_blank'
|
||||
>
|
||||
He Went from ZERO TO $74,000 as a Full Time Developer in 7 Weeks
|
||||
@ -26,7 +25,7 @@ export const CustomAd = () => {
|
||||
</span>
|
||||
<a
|
||||
href='https://github.com/sponsors/kamranahmedse'
|
||||
className='carbon-poweredby'
|
||||
className='sponsor-poweredby'
|
||||
target='_blank'
|
||||
>
|
||||
Sponsored by
|
||||
|
@ -66,7 +66,7 @@ export function Footer() {
|
||||
</Container>
|
||||
|
||||
<CustomAd />
|
||||
{process.env.GA_SECRET && false && (
|
||||
{process.env.GA_SECRET && (
|
||||
<script
|
||||
async
|
||||
type='text/javascript'
|
||||
|
@ -5,6 +5,7 @@ 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) {
|
||||
|
@ -2,10 +2,16 @@
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
|
||||
Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
position: fixed;
|
||||
bottom: 15px;
|
||||
bottom: 150px;
|
||||
right: 20px;
|
||||
}
|
||||
|
||||
@media (max-width: 700px) {
|
||||
#carbonads {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
#carbonads {
|
||||
display: flex;
|
||||
max-width: 330px;
|
||||
|
66
styles/sponsor.css
Normal file
66
styles/sponsor.css
Normal file
@ -0,0 +1,66 @@
|
||||
#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;
|
||||
}
|
Reference in New Issue
Block a user