diff --git a/apps/blog/src/assets/quote.svg b/apps/blog/src/assets/quote.svg new file mode 100644 index 00000000..9a39e307 --- /dev/null +++ b/apps/blog/src/assets/quote.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/apps/blog/src/components/Blockquote/Blockquote.tsx b/apps/blog/src/components/Blockquote/Blockquote.tsx new file mode 100644 index 00000000..0d1aafd1 --- /dev/null +++ b/apps/blog/src/components/Blockquote/Blockquote.tsx @@ -0,0 +1,8 @@ +export function Blockquote(props: React.BlockquoteHTMLAttributes) { + return ( +
+ ) +} diff --git a/apps/blog/src/components/Blockquote/index.ts b/apps/blog/src/components/Blockquote/index.ts new file mode 100644 index 00000000..5398e220 --- /dev/null +++ b/apps/blog/src/components/Blockquote/index.ts @@ -0,0 +1 @@ +export { Blockquote } from './Blockquote' diff --git a/apps/blog/src/components/Mdx/Mdx.tsx b/apps/blog/src/components/Mdx/Mdx.tsx index 6e660833..e50a7074 100644 --- a/apps/blog/src/components/Mdx/Mdx.tsx +++ b/apps/blog/src/components/Mdx/Mdx.tsx @@ -3,12 +3,13 @@ import Image from 'next/image' import { useMDXComponent } from 'next-contentlayer/hooks' import InstagramPost from '../InstagramPost' import { ExternalLink } from '../ExternalLink' +import { Blockquote } from '../Blockquote' interface MdxProps { code: string } -const components = { Image: (props: ImageProps) => , InstagramPost, a: ExternalLink } +const components = { Image: (props: ImageProps) => , InstagramPost, a: ExternalLink, blockquote: Blockquote } export function Mdx({ code }: MdxProps) { const Component = useMDXComponent(code) diff --git a/apps/blog/tailwind.config.js b/apps/blog/tailwind.config.js index 774b7eee..fc28d181 100644 --- a/apps/blog/tailwind.config.js +++ b/apps/blog/tailwind.config.js @@ -44,11 +44,14 @@ module.exports = { }, content: { externalLink: 'url("../../assets/ext-link-icon.svg")', + quote: 'url("../../assets/quote.svg")', }, typography: { DEFAULT: { css: { - blockquote: { quotes: 'auto' }, + blockquote: { + quotes: 'auto', + }, }, }, },