Revert custom ad changes

pull/1331/head
Kamran Ahmed 3 years ago
parent 8fbde17c22
commit 9f7119694b
  1. 6
      components/custom-ad.tsx
  2. 2
      components/footer.tsx
  3. 17
      styles/carbon.css

@ -1,8 +1,6 @@
import { Box } from '@chakra-ui/react';
export const CustomAd = () => { export const CustomAd = () => {
return ( return (
<Box className='custom-ad' d={['none !important', 'flex !important']}> <div id='carbonads'>
<span> <span>
<span className='carbon-wrap'> <span className='carbon-wrap'>
<a <a
@ -34,6 +32,6 @@ export const CustomAd = () => {
Sponsored by Sponsored by
</a> </a>
</span> </span>
</Box> </div>
); );
}; };

@ -66,7 +66,7 @@ export function Footer() {
</Container> </Container>
<CustomAd /> <CustomAd />
{process.env.GA_SECRET && ( {process.env.GA_SECRET && false && (
<script <script
async async
type='text/javascript' type='text/javascript'

@ -1,4 +1,4 @@
#carbonads, .custom-ad { #carbonads {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif; Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;
position: fixed; position: fixed;
@ -6,34 +6,29 @@
right: 20px; right: 20px;
} }
.custom-ad { #carbonads {
left: 20px !important;
right: auto !important;
}
#carbonads, .custom-ad {
display: flex; display: flex;
max-width: 330px; max-width: 330px;
background-color: hsl(0, 0%, 98%); background-color: hsl(0, 0%, 98%);
box-shadow: 0 1px 4px 1px hsla(0, 0%, 0%, .1); box-shadow: 0 1px 4px 1px hsla(0, 0%, 0%, .1);
} }
#carbonads a, .custom-ad a { #carbonads a {
color: inherit; color: inherit;
text-decoration: none; text-decoration: none;
} }
#carbonads a:hover, .custom-ad a:hover { #carbonads a:hover {
color: inherit; color: inherit;
} }
#carbonads span, .custom-ad span { #carbonads span {
position: relative; position: relative;
display: block; display: block;
overflow: hidden; overflow: hidden;
} }
#carbonads .carbon-wrap, .custom-ad .carbon-wrap { #carbonads .carbon-wrap {
display: flex; display: flex;
} }

Loading…
Cancel
Save