Add roadmap rendering

This commit is contained in:
Kamran Ahmed
2021-08-29 21:29:14 +02:00
parent 74ef38cdb6
commit 67b8af3f6b
14 changed files with 121 additions and 45 deletions

View File

@ -5,6 +5,7 @@ const BlockQuote = styled.blockquote`
position: relative;
background: #e8e8e8;
border-radius: 5px;
margin-bottom: 18px;
h1, h2, h3, h4, h5, h6 {
margin-top: 0;

View File

@ -0,0 +1,10 @@
import React from 'react';
import { Code as ChakraCode } from '@chakra-ui/react';
type CodeType = {
children: React.ReactNode;
}
export default function Code(props: CodeType) {
return <ChakraCode bg='blue.500'>{props.children}</ChakraCode>;
}

View File

@ -10,6 +10,7 @@ import { BadgeLink } from './badge-link';
import Ul from './ul';
import Li from './li';
import PremiumBlock from './premium-block';
import { Code } from '@chakra-ui/react';
const MdxComponents = {
p: P,
@ -20,6 +21,7 @@ const MdxComponents = {
table: Table,
iframe: IFrame,
img: Img,
code: Code,
BadgeLink: BadgeLink,
PremiumBlock: PremiumBlock,
ul: Ul,