Written some articles and added a few changes
This commit is contained in:
parent
24d37efe3d
commit
4b6f88247d
5 changed files with 72 additions and 1 deletions
10
components/codeblock.js
Normal file
10
components/codeblock.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
import styles from '../styles/CodeBlock.module.css';
|
||||
|
||||
export default function CodeBlock (props) {
|
||||
return (
|
||||
<div className={styles.CodeBlock} style={props.quote ? {paddingTop: '0px', paddingLeft:'0px'} : {}}>
|
||||
{props.quote ? (<div className={styles.Author}>{props.author} says:</div>) : null}
|
||||
<div style={props.quote ? {paddingLeft:'10px'} : {}}>{props.children}</div>
|
||||
</div>
|
||||
)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue