Add carbon integration
This commit is contained in:
@ -63,6 +63,15 @@ export function Footer() {
|
||||
</Text>
|
||||
</Box>
|
||||
</Container>
|
||||
|
||||
{process.env.GA_SECRET && false && (
|
||||
<script
|
||||
async
|
||||
type='text/javascript'
|
||||
src='//cdn.carbonads.com/carbon.js?serve=CE7DLK3Y&placement=roadmapsh'
|
||||
id='_carbonads_js'
|
||||
/>
|
||||
)}
|
||||
</Box>
|
||||
);
|
||||
}
|
||||
|
@ -3,7 +3,7 @@ import React from 'react';
|
||||
import { MDXProvider } from '@mdx-js/react';
|
||||
import { ChakraProvider } from '@chakra-ui/react';
|
||||
import MdxComponents from './mdx-components';
|
||||
import { roadmapTheme } from '../../lib/theme';
|
||||
import { roadmapTheme } from '../../styles/theme';
|
||||
|
||||
type MdRendererType = {
|
||||
children: React.ReactNode
|
||||
|
@ -2,8 +2,9 @@ import { useEffect } from 'react';
|
||||
import type { AppProps } from 'next/app';
|
||||
import { ChakraProvider } from '@chakra-ui/react';
|
||||
import 'prism-themes/themes/prism-shades-of-purple.css';
|
||||
import { roadmapTheme } from '../lib/theme';
|
||||
import { roadmapTheme } from '../styles/theme';
|
||||
import { firePageView } from '../lib/gtag';
|
||||
import '../styles/carbon.css';
|
||||
|
||||
function MyApp({ Component, pageProps }: AppProps) {
|
||||
useEffect(() => {
|
||||
|
@ -5,7 +5,7 @@ import { UpdatesBanner } from '../components/updates-banner';
|
||||
import { OpensourceBanner } from '../components/opensource-banner';
|
||||
import { DimmedMore } from '../components/dimmed-more';
|
||||
import { LinksListItem } from '../components/links-list-item';
|
||||
import { VideoIcon } from '../icons/video-icon';
|
||||
import { VideoIcon } from '../components/icons/video-icon';
|
||||
import { LinksList } from '../components/links-list';
|
||||
import { HomeRoadmapItem } from '../components/roadmap/home-roadmap-item';
|
||||
import { getFeaturedRoadmaps, RoadmapType } from '../lib/roadmap';
|
||||
|
62
styles/carbon.css
Normal file
62
styles/carbon.css
Normal file
@ -0,0 +1,62 @@
|
||||
#carbonads {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
|
||||
Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
position: fixed;
|
||||
bottom: 15px;
|
||||
right: 20px;
|
||||
}
|
||||
|
||||
#carbonads {
|
||||
display: flex;
|
||||
max-width: 330px;
|
||||
background-color: hsl(0, 0%, 98%);
|
||||
box-shadow: 0 1px 4px 1px hsla(0, 0%, 0%, .1);
|
||||
}
|
||||
|
||||
#carbonads a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#carbonads a:hover {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
#carbonads span {
|
||||
position: relative;
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#carbonads .carbon-wrap {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.carbon-img {
|
||||
display: block;
|
||||
margin: 0;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.carbon-img img {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.carbon-text {
|
||||
font-size: 13px;
|
||||
padding: 10px;
|
||||
line-height: 1.5;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.carbon-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