diff --git a/apps/www/components/CodeBlock/CodeBlock.tsx b/apps/www/components/CodeBlock/CodeBlock.tsx index 732f558354e..99f0cb02169 100644 --- a/apps/www/components/CodeBlock/CodeBlock.tsx +++ b/apps/www/components/CodeBlock/CodeBlock.tsx @@ -17,6 +17,7 @@ export interface CodeBlockProps { className?: string children?: string size?: 'small' | 'medium' | 'large' + background?: string } function CodeBlock(props: CodeBlockProps) { @@ -98,7 +99,7 @@ function CodeBlock(props: CodeBlockProps) { padding: '21px 24px', fontSize: large ? 18 : '0.875rem', lineHeight: large ? 1.6 : 1.4, - background: '#181818', + background: props.background ?? '#1A1A1A', }} showLineNumbers={props.showLineNumbers} lineNumberStyle={{ diff --git a/apps/www/components/Layouts/Default.tsx b/apps/www/components/Layouts/Default.tsx index 134f8243f35..99c1b5d863b 100644 --- a/apps/www/components/Layouts/Default.tsx +++ b/apps/www/components/Layouts/Default.tsx @@ -5,17 +5,18 @@ import Footer from 'components/Footer/index' type Props = { hideHeader?: boolean hideFooter?: boolean + className?: string children: React.ReactNode } const DefaultLayout = (props: Props) => { - const { hideHeader = false, hideFooter = false, children } = props + const { hideHeader = false, hideFooter = false, className = '', children } = props return ( <> {!hideHeader && }
{paragraph}
+{paragraph}